Skip to content

Commit

Permalink
NAS-131460: UI should use webui.crypto.csr_profiles endpoint for CS…
Browse files Browse the repository at this point in the history
…R profiles (#10797)
  • Loading branch information
undsoft authored Oct 7, 2024
1 parent 53b379a commit 5ab62e3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/app/interfaces/api/api-call-directory.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -912,6 +912,7 @@ export interface ApiCallDirectory {

// WebUI Crypto
'webui.crypto.certificate_profiles': { params: void; response: CertificateProfiles };
'webui.crypto.csr_profiles': { params: void; response: CertificateProfiles };
'webui.crypto.get_certificate_domain_names': { params: [number]; response: string[] };
'webui.crypto.certificateauthority_profiles': { params: void; response: CertificateProfiles };

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ describe('CsrAddComponent', () => {
],
providers: [
mockWebSocket([
mockCall('webui.crypto.certificate_profiles', {
mockCall('webui.crypto.csr_profiles', {
'HTTPS RSA Certificate': profile,
}),
mockCall('certificate.ec_curve_choices', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ describe('CsrIdentifierAndTypeComponent', () => {
],
providers: [
mockWebSocket([
mockCall('webui.crypto.certificate_profiles', {
mockCall('webui.crypto.csr_profiles', {
'HTTPS ECC Certificate': httpsProfile,
'Openvpn Client Certificate': openvpnProfile,
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export class CsrIdentifierAndTypeComponent implements OnInit, SummaryProvider {
}

private loadProfiles(): void {
this.ws.call('webui.crypto.certificate_profiles')
this.ws.call('webui.crypto.csr_profiles')
.pipe(this.errorHandler.catchError(), untilDestroyed(this))
.subscribe((profiles) => {
this.profiles = profiles;
Expand Down

0 comments on commit 5ab62e3

Please sign in to comment.