mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-22 23:21:08 +02:00
* updates api client vars to snake_case for custom messages * updates api client vars to snake_case for tools * updates api client vars to snake_case for sync * updates api client vars to snake_case for secrets engine * updates api client vars to snake_case for auth * updates api client vars to snake_case for usage * updates api client dep to point to gh repo * fixes custom-messages service unit tests * fixes configure-ssh test * fixes configure-ssh test...again
27 lines
1.1 KiB
JavaScript
27 lines
1.1 KiB
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
import { create, visitable, fillable, clickable } from 'ember-cli-page-object';
|
|
import { settled } from '@ember/test-helpers';
|
|
import { mountBackend } from 'vault/tests/helpers/components/mount-backend-form-helpers';
|
|
|
|
export default create({
|
|
visit: visitable('/vault/settings/mount-secret-backend'),
|
|
version: fillable('[data-test-input="options.version"]'),
|
|
setMaxVersion: fillable('[data-test-input="kv_config.max_versions"]'),
|
|
maxTTLVal: fillable('[data-test-ttl-value="Max Lease TTL"]'),
|
|
maxTTLUnit: fillable('[data-test-ttl-unit="Max Lease TTL"] [data-test-select="ttl-unit"]'),
|
|
enableEngine: clickable('[data-test-enable-engine]'),
|
|
secretList: clickable('[data-test-sidebar-nav-link="Secrets Engines"]'),
|
|
defaultTTLVal: fillable('input[data-test-ttl-value="Default Lease TTL"]'),
|
|
defaultTTLUnit: fillable('[data-test-ttl-unit="Default Lease TTL"] [data-test-select="ttl-unit"]'),
|
|
enable: async function (type, path) {
|
|
await this.visit();
|
|
await settled();
|
|
await mountBackend(type, path);
|
|
await settled();
|
|
},
|
|
});
|