diff --git a/ui/core/app/controllers/orgs/org/groups.js b/ui/core/app/controllers/orgs/org/groups.js deleted file mode 100644 index b6c1716e9..000000000 --- a/ui/core/app/controllers/orgs/org/groups.js +++ /dev/null @@ -1,17 +0,0 @@ -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class OrgsOrgGroupsController extends Controller { - // =services - - @service intl; - - // =attributes - - /** - * @type {string} - */ - get breadCrumb() { - return this.intl.t('resources.groups'); - } -} diff --git a/ui/core/app/controllers/orgs/org/groups/group.js b/ui/core/app/controllers/orgs/org/groups/group.js deleted file mode 100644 index 0d12865f7..000000000 --- a/ui/core/app/controllers/orgs/org/groups/group.js +++ /dev/null @@ -1,11 +0,0 @@ -import Controller from '@ember/controller'; -import { alias } from '@ember/object/computed'; - -export default class OrgsOrgGroupsGroupController extends Controller { - // =attributes - - /** - * @type {string} - */ - @alias('model.displayName') breadCrumb; -} diff --git a/ui/core/app/controllers/orgs/org/groups/new.js b/ui/core/app/controllers/orgs/org/groups/new.js deleted file mode 100644 index 1c5eeb7c9..000000000 --- a/ui/core/app/controllers/orgs/org/groups/new.js +++ /dev/null @@ -1,17 +0,0 @@ -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class OrgsOrgGroupsNewController extends Controller { - // =services - - @service intl; - - // =attributes - - /** - * @type {string} - */ - get breadCrumb() { - return this.intl.t('titles.new'); - } -} diff --git a/ui/core/app/controllers/orgs/org/projects.js b/ui/core/app/controllers/orgs/org/projects.js deleted file mode 100644 index 60c1441a7..000000000 --- a/ui/core/app/controllers/orgs/org/projects.js +++ /dev/null @@ -1,17 +0,0 @@ -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class OrgsOrgProjectsController extends Controller { - // =services - - @service intl; - - // =attributes - - /** - * @type {string} - */ - get breadCrumb() { - return this.intl.t('resources.projects'); - } -} diff --git a/ui/core/app/controllers/orgs/org/projects/new.js b/ui/core/app/controllers/orgs/org/projects/new.js deleted file mode 100644 index 769d6e195..000000000 --- a/ui/core/app/controllers/orgs/org/projects/new.js +++ /dev/null @@ -1,17 +0,0 @@ -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class OrgsOrgProjectsNewController extends Controller { - // =services - - @service intl; - - // =attributes - - /** - * @type {string} - */ - get breadCrumb() { - return this.intl.t('titles.new'); - } -} diff --git a/ui/core/app/controllers/orgs/org/projects/project.js b/ui/core/app/controllers/orgs/org/projects/project.js deleted file mode 100644 index c449ef523..000000000 --- a/ui/core/app/controllers/orgs/org/projects/project.js +++ /dev/null @@ -1,11 +0,0 @@ -import Controller from '@ember/controller'; -import { alias } from '@ember/object/computed'; - -export default class OrgsOrgProjectsProjectController extends Controller { - // =attributes - - /** - * @type {string} - */ - @alias('model.displayName') breadCrumb; -} diff --git a/ui/core/app/controllers/orgs/org/projects/project/host-catalogs.js b/ui/core/app/controllers/orgs/org/projects/project/host-catalogs.js deleted file mode 100644 index ed10e744b..000000000 --- a/ui/core/app/controllers/orgs/org/projects/project/host-catalogs.js +++ /dev/null @@ -1,17 +0,0 @@ -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class OrgsOrgProjectsProjectHostCatalogsController extends Controller { - // =services - - @service intl; - - // =attributes - - /** - * @type {string} - */ - get breadCrumb() { - return this.intl.t('resources.host-catalogs'); - } -} diff --git a/ui/core/app/controllers/orgs/org/projects/project/host-catalogs/host-catalog.js b/ui/core/app/controllers/orgs/org/projects/project/host-catalogs/host-catalog.js deleted file mode 100644 index 1e733a5aa..000000000 --- a/ui/core/app/controllers/orgs/org/projects/project/host-catalogs/host-catalog.js +++ /dev/null @@ -1,11 +0,0 @@ -import Controller from '@ember/controller'; -import { alias } from '@ember/object/computed'; - -export default class OrgsOrgProjectsProjectHostCatalogsHostCatalogController extends Controller { - // =attributes - - /** - * @type {string} - */ - @alias('model.displayName') breadCrumb; -} diff --git a/ui/core/app/controllers/orgs/org/roles.js b/ui/core/app/controllers/orgs/org/roles.js deleted file mode 100644 index 16f84ae44..000000000 --- a/ui/core/app/controllers/orgs/org/roles.js +++ /dev/null @@ -1,17 +0,0 @@ -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class OrgsOrgRolesController extends Controller { - // =services - - @service intl; - - // =attributes - - /** - * @type {string} - */ - get breadCrumb() { - return this.intl.t('resources.roles'); - } -} diff --git a/ui/core/app/controllers/orgs/org/roles/new.js b/ui/core/app/controllers/orgs/org/roles/new.js deleted file mode 100644 index 126c6a1b8..000000000 --- a/ui/core/app/controllers/orgs/org/roles/new.js +++ /dev/null @@ -1,17 +0,0 @@ -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class OrgsOrgRolesNewController extends Controller { - // =services - - @service intl; - - // =attributes - - /** - * @type {string} - */ - get breadCrumb() { - return this.intl.t('titles.new'); - } -} diff --git a/ui/core/app/controllers/orgs/org/roles/role.js b/ui/core/app/controllers/orgs/org/roles/role.js deleted file mode 100644 index 90425d113..000000000 --- a/ui/core/app/controllers/orgs/org/roles/role.js +++ /dev/null @@ -1,11 +0,0 @@ -import Controller from '@ember/controller'; -import { alias } from '@ember/object/computed'; - -export default class OrgsOrgRolesRoleController extends Controller { - // =attributes - - /** - * @type {string} - */ - @alias('model.displayName') breadCrumb; -} diff --git a/ui/core/app/controllers/orgs/org/users.js b/ui/core/app/controllers/orgs/org/users.js deleted file mode 100644 index fe28ecf0f..000000000 --- a/ui/core/app/controllers/orgs/org/users.js +++ /dev/null @@ -1,17 +0,0 @@ -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class OrgsOrgUsersController extends Controller { - // =services - - @service intl; - - // =attributes - - /** - * @type {string} - */ - get breadCrumb() { - return this.intl.t('resources.users'); - } -} diff --git a/ui/core/app/controllers/orgs/org/users/new.js b/ui/core/app/controllers/orgs/org/users/new.js deleted file mode 100644 index 5e047015a..000000000 --- a/ui/core/app/controllers/orgs/org/users/new.js +++ /dev/null @@ -1,17 +0,0 @@ -import Controller from '@ember/controller'; -import { inject as service } from '@ember/service'; - -export default class OrgsOrgUsersNewController extends Controller { - // =services - - @service intl; - - // =attributes - - /** - * @type {string} - */ - get breadCrumb() { - return this.intl.t('titles.new'); - } -} diff --git a/ui/core/app/controllers/orgs/org/users/user.js b/ui/core/app/controllers/orgs/org/users/user.js deleted file mode 100644 index 3461021b1..000000000 --- a/ui/core/app/controllers/orgs/org/users/user.js +++ /dev/null @@ -1,11 +0,0 @@ -import Controller from '@ember/controller'; -import { alias } from '@ember/object/computed'; - -export default class OrgsOrgUsersUserController extends Controller { - // =attributes - - /** - * @type {string} - */ - @alias('model.displayName') breadCrumb; -} diff --git a/ui/core/app/controllers/orgs/org/projects/project/host-catalogs/new.js b/ui/core/app/controllers/scopes/scope/projects/project/host-catalogs/new.js similarity index 65% rename from ui/core/app/controllers/orgs/org/projects/project/host-catalogs/new.js rename to ui/core/app/controllers/scopes/scope/projects/project/host-catalogs/new.js index 02b865cd0..549965fb3 100644 --- a/ui/core/app/controllers/orgs/org/projects/project/host-catalogs/new.js +++ b/ui/core/app/controllers/scopes/scope/projects/project/host-catalogs/new.js @@ -1,7 +1,8 @@ import Controller from '@ember/controller'; import { inject as service } from '@ember/service'; -export default class OrgsOrgProjectsProjectHostCatalogsNewController extends Controller { +export default class ScopesScopeProjectsProjectHostCatalogsNewController extends Controller { + // =services @service intl; @@ -9,9 +10,11 @@ export default class OrgsOrgProjectsProjectHostCatalogsNewController extends Con // =attributes /** + * Translated new role breadcrumb * @type {string} */ get breadCrumb() { return this.intl.t('titles.new'); } + } diff --git a/ui/core/app/router.js b/ui/core/app/router.js index 5275ca1a7..a4f121c19 100644 --- a/ui/core/app/router.js +++ b/ui/core/app/router.js @@ -35,37 +35,4 @@ Router.map(function () { }); }); }); - - this.route('orgs', function () { - this.route('org', { path: ':org_id' }, function () { - this.route('projects', function () { - this.route('project', { path: ':project_id' }, function () { - this.route('host-catalogs', function () { - this.route( - 'host-catalog', - { path: ':host_catalog_id' }, - function () {} - ); - this.route('new'); - }); - }); - this.route('new'); - }); - - this.route('users', function () { - this.route('user', { path: ':user_id' }, function () {}); - this.route('new'); - }); - - this.route('roles', function () { - this.route('role', { path: ':role_id' }, function () {}); - this.route('new'); - }); - - this.route('groups', function () { - this.route('group', { path: ':group_id' }, function () {}); - this.route('new'); - }); - }); - }); }); diff --git a/ui/core/app/routes/orgs.js b/ui/core/app/routes/orgs.js deleted file mode 100644 index f41f51d52..000000000 --- a/ui/core/app/routes/orgs.js +++ /dev/null @@ -1,13 +0,0 @@ -import Route from '@ember/routing/route'; - -export default class OrgsRoute extends Route { - // =methods - - /** - * Returns all orgs from the store. - * @return {Promise[OrgModel]} - */ - model() { - return this.store.findAll('org'); - } -} diff --git a/ui/core/app/routes/orgs/org.js b/ui/core/app/routes/orgs/org.js deleted file mode 100644 index 59055906e..000000000 --- a/ui/core/app/routes/orgs/org.js +++ /dev/null @@ -1,28 +0,0 @@ -import Route from '@ember/routing/route'; -import { inject as service } from '@ember/service'; - -export default class OrgsOrgRoute extends Route { - // =services - - @service scope; - - // =methods - - /** - * Returns an org by id. - * @param {object} params - * @return {Promise{OrgModel}} - */ - model({ org_id: id }) { - return this.store.findRecord('org', id); - } - - /** - * Adds the org to the scope. - * @param {object} org - */ - afterModel(org) { - this.scope.org = org; - return super.afterModel(...arguments); - } -} diff --git a/ui/core/app/routes/orgs/org/groups.js b/ui/core/app/routes/orgs/org/groups.js deleted file mode 100644 index 80bb0af1a..000000000 --- a/ui/core/app/routes/orgs/org/groups.js +++ /dev/null @@ -1,13 +0,0 @@ -import Route from '@ember/routing/route'; - -export default class OrgsOrgGroupsRoute extends Route { - // =methods - - /** - * Returns all groups from store. - * @return {Promise[GroupModel]} - */ - model() { - return this.store.findAll('group'); - } -} diff --git a/ui/core/app/routes/orgs/org/groups/group.js b/ui/core/app/routes/orgs/org/groups/group.js deleted file mode 100644 index 98c6b65c9..000000000 --- a/ui/core/app/routes/orgs/org/groups/group.js +++ /dev/null @@ -1,64 +0,0 @@ -import Route from '@ember/routing/route'; -import { inject as service } from '@ember/service'; -import { action } from '@ember/object'; - -export default class OrgsOrgGroupsGroupRoute extends Route { - // =services - - @service intl; - @service notify; - - // =methods - - /** - * Return a group with id - * @param {object} params - * @return {Promise{GroupModel}} - */ - model({ group_id: id }) { - return this.store.findRecord('group', id); - } - - // =actions - - /** - * Rollback changes on group. - * @param {GroupModel} group - */ - @action - cancel(group) { - group.rollbackAttributes(); - } - - /** - * Handle saving a group. - * @param {GroupModel} group - * @param {Event} e - */ - @action - async save(group) { - try { - await group.save(); - this.notify.success(this.intl.t('notify.save-success')); - } catch (error) { - // TODO: replace with translated strings - this.notify.error(error.message, { closeAfter: null }); - } - } - - /** - * Delete group and redirect to groups index. - * @param {GroupModel} group - */ - @action - async delete(group) { - try { - await group.destroyRecord(); - this.transitionTo('orgs.org.groups'); - this.notify.success(this.intl.t('notify.group.delete-success')); - } catch (error) { - // TODO: replace with translated strings - this.notify.error(error.message, { closeAfter: null }); - } - } -} diff --git a/ui/core/app/routes/orgs/org/groups/group/index.js b/ui/core/app/routes/orgs/org/groups/group/index.js deleted file mode 100644 index 9bd8f2675..000000000 --- a/ui/core/app/routes/orgs/org/groups/group/index.js +++ /dev/null @@ -1,3 +0,0 @@ -import Route from '@ember/routing/route'; - -export default class OrgsOrgGroupsGroupIndexRoute extends Route {} diff --git a/ui/core/app/routes/orgs/org/groups/index.js b/ui/core/app/routes/orgs/org/groups/index.js deleted file mode 100644 index 9c566dfa0..000000000 --- a/ui/core/app/routes/orgs/org/groups/index.js +++ /dev/null @@ -1,3 +0,0 @@ -import Route from '@ember/routing/route'; - -export default class OrgsOrgGroupsIndexRoute extends Route {} diff --git a/ui/core/app/routes/orgs/org/groups/new.js b/ui/core/app/routes/orgs/org/groups/new.js deleted file mode 100644 index 6f353d368..000000000 --- a/ui/core/app/routes/orgs/org/groups/new.js +++ /dev/null @@ -1,50 +0,0 @@ -import Route from '@ember/routing/route'; -import { inject as service } from '@ember/service'; -import { action } from '@ember/object'; - -export default class OrgsOrgGroupsNewRoute extends Route { - // =services - - @service intl; - @service notify; - - // =methods - - /** - * Returns a new unsaved group. - * @return {Promise{GroupModel}} - */ - model() { - return this.store.createRecord('group'); - } - - // =actions - - /** - * Rollback changes on group by destroying unsaved instance - * and redirect to group index. - * @param {GroupModel} group - */ - @action - cancel(group) { - group.rollbackAttributes(); - this.transitionTo('orgs.org.groups'); - } - - /** - * Handle saving a group. - * @param {GroupModel} group - * @param {Event} e - */ - @action - async save(group) { - try { - await group.save(); - this.transitionTo('orgs.org.groups.group', group); - this.notify.success(this.intl.t('notify.group.create-success')); - } catch (error) { - // TODO: replace with translated strings - this.notify.error(error.message, { closeAfter: null }); - } - } -} diff --git a/ui/core/app/routes/orgs/org/projects.js b/ui/core/app/routes/orgs/org/projects.js deleted file mode 100644 index ee50e8f8a..000000000 --- a/ui/core/app/routes/orgs/org/projects.js +++ /dev/null @@ -1,13 +0,0 @@ -import Route from '@ember/routing/route'; - -export default class OrgsOrgProjectsRoute extends Route { - // =methods - - /** - * Returns all projects from the store. - * @return {Promise[ProjectModel]} - */ - model() { - return this.store.findAll('project'); - } -} diff --git a/ui/core/app/routes/orgs/org/projects/index.js b/ui/core/app/routes/orgs/org/projects/index.js deleted file mode 100644 index be2068f6d..000000000 --- a/ui/core/app/routes/orgs/org/projects/index.js +++ /dev/null @@ -1,3 +0,0 @@ -import Route from '@ember/routing/route'; - -export default class OrgsOrgProjectsIndexRoute extends Route {} diff --git a/ui/core/app/routes/orgs/org/projects/new.js b/ui/core/app/routes/orgs/org/projects/new.js deleted file mode 100644 index 1314716cd..000000000 --- a/ui/core/app/routes/orgs/org/projects/new.js +++ /dev/null @@ -1,50 +0,0 @@ -import Route from '@ember/routing/route'; -import { inject as service } from '@ember/service'; -import { action } from '@ember/object'; - -export default class OrgsOrgProjectsNewRoute extends Route { - // =services - - @service notify; - - // =methods - - /** - * Returns a new unsaved project. - * @return {Promise{ProjectModel}} - */ - model() { - return this.store.createRecord('project'); - } - - // =actions - - /** - * Rollback changes on project (which destroys unsaved instances) - * and redirects to projects index. - * @param {ProjectModel} project - */ - @action - cancel(project) { - project.rollbackAttributes(); - this.transitionTo('orgs.org.projects'); - } - - /** - * Handle save project. - * @param {ProjectModel} project - * @param {Event} e - */ - @action - async save(project) { - try { - await project.save(); - this.transitionTo('orgs.org.projects.project', project); - // TODO: replace with translated strings - this.notify.success('Project created.'); - } catch (error) { - // TODO: replace with translated strings - this.notify.error(error.message, { closeAfter: null }); - } - } -} diff --git a/ui/core/app/routes/orgs/org/projects/project.js b/ui/core/app/routes/orgs/org/projects/project.js deleted file mode 100644 index 3171733ff..000000000 --- a/ui/core/app/routes/orgs/org/projects/project.js +++ /dev/null @@ -1,90 +0,0 @@ -import Route from '@ember/routing/route'; -import { inject as service } from '@ember/service'; -import { action } from '@ember/object'; - -export default class OrgsOrgProjectsProjectRoute extends Route { - // =services - - @service scope; - @service notify; - - // =methods - - /** - * Returns a project by id. - * @param {object} params - * @return {Promise{ProjectModel}} - */ - model({ project_id: id }) { - return this.store.findRecord('project', id); - } - - /** - * Adds the project to the scope. - * @param {ProjectModel} project - */ - afterModel(project) { - this.scope.project = project; - return super.afterModel(...arguments); - } - - /** - * Renders the project-specific sidebar template. - * @override - * @param {object} controller - * @param {object} model - */ - renderTemplate(controller, model) { - this.render('orgs/org/projects/project/_sidebar', { - into: 'orgs/org', - outlet: 'sidebar', - model: model, - }); - super.renderTemplate(...arguments); - } - - // =actions - - /** - * Rollback changes on project. - * @param {ProjectModel} project - */ - @action - cancel(project) { - project.rollbackAttributes(); - } - - /** - * Handle save project. - * @param {ProjectModel} project - * @param {Event} e - */ - @action - async save(project) { - try { - await project.save(); - // TODO: replace with translated strings - this.notify.success('Save succeeded.'); - } catch (error) { - // TODO: replace with translated strings - this.notify.error(error.message, { closeAfter: null }); - } - } - - /** - * Deletes the project and redirects to index. - * @param {ProjectModel} project - */ - @action - async delete(project) { - try { - await project.destroyRecord(); - this.transitionTo('orgs.org.projects'); - // TODO: replace with translated strings - this.notify.success('Deleted project succesfully.'); - } catch (error) { - // TODO: replace with translated strings - this.notify.error(error.message, { closeAfter: null }); - } - } -} diff --git a/ui/core/app/routes/orgs/org/projects/project/host-catalogs.js b/ui/core/app/routes/orgs/org/projects/project/host-catalogs.js deleted file mode 100644 index 685266cb4..000000000 --- a/ui/core/app/routes/orgs/org/projects/project/host-catalogs.js +++ /dev/null @@ -1,13 +0,0 @@ -import Route from '@ember/routing/route'; - -export default class OrgsOrgProjectsProjectHostCatalogsRoute extends Route { - // =methods - - /** - * Returns host catalogs for the current scope. - * @return {Promise[HostCatalogModel]} - */ - model() { - return this.store.findAll('host-catalog'); - } -} diff --git a/ui/core/app/routes/orgs/org/projects/project/host-catalogs/host-catalog.js b/ui/core/app/routes/orgs/org/projects/project/host-catalogs/host-catalog.js deleted file mode 100644 index 47d79f7bb..000000000 --- a/ui/core/app/routes/orgs/org/projects/project/host-catalogs/host-catalog.js +++ /dev/null @@ -1,65 +0,0 @@ -import Route from '@ember/routing/route'; -import { inject as service } from '@ember/service'; -import { action } from '@ember/object'; - -export default class OrgsOrgProjectsProjectHostCatalogsHostCatalogRoute extends Route { - // =services - - @service notify; - - // =methods - - /** - * Returns a host catalog by id. - * @param {object} params - * @return {Promise{HostCatalogModel}} - */ - model({ host_catalog_id: id }) { - return this.store.findRecord('host-catalog', id); - } - - // =actions - - /** - * Rollback changes on host catalog. - * @param {HostCatalogModel} hostCatalog - */ - @action - cancel(hostCatalog) { - hostCatalog.rollbackAttributes(); - } - - /** - * Handle save host catalog. - * @param {HostCatalogModel} host catalog - * @param {Event} e - */ - @action - async save(hostCatalog) { - try { - await hostCatalog.save(); - // TODO: replace with translated strings - this.notify.success('Save succeeded.'); - } catch (error) { - // TODO: replace with translated strings - this.notify.error(error.message, { closeAfter: null }); - } - } - - /** - * Deletes the host catalog and redirects to index. - * @param {HostCatalogModel} hostCatalog - */ - @action - async delete(hostCatalog) { - try { - await hostCatalog.destroyRecord(); - this.transitionTo('orgs.org.projects.project.host-catalogs'); - // TODO: replace with translated strings - this.notify.success('Deleted host catalog succesfully.'); - } catch (error) { - // TODO: replace with translated strings - this.notify.error(error.message, { closeAfter: null }); - } - } -} diff --git a/ui/core/app/routes/orgs/org/projects/project/host-catalogs/host-catalog/index.js b/ui/core/app/routes/orgs/org/projects/project/host-catalogs/host-catalog/index.js deleted file mode 100644 index a4ba3aa0e..000000000 --- a/ui/core/app/routes/orgs/org/projects/project/host-catalogs/host-catalog/index.js +++ /dev/null @@ -1,3 +0,0 @@ -import Route from '@ember/routing/route'; - -export default class OrgsOrgProjectsProjectHostCatalogsHostCatalogIndexRoute extends Route {} diff --git a/ui/core/app/routes/orgs/org/projects/project/host-catalogs/index.js b/ui/core/app/routes/orgs/org/projects/project/host-catalogs/index.js deleted file mode 100644 index b760aed44..000000000 --- a/ui/core/app/routes/orgs/org/projects/project/host-catalogs/index.js +++ /dev/null @@ -1,3 +0,0 @@ -import Route from '@ember/routing/route'; - -export default class OrgsOrgProjectsProjectHostCatalogsIndexRoute extends Route {} diff --git a/ui/core/app/routes/orgs/org/projects/project/host-catalogs/new.js b/ui/core/app/routes/orgs/org/projects/project/host-catalogs/new.js deleted file mode 100644 index c2c224e88..000000000 --- a/ui/core/app/routes/orgs/org/projects/project/host-catalogs/new.js +++ /dev/null @@ -1,53 +0,0 @@ -import Route from '@ember/routing/route'; -import { inject as service } from '@ember/service'; -import { action } from '@ember/object'; - -export default class OrgsOrgProjectsProjectHostCatalogsNewRoute extends Route { - // =services - - @service notify; - - // =methods - - /** - * Returns a new unsaved host catalog. - * @return {Promise{HostCatalogModel}} - */ - model() { - return this.store.createRecord('hostCatalog'); - } - - // =actions - - /** - * Rollback changes on host catalog (which destroys unsaved instances) - * and redirects to host catalogs index. - * @param {HostCatalogModel} hostCatalog - */ - @action - cancel(hostCatalog) { - hostCatalog.rollbackAttributes(); - this.transitionTo('orgs.org.projects.project.host-catalogs'); - } - - /** - * Handle save host catalog. - * @param {HostCatalogModel} hostCatalog - * @param {Event} e - */ - @action - async save(hostCatalog) { - try { - await hostCatalog.save(); - this.transitionTo( - 'orgs.org.projects.project.host-catalogs.host-catalog', - hostCatalog - ); - // TODO: replace with translated strings - this.notify.success('Host catalog created.'); - } catch (error) { - // TODO: replace with translated strings - this.notify.error(error.message, { closeAfter: null }); - } - } -} diff --git a/ui/core/app/routes/orgs/org/projects/project/index.js b/ui/core/app/routes/orgs/org/projects/project/index.js deleted file mode 100644 index 0fc6b90b7..000000000 --- a/ui/core/app/routes/orgs/org/projects/project/index.js +++ /dev/null @@ -1,3 +0,0 @@ -import Route from '@ember/routing/route'; - -export default class OrgsOrgProjectsProjectIndexRoute extends Route {} diff --git a/ui/core/app/routes/orgs/org/roles.js b/ui/core/app/routes/orgs/org/roles.js deleted file mode 100644 index 972aaf816..000000000 --- a/ui/core/app/routes/orgs/org/roles.js +++ /dev/null @@ -1,13 +0,0 @@ -import Route from '@ember/routing/route'; - -export default class OrgsOrgRolesRoute extends Route { - // =methods - - /** - * Returns all roles from store. - * @return {Promise[RoleModel]} - */ - model() { - return this.store.findAll('role'); - } -} diff --git a/ui/core/app/routes/orgs/org/roles/index.js b/ui/core/app/routes/orgs/org/roles/index.js deleted file mode 100644 index 92a715a56..000000000 --- a/ui/core/app/routes/orgs/org/roles/index.js +++ /dev/null @@ -1,3 +0,0 @@ -import Route from '@ember/routing/route'; - -export default class OrgsOrgRolesIndexRoute extends Route {} diff --git a/ui/core/app/routes/orgs/org/roles/new.js b/ui/core/app/routes/orgs/org/roles/new.js deleted file mode 100644 index cad253804..000000000 --- a/ui/core/app/routes/orgs/org/roles/new.js +++ /dev/null @@ -1,50 +0,0 @@ -import Route from '@ember/routing/route'; -import { inject as service } from '@ember/service'; -import { action } from '@ember/object'; - -export default class OrgsOrgRolesNewRoute extends Route { - // =services - - @service intl; - @service notify; - - // =methods - - /** - * Returns a new unsaved role. - * @return {Promise{RoleModel}} - */ - model() { - return this.store.createRecord('role'); - } - - // =actions - - /** - * Rollback changes on role by destroying unsaved instance - * and redirect to role index. - * @param {RoleModel} role - */ - @action - cancel(role) { - role.rollbackAttributes(); - this.transitionTo('orgs.org.roles'); - } - - /** - * Handle saving a role. - * @param {RoleModel} role - * @param {Event} e - */ - @action - async save(role) { - try { - await role.save(); - this.transitionTo('orgs.org.roles.role', role); - this.notify.success(this.intl.t('notify.role.create-success')); - } catch (error) { - // TODO: replace with translated strings - this.notify.error(error.message, { closeAfter: null }); - } - } -} diff --git a/ui/core/app/routes/orgs/org/roles/role.js b/ui/core/app/routes/orgs/org/roles/role.js deleted file mode 100644 index 1820f2ba1..000000000 --- a/ui/core/app/routes/orgs/org/roles/role.js +++ /dev/null @@ -1,64 +0,0 @@ -import Route from '@ember/routing/route'; -import { inject as service } from '@ember/service'; -import { action } from '@ember/object'; - -export default class OrgsOrgRolesRoleRoute extends Route { - // =services - - @service intl; - @service notify; - - // =methods - - /** - * Return a role with id - * @param {object} params - * @return {Promise{RoleModel}} - */ - model({ role_id: id }) { - return this.store.findRecord('role', id); - } - - // =actions - - /** - * Rollback changes on role. - * @param {RoleModel} role - */ - @action - cancel(role) { - role.rollbackAttributes(); - } - - /** - * Handle saving a role. - * @param {RoleModel} role - * @param {Event} e - */ - @action - async save(role) { - try { - await role.save(); - this.notify.success(this.intl.t('notify.save-success')); - } catch (error) { - // TODO: replace with translated strings - this.notify.error(error.message, { closeAfter: null }); - } - } - - /** - * Delete role and redirect to roles index. - * @param {RoleModel} role - */ - @action - async delete(role) { - try { - await role.destroyRecord(); - this.transitionTo('orgs.org.roles'); - this.notify.success(this.intl.t('notify.role.delete-success')); - } catch (error) { - // TODO: replace with translated strings - this.notify.error(error.message, { closeAfter: null }); - } - } -} diff --git a/ui/core/app/routes/orgs/org/users.js b/ui/core/app/routes/orgs/org/users.js deleted file mode 100644 index 7833312e3..000000000 --- a/ui/core/app/routes/orgs/org/users.js +++ /dev/null @@ -1,13 +0,0 @@ -import Route from '@ember/routing/route'; - -export default class OrgsOrgUsersRoute extends Route { - // =methods - - /** - * Returns all users from the store. - * @return {Promise[UserModel]} - */ - model() { - return this.store.findAll('user'); - } -} diff --git a/ui/core/app/routes/orgs/org/users/index.js b/ui/core/app/routes/orgs/org/users/index.js deleted file mode 100644 index b3047d27e..000000000 --- a/ui/core/app/routes/orgs/org/users/index.js +++ /dev/null @@ -1,3 +0,0 @@ -import Route from '@ember/routing/route'; - -export default class OrgsOrgUsersIndexRoute extends Route {} diff --git a/ui/core/app/routes/orgs/org/users/new.js b/ui/core/app/routes/orgs/org/users/new.js deleted file mode 100644 index a740f6caf..000000000 --- a/ui/core/app/routes/orgs/org/users/new.js +++ /dev/null @@ -1,50 +0,0 @@ -import Route from '@ember/routing/route'; -import { inject as service } from '@ember/service'; -import { action } from '@ember/object'; - -export default class OrgsOrgUsersNewRoute extends Route { - // =services - - @service intl; - @service notify; - - // =methods - - /** - * Returns a new unsaved user. - * @return {Promise{UserModel}} - */ - model() { - return this.store.createRecord('user'); - } - - // =actions - - /** - * Rollback changes on user to destroy unsaved instance - * and redirect to users index. - * @param {UserModel} user - */ - @action - cancel(user) { - user.rollbackAttributes(); - this.transitionTo('orgs.org.users'); - } - - /** - * Handle saving a user. - * @param {UserModel} user - * @param {Event} e - */ - @action - async save(user) { - try { - await user.save(); - this.transitionTo('orgs.org.users.user', user); - this.notify.success(this.intl.t('notify.user.create-success')); - } catch (error) { - // TODO: replace with translated strings - this.notify.error(error.message, { closeAfter: null }); - } - } -} diff --git a/ui/core/app/routes/orgs/org/users/user.js b/ui/core/app/routes/orgs/org/users/user.js deleted file mode 100644 index be2ea6f98..000000000 --- a/ui/core/app/routes/orgs/org/users/user.js +++ /dev/null @@ -1,64 +0,0 @@ -import Route from '@ember/routing/route'; -import { inject as service } from '@ember/service'; -import { action } from '@ember/object'; - -export default class OrgsOrgUsersUserRoute extends Route { - // =services - - @service intl; - @service notify; - - // =methods - - /** - * Returns a user by id. - * @param {object} params - * @return {Promise{UserModel}} - */ - model({ user_id: id }) { - return this.store.findRecord('user', id); - } - - // =actions - - /** - * Rollback changes on user. - * @param {UserModel} user - */ - @action - cancel(user) { - user.rollbackAttributes(); - } - - /** - * Handle save user. - * @param {UserModel} user - * @param {Event} e - */ - @action - async save(user) { - try { - await user.save(); - this.notify.success(this.intl.t('notify.save-success')); - } catch (error) { - // TODO: replace with translated strings - this.notify.error(error.message, { closeAfter: null }); - } - } - - /** - * Deletes the user and redirects to index. - * @param {UserModel} user - */ - @action - async delete(user) { - try { - await user.destroyRecord(); - this.transitionTo('orgs.org.users'); - this.notify.success(this.intl.t('notify.user.delete-success')); - } catch (error) { - // TODO: replace with translated strings - this.notify.error(error.message, { closeAfter: null }); - } - } -} diff --git a/ui/core/app/templates/orgs.hbs b/ui/core/app/templates/orgs.hbs deleted file mode 100644 index e2147cab0..000000000 --- a/ui/core/app/templates/orgs.hbs +++ /dev/null @@ -1 +0,0 @@ -{{outlet}} \ No newline at end of file diff --git a/ui/core/app/templates/orgs/org.hbs b/ui/core/app/templates/orgs/org.hbs deleted file mode 100644 index 72326b152..000000000 --- a/ui/core/app/templates/orgs/org.hbs +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - {{t "resources.projects"}} - - - - {{outlet "sidebar"}} - - - - {{t "resources.users"}} - - - - {{t "resources.groups"}} - - - - {{t "resources.roles"}} - - - - - - - - {{outlet}} - - - - diff --git a/ui/core/app/templates/orgs/org/error.hbs b/ui/core/app/templates/orgs/org/error.hbs deleted file mode 100644 index b903c31ad..000000000 --- a/ui/core/app/templates/orgs/org/error.hbs +++ /dev/null @@ -1,58 +0,0 @@ -{{!-- - In an error route, the error instance is `@model`. Error instances contain - a list of errors, each of which has one convenience boolean set on it: - - * Error booleans are attached based on the error status code: - * - * - `error.isUnauthenticated`: the session isn't authenticated - * - `error.isForbidden`: the session is authenticated but does not have - * permission to perform the requested action - * - `error.isNotFound`: the requested resource could not be found - * - `error.isServer`: an internal server error occurred - * - `error.isUnknown`: an error occurred, but we don't know which or - * we don't distinguish it yet - ---}} - - {{#each @model.errors as |error|}} - {{!-- error.status === 401 --}} - {{#if error.isUnauthenticated}} - - {{t 'errors.descriptions.unauthenticated-error'}} - {{t 'actions.help'}} - - {{/if}} - - {{!-- error.status === 403 --}} - {{#if error.isForbidden}} - - {{t 'errors.descriptions.forbidden-error'}} - {{t 'actions.help'}} - - {{/if}} - - {{!-- error.status === 404 --}} - {{#if error.isNotFound}} - - {{t 'errors.descriptions.notfound-error'}} - {{t 'actions.help'}} - - {{/if}} - - {{!-- error.status === 500 --}} - {{#if error.isServer}} - - {{t 'errors.descriptions.server-error'}} - {{t 'actions.help'}} - - {{/if}} - - {{!-- error.status === 🤷 everything else --}} - {{#if error.isUnknown}} - - {{t 'errors.descriptions.unknown-error'}} - {{t 'actions.help'}} - - {{/if}} - {{/each}} - diff --git a/ui/core/app/templates/orgs/org/groups.hbs b/ui/core/app/templates/orgs/org/groups.hbs deleted file mode 100644 index c53da7f4b..000000000 --- a/ui/core/app/templates/orgs/org/groups.hbs +++ /dev/null @@ -1,3 +0,0 @@ -{{title (t "resources.groups")}} - -{{outlet}} diff --git a/ui/core/app/templates/orgs/org/groups/group.hbs b/ui/core/app/templates/orgs/org/groups/group.hbs deleted file mode 100644 index 2b05f838d..000000000 --- a/ui/core/app/templates/orgs/org/groups/group.hbs +++ /dev/null @@ -1,3 +0,0 @@ -{{title @model.name}} - -{{outlet}} diff --git a/ui/core/app/templates/orgs/org/groups/group/index.hbs b/ui/core/app/templates/orgs/org/groups/group/index.hbs deleted file mode 100644 index 576796dae..000000000 --- a/ui/core/app/templates/orgs/org/groups/group/index.hbs +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - {{t "resources.group"}} - - - - - - - {{t 'actions.delete'}} - - - - diff --git a/ui/core/app/templates/orgs/org/groups/index.hbs b/ui/core/app/templates/orgs/org/groups/index.hbs deleted file mode 100644 index cf02056b2..000000000 --- a/ui/core/app/templates/orgs/org/groups/index.hbs +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - - {{t "resources.groups"}} - - - - {{#if @model}} - {{t 'titles.new'}} - {{/if}} - - - - - {{#if @model}} - - - - - {{t 'form.label.name'}} - {{t 'form.label.description'}} - - - - {{#each @model as |group|}} - - - - {{group.name}} - - - {{group.description}} - - {{/each}} - - - - {{else}} - - - - - {{t 'descriptions.groups-welcome'}} - - - - {{t 'titles.new'}} - - - - - {{/if}} - - - - diff --git a/ui/core/app/templates/orgs/org/groups/new.hbs b/ui/core/app/templates/orgs/org/groups/new.hbs deleted file mode 100644 index 64602883c..000000000 --- a/ui/core/app/templates/orgs/org/groups/new.hbs +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - {{t "titles.new"}} - - - - - - diff --git a/ui/core/app/templates/orgs/org/projects.hbs b/ui/core/app/templates/orgs/org/projects.hbs deleted file mode 100644 index 1f709c7f7..000000000 --- a/ui/core/app/templates/orgs/org/projects.hbs +++ /dev/null @@ -1,3 +0,0 @@ -{{title (t "resources.projects")}} - -{{outlet}} diff --git a/ui/core/app/templates/orgs/org/projects/index.hbs b/ui/core/app/templates/orgs/org/projects/index.hbs deleted file mode 100644 index b6cac496b..000000000 --- a/ui/core/app/templates/orgs/org/projects/index.hbs +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - {{t "resources.projects"}} - - - - {{#if @model}} - {{t 'titles.new'}} - {{/if}} - - - - - {{#if @model}} - - - {{#each @model as |project|}} - - {{/each}} - - - {{else}} - - - - - {{t 'descriptions.projects-welcome'}} - - - - {{t 'titles.new'}} - - - - - {{/if}} - - - - diff --git a/ui/core/app/templates/orgs/org/projects/new.hbs b/ui/core/app/templates/orgs/org/projects/new.hbs deleted file mode 100644 index 5289636f7..000000000 --- a/ui/core/app/templates/orgs/org/projects/new.hbs +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - {{t "titles.new"}} - - - - - - diff --git a/ui/core/app/templates/orgs/org/projects/project.hbs b/ui/core/app/templates/orgs/org/projects/project.hbs deleted file mode 100644 index d66e83390..000000000 --- a/ui/core/app/templates/orgs/org/projects/project.hbs +++ /dev/null @@ -1,3 +0,0 @@ -{{title @model.displayName}} - -{{outlet}} diff --git a/ui/core/app/templates/orgs/org/projects/project/_sidebar.hbs b/ui/core/app/templates/orgs/org/projects/project/_sidebar.hbs deleted file mode 100644 index 8581e1414..000000000 --- a/ui/core/app/templates/orgs/org/projects/project/_sidebar.hbs +++ /dev/null @@ -1,15 +0,0 @@ - - - - {{t "titles.overview"}} - - - - {{t "resources.host-catalogs"}} - - - diff --git a/ui/core/app/templates/orgs/org/projects/project/host-catalogs.hbs b/ui/core/app/templates/orgs/org/projects/project/host-catalogs.hbs deleted file mode 100644 index 6ad0035fb..000000000 --- a/ui/core/app/templates/orgs/org/projects/project/host-catalogs.hbs +++ /dev/null @@ -1,3 +0,0 @@ -{{title (t "resources.host-catalogs")}} - -{{outlet}} diff --git a/ui/core/app/templates/orgs/org/projects/project/host-catalogs/host-catalog.hbs b/ui/core/app/templates/orgs/org/projects/project/host-catalogs/host-catalog.hbs deleted file mode 100644 index d66e83390..000000000 --- a/ui/core/app/templates/orgs/org/projects/project/host-catalogs/host-catalog.hbs +++ /dev/null @@ -1,3 +0,0 @@ -{{title @model.displayName}} - -{{outlet}} diff --git a/ui/core/app/templates/orgs/org/projects/project/host-catalogs/host-catalog/index.hbs b/ui/core/app/templates/orgs/org/projects/project/host-catalogs/host-catalog/index.hbs deleted file mode 100644 index 735397eef..000000000 --- a/ui/core/app/templates/orgs/org/projects/project/host-catalogs/host-catalog/index.hbs +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - {{t "resources.host-catalog"}} - - - - - - - {{t 'actions.delete'}} - - - - diff --git a/ui/core/app/templates/orgs/org/projects/project/host-catalogs/index.hbs b/ui/core/app/templates/orgs/org/projects/project/host-catalogs/index.hbs deleted file mode 100644 index 6e712fb11..000000000 --- a/ui/core/app/templates/orgs/org/projects/project/host-catalogs/index.hbs +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - - - {{t 'resources.host-catalogs'}} - {{t 'descriptions.host-catalogs'}} - - - - {{#if @model}} - - {{t 'titles.new'}} - - {{/if}} - - - - - {{#if @model}} - - - - - {{t 'form.label.name'}} - {{t 'form.label.type'}} - {{t 'form.label.description'}} - - - - {{#each @model as |hostCatalog|}} - - - - {{hostCatalog.name}} - - - {{hostCatalog.type}} - {{hostCatalog.description}} - - {{/each}} - - - - {{else}} - - - - - {{t 'descriptions.host-catalogs-welcome'}} - - - - {{t 'titles.new'}} - - - - - {{/if}} - - - - diff --git a/ui/core/app/templates/orgs/org/projects/project/host-catalogs/new.hbs b/ui/core/app/templates/orgs/org/projects/project/host-catalogs/new.hbs deleted file mode 100644 index 1ac7bf86f..000000000 --- a/ui/core/app/templates/orgs/org/projects/project/host-catalogs/new.hbs +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - {{t "titles.new"}} - - - - - - - diff --git a/ui/core/app/templates/orgs/org/projects/project/index.hbs b/ui/core/app/templates/orgs/org/projects/project/index.hbs deleted file mode 100644 index 77050cd72..000000000 --- a/ui/core/app/templates/orgs/org/projects/project/index.hbs +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - {{t "resources.project"}} - - - - - - {{t 'titles.settings'}} - - - - - - - - - {{t 'actions.delete'}} - - - - diff --git a/ui/core/app/templates/orgs/org/roles.hbs b/ui/core/app/templates/orgs/org/roles.hbs deleted file mode 100644 index 6d511b7f7..000000000 --- a/ui/core/app/templates/orgs/org/roles.hbs +++ /dev/null @@ -1,3 +0,0 @@ -{{title (t "resources.roles")}} - -{{outlet}} diff --git a/ui/core/app/templates/orgs/org/roles/index.hbs b/ui/core/app/templates/orgs/org/roles/index.hbs deleted file mode 100644 index 07e3acfaa..000000000 --- a/ui/core/app/templates/orgs/org/roles/index.hbs +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - - {{t "resources.roles"}} - - - - {{#if @model}} - {{t 'titles.new'}} - {{/if}} - - - - - {{#if @model}} - - - - - {{t 'form.label.name'}} - {{t 'form.label.description'}} - - - - {{#each @model as |role|}} - - - - {{role.displayName}} - - - {{role.description}} - - {{/each}} - - - - {{else}} - - - - - {{t 'descriptions.roles-welcome'}} - - - - {{t 'titles.new'}} - - - - - {{/if}} - - - - diff --git a/ui/core/app/templates/orgs/org/roles/new.hbs b/ui/core/app/templates/orgs/org/roles/new.hbs deleted file mode 100644 index 911310f26..000000000 --- a/ui/core/app/templates/orgs/org/roles/new.hbs +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - {{t "titles.new"}} - - - - - - diff --git a/ui/core/app/templates/orgs/org/roles/role.hbs b/ui/core/app/templates/orgs/org/roles/role.hbs deleted file mode 100644 index d66e83390..000000000 --- a/ui/core/app/templates/orgs/org/roles/role.hbs +++ /dev/null @@ -1,3 +0,0 @@ -{{title @model.displayName}} - -{{outlet}} diff --git a/ui/core/app/templates/orgs/org/roles/role/index.hbs b/ui/core/app/templates/orgs/org/roles/role/index.hbs deleted file mode 100644 index 1b35c1929..000000000 --- a/ui/core/app/templates/orgs/org/roles/role/index.hbs +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - {{t "resources.role"}} - - - - - - - {{t 'actions.delete'}} - - - - diff --git a/ui/core/app/templates/orgs/org/users.hbs b/ui/core/app/templates/orgs/org/users.hbs deleted file mode 100644 index 67ccbeb9e..000000000 --- a/ui/core/app/templates/orgs/org/users.hbs +++ /dev/null @@ -1,3 +0,0 @@ -{{title (t "resources.users")}} - -{{outlet}} diff --git a/ui/core/app/templates/orgs/org/users/index.hbs b/ui/core/app/templates/orgs/org/users/index.hbs deleted file mode 100644 index 8e147d3ac..000000000 --- a/ui/core/app/templates/orgs/org/users/index.hbs +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - - {{t "resources.users"}} - - - - {{#if @model}} - {{t 'titles.new'}} - {{/if}} - - - - - {{#if @model}} - - - - - {{t 'form.label.name'}} - {{t 'form.label.description'}} - - - - {{#each @model as |user|}} - - - - {{user.name}} - - - {{user.description}} - - {{/each}} - - - - {{else}} - - - - - {{t 'descriptions.users-welcome'}} - - - - {{t 'titles.new'}} - - - - - {{/if}} - - - - diff --git a/ui/core/app/templates/orgs/org/users/new.hbs b/ui/core/app/templates/orgs/org/users/new.hbs deleted file mode 100644 index 4ae7ef85c..000000000 --- a/ui/core/app/templates/orgs/org/users/new.hbs +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - {{t "titles.new"}} - - - - - - diff --git a/ui/core/app/templates/orgs/org/users/user.hbs b/ui/core/app/templates/orgs/org/users/user.hbs deleted file mode 100644 index 2b05f838d..000000000 --- a/ui/core/app/templates/orgs/org/users/user.hbs +++ /dev/null @@ -1,3 +0,0 @@ -{{title @model.name}} - -{{outlet}} diff --git a/ui/core/app/templates/orgs/org/users/user/index.hbs b/ui/core/app/templates/orgs/org/users/user/index.hbs deleted file mode 100644 index a1b876705..000000000 --- a/ui/core/app/templates/orgs/org/users/user/index.hbs +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - {{t "resources.user"}} - - - - - - - {{t 'actions.delete'}} - - - - diff --git a/ui/core/app/templates/scopes/scope.hbs b/ui/core/app/templates/scopes/scope.hbs index 172b8d490..62f8be2de 100644 --- a/ui/core/app/templates/scopes/scope.hbs +++ b/ui/core/app/templates/scopes/scope.hbs @@ -7,7 +7,7 @@ {{t "resources.projects"}} - + {{t "resources.users"}} @@ -18,26 +18,10 @@ {{t "resources.roles"}} - + {{outlet "sidebar"}} - - {{!-- - - - {{t "resources.users"}} - - - - {{t "resources.groups"}} - - - - {{t "resources.roles"}} - - - --}} {{/if}} diff --git a/ui/core/tests/acceptance/bread-crumbs-test.js b/ui/core/tests/acceptance/bread-crumbs-test.js index 67288382c..68946549a 100644 --- a/ui/core/tests/acceptance/bread-crumbs-test.js +++ b/ui/core/tests/acceptance/bread-crumbs-test.js @@ -2,6 +2,12 @@ import { module, test } from 'qunit'; import { visit, currentURL, click, find, findAll } from '@ember/test-helpers'; import { setupApplicationTest } from 'ember-qunit'; import setupMirage from 'ember-cli-mirage/test-support/setup-mirage'; +import { + authenticateSession, + // These are left here intentionally for future reference. + //currentSession, + //invalidateSession, +} from 'ember-simple-auth/test-support'; module('Acceptance | breadcrumbs', function (hooks) { setupApplicationTest(hooks); @@ -23,6 +29,7 @@ module('Acceptance | breadcrumbs', function (hooks) { let crumbPath; hooks.beforeEach(function () { + authenticateSession({}); orgScope = this.server.create( 'scope', { diff --git a/ui/core/tests/acceptance/index-test.js b/ui/core/tests/acceptance/index-test.js deleted file mode 100644 index 5a2ec4631..000000000 --- a/ui/core/tests/acceptance/index-test.js +++ /dev/null @@ -1,15 +0,0 @@ -import { module, test } from 'qunit'; -import { visit, currentURL } from '@ember/test-helpers'; -import { setupApplicationTest } from 'ember-qunit'; -import a11yAudit from 'ember-a11y-testing/test-support/audit'; - -module('Acceptance | index', function (hooks) { - setupApplicationTest(hooks); - - test('visiting /', async function (assert) { - assert.expect(1); - await visit('/'); - await a11yAudit(); - assert.equal(currentURL(), '/'); - }); -}); diff --git a/ui/core/tests/acceptance/projects-test.js b/ui/core/tests/acceptance/projects-test.js index bfa87857c..ced4a8f13 100644 --- a/ui/core/tests/acceptance/projects-test.js +++ b/ui/core/tests/acceptance/projects-test.js @@ -4,6 +4,12 @@ import { setupApplicationTest } from 'ember-qunit'; import setupMirage from 'ember-cli-mirage/test-support/setup-mirage'; import a11yAudit from 'ember-a11y-testing/test-support/audit'; import { Response } from 'miragejs'; +import { + authenticateSession, + // These are left here intentionally for future reference. + //currentSession, + //invalidateSession, +} from 'ember-simple-auth/test-support'; module('Acceptance | projects', function (hooks) { setupApplicationTest(hooks); @@ -20,6 +26,7 @@ module('Acceptance | projects', function (hooks) { let initialProjectScopesCount; hooks.beforeEach(function () { + authenticateSession({}); org = this.server.create('scope', { type: 'org' }, 'withChildren'); getProjectScopesCount = () => this.server.schema.scopes.where({ type: 'project' }).length; diff --git a/ui/core/tests/integration/components/bread-crumbs-test.js b/ui/core/tests/integration/components/bread-crumbs-test.js index 2e59085cb..a84f99f55 100644 --- a/ui/core/tests/integration/components/bread-crumbs-test.js +++ b/ui/core/tests/integration/components/bread-crumbs-test.js @@ -22,7 +22,7 @@ module('Integration | Component | bread-crumbs', function (hooks) { this.set('breadCrumbs', [ { label: 'Level 2', - path: 'orgs.org.projects.project', + path: 'scopes.scope.projects.project', model: project, }, ]); diff --git a/ui/core/tests/unit/controllers/orgs/org/groups-test.js b/ui/core/tests/unit/controllers/orgs/org/groups-test.js deleted file mode 100644 index 338abe601..000000000 --- a/ui/core/tests/unit/controllers/orgs/org/groups-test.js +++ /dev/null @@ -1,12 +0,0 @@ -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Controller | orgs/org/groups', function (hooks) { - setupTest(hooks); - - // Replace this with your real tests. - test('it exists', function (assert) { - let controller = this.owner.lookup('controller:orgs/org/groups'); - assert.ok(controller); - }); -}); diff --git a/ui/core/tests/unit/controllers/orgs/org/groups/group-test.js b/ui/core/tests/unit/controllers/orgs/org/groups/group-test.js deleted file mode 100644 index c49531dfb..000000000 --- a/ui/core/tests/unit/controllers/orgs/org/groups/group-test.js +++ /dev/null @@ -1,12 +0,0 @@ -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Controller | orgs/org/groups/group', function (hooks) { - setupTest(hooks); - - // Replace this with your real tests. - test('it exists', function (assert) { - let controller = this.owner.lookup('controller:orgs/org/groups/group'); - assert.ok(controller); - }); -}); diff --git a/ui/core/tests/unit/controllers/orgs/org/groups/new-test.js b/ui/core/tests/unit/controllers/orgs/org/groups/new-test.js deleted file mode 100644 index a85f11078..000000000 --- a/ui/core/tests/unit/controllers/orgs/org/groups/new-test.js +++ /dev/null @@ -1,12 +0,0 @@ -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Controller | orgs/org/groups/new', function (hooks) { - setupTest(hooks); - - // Replace this with your real tests. - test('it exists', function (assert) { - let controller = this.owner.lookup('controller:orgs/org/groups/new'); - assert.ok(controller); - }); -}); diff --git a/ui/core/tests/unit/controllers/orgs/org/projects-test.js b/ui/core/tests/unit/controllers/orgs/org/projects-test.js deleted file mode 100644 index c4d200e50..000000000 --- a/ui/core/tests/unit/controllers/orgs/org/projects-test.js +++ /dev/null @@ -1,12 +0,0 @@ -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Controller | orgs/org/projects', function (hooks) { - setupTest(hooks); - - // Replace this with your real tests. - test('it exists', function (assert) { - let controller = this.owner.lookup('controller:orgs/org/projects'); - assert.ok(controller); - }); -}); diff --git a/ui/core/tests/unit/controllers/orgs/org/projects/new-test.js b/ui/core/tests/unit/controllers/orgs/org/projects/new-test.js deleted file mode 100644 index 055c60a9f..000000000 --- a/ui/core/tests/unit/controllers/orgs/org/projects/new-test.js +++ /dev/null @@ -1,12 +0,0 @@ -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Controller | orgs/org/projects/new', function (hooks) { - setupTest(hooks); - - // Replace this with your real tests. - test('it exists', function (assert) { - let controller = this.owner.lookup('controller:orgs/org/projects/new'); - assert.ok(controller); - }); -}); diff --git a/ui/core/tests/unit/controllers/orgs/org/projects/project-test.js b/ui/core/tests/unit/controllers/orgs/org/projects/project-test.js deleted file mode 100644 index 067429ee5..000000000 --- a/ui/core/tests/unit/controllers/orgs/org/projects/project-test.js +++ /dev/null @@ -1,12 +0,0 @@ -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Controller | orgs/org/projects/project', function (hooks) { - setupTest(hooks); - - // Replace this with your real tests. - test('it exists', function (assert) { - let controller = this.owner.lookup('controller:orgs/org/projects/project'); - assert.ok(controller); - }); -}); diff --git a/ui/core/tests/unit/controllers/orgs/org/projects/project/host-catalogs-test.js b/ui/core/tests/unit/controllers/orgs/org/projects/project/host-catalogs-test.js deleted file mode 100644 index 6127a3173..000000000 --- a/ui/core/tests/unit/controllers/orgs/org/projects/project/host-catalogs-test.js +++ /dev/null @@ -1,16 +0,0 @@ -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Controller | orgs/org/projects/project/host-catalogs', function ( - hooks -) { - setupTest(hooks); - - // Replace this with your real tests. - test('it exists', function (assert) { - let controller = this.owner.lookup( - 'controller:orgs/org/projects/project/host-catalogs' - ); - assert.ok(controller); - }); -}); diff --git a/ui/core/tests/unit/controllers/orgs/org/projects/project/host-catalogs/host-catalog-test.js b/ui/core/tests/unit/controllers/orgs/org/projects/project/host-catalogs/host-catalog-test.js deleted file mode 100644 index 38b3a9c9d..000000000 --- a/ui/core/tests/unit/controllers/orgs/org/projects/project/host-catalogs/host-catalog-test.js +++ /dev/null @@ -1,17 +0,0 @@ -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module( - 'Unit | Controller | orgs/org/projects/project/host-catalogs/host-catalog', - function (hooks) { - setupTest(hooks); - - // Replace this with your real tests. - test('it exists', function (assert) { - let controller = this.owner.lookup( - 'controller:orgs/org/projects/project/host-catalogs/host-catalog' - ); - assert.ok(controller); - }); - } -); diff --git a/ui/core/tests/unit/controllers/orgs/org/projects/project/host-catalogs/new-test.js b/ui/core/tests/unit/controllers/orgs/org/projects/project/host-catalogs/new-test.js deleted file mode 100644 index ee0f326a1..000000000 --- a/ui/core/tests/unit/controllers/orgs/org/projects/project/host-catalogs/new-test.js +++ /dev/null @@ -1,17 +0,0 @@ -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module( - 'Unit | Controller | orgs/org/projects/project/host-catalogs/new', - function (hooks) { - setupTest(hooks); - - // Replace this with your real tests. - test('it exists', function (assert) { - let controller = this.owner.lookup( - 'controller:orgs/org/projects/project/host-catalogs/new' - ); - assert.ok(controller); - }); - } -); diff --git a/ui/core/tests/unit/controllers/orgs/org/roles-test.js b/ui/core/tests/unit/controllers/orgs/org/roles-test.js deleted file mode 100644 index 12c57a108..000000000 --- a/ui/core/tests/unit/controllers/orgs/org/roles-test.js +++ /dev/null @@ -1,11 +0,0 @@ -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Controller | orgs/org/roles', function (hooks) { - setupTest(hooks); - - test('it exists', function (assert) { - let controller = this.owner.lookup('controller:orgs/org/roles'); - assert.ok(controller); - }); -}); diff --git a/ui/core/tests/unit/controllers/orgs/org/roles/new-test.js b/ui/core/tests/unit/controllers/orgs/org/roles/new-test.js deleted file mode 100644 index c9e4cfcc8..000000000 --- a/ui/core/tests/unit/controllers/orgs/org/roles/new-test.js +++ /dev/null @@ -1,11 +0,0 @@ -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Controller | orgs/org/roles/new', function (hooks) { - setupTest(hooks); - - test('it exists', function (assert) { - let controller = this.owner.lookup('controller:orgs/org/roles/new'); - assert.ok(controller); - }); -}); diff --git a/ui/core/tests/unit/controllers/orgs/org/roles/role-test.js b/ui/core/tests/unit/controllers/orgs/org/roles/role-test.js deleted file mode 100644 index 515ae8420..000000000 --- a/ui/core/tests/unit/controllers/orgs/org/roles/role-test.js +++ /dev/null @@ -1,11 +0,0 @@ -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Controller | orgs/org/roles/role', function (hooks) { - setupTest(hooks); - - test('it exists', function (assert) { - let controller = this.owner.lookup('controller:orgs/org/roles/role'); - assert.ok(controller); - }); -}); diff --git a/ui/core/tests/unit/controllers/orgs/org/users-test.js b/ui/core/tests/unit/controllers/orgs/org/users-test.js deleted file mode 100644 index 5f0c57d8c..000000000 --- a/ui/core/tests/unit/controllers/orgs/org/users-test.js +++ /dev/null @@ -1,12 +0,0 @@ -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Controller | orgs/org/users', function (hooks) { - setupTest(hooks); - - // Replace this with your real tests. - test('it exists', function (assert) { - let controller = this.owner.lookup('controller:orgs/org/users'); - assert.ok(controller); - }); -}); diff --git a/ui/core/tests/unit/controllers/orgs/org/users/new-test.js b/ui/core/tests/unit/controllers/orgs/org/users/new-test.js deleted file mode 100644 index 80a7e1890..000000000 --- a/ui/core/tests/unit/controllers/orgs/org/users/new-test.js +++ /dev/null @@ -1,12 +0,0 @@ -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Controller | orgs/org/users/new', function (hooks) { - setupTest(hooks); - - // Replace this with your real tests. - test('it exists', function (assert) { - let controller = this.owner.lookup('controller:orgs/org/users/new'); - assert.ok(controller); - }); -}); diff --git a/ui/core/tests/unit/controllers/orgs/org/users/user-test.js b/ui/core/tests/unit/controllers/orgs/org/users/user-test.js deleted file mode 100644 index e16d4ab6b..000000000 --- a/ui/core/tests/unit/controllers/orgs/org/users/user-test.js +++ /dev/null @@ -1,12 +0,0 @@ -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Controller | orgs/org/users/user', function (hooks) { - setupTest(hooks); - - // Replace this with your real tests. - test('it exists', function (assert) { - let controller = this.owner.lookup('controller:orgs/org/users/user'); - assert.ok(controller); - }); -}); diff --git a/ui/core/tests/unit/controllers/scopes/scope/projects/project/host-catalogs/new-test.js b/ui/core/tests/unit/controllers/scopes/scope/projects/project/host-catalogs/new-test.js new file mode 100644 index 000000000..2f653e30b --- /dev/null +++ b/ui/core/tests/unit/controllers/scopes/scope/projects/project/host-catalogs/new-test.js @@ -0,0 +1,12 @@ +import { module, test } from 'qunit'; +import { setupTest } from 'ember-qunit'; + +module('Unit | Controller | scopes/scope/projects/project/host-catalogs/new', function(hooks) { + setupTest(hooks); + + // Replace this with your real tests. + test('it exists', function(assert) { + let controller = this.owner.lookup('controller:scopes/scope/projects/project/host-catalogs/new'); + assert.ok(controller); + }); +}); diff --git a/ui/core/tests/unit/routes/orgs-test.js b/ui/core/tests/unit/routes/orgs-test.js deleted file mode 100644 index 72888b83a..000000000 --- a/ui/core/tests/unit/routes/orgs-test.js +++ /dev/null @@ -1,11 +0,0 @@ -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Route | orgs', function (hooks) { - setupTest(hooks); - - test('it exists', function (assert) { - let route = this.owner.lookup('route:orgs'); - assert.ok(route); - }); -}); diff --git a/ui/core/tests/unit/routes/orgs/org-test.js b/ui/core/tests/unit/routes/orgs/org-test.js deleted file mode 100644 index 8f1eb4fe2..000000000 --- a/ui/core/tests/unit/routes/orgs/org-test.js +++ /dev/null @@ -1,11 +0,0 @@ -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Route | orgs/org', function (hooks) { - setupTest(hooks); - - test('it exists', function (assert) { - let route = this.owner.lookup('route:orgs/org'); - assert.ok(route); - }); -}); diff --git a/ui/core/tests/unit/routes/orgs/org/groups-test.js b/ui/core/tests/unit/routes/orgs/org/groups-test.js deleted file mode 100644 index 465afedcd..000000000 --- a/ui/core/tests/unit/routes/orgs/org/groups-test.js +++ /dev/null @@ -1,11 +0,0 @@ -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Route | orgs/org/groups', function (hooks) { - setupTest(hooks); - - test('it exists', function (assert) { - let route = this.owner.lookup('route:orgs/org/groups'); - assert.ok(route); - }); -}); diff --git a/ui/core/tests/unit/routes/orgs/org/groups/group-test.js b/ui/core/tests/unit/routes/orgs/org/groups/group-test.js deleted file mode 100644 index ca6107bc1..000000000 --- a/ui/core/tests/unit/routes/orgs/org/groups/group-test.js +++ /dev/null @@ -1,11 +0,0 @@ -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Route | orgs/org/groups/group', function (hooks) { - setupTest(hooks); - - test('it exists', function (assert) { - let route = this.owner.lookup('route:orgs/org/groups/group'); - assert.ok(route); - }); -}); diff --git a/ui/core/tests/unit/routes/orgs/org/groups/group/index-test.js b/ui/core/tests/unit/routes/orgs/org/groups/group/index-test.js deleted file mode 100644 index e0c5c06d4..000000000 --- a/ui/core/tests/unit/routes/orgs/org/groups/group/index-test.js +++ /dev/null @@ -1,11 +0,0 @@ -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Route | orgs/org/groups/group/index', function (hooks) { - setupTest(hooks); - - test('it exists', function (assert) { - let route = this.owner.lookup('route:orgs/org/groups/group/index'); - assert.ok(route); - }); -}); diff --git a/ui/core/tests/unit/routes/orgs/org/groups/index-test.js b/ui/core/tests/unit/routes/orgs/org/groups/index-test.js deleted file mode 100644 index 60c10cfef..000000000 --- a/ui/core/tests/unit/routes/orgs/org/groups/index-test.js +++ /dev/null @@ -1,11 +0,0 @@ -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Route | orgs/org/groups/index', function (hooks) { - setupTest(hooks); - - test('it exists', function (assert) { - let route = this.owner.lookup('route:orgs/org/groups/index'); - assert.ok(route); - }); -}); diff --git a/ui/core/tests/unit/routes/orgs/org/groups/new-test.js b/ui/core/tests/unit/routes/orgs/org/groups/new-test.js deleted file mode 100644 index e119c3d53..000000000 --- a/ui/core/tests/unit/routes/orgs/org/groups/new-test.js +++ /dev/null @@ -1,11 +0,0 @@ -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Route | orgs/org/groups/new', function (hooks) { - setupTest(hooks); - - test('it exists', function (assert) { - let route = this.owner.lookup('route:orgs/org/groups/new'); - assert.ok(route); - }); -}); diff --git a/ui/core/tests/unit/routes/orgs/org/projects-test.js b/ui/core/tests/unit/routes/orgs/org/projects-test.js deleted file mode 100644 index ce18ada89..000000000 --- a/ui/core/tests/unit/routes/orgs/org/projects-test.js +++ /dev/null @@ -1,11 +0,0 @@ -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Route | orgs/org/projects', function (hooks) { - setupTest(hooks); - - test('it exists', function (assert) { - let route = this.owner.lookup('route:orgs/org/projects'); - assert.ok(route); - }); -}); diff --git a/ui/core/tests/unit/routes/orgs/org/projects/index-test.js b/ui/core/tests/unit/routes/orgs/org/projects/index-test.js deleted file mode 100644 index 2bc8af956..000000000 --- a/ui/core/tests/unit/routes/orgs/org/projects/index-test.js +++ /dev/null @@ -1,11 +0,0 @@ -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Route | orgs/org/projects/index', function (hooks) { - setupTest(hooks); - - test('it exists', function (assert) { - let route = this.owner.lookup('route:orgs/org/projects/index'); - assert.ok(route); - }); -}); diff --git a/ui/core/tests/unit/routes/orgs/org/projects/new-test.js b/ui/core/tests/unit/routes/orgs/org/projects/new-test.js deleted file mode 100644 index f084da7bf..000000000 --- a/ui/core/tests/unit/routes/orgs/org/projects/new-test.js +++ /dev/null @@ -1,11 +0,0 @@ -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Route | orgs/org/projects/new', function (hooks) { - setupTest(hooks); - - test('it exists', function (assert) { - let route = this.owner.lookup('route:orgs/org/projects/new'); - assert.ok(route); - }); -}); diff --git a/ui/core/tests/unit/routes/orgs/org/projects/project-test.js b/ui/core/tests/unit/routes/orgs/org/projects/project-test.js deleted file mode 100644 index a1e01801f..000000000 --- a/ui/core/tests/unit/routes/orgs/org/projects/project-test.js +++ /dev/null @@ -1,11 +0,0 @@ -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Route | orgs/org/projects/project', function (hooks) { - setupTest(hooks); - - test('it exists', function (assert) { - let route = this.owner.lookup('route:orgs/org/projects/project'); - assert.ok(route); - }); -}); diff --git a/ui/core/tests/unit/routes/orgs/org/projects/project/host-catalogs-test.js b/ui/core/tests/unit/routes/orgs/org/projects/project/host-catalogs-test.js deleted file mode 100644 index 761c0bfa8..000000000 --- a/ui/core/tests/unit/routes/orgs/org/projects/project/host-catalogs-test.js +++ /dev/null @@ -1,15 +0,0 @@ -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Route | orgs/org/projects/project/host-catalogs', function ( - hooks -) { - setupTest(hooks); - - test('it exists', function (assert) { - let route = this.owner.lookup( - 'route:orgs/org/projects/project/host-catalogs' - ); - assert.ok(route); - }); -}); diff --git a/ui/core/tests/unit/routes/orgs/org/projects/project/host-catalogs/host-catalog-test.js b/ui/core/tests/unit/routes/orgs/org/projects/project/host-catalogs/host-catalog-test.js deleted file mode 100644 index 5dd167f8a..000000000 --- a/ui/core/tests/unit/routes/orgs/org/projects/project/host-catalogs/host-catalog-test.js +++ /dev/null @@ -1,16 +0,0 @@ -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module( - 'Unit | Route | orgs/org/projects/project/host-catalogs/host-catalog', - function (hooks) { - setupTest(hooks); - - test('it exists', function (assert) { - let route = this.owner.lookup( - 'route:orgs/org/projects/project/host-catalogs/host-catalog' - ); - assert.ok(route); - }); - } -); diff --git a/ui/core/tests/unit/routes/orgs/org/projects/project/host-catalogs/host-catalog/index-test.js b/ui/core/tests/unit/routes/orgs/org/projects/project/host-catalogs/host-catalog/index-test.js deleted file mode 100644 index 1472a5b92..000000000 --- a/ui/core/tests/unit/routes/orgs/org/projects/project/host-catalogs/host-catalog/index-test.js +++ /dev/null @@ -1,16 +0,0 @@ -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module( - 'Unit | Route | orgs/org/projects/project/host-catalogs/host-catalog/index', - function (hooks) { - setupTest(hooks); - - test('it exists', function (assert) { - let route = this.owner.lookup( - 'route:orgs/org/projects/project/host-catalogs/host-catalog/index' - ); - assert.ok(route); - }); - } -); diff --git a/ui/core/tests/unit/routes/orgs/org/projects/project/host-catalogs/index-test.js b/ui/core/tests/unit/routes/orgs/org/projects/project/host-catalogs/index-test.js deleted file mode 100644 index 0d7a5e317..000000000 --- a/ui/core/tests/unit/routes/orgs/org/projects/project/host-catalogs/index-test.js +++ /dev/null @@ -1,16 +0,0 @@ -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module( - 'Unit | Route | orgs/org/projects/project/host-catalogs/index', - function (hooks) { - setupTest(hooks); - - test('it exists', function (assert) { - let route = this.owner.lookup( - 'route:orgs/org/projects/project/host-catalogs/index' - ); - assert.ok(route); - }); - } -); diff --git a/ui/core/tests/unit/routes/orgs/org/projects/project/host-catalogs/new-test.js b/ui/core/tests/unit/routes/orgs/org/projects/project/host-catalogs/new-test.js deleted file mode 100644 index 8b441cfd6..000000000 --- a/ui/core/tests/unit/routes/orgs/org/projects/project/host-catalogs/new-test.js +++ /dev/null @@ -1,15 +0,0 @@ -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Route | orgs/org/projects/project/host-catalogs/new', function ( - hooks -) { - setupTest(hooks); - - test('it exists', function (assert) { - let route = this.owner.lookup( - 'route:orgs/org/projects/project/host-catalogs/new' - ); - assert.ok(route); - }); -}); diff --git a/ui/core/tests/unit/routes/orgs/org/projects/project/index-test.js b/ui/core/tests/unit/routes/orgs/org/projects/project/index-test.js deleted file mode 100644 index 08f446f6f..000000000 --- a/ui/core/tests/unit/routes/orgs/org/projects/project/index-test.js +++ /dev/null @@ -1,11 +0,0 @@ -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Route | orgs/org/projects/project/index', function (hooks) { - setupTest(hooks); - - test('it exists', function (assert) { - let route = this.owner.lookup('route:orgs/org/projects/project/index'); - assert.ok(route); - }); -}); diff --git a/ui/core/tests/unit/routes/orgs/org/roles-test.js b/ui/core/tests/unit/routes/orgs/org/roles-test.js deleted file mode 100644 index 7cd35dab6..000000000 --- a/ui/core/tests/unit/routes/orgs/org/roles-test.js +++ /dev/null @@ -1,11 +0,0 @@ -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Route | orgs/org/roles', function (hooks) { - setupTest(hooks); - - test('it exists', function (assert) { - let route = this.owner.lookup('route:orgs/org/roles'); - assert.ok(route); - }); -}); diff --git a/ui/core/tests/unit/routes/orgs/org/roles/index-test.js b/ui/core/tests/unit/routes/orgs/org/roles/index-test.js deleted file mode 100644 index 979d26062..000000000 --- a/ui/core/tests/unit/routes/orgs/org/roles/index-test.js +++ /dev/null @@ -1,11 +0,0 @@ -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Route | orgs/org/roles/index', function (hooks) { - setupTest(hooks); - - test('it exists', function (assert) { - let route = this.owner.lookup('route:orgs/org/roles/index'); - assert.ok(route); - }); -}); diff --git a/ui/core/tests/unit/routes/orgs/org/roles/new-test.js b/ui/core/tests/unit/routes/orgs/org/roles/new-test.js deleted file mode 100644 index 59e26a949..000000000 --- a/ui/core/tests/unit/routes/orgs/org/roles/new-test.js +++ /dev/null @@ -1,11 +0,0 @@ -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Route | orgs/org/roles/new', function (hooks) { - setupTest(hooks); - - test('it exists', function (assert) { - let route = this.owner.lookup('route:orgs/org/roles/new'); - assert.ok(route); - }); -}); diff --git a/ui/core/tests/unit/routes/orgs/org/roles/role-test.js b/ui/core/tests/unit/routes/orgs/org/roles/role-test.js deleted file mode 100644 index 207a79ea2..000000000 --- a/ui/core/tests/unit/routes/orgs/org/roles/role-test.js +++ /dev/null @@ -1,11 +0,0 @@ -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Route | orgs/org/roles/role', function (hooks) { - setupTest(hooks); - - test('it exists', function (assert) { - let route = this.owner.lookup('route:orgs/org/roles/role'); - assert.ok(route); - }); -}); diff --git a/ui/core/tests/unit/routes/orgs/org/users-test.js b/ui/core/tests/unit/routes/orgs/org/users-test.js deleted file mode 100644 index b4c420690..000000000 --- a/ui/core/tests/unit/routes/orgs/org/users-test.js +++ /dev/null @@ -1,11 +0,0 @@ -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Route | orgs/org/users', function (hooks) { - setupTest(hooks); - - test('it exists', function (assert) { - let route = this.owner.lookup('route:orgs/org/users'); - assert.ok(route); - }); -}); diff --git a/ui/core/tests/unit/routes/orgs/org/users/index-test.js b/ui/core/tests/unit/routes/orgs/org/users/index-test.js deleted file mode 100644 index 21310f7a1..000000000 --- a/ui/core/tests/unit/routes/orgs/org/users/index-test.js +++ /dev/null @@ -1,11 +0,0 @@ -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Route | orgs/org/users/index', function (hooks) { - setupTest(hooks); - - test('it exists', function (assert) { - let route = this.owner.lookup('route:orgs/org/users/index'); - assert.ok(route); - }); -}); diff --git a/ui/core/tests/unit/routes/orgs/org/users/new-test.js b/ui/core/tests/unit/routes/orgs/org/users/new-test.js deleted file mode 100644 index 395979cad..000000000 --- a/ui/core/tests/unit/routes/orgs/org/users/new-test.js +++ /dev/null @@ -1,11 +0,0 @@ -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Route | orgs/org/users/new', function (hooks) { - setupTest(hooks); - - test('it exists', function (assert) { - let route = this.owner.lookup('route:orgs/org/users/new'); - assert.ok(route); - }); -}); diff --git a/ui/core/tests/unit/routes/orgs/org/users/user-test.js b/ui/core/tests/unit/routes/orgs/org/users/user-test.js deleted file mode 100644 index 48a657875..000000000 --- a/ui/core/tests/unit/routes/orgs/org/users/user-test.js +++ /dev/null @@ -1,11 +0,0 @@ -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Route | orgs/org/users/user', function (hooks) { - setupTest(hooks); - - test('it exists', function (assert) { - let route = this.owner.lookup('route:orgs/org/users/user'); - assert.ok(route); - }); -});
{{t 'descriptions.host-catalogs'}}