UI: VAULT-13135 Add copyable issuer id row to issuer details (#19054)

* VAULT-13135 Add copyable issuer id row to issuer details

* Fix failing test
This commit is contained in:
Kianna 2023-02-08 09:38:30 -08:00 committed by GitHub
parent ec2af04ec6
commit c1a337269f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 1 deletions

View File

@ -13,6 +13,7 @@ const issuerUrls = ['issuingCertificates', 'crlDistributionPoints', 'ocspServers
'caChain',
'commonName',
'issuerName',
'issuerId',
'serialNumber',
'keyId',
'uriSans',

View File

@ -117,6 +117,7 @@
@value={{get @issuer attr.name}}
@formatDate={{if attr.options.formatDate "MMM d yyyy HH:mm:ss a zzzz"}}
@alwaysRender={{true}}
@addCopyButton={{(eq attr.name "issuerId")}}
/>
{{/if}}
{{/each}}

View File

@ -427,7 +427,7 @@ module('Acceptance | pki workflow', function (hooks) {
assert.dom(SELECTORS.issuerDetails.title).hasText('View issuer certificate');
assert
.dom(`${SELECTORS.issuerDetails.defaultGroup} ${SELECTORS.issuerDetails.row}`)
.exists({ count: 10 }, 'Renders 10 info table items under default group');
.exists({ count: 11 }, 'Renders 10 info table items under default group');
assert
.dom(`${SELECTORS.issuerDetails.urlsGroup} ${SELECTORS.issuerDetails.row}`)
.exists({ count: 3 }, 'Renders 4 info table items under URLs group');