mirror of https://github.com/hashicorp/consul
ui: Brings the new ACLs into line with the new repo folder structure (#4857)
This PR updates the folder structure and naming of the new ACLs, the same as #4694 .pull/4858/head
parent
f1246801b1
commit
de6644675d
@ -1,14 +1,9 @@
|
||||
import { moduleFor, test, skip } from 'ember-qunit';
|
||||
const NAME = 'policy';
|
||||
import repo from 'consul-ui/tests/helpers/repo';
|
||||
moduleFor('service:policies', 'Integration | Service | policies', {
|
||||
moduleFor(`service:repository/${NAME}`, `Integration | Service | ${NAME}`, {
|
||||
// Specify the other units that are required for this test.
|
||||
needs: [
|
||||
'service:store',
|
||||
'model:policy',
|
||||
'adapter:policy',
|
||||
'serializer:policy',
|
||||
'service:settings',
|
||||
],
|
||||
integration: true,
|
||||
});
|
||||
const dc = 'dc-1';
|
||||
const id = 'policy-name';
|
@ -1,8 +1,9 @@
|
||||
import { moduleFor, test, skip } from 'ember-qunit';
|
||||
import repo from 'consul-ui/tests/helpers/repo';
|
||||
moduleFor('service:tokens', 'Integration | Service | tokens', {
|
||||
const NAME = 'token';
|
||||
moduleFor(`service:repository/${NAME}`, `Integration | Service | ${NAME}`, {
|
||||
// Specify the other units that are required for this test.
|
||||
needs: ['service:store', 'model:token', 'adapter:token', 'serializer:token', 'service:settings'],
|
||||
integration: true,
|
||||
});
|
||||
const dc = 'dc-1';
|
||||
const id = 'token-id';
|
@ -0,0 +1,12 @@
|
||||
import { moduleFor, test } from 'ember-qunit';
|
||||
|
||||
moduleFor('service:repository/policy', 'Unit | Service | policy', {
|
||||
// Specify the other units that are required for this test.
|
||||
needs: ['service:store'],
|
||||
});
|
||||
|
||||
// Replace this with your real tests.
|
||||
test('it exists', function(assert) {
|
||||
let service = this.subject();
|
||||
assert.ok(service);
|
||||
});
|
@ -1,8 +1,8 @@
|
||||
import { moduleFor, test } from 'ember-qunit';
|
||||
|
||||
moduleFor('service:repository/acl', 'Unit | Service | acl', {
|
||||
moduleFor('service:repository/token', 'Unit | Service | token', {
|
||||
// Specify the other units that are required for this test.
|
||||
// needs: ['service:foo']
|
||||
needs: ['service:store'],
|
||||
});
|
||||
|
||||
// Replace this with your real tests.
|
Loading…
Reference in new issue