mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-29 17:52:32 +00:00
UI: Add expected attr to pass tests (#28389)
* Add expected attr to pass tests * add tidyCmpv2NonceStore to tidy forms
This commit is contained in:
@@ -97,6 +97,11 @@ export default class PkiTidyModel extends Model {
|
||||
})
|
||||
tidyCrossClusterRevokedCerts; // enterprise only
|
||||
|
||||
@attr('boolean', {
|
||||
label: 'Tidy CMPv2 nonce store',
|
||||
})
|
||||
tidyCmpv2NonceStore; // enterprise only
|
||||
|
||||
@attr('boolean', {
|
||||
subText: 'Automatically remove expired issuers after the issuer safety buffer duration has elapsed.',
|
||||
})
|
||||
@@ -155,6 +160,7 @@ export default class PkiTidyModel extends Model {
|
||||
'Cross-cluster operations': [
|
||||
'tidyRevocationQueue',
|
||||
'tidyCrossClusterRevokedCerts',
|
||||
'tidyCmpv2NonceStore',
|
||||
'revocationQueueSafetyBuffer',
|
||||
],
|
||||
});
|
||||
|
||||
@@ -1457,6 +1457,12 @@ const pki = {
|
||||
fieldGroup: 'default',
|
||||
type: 'boolean',
|
||||
},
|
||||
tidyCmpv2NonceStore: {
|
||||
editType: 'boolean',
|
||||
fieldGroup: 'default',
|
||||
helpText: 'Set to true to enable tidying up the CMPv2 nonce store',
|
||||
type: 'boolean',
|
||||
},
|
||||
tidyCrossClusterRevokedCerts: {
|
||||
editType: 'boolean',
|
||||
helpText:
|
||||
|
||||
@@ -32,7 +32,7 @@ module('Integration | Component | pki tidy form', function (hooks) {
|
||||
});
|
||||
|
||||
test('it hides or shows fields depending on auto-tidy toggle', async function (assert) {
|
||||
assert.expect(39);
|
||||
assert.expect(41);
|
||||
const sectionHeaders = [
|
||||
'Universal operations',
|
||||
'ACME operations',
|
||||
@@ -82,7 +82,7 @@ module('Integration | Component | pki tidy form', function (hooks) {
|
||||
});
|
||||
|
||||
test('it renders all attribute fields, including enterprise', async function (assert) {
|
||||
assert.expect(27);
|
||||
assert.expect(29);
|
||||
this.autoTidy.enabled = true;
|
||||
const skipFields = ['enabled', 'tidyAcme', 'intervalDuration']; // combined with duration ttl or asserted separately
|
||||
await render(
|
||||
@@ -190,6 +190,7 @@ module('Integration | Component | pki tidy form', function (hooks) {
|
||||
tidy_acme: true,
|
||||
tidy_cert_metadata: true,
|
||||
tidy_cert_store: true,
|
||||
tidy_cmpv2_nonce_store: true,
|
||||
tidy_cross_cluster_revoked_certs: true,
|
||||
tidy_expired_issuers: true,
|
||||
tidy_move_legacy_ca_bundle: true,
|
||||
|
||||
Reference in New Issue
Block a user