mirror of
https://github.com/hashicorp/vault.git
synced 2025-09-10 16:31:07 +02:00
* remove skip * remove skip from create test * some changes * small changes to address local failures * replace page object with dom click to help with flaky control group test * small fix that seems to help control group failures * some skipping to bring back my sanity * focusing on the section-cert-test for pki * another try at the secret cert test * skipping to focus on secret-certs * fingers crossed for pki role test * hopefully some help with control group * more on control groups * trying for one less skip here * create test remove skips * remove skip * remove comment * back to skip this test * shouldn't make sense but it does, changed the name to hit it first in acceptance test and that works * redirect testing * remove catch because that was not the issue, it never got triggered * cleanup * clean up * remove comments and add catch
34 lines
1.1 KiB
JavaScript
34 lines
1.1 KiB
JavaScript
import { currentRouteName } from '@ember/test-helpers';
|
|
import { module, test } from 'qunit';
|
|
import { setupApplicationTest } from 'ember-qunit';
|
|
import page from 'vault/tests/pages/access/identity/create';
|
|
import { testCRUD, testDeleteFromForm } from '../_shared-tests';
|
|
import authPage from 'vault/tests/pages/auth';
|
|
|
|
module('Acceptance | /access/identity/entities/create', function(hooks) {
|
|
setupApplicationTest(hooks);
|
|
|
|
hooks.beforeEach(function() {
|
|
return authPage.login();
|
|
});
|
|
|
|
test('it visits the correct page', async function(assert) {
|
|
await page.visit({ item_type: 'entities' });
|
|
assert.equal(
|
|
currentRouteName(),
|
|
'vault.cluster.access.identity.create',
|
|
'navigates to the correct route'
|
|
);
|
|
});
|
|
|
|
test('it allows create, list, delete of an entity', async function(assert) {
|
|
let name = `entity-${Date.now()}`;
|
|
await testCRUD(name, 'entities', assert);
|
|
});
|
|
|
|
test('it can be deleted from the edit form', async function(assert) {
|
|
let name = `entity-${Date.now()}`;
|
|
await testDeleteFromForm(name, 'entities', assert);
|
|
});
|
|
});
|