open-vault/ui/tests/acceptance/policy-test.js
2018-04-03 09:16:57 -05:00

20 lines
510 B
JavaScript

import { test } from 'qunit';
import moduleForAcceptance from 'vault/tests/helpers/module-for-acceptance';
moduleForAcceptance('Acceptance | policies', {
beforeEach() {
return authLogin();
},
afterEach() {
return authLogout();
},
});
test('it redirects to acls with unknown policy type', function(assert) {
visit('/vault/policies/foo');
andThen(() => {
assert.equal(currentRouteName(), 'vault.cluster.policies.index');
assert.equal(currentURL(), '/vault/policies/acl');
});
});