mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-29 01:32:33 +00:00
update failing test (#29758)
This commit is contained in:
@@ -173,7 +173,6 @@ module('Acceptance | aws | configuration', function (hooks) {
|
||||
|
||||
test('it should show identityTokenTtl or maxRetries even if they have not been set', async function (assert) {
|
||||
// documenting the intention that we show fields that have not been set but are returned by the api due to defaults
|
||||
// this test also documents that maxRetries returns 0 while the API docs indicate -1 is the default value
|
||||
const path = `aws-${this.uid}`;
|
||||
await enablePage.enable('aws', path);
|
||||
|
||||
@@ -187,13 +186,12 @@ module('Acceptance | aws | configuration', function (hooks) {
|
||||
await click(GENERAL.toggleGroup('Root config options'));
|
||||
await fillIn(GENERAL.inputByAttr('region'), 'eu-central-1');
|
||||
await click(GENERAL.saveButton);
|
||||
// the Serializer removes these two from the payload if the API returns their default value.
|
||||
assert
|
||||
.dom(GENERAL.infoRowValue('Identity token TTL'))
|
||||
.hasText('0', 'Identity token TTL shows default.');
|
||||
assert
|
||||
.dom(GENERAL.infoRowValue('Max retries'))
|
||||
.hasText('0', 'Max retries shows 0 indicating the default will be used.');
|
||||
.hasText('-1', 'Max retries shows -1 indicating the default will be used.');
|
||||
// cleanup
|
||||
await runCmd(`delete sys/mounts/${path}`);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user