diff --git a/ui/packages/consul-nspaces/vendor/consul-nspaces/routes.js b/ui/packages/consul-nspaces/vendor/consul-nspaces/routes.js index 3f8a0f9047..b4f0976c96 100644 --- a/ui/packages/consul-nspaces/vendor/consul-nspaces/routes.js +++ b/ui/packages/consul-nspaces/vendor/consul-nspaces/routes.js @@ -3,18 +3,23 @@ nspaces: { _options: { path: '/namespaces', - queryParams: { - sortBy: 'sort', - searchproperty: { - as: 'searchproperty', - empty: [['Name', 'Description', 'Role', 'Policy']], - }, - search: { - as: 'filter', - replace: true, + abilities: ['read nspaces'], + }, + index: { + _options: { + path: '/', + queryParams: { + sortBy: 'sort', + searchproperty: { + as: 'searchproperty', + empty: [['Name', 'Description', 'Role', 'Policy']], + }, + search: { + as: 'filter', + replace: true, + }, }, }, - abilities: ['read nspaces'], }, edit: { _options: { path: '/:name' }, diff --git a/ui/packages/consul-partitions/vendor/consul-partitions/routes.js b/ui/packages/consul-partitions/vendor/consul-partitions/routes.js index 3ef4d56a3e..a60c5ba22f 100644 --- a/ui/packages/consul-partitions/vendor/consul-partitions/routes.js +++ b/ui/packages/consul-partitions/vendor/consul-partitions/routes.js @@ -3,18 +3,23 @@ partitions: { _options: { path: '/partitions', - queryParams: { - sortBy: 'sort', - searchproperty: { - as: 'searchproperty', - empty: [['Name', 'Description']], - }, - search: { - as: 'filter', - replace: true, + abilities: ['read partitions'], + }, + index: { + _options: { + path: '/', + queryParams: { + sortBy: 'sort', + searchproperty: { + as: 'searchproperty', + empty: [['Name', 'Description']], + }, + search: { + as: 'filter', + replace: true, + }, }, }, - abilities: ['read partitions'], }, edit: { _options: { path: '/:name' }, diff --git a/ui/packages/consul-ui/app/router.js b/ui/packages/consul-ui/app/router.js index 6ecbd29a03..1ac7c4da16 100644 --- a/ui/packages/consul-ui/app/router.js +++ b/ui/packages/consul-ui/app/router.js @@ -19,33 +19,123 @@ export const routes = merge.all( // Our parent datacenter resource sets the namespace // for the entire application dc: { - _options: { path: '/:dc' }, + _options: { + path: '/:dc', + }, + index: { + _options: { + path: '/', + redirect: '../services', + }, + }, // Services represent a consul service services: { _options: { path: '/services' }, + index: { + _options: { + path: '/', + queryParams: { + sortBy: 'sort', + status: 'status', + source: 'source', + kind: 'kind', + searchproperty: { + as: 'searchproperty', + empty: [['Name', 'Tags']], + }, + search: { + as: 'filter', + replace: true, + }, + }, + }, + }, // Show an individual service show: { _options: { path: '/:name' }, instances: { - _options: { path: '/instances' }, + _options: { + path: '/instances', + queryParams: { + sortBy: 'sort', + status: 'status', + source: 'source', + searchproperty: { + as: 'searchproperty', + empty: [['Name', 'Node', 'Tags', 'ID', 'Address', 'Port', 'Service.Meta', 'Node.Meta']], + }, + search: { + as: 'filter', + replace: true, + }, + }, + }, }, intentions: { _options: { path: '/intentions' }, + index: { + _options: { + path: '', + queryParams: { + sortBy: 'sort', + access: 'access', + searchproperty: { + as: 'searchproperty', + empty: [['SourceName', 'DestinationName']], + }, + search: { + as: 'filter', + replace: true, + }, + }, + }, + }, edit: { _options: { path: '/:intention_id' }, }, create: { - _options: { path: '/create' }, + _options: { + template: 'dc/services/show/intentions/edit', + path: '/create', + }, }, }, topology: { _options: { path: '/topology' }, }, services: { - _options: { path: '/services' }, + _options: { + path: '/services', + queryParams: { + sortBy: 'sort', + instance: 'instance', + searchproperty: { + as: 'searchproperty', + empty: [['Name', 'Tags']], + }, + search: { + as: 'filter', + replace: true, + }, + }, + }, }, upstreams: { - _options: { path: '/upstreams' }, + _options: { + path: '/upstreams', + queryParams: { + sortBy: 'sort', + instance: 'instance', + searchproperty: { + as: 'searchproperty', + empty: [['Name', 'Tags']], + }, + search: { + as: 'filter', + replace: true, + }, + }, + }, }, routing: { _options: { path: '/routing' }, @@ -55,12 +145,43 @@ export const routes = merge.all( }, }, instance: { - _options: { path: '/:name/instances/:node/:id' }, + _options: { + path: '/:name/instances/:node/:id', + redirect: './healthchecks', + }, healthchecks: { - _options: { path: '/health-checks' }, + _options: { + path: '/health-checks', + queryParams: { + sortBy: 'sort', + status: 'status', + check: 'check', + searchproperty: { + as: 'searchproperty', + empty: [['Name', 'Node', 'CheckID', 'Notes', 'Output', 'ServiceTags']], + }, + search: { + as: 'filter', + replace: true, + }, + }, + }, }, upstreams: { - _options: { path: '/upstreams' }, + _options: { + path: '/upstreams', + queryParams: { + sortBy: 'sort', + search: { + as: 'filter', + replace: true, + }, + searchproperty: { + as: 'searchproperty', + empty: [['DestinationName', 'LocalBindAddress', 'LocalBindPort']], + }, + }, + }, }, exposedpaths: { _options: { path: '/exposed-paths' }, @@ -79,14 +200,62 @@ export const routes = merge.all( // Nodes represent a consul node nodes: { _options: { path: '/nodes' }, + index: { + _options: { + path: '', + queryParams: { + sortBy: 'sort', + status: 'status', + searchproperty: { + as: 'searchproperty', + empty: [['Node', 'Address', 'Meta']], + }, + search: { + as: 'filter', + replace: true, + }, + }, + }, + }, // Show an individual node show: { _options: { path: '/:name' }, healthchecks: { - _options: { path: '/health-checks' }, + _options: { + path: '/health-checks', + queryParams: { + sortBy: 'sort', + status: 'status', + kind: 'kind', + check: 'check', + searchproperty: { + as: 'searchproperty', + empty: [['Name', 'Service', 'CheckID', 'Notes', 'Output', 'ServiceTags']], + }, + search: { + as: 'filter', + replace: true, + }, + }, + }, }, services: { - _options: { path: '/service-instances' }, + _options: { + path: '/service-instances', + queryParams: { + sortBy: 'sort', + status: 'status', + source: 'source', + searchproperty: { + as: 'searchproperty', + empty: [['Name', 'Tags', 'ID', 'Address', 'Port', 'Service.Meta']], + }, + search: { + as: 'filter', + replace: true, + }, + }, + }, }, rtt: { _options: { path: '/round-trip-time' }, @@ -102,6 +271,23 @@ export const routes = merge.all( // Intentions represent a consul intention intentions: { _options: { path: '/intentions' }, + index: { + _options: { + path: '/', + queryParams: { + sortBy: 'sort', + access: 'access', + searchproperty: { + as: 'searchproperty', + empty: [['SourceName', 'DestinationName']], + }, + search: { + as: 'filter', + replace: true, + }, + }, + }, + }, edit: { _options: { path: '/:intention_id', @@ -110,6 +296,7 @@ export const routes = merge.all( }, create: { _options: { + template: 'dc/intentions/edit', path: '/create', abilities: ['create intentions'], }, @@ -118,20 +305,38 @@ export const routes = merge.all( // Key/Value kv: { _options: { path: '/kv' }, + index: { + _options: { + path: '/', + queryParams: { + sortBy: 'sort', + kind: 'kind', + search: { + as: 'filter', + replace: true, + }, + }, + }, + }, folder: { - _options: { path: '/*key' }, + _options: { + template: 'dc/kv/index', + path: '/*key', + }, }, edit: { _options: { path: '/*key/edit' }, }, create: { _options: { + template: 'dc/kv/edit', path: '/*key/create', abilities: ['create kvs'], }, }, 'root-create': { _options: { + template: 'dc/kv/edit', path: '/create', abilities: ['create kvs'], }, diff --git a/ui/packages/consul-ui/app/routes/dc/index.js b/ui/packages/consul-ui/app/routes/dc/index.js deleted file mode 100644 index 6503c013fd..0000000000 --- a/ui/packages/consul-ui/app/routes/dc/index.js +++ /dev/null @@ -1,6 +0,0 @@ -import Route from 'consul-ui/routing/route'; -import to from 'consul-ui/utils/routing/redirect-to'; - -export default class IndexRoute extends Route { - redirect = to('services'); -} diff --git a/ui/packages/consul-ui/app/routes/dc/intentions/create.js b/ui/packages/consul-ui/app/routes/dc/intentions/create.js deleted file mode 100644 index 416c50354d..0000000000 --- a/ui/packages/consul-ui/app/routes/dc/intentions/create.js +++ /dev/null @@ -1,5 +0,0 @@ -import Route from 'consul-ui/routing/route'; - -export default class CreateRoute extends Route { - templateName = 'dc/intentions/edit'; -} diff --git a/ui/packages/consul-ui/app/routes/dc/intentions/index.js b/ui/packages/consul-ui/app/routes/dc/intentions/index.js deleted file mode 100644 index abbb2483e3..0000000000 --- a/ui/packages/consul-ui/app/routes/dc/intentions/index.js +++ /dev/null @@ -1,16 +0,0 @@ -import Route from 'consul-ui/routing/route'; - -export default class IndexRoute extends Route { - queryParams = { - sortBy: 'sort', - access: 'access', - searchproperty: { - as: 'searchproperty', - empty: [['SourceName', 'DestinationName']], - }, - search: { - as: 'filter', - replace: true, - }, - }; -} diff --git a/ui/packages/consul-ui/app/routes/dc/kv/create.js b/ui/packages/consul-ui/app/routes/dc/kv/create.js deleted file mode 100644 index 07a6d95bee..0000000000 --- a/ui/packages/consul-ui/app/routes/dc/kv/create.js +++ /dev/null @@ -1,5 +0,0 @@ -import Route from 'consul-ui/routing/route'; - -export default class CreateRoute extends Route { - templateName = 'dc/kv/edit'; -} diff --git a/ui/packages/consul-ui/app/routes/dc/kv/folder.js b/ui/packages/consul-ui/app/routes/dc/kv/folder.js index 335447023e..bc38291c1e 100644 --- a/ui/packages/consul-ui/app/routes/dc/kv/folder.js +++ b/ui/packages/consul-ui/app/routes/dc/kv/folder.js @@ -1,8 +1,6 @@ import Route from './index'; export default class FolderRoute extends Route { - templateName = 'dc/kv/index'; - beforeModel(transition) { super.beforeModel(...arguments); const params = this.paramsFor('dc.kv.folder'); diff --git a/ui/packages/consul-ui/app/routes/dc/kv/index.js b/ui/packages/consul-ui/app/routes/dc/kv/index.js index 0131797b12..8c3999b219 100644 --- a/ui/packages/consul-ui/app/routes/dc/kv/index.js +++ b/ui/packages/consul-ui/app/routes/dc/kv/index.js @@ -3,15 +3,6 @@ import { action } from '@ember/object'; import isFolder from 'consul-ui/utils/isFolder'; export default class IndexRoute extends Route { - queryParams = { - sortBy: 'sort', - kind: 'kind', - search: { - as: 'filter', - replace: true, - }, - }; - beforeModel() { // we are index or folder, so if the key doesn't have a trailing slash // add one to force a fake findBySlug diff --git a/ui/packages/consul-ui/app/routes/dc/kv/root-create.js b/ui/packages/consul-ui/app/routes/dc/kv/root-create.js deleted file mode 100644 index 796723b131..0000000000 --- a/ui/packages/consul-ui/app/routes/dc/kv/root-create.js +++ /dev/null @@ -1,3 +0,0 @@ -import Route from './create'; - -export default class RootCreateRoute extends Route {} diff --git a/ui/packages/consul-ui/app/routes/dc/nodes/index.js b/ui/packages/consul-ui/app/routes/dc/nodes/index.js deleted file mode 100644 index c3ed3a8943..0000000000 --- a/ui/packages/consul-ui/app/routes/dc/nodes/index.js +++ /dev/null @@ -1,16 +0,0 @@ -import Route from 'consul-ui/routing/route'; - -export default class IndexRoute extends Route { - queryParams = { - sortBy: 'sort', - status: 'status', - searchproperty: { - as: 'searchproperty', - empty: [['Node', 'Address', 'Meta']], - }, - search: { - as: 'filter', - replace: true, - }, - }; -} diff --git a/ui/packages/consul-ui/app/routes/dc/nodes/show/healthchecks.js b/ui/packages/consul-ui/app/routes/dc/nodes/show/healthchecks.js deleted file mode 100644 index 665b16a93e..0000000000 --- a/ui/packages/consul-ui/app/routes/dc/nodes/show/healthchecks.js +++ /dev/null @@ -1,18 +0,0 @@ -import Route from 'consul-ui/routing/route'; - -export default class HealthchecksRoute extends Route { - queryParams = { - sortBy: 'sort', - status: 'status', - kind: 'kind', - check: 'check', - searchproperty: { - as: 'searchproperty', - empty: [['Name', 'Service', 'CheckID', 'Notes', 'Output', 'ServiceTags']], - }, - search: { - as: 'filter', - replace: true, - }, - }; -} diff --git a/ui/packages/consul-ui/app/routes/dc/nodes/show/services.js b/ui/packages/consul-ui/app/routes/dc/nodes/show/services.js deleted file mode 100644 index 8920d28ab6..0000000000 --- a/ui/packages/consul-ui/app/routes/dc/nodes/show/services.js +++ /dev/null @@ -1,17 +0,0 @@ -import Route from 'consul-ui/routing/route'; - -export default class ServicesRoute extends Route { - queryParams = { - sortBy: 'sort', - status: 'status', - source: 'source', - searchproperty: { - as: 'searchproperty', - empty: [['Name', 'Tags', 'ID', 'Address', 'Port', 'Service.Meta']], - }, - search: { - as: 'filter', - replace: true, - }, - }; -} diff --git a/ui/packages/consul-ui/app/routes/dc/services/index.js b/ui/packages/consul-ui/app/routes/dc/services/index.js deleted file mode 100644 index 3de9104fc4..0000000000 --- a/ui/packages/consul-ui/app/routes/dc/services/index.js +++ /dev/null @@ -1,18 +0,0 @@ -import Route from 'consul-ui/routing/route'; - -export default class IndexRoute extends Route { - queryParams = { - sortBy: 'sort', - status: 'status', - source: 'source', - kind: 'kind', - searchproperty: { - as: 'searchproperty', - empty: [['Name', 'Tags']], - }, - search: { - as: 'filter', - replace: true, - }, - }; -} diff --git a/ui/packages/consul-ui/app/routes/dc/services/instance/healthchecks.js b/ui/packages/consul-ui/app/routes/dc/services/instance/healthchecks.js deleted file mode 100644 index cc0a1b1f7b..0000000000 --- a/ui/packages/consul-ui/app/routes/dc/services/instance/healthchecks.js +++ /dev/null @@ -1,17 +0,0 @@ -import Route from 'consul-ui/routing/route'; - -export default class HealthchecksRoute extends Route { - queryParams = { - sortBy: 'sort', - status: 'status', - check: 'check', - searchproperty: { - as: 'searchproperty', - empty: [['Name', 'Node', 'CheckID', 'Notes', 'Output', 'ServiceTags']], - }, - search: { - as: 'filter', - replace: true, - }, - }; -} diff --git a/ui/packages/consul-ui/app/routes/dc/services/instance/index.js b/ui/packages/consul-ui/app/routes/dc/services/instance/index.js deleted file mode 100644 index 37898e3e30..0000000000 --- a/ui/packages/consul-ui/app/routes/dc/services/instance/index.js +++ /dev/null @@ -1,6 +0,0 @@ -import Route from 'consul-ui/routing/route'; -import to from 'consul-ui/utils/routing/redirect-to'; - -export default class InstanceIndexRoute extends Route { - redirect = to('healthchecks'); -} diff --git a/ui/packages/consul-ui/app/routes/dc/services/instance/upstreams.js b/ui/packages/consul-ui/app/routes/dc/services/instance/upstreams.js deleted file mode 100644 index 2179c8c20c..0000000000 --- a/ui/packages/consul-ui/app/routes/dc/services/instance/upstreams.js +++ /dev/null @@ -1,15 +0,0 @@ -import Route from 'consul-ui/routing/route'; - -export default class UpstreamsRoute extends Route { - queryParams = { - sortBy: 'sort', - search: { - as: 'filter', - replace: true, - }, - searchproperty: { - as: 'searchproperty', - empty: [['DestinationName', 'LocalBindAddress', 'LocalBindPort']], - }, - }; -} diff --git a/ui/packages/consul-ui/app/routes/dc/services/show/intentions/create.js b/ui/packages/consul-ui/app/routes/dc/services/show/intentions/create.js deleted file mode 100644 index 818d5e8aad..0000000000 --- a/ui/packages/consul-ui/app/routes/dc/services/show/intentions/create.js +++ /dev/null @@ -1,5 +0,0 @@ -import Route from 'consul-ui/routing/route'; - -export default class CreateRoute extends Route { - templateName = 'dc/services/show/intentions/edit'; -} diff --git a/ui/packages/consul-ui/app/routes/dc/services/show/intentions/index.js b/ui/packages/consul-ui/app/routes/dc/services/show/intentions/index.js deleted file mode 100644 index abbb2483e3..0000000000 --- a/ui/packages/consul-ui/app/routes/dc/services/show/intentions/index.js +++ /dev/null @@ -1,16 +0,0 @@ -import Route from 'consul-ui/routing/route'; - -export default class IndexRoute extends Route { - queryParams = { - sortBy: 'sort', - access: 'access', - searchproperty: { - as: 'searchproperty', - empty: [['SourceName', 'DestinationName']], - }, - search: { - as: 'filter', - replace: true, - }, - }; -} diff --git a/ui/packages/consul-ui/app/routes/dc/services/show/services.js b/ui/packages/consul-ui/app/routes/dc/services/show/services.js deleted file mode 100644 index 55025bfb23..0000000000 --- a/ui/packages/consul-ui/app/routes/dc/services/show/services.js +++ /dev/null @@ -1,16 +0,0 @@ -import Route from 'consul-ui/routing/route'; - -export default class ServicesRoute extends Route { - queryParams = { - sortBy: 'sort', - instance: 'instance', - searchproperty: { - as: 'searchproperty', - empty: [['Name', 'Tags']], - }, - search: { - as: 'filter', - replace: true, - }, - }; -} diff --git a/ui/packages/consul-ui/app/routes/dc/services/show/upstreams.js b/ui/packages/consul-ui/app/routes/dc/services/show/upstreams.js deleted file mode 100644 index 023f379029..0000000000 --- a/ui/packages/consul-ui/app/routes/dc/services/show/upstreams.js +++ /dev/null @@ -1,16 +0,0 @@ -import Route from 'consul-ui/routing/route'; - -export default class UpstreamsRoute extends Route { - queryParams = { - sortBy: 'sort', - instance: 'instance', - searchproperty: { - as: 'searchproperty', - empty: [['Name', 'Tags']], - }, - search: { - as: 'filter', - replace: true, - }, - }; -} diff --git a/ui/packages/consul-ui/app/routing/route.js b/ui/packages/consul-ui/app/routing/route.js index 2028c96dfd..0499b849f3 100644 --- a/ui/packages/consul-ui/app/routing/route.js +++ b/ui/packages/consul-ui/app/routing/route.js @@ -13,36 +13,40 @@ export default class BaseRoute extends Route { _setRouteName() { super._setRouteName(...arguments); - const routeName = this.routeName - .split('.') - .filter(item => item !== 'index') - .join('.'); - const template = get(routes, `${routeName}._options.template`); - if (template) { + + const template = get(routes, `${this.routeName}._options.template`); + if (typeof template !== 'undefined') { this.templateName = template; } - const queryParams = get(routes, `${routeName}._options.queryParams`); - if ( - queryParams && - ['dc.partitions.index', 'dc.nspaces.index', 'oauth-provider-debug'].includes(this.routeName) - ) { + + const queryParams = get(routes, `${this.routeName}._options.queryParams`); + if (typeof queryParams !== 'undefined') { this.queryParams = queryParams; } } redirect(model, transition) { - // remove any references to index as it is the same as the root routeName - const routeName = this.routeName - .split('.') - .filter(item => item !== 'index') - .join('.'); - const to = get(routes, `${routeName}._options.redirect`); + let to = get(routes, `${this.routeName}._options.redirect`); if (typeof to !== 'undefined') { + // simple path resolve + to = to + .split('/') + .reduce((prev, item, i, items) => { + if (item !== '.') { + if (item === '..') { + prev.pop(); + } else if (item !== '' || i === items.length - 1) { + prev.push(item); + } + } + return prev; + }, this.routeName.split('.')) + .join('.'); // TODO: Does this need to return? // Almost remember things getting strange if you returned from here // which is why I didn't do it originally so be sure to look properly if // you feel like adding a return - this.replaceWith(`${routeName}${to}`, model); + this.replaceWith(`${to}`, model); } } diff --git a/ui/packages/consul-ui/tests/unit/routes/dc/index-test.js b/ui/packages/consul-ui/tests/unit/routes/dc/index-test.js deleted file mode 100644 index 705db7668d..0000000000 --- a/ui/packages/consul-ui/tests/unit/routes/dc/index-test.js +++ /dev/null @@ -1,11 +0,0 @@ -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Route | dc/index', function(hooks) { - setupTest(hooks); - - test('it exists', function(assert) { - let route = this.owner.lookup('route:dc/index'); - assert.ok(route); - }); -}); diff --git a/ui/packages/consul-ui/tests/unit/routes/dc/intentions/create-test.js b/ui/packages/consul-ui/tests/unit/routes/dc/intentions/create-test.js deleted file mode 100644 index ab1b5a8f71..0000000000 --- a/ui/packages/consul-ui/tests/unit/routes/dc/intentions/create-test.js +++ /dev/null @@ -1,11 +0,0 @@ -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Route | dc/intentions/create', function(hooks) { - setupTest(hooks); - - test('it exists', function(assert) { - let route = this.owner.lookup('route:dc/intentions/create'); - assert.ok(route); - }); -}); diff --git a/ui/packages/consul-ui/tests/unit/routes/dc/intentions/index-test.js b/ui/packages/consul-ui/tests/unit/routes/dc/intentions/index-test.js deleted file mode 100644 index 24e410426e..0000000000 --- a/ui/packages/consul-ui/tests/unit/routes/dc/intentions/index-test.js +++ /dev/null @@ -1,11 +0,0 @@ -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Route | dc/intentions/index', function(hooks) { - setupTest(hooks); - - test('it exists', function(assert) { - let route = this.owner.lookup('route:dc/intentions/index'); - assert.ok(route); - }); -}); diff --git a/ui/packages/consul-ui/tests/unit/routes/dc/kv/create-test.js b/ui/packages/consul-ui/tests/unit/routes/dc/kv/create-test.js deleted file mode 100644 index fc868ed2a8..0000000000 --- a/ui/packages/consul-ui/tests/unit/routes/dc/kv/create-test.js +++ /dev/null @@ -1,11 +0,0 @@ -import { module, skip } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Route | dc/kv/create', function(hooks) { - setupTest(hooks); - - skip('it exists', function(assert) { - let route = this.subject(); - assert.ok(route); - }); -}); diff --git a/ui/packages/consul-ui/tests/unit/routes/dc/kv/index-test.js b/ui/packages/consul-ui/tests/unit/routes/dc/kv/index-test.js deleted file mode 100644 index b9e9b1012c..0000000000 --- a/ui/packages/consul-ui/tests/unit/routes/dc/kv/index-test.js +++ /dev/null @@ -1,11 +0,0 @@ -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Route | dc/kv/index', function(hooks) { - setupTest(hooks); - - test('it exists', function(assert) { - let route = this.owner.lookup('route:dc/kv/index'); - assert.ok(route); - }); -}); diff --git a/ui/packages/consul-ui/tests/unit/routes/dc/kv/root-create-test.js b/ui/packages/consul-ui/tests/unit/routes/dc/kv/root-create-test.js deleted file mode 100644 index f36815359e..0000000000 --- a/ui/packages/consul-ui/tests/unit/routes/dc/kv/root-create-test.js +++ /dev/null @@ -1,11 +0,0 @@ -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Route | dc/kv/root create', function(hooks) { - setupTest(hooks); - - test('it exists', function(assert) { - let route = this.owner.lookup('route:dc/kv/root-create'); - assert.ok(route); - }); -});