UI: Add expected attr to pass tests (#28389)

* Add expected attr to pass tests

* add tidyCmpv2NonceStore to tidy forms
This commit is contained in:
Chelsea Shaw
2024-09-13 15:00:57 -05:00
committed by GitHub
parent 6cf885f85a
commit c7ed13f1a2
3 changed files with 15 additions and 2 deletions

View File

@@ -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',
],
});

View File

@@ -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:

View File

@@ -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,