mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-18 04:27:02 +02:00
23 lines
762 B
JavaScript
23 lines
762 B
JavaScript
import { module, test } from 'qunit';
|
|
import { setupApplicationTest } from 'ember-qunit';
|
|
import { testAliasCRUD, testAliasDeleteFromForm } from '../../_shared-alias-tests';
|
|
import authPage from 'vault/tests/pages/auth';
|
|
|
|
module('Acceptance | /access/identity/entities/aliases/add', function(hooks) {
|
|
setupApplicationTest(hooks);
|
|
|
|
hooks.beforeEach(function() {
|
|
return authPage.login();
|
|
});
|
|
|
|
test('it allows create, list, delete of an entity alias', async function(assert) {
|
|
let name = `alias-${Date.now()}`;
|
|
await testAliasCRUD(name, 'entities', assert);
|
|
});
|
|
|
|
test('it allows delete from the edit form', async function(assert) {
|
|
let name = `alias-${Date.now()}`;
|
|
await testAliasDeleteFromForm(name, 'entities', assert);
|
|
});
|
|
});
|