Merge branch 'auth-create-list' of github.com:hashicorp/boundary-ui into auth-create-list

This commit is contained in:
dharini committed 2021-09-02 08:28:21 -07:00
commit 9e8d7c9cae
2 files changed
+5 -5

No files matched your search

@@ -50,7 +50,7 @@ module('Acceptance | auth-methods | create ', function (hooks) {
urls.authMethod = `${urls.authMethods}/${instances.authMethod.id}`;
});
test('can create new auth method', async function (assert) {
test('Users can create new auth method', async function (assert) {
assert.expect(1);
const authMethodsCount = this.server.db.authMethods.length;
await visit(urls.newAuthMethod);
@@ -60,7 +60,7 @@ module('Acceptance | auth-methods | create ', function (hooks) {
assert.equal(this.server.db.authMethods.length, authMethodsCount + 1);
});
test('can navigate to new auth-methods route with proper authorization', async function (assert) {
test('Users can navigate to new auth-methods route with proper authorization', async function (assert) {
assert.expect(2);
instances.orgScope.authorized_collection_actions['auth-methods'] = [
'create',
@@ -75,7 +75,7 @@ module('Acceptance | auth-methods | create ', function (hooks) {
assert.ok(find(`[href="${urls.authMethods}"]`));
});
test('cannot navigate to new auth-methods route without proper authorization', async function (assert) {
test('Users cannot navigate to new auth-methods route without proper authorization', async function (assert) {
assert.expect(2);
instances.orgScope.authorized_collection_actions['auth-methods'] = [];
await visit(urls.orgURL);
@@ -53,7 +53,7 @@ module('Acceptance | auth-methods | list', function (hooks) {
authenticateSession({});
});
test('can navigate to auth methods with proper authorization', async function (assert) {
test('Users can navigate to auth methods with proper authorization', async function (assert) {
assert.expect(2);
await visit(urls.orgScope);
assert.ok(
@@ -64,7 +64,7 @@ module('Acceptance | auth-methods | list', function (hooks) {
assert.ok(find(`[href="${urls.authMethods}"]`));
});
test('User cannot navigate to index without either list or create actions', async function (assert) {
test('Users cannot navigate to index without either list or create actions', async function (assert) {
assert.expect(2);
instances.orgScope.authorized_collection_actions['auth-methods'] = [];
await visit(urls.orgScope);