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