mirror of
https://github.com/hashicorp/vault.git
synced 2025-09-11 17:01:15 +02:00
* fixes issue with ttl picker not initially enabling in form field component * adds changelog entry * updates test * updates initial ttl toggle state for default 0s value
29 lines
1.1 KiB
JavaScript
29 lines
1.1 KiB
JavaScript
import { currentRouteName, settled } from '@ember/test-helpers';
|
|
import { module, test } from 'qunit';
|
|
import { setupApplicationTest } from 'ember-qunit';
|
|
import page from 'vault/tests/pages/settings/configure-secret-backends/pki/section';
|
|
import authPage from 'vault/tests/pages/auth';
|
|
import enablePage from 'vault/tests/pages/settings/mount-secret-backend';
|
|
|
|
module('Acceptance | settings/configure/secrets/pki/crl', function(hooks) {
|
|
setupApplicationTest(hooks);
|
|
|
|
hooks.beforeEach(function() {
|
|
return authPage.login();
|
|
});
|
|
|
|
test('it saves crl config', async function(assert) {
|
|
const path = `pki-${new Date().getTime()}`;
|
|
await enablePage.enable('pki', path);
|
|
await settled();
|
|
await page.visit({ backend: path, section: 'crl' });
|
|
await settled();
|
|
assert.equal(currentRouteName(), 'vault.cluster.settings.configure-secret-backend.section');
|
|
await page.form.fillInUnit('h');
|
|
await page.form.fillInValue(3);
|
|
await page.form.submit();
|
|
await settled();
|
|
assert.equal(page.lastMessage, 'The crl config for this backend has been updated.');
|
|
});
|
|
});
|