open-vault/ui/tests/acceptance/policy-test.js

20 lines
510 B
JavaScript
Raw Normal View History

2018-04-03 14:16:57 +00:00
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');
});
});