diff --git a/ui/core/app/controllers/orgs/org/groups/group.js b/ui/core/app/controllers/orgs/org/groups/group.js
index 972fb39ed..0d12865f7 100644
--- a/ui/core/app/controllers/orgs/org/groups/group.js
+++ b/ui/core/app/controllers/orgs/org/groups/group.js
@@ -8,5 +8,4 @@ export default class OrgsOrgGroupsGroupController extends Controller {
* @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
index 9ca97fbe5..1c5eeb7c9 100644
--- a/ui/core/app/controllers/orgs/org/groups/new.js
+++ b/ui/core/app/controllers/orgs/org/groups/new.js
@@ -14,5 +14,4 @@ export default class OrgsOrgGroupsNewController extends Controller {
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
index e1199f8e8..60c1441a7 100644
--- a/ui/core/app/controllers/orgs/org/projects.js
+++ b/ui/core/app/controllers/orgs/org/projects.js
@@ -2,7 +2,6 @@ import Controller from '@ember/controller';
import { inject as service } from '@ember/service';
export default class OrgsOrgProjectsController extends Controller {
-
// =services
@service intl;
@@ -15,5 +14,4 @@ export default class OrgsOrgProjectsController extends Controller {
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
index 5f9540189..769d6e195 100644
--- a/ui/core/app/controllers/orgs/org/projects/new.js
+++ b/ui/core/app/controllers/orgs/org/projects/new.js
@@ -2,7 +2,6 @@ import Controller from '@ember/controller';
import { inject as service } from '@ember/service';
export default class OrgsOrgProjectsNewController extends Controller {
-
// =services
@service intl;
@@ -15,5 +14,4 @@ export default class OrgsOrgProjectsNewController extends Controller {
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
index d56cf15d9..c449ef523 100644
--- a/ui/core/app/controllers/orgs/org/projects/project.js
+++ b/ui/core/app/controllers/orgs/org/projects/project.js
@@ -2,12 +2,10 @@ 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
index 80dde2c39..ed10e744b 100644
--- a/ui/core/app/controllers/orgs/org/projects/project/host-catalogs.js
+++ b/ui/core/app/controllers/orgs/org/projects/project/host-catalogs.js
@@ -2,7 +2,6 @@ import Controller from '@ember/controller';
import { inject as service } from '@ember/service';
export default class OrgsOrgProjectsProjectHostCatalogsController extends Controller {
-
// =services
@service intl;
@@ -15,5 +14,4 @@ export default class OrgsOrgProjectsProjectHostCatalogsController extends Contro
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
index 57d0c2724..1e733a5aa 100644
--- 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
@@ -2,12 +2,10 @@ 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/projects/project/host-catalogs/new.js b/ui/core/app/controllers/orgs/org/projects/project/host-catalogs/new.js
index 4fb2aed63..02b865cd0 100644
--- a/ui/core/app/controllers/orgs/org/projects/project/host-catalogs/new.js
+++ b/ui/core/app/controllers/orgs/org/projects/project/host-catalogs/new.js
@@ -2,7 +2,6 @@ import Controller from '@ember/controller';
import { inject as service } from '@ember/service';
export default class OrgsOrgProjectsProjectHostCatalogsNewController extends Controller {
-
// =services
@service intl;
@@ -15,5 +14,4 @@ export default class OrgsOrgProjectsProjectHostCatalogsNewController extends Con
get breadCrumb() {
return this.intl.t('titles.new');
}
-
}
diff --git a/ui/core/app/controllers/orgs/org/roles.js b/ui/core/app/controllers/orgs/org/roles.js
index 7f62b0e1a..16f84ae44 100644
--- a/ui/core/app/controllers/orgs/org/roles.js
+++ b/ui/core/app/controllers/orgs/org/roles.js
@@ -14,5 +14,4 @@ export default class OrgsOrgRolesController extends Controller {
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
index 38a098eaa..126c6a1b8 100644
--- a/ui/core/app/controllers/orgs/org/roles/new.js
+++ b/ui/core/app/controllers/orgs/org/roles/new.js
@@ -14,5 +14,4 @@ export default class OrgsOrgRolesNewController extends Controller {
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
index 23fe25882..90425d113 100644
--- a/ui/core/app/controllers/orgs/org/roles/role.js
+++ b/ui/core/app/controllers/orgs/org/roles/role.js
@@ -8,5 +8,4 @@ export default class OrgsOrgRolesRoleController extends Controller {
* @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
index ae81e0302..fe28ecf0f 100644
--- a/ui/core/app/controllers/orgs/org/users.js
+++ b/ui/core/app/controllers/orgs/org/users.js
@@ -14,5 +14,4 @@ export default class OrgsOrgUsersController extends Controller {
get breadCrumb() {
return this.intl.t('resources.users');
}
-
}
diff --git a/ui/core/app/controllers/scopes/scope/projects.js b/ui/core/app/controllers/scopes/scope/projects.js
index cdd9bda8a..af28cf813 100644
--- a/ui/core/app/controllers/scopes/scope/projects.js
+++ b/ui/core/app/controllers/scopes/scope/projects.js
@@ -2,7 +2,6 @@ import Controller from '@ember/controller';
import { inject as service } from '@ember/service';
export default class ScopesScopeProjectsController extends Controller {
-
// =services
@service intl;
@@ -15,5 +14,4 @@ export default class ScopesScopeProjectsController extends Controller {
get breadCrumb() {
return this.intl.t('resources.projects');
}
-
}
diff --git a/ui/core/app/controllers/scopes/scope/projects/new.js b/ui/core/app/controllers/scopes/scope/projects/new.js
index 50b30d187..d1f87399f 100644
--- a/ui/core/app/controllers/scopes/scope/projects/new.js
+++ b/ui/core/app/controllers/scopes/scope/projects/new.js
@@ -2,7 +2,6 @@ import Controller from '@ember/controller';
import { inject as service } from '@ember/service';
export default class ScopesScopeProjectsNewController extends Controller {
-
// =services
@service intl;
@@ -15,5 +14,4 @@ export default class ScopesScopeProjectsNewController extends Controller {
get breadCrumb() {
return this.intl.t('titles.new');
}
-
}
diff --git a/ui/core/app/controllers/scopes/scope/projects/project.js b/ui/core/app/controllers/scopes/scope/projects/project.js
index 8fc8bbb1c..8d1219267 100644
--- a/ui/core/app/controllers/scopes/scope/projects/project.js
+++ b/ui/core/app/controllers/scopes/scope/projects/project.js
@@ -1,7 +1,6 @@
import Controller from '@ember/controller';
export default class ScopesScopeProjectsProjectController extends Controller {
-
// =attributes
/**
@@ -10,5 +9,4 @@ export default class ScopesScopeProjectsProjectController extends Controller {
get breadCrumb() {
return this.model.displayName;
}
-
}
diff --git a/ui/core/app/router.js b/ui/core/app/router.js
index e07a9ee94..1c3e3e78b 100644
--- a/ui/core/app/router.js
+++ b/ui/core/app/router.js
@@ -7,11 +7,14 @@ export default class Router extends EmberRouter {
}
Router.map(function () {
-
- this.route('scopes', function() {
- this.route('scope', { path: ':scope_id' }, function() {
- this.route('projects', function() {
- this.route('project', { path: ':project_id' }, function() {});
+ this.route('scopes', function () {
+ this.route('scope', { path: ':scope_id' }, function () {
+ this.route('projects', function () {
+ this.route('project', { path: ':project_id' }, function () {});
+ this.route('new');
+ });
+ this.route('users', function () {
+ this.route('user', { path: ':user_id' }, function () {});
this.route('new');
});
});
@@ -20,27 +23,31 @@ 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('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('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('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('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
index 199076b0b..f41f51d52 100644
--- a/ui/core/app/routes/orgs.js
+++ b/ui/core/app/routes/orgs.js
@@ -1,7 +1,6 @@
import Route from '@ember/routing/route';
export default class OrgsRoute extends Route {
-
// =methods
/**
@@ -11,5 +10,4 @@ export default class OrgsRoute extends Route {
model() {
return this.store.findAll('org');
}
-
}
diff --git a/ui/core/app/routes/orgs/org/groups/group/index.js b/ui/core/app/routes/orgs/org/groups/group/index.js
index 521f73a9c..9bd8f2675 100644
--- a/ui/core/app/routes/orgs/org/groups/group/index.js
+++ b/ui/core/app/routes/orgs/org/groups/group/index.js
@@ -1,4 +1,3 @@
import Route from '@ember/routing/route';
-export default class OrgsOrgGroupsGroupIndexRoute extends Route {
-}
+export default class OrgsOrgGroupsGroupIndexRoute extends Route {}
diff --git a/ui/core/app/routes/orgs/org/projects/index.js b/ui/core/app/routes/orgs/org/projects/index.js
index c22022cf9..be2068f6d 100644
--- a/ui/core/app/routes/orgs/org/projects/index.js
+++ b/ui/core/app/routes/orgs/org/projects/index.js
@@ -1,3 +1,3 @@
import Route from '@ember/routing/route';
-export default class OrgsOrgProjectsIndexRoute extends Route { }
+export default class OrgsOrgProjectsIndexRoute extends Route {}
diff --git a/ui/core/app/routes/orgs/org/projects/project.js b/ui/core/app/routes/orgs/org/projects/project.js
index 8f06533bc..3171733ff 100644
--- a/ui/core/app/routes/orgs/org/projects/project.js
+++ b/ui/core/app/routes/orgs/org/projects/project.js
@@ -38,7 +38,7 @@ export default class OrgsOrgProjectsProjectRoute extends Route {
this.render('orgs/org/projects/project/_sidebar', {
into: 'orgs/org',
outlet: 'sidebar',
- model: model
+ model: model,
});
super.renderTemplate(...arguments);
}
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
index eacc28056..685266cb4 100644
--- a/ui/core/app/routes/orgs/org/projects/project/host-catalogs.js
+++ b/ui/core/app/routes/orgs/org/projects/project/host-catalogs.js
@@ -1,7 +1,6 @@
import Route from '@ember/routing/route';
export default class OrgsOrgProjectsProjectHostCatalogsRoute extends Route {
-
// =methods
/**
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
index ace30520a..47d79f7bb 100644
--- 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
@@ -3,7 +3,6 @@ import { inject as service } from '@ember/service';
import { action } from '@ember/object';
export default class OrgsOrgProjectsProjectHostCatalogsHostCatalogRoute extends Route {
-
// =services
@service notify;
@@ -63,5 +62,4 @@ export default class OrgsOrgProjectsProjectHostCatalogsHostCatalogRoute extends
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
index ffba38db4..a4ba3aa0e 100644
--- 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
@@ -1,4 +1,3 @@
import Route from '@ember/routing/route';
-export default class OrgsOrgProjectsProjectHostCatalogsHostCatalogIndexRoute extends 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
index a29543a30..b760aed44 100644
--- 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
@@ -1,4 +1,3 @@
import Route from '@ember/routing/route';
-export default class OrgsOrgProjectsProjectHostCatalogsIndexRoute extends 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
index a2f4e2bc6..c2c224e88 100644
--- 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
@@ -39,7 +39,10 @@ export default class OrgsOrgProjectsProjectHostCatalogsNewRoute extends Route {
async save(hostCatalog) {
try {
await hostCatalog.save();
- this.transitionTo('orgs.org.projects.project.host-catalogs.host-catalog', hostCatalog);
+ this.transitionTo(
+ 'orgs.org.projects.project.host-catalogs.host-catalog',
+ hostCatalog
+ );
// TODO: replace with translated strings
this.notify.success('Host catalog created.');
} catch (error) {
diff --git a/ui/core/app/routes/orgs/org/projects/project/index.js b/ui/core/app/routes/orgs/org/projects/project/index.js
index 0843242d7..0fc6b90b7 100644
--- a/ui/core/app/routes/orgs/org/projects/project/index.js
+++ b/ui/core/app/routes/orgs/org/projects/project/index.js
@@ -1,4 +1,3 @@
import Route from '@ember/routing/route';
-export default class OrgsOrgProjectsProjectIndexRoute extends 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
index 807c2aeee..972aaf816 100644
--- a/ui/core/app/routes/orgs/org/roles.js
+++ b/ui/core/app/routes/orgs/org/roles.js
@@ -10,5 +10,4 @@ export default class OrgsOrgRolesRoute extends Route {
model() {
return this.store.findAll('role');
}
-
}
diff --git a/ui/core/app/routes/orgs/org/users/index.js b/ui/core/app/routes/orgs/org/users/index.js
index b6203b0d4..b3047d27e 100644
--- a/ui/core/app/routes/orgs/org/users/index.js
+++ b/ui/core/app/routes/orgs/org/users/index.js
@@ -1,4 +1,3 @@
import Route from '@ember/routing/route';
-export default class OrgsOrgUsersIndexRoute extends Route {
-}
+export default class OrgsOrgUsersIndexRoute extends Route {}
diff --git a/ui/core/app/routes/scopes.js b/ui/core/app/routes/scopes.js
index 5fff74b2e..59fc29266 100644
--- a/ui/core/app/routes/scopes.js
+++ b/ui/core/app/routes/scopes.js
@@ -1,4 +1,3 @@
import Route from '@ember/routing/route';
-export default class ScopesRoute extends Route {
-}
+export default class ScopesRoute extends Route {}
diff --git a/ui/core/app/routes/scopes/scope.js b/ui/core/app/routes/scopes/scope.js
index 8cde487bd..ac03641c7 100644
--- a/ui/core/app/routes/scopes/scope.js
+++ b/ui/core/app/routes/scopes/scope.js
@@ -1,7 +1,6 @@
import Route from '@ember/routing/route';
export default class ScopesScopeRoute extends Route {
-
// =methods
/**
@@ -24,5 +23,4 @@ export default class ScopesScopeRoute extends Route {
return maybeExistingScope || this.store.createRecord('scope', { id });
}
}
-
}
diff --git a/ui/core/app/routes/scopes/scope/projects.js b/ui/core/app/routes/scopes/scope/projects.js
index ebc5e97e5..775dc5ad6 100644
--- a/ui/core/app/routes/scopes/scope/projects.js
+++ b/ui/core/app/routes/scopes/scope/projects.js
@@ -3,7 +3,6 @@ import { inject as service } from '@ember/service';
import { action } from '@ember/object';
export default class ScopesScopeProjectsRoute extends Route {
-
// =services
@service notify;
@@ -82,5 +81,4 @@ export default class ScopesScopeProjectsRoute extends Route {
this.notify.error(error.message, { closeAfter: null });
}
}
-
}
diff --git a/ui/core/app/routes/scopes/scope/projects/index.js b/ui/core/app/routes/scopes/scope/projects/index.js
index 294371052..d763c183c 100644
--- a/ui/core/app/routes/scopes/scope/projects/index.js
+++ b/ui/core/app/routes/scopes/scope/projects/index.js
@@ -1,4 +1,3 @@
import Route from '@ember/routing/route';
-export default class ScopesScopeProjectsIndexRoute extends Route {
-}
+export default class ScopesScopeProjectsIndexRoute extends Route {}
diff --git a/ui/core/app/routes/scopes/scope/projects/new.js b/ui/core/app/routes/scopes/scope/projects/new.js
index 1781f5269..207ca3dbc 100644
--- a/ui/core/app/routes/scopes/scope/projects/new.js
+++ b/ui/core/app/routes/scopes/scope/projects/new.js
@@ -1,7 +1,6 @@
import Route from '@ember/routing/route';
export default class ScopesScopeProjectsNewRoute extends Route {
-
// =methods
/**
@@ -12,8 +11,7 @@ export default class ScopesScopeProjectsNewRoute extends Route {
const { id } = this.modelFor('scopes.scope');
return this.store.createRecord('scope', {
type: 'project',
- scopeID: id
+ scopeID: id,
});
}
-
}
diff --git a/ui/core/app/routes/scopes/scope/projects/project.js b/ui/core/app/routes/scopes/scope/projects/project.js
index c2aee8ed3..a418f3291 100644
--- a/ui/core/app/routes/scopes/scope/projects/project.js
+++ b/ui/core/app/routes/scopes/scope/projects/project.js
@@ -1,7 +1,6 @@
import Route from '@ember/routing/route';
export default class ScopesScopeProjectsProjectRoute extends Route {
-
// =methods
/**
@@ -13,5 +12,4 @@ export default class ScopesScopeProjectsProjectRoute extends Route {
model({ project_id }) {
return this.store.findRecord('scope', project_id);
}
-
}
diff --git a/ui/core/app/routes/scopes/scope/projects/project/index.js b/ui/core/app/routes/scopes/scope/projects/project/index.js
index f5511f2e7..a004bac08 100644
--- a/ui/core/app/routes/scopes/scope/projects/project/index.js
+++ b/ui/core/app/routes/scopes/scope/projects/project/index.js
@@ -1,4 +1,3 @@
import Route from '@ember/routing/route';
-export default class ScopesScopeProjectsProjectIndexRoute extends Route {
-}
+export default class ScopesScopeProjectsProjectIndexRoute extends Route {}
diff --git a/ui/core/app/routes/scopes/scope/users.js b/ui/core/app/routes/scopes/scope/users.js
new file mode 100644
index 000000000..2720f56b1
--- /dev/null
+++ b/ui/core/app/routes/scopes/scope/users.js
@@ -0,0 +1,73 @@
+import Route from '@ember/routing/route';
+import { inject as service } from '@ember/service';
+import { action } from '@ember/object';
+
+export default class ScopesScopeUsersRoute extends Route {
+ // =services
+
+ @service intl;
+ @service notify;
+
+ // =methods
+
+ /**
+ * Load all users under current scope.
+ * @return {Promise{[UserModel]}}
+ */
+ async model() {
+ return this.store.findAll('user', this.scopeAdapterOptions());
+ }
+
+ // =actions
+ /**
+ * Rollback changes on user.
+ * @param {UserModel} user
+ */
+ @action
+ cancel(user) {
+ const { isNew } = user;
+ user.rollbackAttributes();
+ if (isNew) this.transitionTo('scopes.scope.users');
+ }
+
+ /**
+ * Save a user in current scope.
+ * @param {UserModel} user
+ * @param {Event} e
+ */
+ @action
+ async save(user) {
+ try {
+ await user.save(this.scopeAdapterOptions());
+ this.refresh();
+ this.notify.success(this.intl.t('notify.save-success'));
+ this.transitionTo('scopes.scope.users.user', user);
+ } catch (error) {
+ // TODO: replace with translated strings
+ this.notify.error(error.message, { closeAfter: null });
+ }
+ }
+
+ /**
+ * Delete user in current scope and redirect to index.
+ * @param {UserModel} user
+ */
+ @action
+ async delete(user) {
+ try {
+ await user.destroyRecord(this.scopeAdapterOptions());
+ this.refresh();
+ this.transitionTo('scopes.scope.users');
+ this.notify.success(this.intl.t('notify.delete-success'));
+ } catch (error) {
+ // TODO: replace with translated strings
+ this.notify.error(error.message, { closeAfter: null });
+ }
+ }
+
+ scopeAdapterOptions() {
+ const { id: scope_id } = this.modelFor('scopes.scope');
+ const adapterOptions = { scopeID: scope_id };
+ return { adapterOptions };
+ }
+}
diff --git a/ui/core/app/routes/scopes/scope/users/index.js b/ui/core/app/routes/scopes/scope/users/index.js
new file mode 100644
index 000000000..f59170106
--- /dev/null
+++ b/ui/core/app/routes/scopes/scope/users/index.js
@@ -0,0 +1,3 @@
+import Route from '@ember/routing/route';
+
+export default class ScopesScopeUsersIndexRoute extends Route {}
diff --git a/ui/core/app/routes/scopes/scope/users/new.js b/ui/core/app/routes/scopes/scope/users/new.js
new file mode 100644
index 000000000..9b486a48b
--- /dev/null
+++ b/ui/core/app/routes/scopes/scope/users/new.js
@@ -0,0 +1,13 @@
+import Route from '@ember/routing/route';
+
+export default class ScopesScopeUsersNewRoute extends Route {
+ // =methods
+
+ /**
+ * Creates a new unsaved user.
+ * @return {UserModel}
+ */
+ model() {
+ return this.store.createRecord('user');
+ }
+}
diff --git a/ui/core/app/routes/scopes/scope/users/user.js b/ui/core/app/routes/scopes/scope/users/user.js
new file mode 100644
index 000000000..f28ff4d56
--- /dev/null
+++ b/ui/core/app/routes/scopes/scope/users/user.js
@@ -0,0 +1,17 @@
+import Route from '@ember/routing/route';
+
+export default class ScopesScopeUsersUserRoute extends Route {
+ // =methods
+
+ /**
+ * Load a user in current scope.
+ * @param {object} params
+ * @param {string} params.user_id
+ * @return {UserModel}
+ */
+ async model({ user_id }) {
+ const { id: scope_id } = this.modelFor('scopes.scope');
+ const adapterOptions = { scopeID: scope_id };
+ return this.store.findRecord('user', user_id, { adapterOptions });
+ }
+}
diff --git a/ui/core/app/routes/scopes/scope/users/user/index.js b/ui/core/app/routes/scopes/scope/users/user/index.js
new file mode 100644
index 000000000..fde042f35
--- /dev/null
+++ b/ui/core/app/routes/scopes/scope/users/user/index.js
@@ -0,0 +1,3 @@
+import Route from '@ember/routing/route';
+
+export default class ScopesScopeUsersUserIndexRoute extends Route {}
diff --git a/ui/core/app/templates/scopes/scope.hbs b/ui/core/app/templates/scopes/scope.hbs
index 2d1a73607..ee969738f 100644
--- a/ui/core/app/templates/scopes/scope.hbs
+++ b/ui/core/app/templates/scopes/scope.hbs
@@ -8,8 +8,14 @@
+
+
+ {{t "resources.users"}}
+
+
+
{{outlet "sidebar"}}
-
+
{{!--
diff --git a/ui/core/app/templates/scopes/scope/users.hbs b/ui/core/app/templates/scopes/scope/users.hbs
new file mode 100644
index 000000000..67ccbeb9e
--- /dev/null
+++ b/ui/core/app/templates/scopes/scope/users.hbs
@@ -0,0 +1,3 @@
+{{title (t "resources.users")}}
+
+{{outlet}}
diff --git a/ui/core/app/templates/scopes/scope/users/index.hbs b/ui/core/app/templates/scopes/scope/users/index.hbs
new file mode 100644
index 000000000..1ee0f3ac2
--- /dev/null
+++ b/ui/core/app/templates/scopes/scope/users/index.hbs
@@ -0,0 +1,63 @@
+
+
+
+
+
+
+
+ {{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/scopes/scope/users/new.hbs b/ui/core/app/templates/scopes/scope/users/new.hbs
new file mode 100644
index 000000000..08e72531c
--- /dev/null
+++ b/ui/core/app/templates/scopes/scope/users/new.hbs
@@ -0,0 +1,21 @@
+{{title (t 'titles.new')}}
+
+
+
+
+
+
+
+
+ {{t "titles.new"}}
+
+
+
+
+
+
+
diff --git a/ui/core/app/templates/scopes/scope/users/user.hbs b/ui/core/app/templates/scopes/scope/users/user.hbs
new file mode 100644
index 000000000..d66e83390
--- /dev/null
+++ b/ui/core/app/templates/scopes/scope/users/user.hbs
@@ -0,0 +1,3 @@
+{{title @model.displayName}}
+
+{{outlet}}
diff --git a/ui/core/app/templates/scopes/scope/users/user/index.hbs b/ui/core/app/templates/scopes/scope/users/user/index.hbs
new file mode 100644
index 000000000..d80978336
--- /dev/null
+++ b/ui/core/app/templates/scopes/scope/users/user/index.hbs
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+
+ {{t "resources.user"}}
+
+
+
+
+
+ {{t 'titles.details'}}
+
+
+
+
+
+
+
+
+ {{t 'actions.delete'}}
+
+
+
+
diff --git a/ui/core/tests/acceptance/bread-crumbs-test.js b/ui/core/tests/acceptance/bread-crumbs-test.js
index 7c33595e9..2575f1c75 100644
--- a/ui/core/tests/acceptance/bread-crumbs-test.js
+++ b/ui/core/tests/acceptance/bread-crumbs-test.js
@@ -55,109 +55,176 @@ module('Acceptance | breadcrumbs', function (hooks) {
assert.expect(3);
await visit(projectURL);
assert.equal(currentURL(), projectURL, 'We begin on the expected page.');
- crumbPath = new URL(find('.rose-nav-breadcrumbs-link:last-child').href).pathname;
+ crumbPath = new URL(find('.rose-nav-breadcrumbs-link:last-child').href)
+ .pathname;
assert.equal(crumbPath, projectURL, 'Last crumb has expected URL.');
await click(find('.rose-nav-breadcrumbs-link:first-child'));
- assert.equal(currentURL(), projectsURL, 'After navigating via breadcrumbs, we are one level up.');
+ assert.equal(
+ currentURL(),
+ projectsURL,
+ 'After navigating via breadcrumbs, we are one level up.'
+ );
});
test('can navigate via breadcrumbs to projects from new project', async function (assert) {
assert.expect(3);
await visit(newProjectURL);
assert.equal(currentURL(), newProjectURL, 'We begin on the expected page.');
- crumbPath = new URL(find('.rose-nav-breadcrumbs-link:last-child').href).pathname;
+ crumbPath = new URL(find('.rose-nav-breadcrumbs-link:last-child').href)
+ .pathname;
assert.equal(crumbPath, newProjectURL, 'Last crumb has expected URL.');
await click(find('.rose-nav-breadcrumbs-link:first-child'));
- assert.equal(currentURL(), projectsURL, 'After navigating via breadcrumbs, we are one level up.');
+ assert.equal(
+ currentURL(),
+ projectsURL,
+ 'After navigating via breadcrumbs, we are one level up.'
+ );
});
test('can navigate via breadcrumbs to project from host catalogs', async function (assert) {
assert.expect(3);
await visit(hostCatalogsURL);
- assert.equal(currentURL(), hostCatalogsURL, 'We begin on the expected page.');
- crumbPath = new URL(find('.rose-nav-breadcrumbs-link:last-child').href).pathname;
+ assert.equal(
+ currentURL(),
+ hostCatalogsURL,
+ 'We begin on the expected page.'
+ );
+ crumbPath = new URL(find('.rose-nav-breadcrumbs-link:last-child').href)
+ .pathname;
assert.equal(crumbPath, hostCatalogsURL, 'Last crumb has expected URL.');
await click(findAll('.rose-nav-breadcrumbs-link')[1]);
- assert.equal(currentURL(), projectURL, 'After navigating via breadcrumbs, we are one level up.');
+ assert.equal(
+ currentURL(),
+ projectURL,
+ 'After navigating via breadcrumbs, we are one level up.'
+ );
});
test('can navigate via breadcrumbs to host catalogs from host catalog', async function (assert) {
assert.expect(3);
await visit(hostCatalogURL);
- assert.equal(currentURL(), hostCatalogURL, 'We begin on the expected page.');
- crumbPath = new URL(find('.rose-nav-breadcrumbs-link:last-child').href).pathname;
+ assert.equal(
+ currentURL(),
+ hostCatalogURL,
+ 'We begin on the expected page.'
+ );
+ crumbPath = new URL(find('.rose-nav-breadcrumbs-link:last-child').href)
+ .pathname;
assert.equal(crumbPath, hostCatalogURL, 'Last crumb has expected URL.');
await click(findAll('.rose-nav-breadcrumbs-link')[2]);
- assert.equal(currentURL(), hostCatalogsURL, 'After navigating via breadcrumbs, we are one level up.');
+ assert.equal(
+ currentURL(),
+ hostCatalogsURL,
+ 'After navigating via breadcrumbs, we are one level up.'
+ );
});
test('can navigate via breadcrumbs to host catalogs from new host catalog', async function (assert) {
assert.expect(3);
await visit(newHostCatalogURL);
- assert.equal(currentURL(), newHostCatalogURL, 'We begin on the expected page.');
- crumbPath = new URL(find('.rose-nav-breadcrumbs-link:last-child').href).pathname;
+ assert.equal(
+ currentURL(),
+ newHostCatalogURL,
+ 'We begin on the expected page.'
+ );
+ crumbPath = new URL(find('.rose-nav-breadcrumbs-link:last-child').href)
+ .pathname;
assert.equal(crumbPath, newHostCatalogURL, 'Last crumb has expected URL.');
await click(findAll('.rose-nav-breadcrumbs-link')[2]);
- assert.equal(currentURL(), hostCatalogsURL, 'After navigating via breadcrumbs, we are one level up.');
+ assert.equal(
+ currentURL(),
+ hostCatalogsURL,
+ 'After navigating via breadcrumbs, we are one level up.'
+ );
});
test('can navigate via breadcrumbs to roles from role', async function (assert) {
assert.expect(3);
await visit(roleURL);
assert.equal(currentURL(), roleURL, 'We begin on the expected page.');
- crumbPath = new URL(find('.rose-nav-breadcrumbs-link:last-child').href).pathname;
+ crumbPath = new URL(find('.rose-nav-breadcrumbs-link:last-child').href)
+ .pathname;
assert.equal(crumbPath, roleURL, 'Last crumb has expected URL.');
await click(find('.rose-nav-breadcrumbs-link:first-child'));
- assert.equal(currentURL(), rolesURL, 'After navigating via breadcrumbs, we are one level up.');
+ assert.equal(
+ currentURL(),
+ rolesURL,
+ 'After navigating via breadcrumbs, we are one level up.'
+ );
});
test('can navigate via breadcrumbs to roles from new role', async function (assert) {
assert.expect(3);
await visit(newRoleURL);
assert.equal(currentURL(), newRoleURL, 'We begin on the expected page.');
- crumbPath = new URL(find('.rose-nav-breadcrumbs-link:last-child').href).pathname;
+ crumbPath = new URL(find('.rose-nav-breadcrumbs-link:last-child').href)
+ .pathname;
assert.equal(crumbPath, newRoleURL, 'Last crumb has expected URL.');
await click(find('.rose-nav-breadcrumbs-link:first-child'));
- assert.equal(currentURL(), rolesURL, 'After navigating via breadcrumbs, we are one level up.');
+ assert.equal(
+ currentURL(),
+ rolesURL,
+ 'After navigating via breadcrumbs, we are one level up.'
+ );
});
test('can navigate via breadcrumbs to groups from group', async function (assert) {
assert.expect(3);
await visit(groupURL);
assert.equal(currentURL(), groupURL, 'We begin on the expected page.');
- crumbPath = new URL(find('.rose-nav-breadcrumbs-link:last-child').href).pathname;
+ crumbPath = new URL(find('.rose-nav-breadcrumbs-link:last-child').href)
+ .pathname;
assert.equal(crumbPath, groupURL, 'Last crumb has expected URL.');
await click(find('.rose-nav-breadcrumbs-link:first-child'));
- assert.equal(currentURL(), groupsURL, 'After navigating via breadcrumbs, we are one level up.');
+ assert.equal(
+ currentURL(),
+ groupsURL,
+ 'After navigating via breadcrumbs, we are one level up.'
+ );
});
test('can navigate via breadcrumbs to groups from new group', async function (assert) {
assert.expect(3);
await visit(newGroupURL);
assert.equal(currentURL(), newGroupURL, 'We begin on the expected page.');
- crumbPath = new URL(find('.rose-nav-breadcrumbs-link:last-child').href).pathname;
+ crumbPath = new URL(find('.rose-nav-breadcrumbs-link:last-child').href)
+ .pathname;
assert.equal(crumbPath, newGroupURL, 'Last crumb has expected URL.');
await click(find('.rose-nav-breadcrumbs-link:first-child'));
- assert.equal(currentURL(), groupsURL, 'After navigating via breadcrumbs, we are one level up.');
+ assert.equal(
+ currentURL(),
+ groupsURL,
+ 'After navigating via breadcrumbs, we are one level up.'
+ );
});
test('can navigate via breadcrumbs to users from user', async function (assert) {
assert.expect(3);
await visit(userURL);
assert.equal(currentURL(), userURL, 'We begin on the expected page.');
- crumbPath = new URL(find('.rose-nav-breadcrumbs-link:last-child').href).pathname;
+ crumbPath = new URL(find('.rose-nav-breadcrumbs-link:last-child').href)
+ .pathname;
assert.equal(crumbPath, userURL, 'Last crumb has expected URL.');
await click(find('.rose-nav-breadcrumbs-link:first-child'));
- assert.equal(currentURL(), usersURL, 'After navigating via breadcrumbs, we are one level up.');
+ assert.equal(
+ currentURL(),
+ usersURL,
+ 'After navigating via breadcrumbs, we are one level up.'
+ );
});
test('can navigate via breadcrumbs to users from new user', async function (assert) {
assert.expect(3);
await visit(newUserURL);
assert.equal(currentURL(), newUserURL, 'We begin on th expected page.');
- crumbPath = new URL(find('.rose-nav-breadcrumbs-link:last-child').href).pathname;
+ crumbPath = new URL(find('.rose-nav-breadcrumbs-link:last-child').href)
+ .pathname;
assert.equal(crumbPath, newUserURL, 'Last crumb has expected URL.');
await click(find('.rose-nav-breadcrumbs-link:first-child'));
- assert.equal(currentURL(), usersURL, 'After navigating via breadcrumbs, we are one level up.');
+ assert.equal(
+ currentURL(),
+ usersURL,
+ 'After navigating via breadcrumbs, we are one level up.'
+ );
});
});
diff --git a/ui/core/tests/acceptance/groups-test.js b/ui/core/tests/acceptance/groups-test.js
index 7f3f2ec69..5564f9d62 100644
--- a/ui/core/tests/acceptance/groups-test.js
+++ b/ui/core/tests/acceptance/groups-test.js
@@ -5,8 +5,7 @@ import setupMirage from 'ember-cli-mirage/test-support/setup-mirage';
import a11yAudit from 'ember-a11y-testing/test-support/audit';
import { Response } from 'miragejs';
-
-module('Acceptance | groups', function(hooks) {
+module('Acceptance | groups', function (hooks) {
setupApplicationTest(hooks);
setupMirage(hooks);
@@ -80,7 +79,7 @@ module('Acceptance | groups', function(hooks) {
test('can save changes to an existing group', async function (assert) {
assert.expect(2);
- this.server.createList('group', 1, {name: 'Admin group'});
+ this.server.createList('group', 1, { name: 'Admin group' });
await visit('/orgs/1/groups/1');
await fillIn('[name="name"]', 'Updated admin group');
await click('.rose-form-actions [type="submit"]');
@@ -90,14 +89,14 @@ module('Acceptance | groups', function(hooks) {
test('can cancel changes to an existing group', async function (assert) {
assert.expect(1);
- this.server.createList('group', 1, {name: 'Admin group'});
+ this.server.createList('group', 1, { name: 'Admin group' });
await visit('/orgs/1/groups/1');
await fillIn('[name="name"]', 'Updated admin group');
await click('.rose-form-actions [type="button"]');
assert.equal(find('[name="name"]').value, 'Admin group');
});
- test('can delete a group', async function(assert) {
+ test('can delete a group', async function (assert) {
assert.expect(2);
this.server.createList('group', 1);
assert.equal(this.server.db.groups.length, 1);
diff --git a/ui/core/tests/acceptance/host-catalogs-test.js b/ui/core/tests/acceptance/host-catalogs-test.js
index 4be43309f..a2684e694 100644
--- a/ui/core/tests/acceptance/host-catalogs-test.js
+++ b/ui/core/tests/acceptance/host-catalogs-test.js
@@ -5,7 +5,7 @@ import setupMirage from 'ember-cli-mirage/test-support/setup-mirage';
import a11yAudit from 'ember-a11y-testing/test-support/audit';
import { Response } from 'miragejs';
-module('Acceptance | host catalogs', function(hooks) {
+module('Acceptance | host catalogs', function (hooks) {
setupApplicationTest(hooks);
setupMirage(hooks);
@@ -22,7 +22,7 @@ module('Acceptance | host catalogs', function(hooks) {
assert.equal(currentURL(), '/orgs/1/projects/1/host-catalogs');
});
- test('can navigate to host catalog form', async function(assert) {
+ test('can navigate to host catalog form', async function (assert) {
assert.expect(1);
this.server.createList('project', 1);
this.server.createList('host-catalog', 1);
@@ -32,7 +32,7 @@ module('Acceptance | host catalogs', function(hooks) {
assert.equal(currentURL(), '/orgs/1/projects/1/host-catalogs/1');
});
- test('can delete host catalog', async function(assert) {
+ test('can delete host catalog', async function (assert) {
assert.expect(2);
this.server.createList('project', 1);
this.server.createList('host-catalog', 1);
@@ -42,7 +42,7 @@ module('Acceptance | host catalogs', function(hooks) {
assert.equal(this.server.db.hostCatalogs.length, 0);
});
- test('can update host catalog and save changes', async function(assert) {
+ test('can update host catalog and save changes', async function (assert) {
assert.expect(1);
this.server.createList('project', 1);
this.server.createList('host-catalog', 1);
@@ -52,7 +52,7 @@ module('Acceptance | host catalogs', function(hooks) {
assert.equal(this.server.db.hostCatalogs[0].name, 'Test Name');
});
- test('can update host catalog and cancel changes', async function(assert) {
+ test('can update host catalog and cancel changes', async function (assert) {
assert.expect(1);
this.server.createList('project', 1);
this.server.createList('host-catalog', 1);
@@ -62,7 +62,7 @@ module('Acceptance | host catalogs', function(hooks) {
assert.notEqual(this.server.db.hostCatalogs[0].name, 'Test Name');
});
- test('can create host catalog and save changes', async function(assert) {
+ test('can create host catalog and save changes', async function (assert) {
assert.expect(2);
this.server.createList('project', 1);
await visit('/orgs/1/projects/1/host-catalogs/new');
@@ -72,7 +72,7 @@ module('Acceptance | host catalogs', function(hooks) {
assert.equal(currentURL(), '/orgs/1/projects/1/host-catalogs/1');
});
- test('can create host catalog and cancel changes', async function(assert) {
+ test('can create host catalog and cancel changes', async function (assert) {
assert.expect(2);
this.server.createList('project', 1);
await visit('/orgs/1/projects/1/host-catalogs/new');
@@ -86,17 +86,20 @@ module('Acceptance | host catalogs', function(hooks) {
assert.expect(1);
this.server.createList('project', 1);
this.server.createList('host-catalog', 1);
- this.server.patch('/orgs/:org_id/projects/:project_id/host-catalogs/:id', () => {
- return new Response(
- 490,
- {},
- {
- status: 490,
- code: 'error',
- message: 'Oops.',
- }
- );
- });
+ this.server.patch(
+ '/orgs/:org_id/projects/:project_id/host-catalogs/:id',
+ () => {
+ return new Response(
+ 490,
+ {},
+ {
+ status: 490,
+ code: 'error',
+ message: 'Oops.',
+ }
+ );
+ }
+ );
await visit('/orgs/1/projects/1/host-catalogs/1');
await fillIn('[name="name"]', 'random string');
await click('form [type="submit"]');
@@ -112,17 +115,20 @@ module('Acceptance | host catalogs', function(hooks) {
assert.expect(1);
this.server.createList('project', 1);
this.server.createList('host-catalog', 1);
- this.server.del('/orgs/:org_id/projects/:project_id/host-catalogs/:id', () => {
- return new Response(
- 490,
- {},
- {
- status: 490,
- code: 'error',
- message: 'Oops.',
- }
- );
- });
+ this.server.del(
+ '/orgs/:org_id/projects/:project_id/host-catalogs/:id',
+ () => {
+ return new Response(
+ 490,
+ {},
+ {
+ status: 490,
+ code: 'error',
+ message: 'Oops.',
+ }
+ );
+ }
+ );
await visit('/orgs/1/projects/1/host-catalogs/1');
await click('.rose-button-warning');
await a11yAudit();
@@ -175,25 +181,28 @@ module('Acceptance | host catalogs', function(hooks) {
assert.expect(2);
this.server.createList('project', 1);
this.server.createList('host-catalog', 1);
- this.server.patch('/orgs/:org_id/projects/:project_id/host-catalogs/:id', () => {
- return new Response(
- 400,
- {},
- {
- status: 400,
- code: 'invalid_argument',
- message: 'The request was invalid.',
- details: {
- fields: [
- {
- name: 'name',
- message: 'Name is required.',
- },
- ],
- },
- }
- );
- });
+ this.server.patch(
+ '/orgs/:org_id/projects/:project_id/host-catalogs/:id',
+ () => {
+ return new Response(
+ 400,
+ {},
+ {
+ status: 400,
+ code: 'invalid_argument',
+ message: 'The request was invalid.',
+ details: {
+ fields: [
+ {
+ name: 'name',
+ message: 'Name is required.',
+ },
+ ],
+ },
+ }
+ );
+ }
+ );
await visit('/orgs/1/projects/1/host-catalogs/1');
await fillIn('[name="name"]', 'random string');
await click('form [type="submit"]');
@@ -209,5 +218,4 @@ module('Acceptance | host catalogs', function(hooks) {
'Displays field-level errors.'
);
});
-
});
diff --git a/ui/core/tests/acceptance/projects-test.js b/ui/core/tests/acceptance/projects-test.js
index 57ba7c17e..bfa87857c 100644
--- a/ui/core/tests/acceptance/projects-test.js
+++ b/ui/core/tests/acceptance/projects-test.js
@@ -20,9 +20,11 @@ module('Acceptance | projects', function (hooks) {
let initialProjectScopesCount;
hooks.beforeEach(function () {
- org = this.server.create('scope', {type: 'org'}, 'withChildren');
- getProjectScopesCount = () => this.server.schema.scopes.where({type: 'project'}).length;
- getFirstProjectScope = () => this.server.schema.scopes.where({type: 'project'}).models[0];
+ org = this.server.create('scope', { type: 'org' }, 'withChildren');
+ getProjectScopesCount = () =>
+ this.server.schema.scopes.where({ type: 'project' }).length;
+ getFirstProjectScope = () =>
+ this.server.schema.scopes.where({ type: 'project' }).models[0];
initialProjectScopesCount = getProjectScopesCount();
orgID = org.id;
projectsURL = `/scopes/${orgID}/projects`;
@@ -44,7 +46,11 @@ module('Acceptance | projects', function (hooks) {
assert.notEqual(wrongProjectsURL, projectsURL);
await visit(wrongProjectsURL);
await a11yAudit();
- assert.equal(currentURL(), projectsURL, 'Wrong projects path was redirected to correct path.');
+ assert.equal(
+ currentURL(),
+ projectsURL,
+ 'Wrong projects path was redirected to correct path.'
+ );
});
test('can create new projects', async function (assert) {
@@ -119,7 +125,7 @@ module('Acceptance | projects', function (hooks) {
assert.equal(find('[name="name"]').value, existingProject.name);
});
- test('can delete project', async function(assert) {
+ test('can delete project', async function (assert) {
assert.expect(1);
await visit(existingProjectURL);
await click('.rose-button-warning');
diff --git a/ui/core/tests/acceptance/roles-test.js b/ui/core/tests/acceptance/roles-test.js
index 976ba47b7..038d367ae 100644
--- a/ui/core/tests/acceptance/roles-test.js
+++ b/ui/core/tests/acceptance/roles-test.js
@@ -79,7 +79,7 @@ module('Acceptance | roles', function (hooks) {
test('can save changes to an existing role', async function (assert) {
assert.expect(2);
- this.server.createList('role', 1, {name: 'Admin role'});
+ this.server.createList('role', 1, { name: 'Admin role' });
await visit('/orgs/1/roles/1');
await fillIn('[name="name"]', 'Updated admin role');
await click('.rose-form-actions [type="submit"]');
@@ -89,14 +89,14 @@ module('Acceptance | roles', function (hooks) {
test('can cancel changes to an existing role', async function (assert) {
assert.expect(1);
- this.server.createList('role', 1, {name: 'Admin role'});
+ this.server.createList('role', 1, { name: 'Admin role' });
await visit('/orgs/1/roles/1');
await fillIn('[name="name"]', 'Updated admin role');
await click('.rose-form-actions [type="button"]');
assert.equal(find('[name="name"]').value, 'Admin role');
});
- test('can delete a role', async function(assert) {
+ test('can delete a role', async function (assert) {
assert.expect(2);
this.server.createList('role', 1);
assert.equal(this.server.db.roles.length, 1);
diff --git a/ui/core/tests/acceptance/users-test.js b/ui/core/tests/acceptance/users-test.js
index f1160c7f3..af68f19bc 100644
--- a/ui/core/tests/acceptance/users-test.js
+++ b/ui/core/tests/acceptance/users-test.js
@@ -5,7 +5,7 @@ import setupMirage from 'ember-cli-mirage/test-support/setup-mirage';
import a11yAudit from 'ember-a11y-testing/test-support/audit';
import { Response } from 'miragejs';
-module('Acceptance | users', function(hooks) {
+module('Acceptance | users', function (hooks) {
setupApplicationTest(hooks);
setupMirage(hooks);
@@ -80,7 +80,7 @@ module('Acceptance | users', function(hooks) {
test('can save changes to an existing user', async function (assert) {
assert.expect(2);
- this.server.createList('user', 1, {name: 'Test User'});
+ this.server.createList('user', 1, { name: 'Test User' });
await visit('/orgs/1/users/1');
await fillIn('[name="name"]', 'Updated user name');
await click('.rose-form-actions [type="submit"]');
@@ -90,14 +90,14 @@ module('Acceptance | users', function(hooks) {
test('can cancel changes to an existing user', async function (assert) {
assert.expect(1);
- this.server.createList('user', 1, {name: 'Test User'});
+ this.server.createList('user', 1, { name: 'Test User' });
await visit('/orgs/1/users/1');
await fillIn('[name="name"]', 'Unsaved user name');
await click('.rose-form-actions [type="button"]');
assert.equal(find('[name="name"]').value, 'Test User');
});
- test('can delete an user', async function(assert) {
+ test('can delete an user', async function (assert) {
assert.expect(2);
this.server.createList('user', 1);
assert.equal(this.server.db.users.length, 1);
diff --git a/ui/core/tests/integration/components/bread-crumbs-test.js b/ui/core/tests/integration/components/bread-crumbs-test.js
index a6f3579c8..2e59085cb 100644
--- a/ui/core/tests/integration/components/bread-crumbs-test.js
+++ b/ui/core/tests/integration/components/bread-crumbs-test.js
@@ -3,11 +3,11 @@ import { setupRenderingTest } from 'ember-qunit';
import { render, find, findAll } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
-module('Integration | Component | bread-crumbs', function(hooks) {
+module('Integration | Component | bread-crumbs', function (hooks) {
setupRenderingTest(hooks);
- test('it renders', async function(assert) {
- this.set('breadCrumbs', [{label: 'Level 1'}]);
+ test('it renders', async function (assert) {
+ this.set('breadCrumbs', [{ label: 'Level 1' }]);
await render(hbs``);
// Default index route
@@ -15,28 +15,34 @@ module('Integration | Component | bread-crumbs', function(hooks) {
assert.equal(find('.rose-nav-breadcrumbs').textContent.trim(), 'Level 1');
});
- test('it renders with model', async function(assert) {
+ test('it renders with model', async function (assert) {
let store = this.owner.lookup('service:store');
- let project = store.createRecord('project', {id: '1234'});
+ let project = store.createRecord('project', { id: '1234' });
- this.set('breadCrumbs', [{
- label: 'Level 2',
- path: 'orgs.org.projects.project',
- model: project
- }]);
+ this.set('breadCrumbs', [
+ {
+ label: 'Level 2',
+ path: 'orgs.org.projects.project',
+ model: project,
+ },
+ ]);
await render(hbs``);
assert.equal(find('.rose-nav-breadcrumbs').textContent.trim(), 'Level 2');
});
- test('it renders multiple breadCrumbs', async function(assert) {
- this.set('breadCrumbs', [{
- label: 'Level 1'
- },{
- label: 'Level 2'
- }, {
- label: 'Level 3'
- }]);
+ test('it renders multiple breadCrumbs', async function (assert) {
+ this.set('breadCrumbs', [
+ {
+ label: 'Level 1',
+ },
+ {
+ label: 'Level 2',
+ },
+ {
+ label: 'Level 3',
+ },
+ ]);
await render(hbs``);
assert.equal(findAll('a').length, 3);
diff --git a/ui/core/tests/integration/components/form/host-catalog-test.js b/ui/core/tests/integration/components/form/host-catalog-test.js
index 0e3b51865..20dbd545f 100644
--- a/ui/core/tests/integration/components/form/host-catalog-test.js
+++ b/ui/core/tests/integration/components/form/host-catalog-test.js
@@ -3,10 +3,10 @@ import { setupRenderingTest } from 'ember-qunit';
import { render, find } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
-module('Integration | Component | form/host-catalog', function(hooks) {
+module('Integration | Component | form/host-catalog', function (hooks) {
setupRenderingTest(hooks);
- test('it renders', async function(assert) {
+ test('it renders', async function (assert) {
// Set any properties with this.set('myProperty', 'value');
// Handle any actions with this.set('myAction', function(val) { ... });
this.submit = () => {};
diff --git a/ui/core/tests/unit/controllers/orgs/org/groups-test.js b/ui/core/tests/unit/controllers/orgs/org/groups-test.js
index 0ca58eed0..338abe601 100644
--- a/ui/core/tests/unit/controllers/orgs/org/groups-test.js
+++ b/ui/core/tests/unit/controllers/orgs/org/groups-test.js
@@ -1,11 +1,11 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Controller | orgs/org/groups', function(hooks) {
+module('Unit | Controller | orgs/org/groups', function (hooks) {
setupTest(hooks);
// Replace this with your real tests.
- test('it exists', function(assert) {
+ 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
index 49cf5b3a6..c49531dfb 100644
--- a/ui/core/tests/unit/controllers/orgs/org/groups/group-test.js
+++ b/ui/core/tests/unit/controllers/orgs/org/groups/group-test.js
@@ -1,11 +1,11 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Controller | orgs/org/groups/group', function(hooks) {
+module('Unit | Controller | orgs/org/groups/group', function (hooks) {
setupTest(hooks);
// Replace this with your real tests.
- test('it exists', function(assert) {
+ 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
index ef02542c9..a85f11078 100644
--- a/ui/core/tests/unit/controllers/orgs/org/groups/new-test.js
+++ b/ui/core/tests/unit/controllers/orgs/org/groups/new-test.js
@@ -1,11 +1,11 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Controller | orgs/org/groups/new', function(hooks) {
+module('Unit | Controller | orgs/org/groups/new', function (hooks) {
setupTest(hooks);
// Replace this with your real tests.
- test('it exists', function(assert) {
+ 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
index 6176a173c..c4d200e50 100644
--- a/ui/core/tests/unit/controllers/orgs/org/projects-test.js
+++ b/ui/core/tests/unit/controllers/orgs/org/projects-test.js
@@ -1,11 +1,11 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Controller | orgs/org/projects', function(hooks) {
+module('Unit | Controller | orgs/org/projects', function (hooks) {
setupTest(hooks);
// Replace this with your real tests.
- test('it exists', function(assert) {
+ 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
index 9e3731313..055c60a9f 100644
--- a/ui/core/tests/unit/controllers/orgs/org/projects/new-test.js
+++ b/ui/core/tests/unit/controllers/orgs/org/projects/new-test.js
@@ -1,11 +1,11 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Controller | orgs/org/projects/new', function(hooks) {
+module('Unit | Controller | orgs/org/projects/new', function (hooks) {
setupTest(hooks);
// Replace this with your real tests.
- test('it exists', function(assert) {
+ 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
index 36a2c2482..067429ee5 100644
--- a/ui/core/tests/unit/controllers/orgs/org/projects/project-test.js
+++ b/ui/core/tests/unit/controllers/orgs/org/projects/project-test.js
@@ -1,11 +1,11 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Controller | orgs/org/projects/project', function(hooks) {
+module('Unit | Controller | orgs/org/projects/project', function (hooks) {
setupTest(hooks);
// Replace this with your real tests.
- test('it exists', function(assert) {
+ 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
index 808f14138..6127a3173 100644
--- 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
@@ -1,12 +1,16 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Controller | orgs/org/projects/project/host-catalogs', function(hooks) {
+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');
+ 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
index 4efc4b85c..38b3a9c9d 100644
--- 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
@@ -1,12 +1,17 @@
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);
+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);
- });
-});
+ // 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
index 1981e1857..ee0f326a1 100644
--- 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
@@ -1,12 +1,17 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Controller | orgs/org/projects/project/host-catalogs/new', function(hooks) {
- setupTest(hooks);
+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);
- });
-});
+ // 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
index 816459cd3..12c57a108 100644
--- a/ui/core/tests/unit/controllers/orgs/org/roles-test.js
+++ b/ui/core/tests/unit/controllers/orgs/org/roles-test.js
@@ -1,10 +1,10 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Controller | orgs/org/roles', function(hooks) {
+module('Unit | Controller | orgs/org/roles', function (hooks) {
setupTest(hooks);
- test('it exists', function(assert) {
+ 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
index 8d948ae06..c9e4cfcc8 100644
--- a/ui/core/tests/unit/controllers/orgs/org/roles/new-test.js
+++ b/ui/core/tests/unit/controllers/orgs/org/roles/new-test.js
@@ -1,10 +1,10 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Controller | orgs/org/roles/new', function(hooks) {
+module('Unit | Controller | orgs/org/roles/new', function (hooks) {
setupTest(hooks);
- test('it exists', function(assert) {
+ 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
index cd56c941f..515ae8420 100644
--- a/ui/core/tests/unit/controllers/orgs/org/roles/role-test.js
+++ b/ui/core/tests/unit/controllers/orgs/org/roles/role-test.js
@@ -1,10 +1,10 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Controller | orgs/org/roles/role', function(hooks) {
+module('Unit | Controller | orgs/org/roles/role', function (hooks) {
setupTest(hooks);
- test('it exists', function(assert) {
+ 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
index c5be2fb52..5f0c57d8c 100644
--- a/ui/core/tests/unit/controllers/orgs/org/users-test.js
+++ b/ui/core/tests/unit/controllers/orgs/org/users-test.js
@@ -1,11 +1,11 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Controller | orgs/org/users', function(hooks) {
+module('Unit | Controller | orgs/org/users', function (hooks) {
setupTest(hooks);
// Replace this with your real tests.
- test('it exists', function(assert) {
+ 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
index e6925b4d7..80a7e1890 100644
--- a/ui/core/tests/unit/controllers/orgs/org/users/new-test.js
+++ b/ui/core/tests/unit/controllers/orgs/org/users/new-test.js
@@ -1,11 +1,11 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Controller | orgs/org/users/new', function(hooks) {
+module('Unit | Controller | orgs/org/users/new', function (hooks) {
setupTest(hooks);
// Replace this with your real tests.
- test('it exists', function(assert) {
+ 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
index f35f620fa..e16d4ab6b 100644
--- a/ui/core/tests/unit/controllers/orgs/org/users/user-test.js
+++ b/ui/core/tests/unit/controllers/orgs/org/users/user-test.js
@@ -1,11 +1,11 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Controller | orgs/org/users/user', function(hooks) {
+module('Unit | Controller | orgs/org/users/user', function (hooks) {
setupTest(hooks);
// Replace this with your real tests.
- test('it exists', function(assert) {
+ 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-test.js b/ui/core/tests/unit/controllers/scopes/scope/projects-test.js
index 21125f233..052687cd2 100644
--- a/ui/core/tests/unit/controllers/scopes/scope/projects-test.js
+++ b/ui/core/tests/unit/controllers/scopes/scope/projects-test.js
@@ -1,11 +1,11 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Controller | scopes/scope/projects', function(hooks) {
+module('Unit | Controller | scopes/scope/projects', function (hooks) {
setupTest(hooks);
// Replace this with your real tests.
- test('it exists', function(assert) {
+ test('it exists', function (assert) {
let controller = this.owner.lookup('controller:scopes/scope/projects');
assert.ok(controller);
});
diff --git a/ui/core/tests/unit/controllers/scopes/scope/projects/new-test.js b/ui/core/tests/unit/controllers/scopes/scope/projects/new-test.js
index eeb857274..8da2a6f6d 100644
--- a/ui/core/tests/unit/controllers/scopes/scope/projects/new-test.js
+++ b/ui/core/tests/unit/controllers/scopes/scope/projects/new-test.js
@@ -1,11 +1,11 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Controller | scopes/scope/projects/new', function(hooks) {
+module('Unit | Controller | scopes/scope/projects/new', function (hooks) {
setupTest(hooks);
// Replace this with your real tests.
- test('it exists', function(assert) {
+ test('it exists', function (assert) {
let controller = this.owner.lookup('controller:scopes/scope/projects/new');
assert.ok(controller);
});
diff --git a/ui/core/tests/unit/controllers/scopes/scope/projects/project-test.js b/ui/core/tests/unit/controllers/scopes/scope/projects/project-test.js
index 26a255430..ee20af93d 100644
--- a/ui/core/tests/unit/controllers/scopes/scope/projects/project-test.js
+++ b/ui/core/tests/unit/controllers/scopes/scope/projects/project-test.js
@@ -1,12 +1,14 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Controller | scopes/scope/projects/project', function(hooks) {
+module('Unit | Controller | scopes/scope/projects/project', 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');
+ test('it exists', function (assert) {
+ let controller = this.owner.lookup(
+ 'controller:scopes/scope/projects/project'
+ );
assert.ok(controller);
});
});
diff --git a/ui/core/tests/unit/routes/orgs/org/groups-test.js b/ui/core/tests/unit/routes/orgs/org/groups-test.js
index a56f69e76..465afedcd 100644
--- a/ui/core/tests/unit/routes/orgs/org/groups-test.js
+++ b/ui/core/tests/unit/routes/orgs/org/groups-test.js
@@ -1,10 +1,10 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Route | orgs/org/groups', function(hooks) {
+module('Unit | Route | orgs/org/groups', function (hooks) {
setupTest(hooks);
- test('it exists', function(assert) {
+ 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
index cec8245a8..ca6107bc1 100644
--- a/ui/core/tests/unit/routes/orgs/org/groups/group-test.js
+++ b/ui/core/tests/unit/routes/orgs/org/groups/group-test.js
@@ -1,10 +1,10 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Route | orgs/org/groups/group', function(hooks) {
+module('Unit | Route | orgs/org/groups/group', function (hooks) {
setupTest(hooks);
- test('it exists', function(assert) {
+ 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
index 2496b24bf..e0c5c06d4 100644
--- 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
@@ -1,10 +1,10 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Route | orgs/org/groups/group/index', function(hooks) {
+module('Unit | Route | orgs/org/groups/group/index', function (hooks) {
setupTest(hooks);
- test('it exists', function(assert) {
+ 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
index c2f9135eb..60c10cfef 100644
--- a/ui/core/tests/unit/routes/orgs/org/groups/index-test.js
+++ b/ui/core/tests/unit/routes/orgs/org/groups/index-test.js
@@ -1,10 +1,10 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Route | orgs/org/groups/index', function(hooks) {
+module('Unit | Route | orgs/org/groups/index', function (hooks) {
setupTest(hooks);
- test('it exists', function(assert) {
+ 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
index 09f10c831..e119c3d53 100644
--- a/ui/core/tests/unit/routes/orgs/org/groups/new-test.js
+++ b/ui/core/tests/unit/routes/orgs/org/groups/new-test.js
@@ -1,10 +1,10 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Route | orgs/org/groups/new', function(hooks) {
+module('Unit | Route | orgs/org/groups/new', function (hooks) {
setupTest(hooks);
- test('it exists', function(assert) {
+ 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/project/host-catalogs-test.js b/ui/core/tests/unit/routes/orgs/org/projects/project/host-catalogs-test.js
index f7c144429..761c0bfa8 100644
--- 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
@@ -1,11 +1,15 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Route | orgs/org/projects/project/host-catalogs', function(hooks) {
+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');
+ 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
index 6313bc8f0..5dd167f8a 100644
--- 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
@@ -1,11 +1,16 @@
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);
+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);
- });
-});
+ 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
index a19bd70e9..1472a5b92 100644
--- 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
@@ -1,11 +1,16 @@
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);
+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);
- });
-});
+ 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
index d8a8d036e..0d7a5e317 100644
--- 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
@@ -1,11 +1,16 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Route | orgs/org/projects/project/host-catalogs/index', function(hooks) {
- setupTest(hooks);
+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);
- });
-});
+ 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
index 2529656b7..8b441cfd6 100644
--- 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
@@ -1,11 +1,15 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Route | orgs/org/projects/project/host-catalogs/new', function(hooks) {
+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');
+ 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
index bc1d36103..08f446f6f 100644
--- 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
@@ -1,10 +1,10 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Route | orgs/org/projects/project/index', function(hooks) {
+module('Unit | Route | orgs/org/projects/project/index', function (hooks) {
setupTest(hooks);
- test('it exists', function(assert) {
+ 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
index 38bc3acb2..7cd35dab6 100644
--- a/ui/core/tests/unit/routes/orgs/org/roles-test.js
+++ b/ui/core/tests/unit/routes/orgs/org/roles-test.js
@@ -1,10 +1,10 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Route | orgs/org/roles', function(hooks) {
+module('Unit | Route | orgs/org/roles', function (hooks) {
setupTest(hooks);
- test('it exists', function(assert) {
+ 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
index 12f247adb..979d26062 100644
--- a/ui/core/tests/unit/routes/orgs/org/roles/index-test.js
+++ b/ui/core/tests/unit/routes/orgs/org/roles/index-test.js
@@ -1,10 +1,10 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Route | orgs/org/roles/index', function(hooks) {
+module('Unit | Route | orgs/org/roles/index', function (hooks) {
setupTest(hooks);
- test('it exists', function(assert) {
+ 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
index d613eb34a..59e26a949 100644
--- a/ui/core/tests/unit/routes/orgs/org/roles/new-test.js
+++ b/ui/core/tests/unit/routes/orgs/org/roles/new-test.js
@@ -1,10 +1,10 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Route | orgs/org/roles/new', function(hooks) {
+module('Unit | Route | orgs/org/roles/new', function (hooks) {
setupTest(hooks);
- test('it exists', function(assert) {
+ 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
index 149fd657e..207a79ea2 100644
--- a/ui/core/tests/unit/routes/orgs/org/roles/role-test.js
+++ b/ui/core/tests/unit/routes/orgs/org/roles/role-test.js
@@ -1,10 +1,10 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Route | orgs/org/roles/role', function(hooks) {
+module('Unit | Route | orgs/org/roles/role', function (hooks) {
setupTest(hooks);
- test('it exists', function(assert) {
+ 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
index 93956225b..b4c420690 100644
--- a/ui/core/tests/unit/routes/orgs/org/users-test.js
+++ b/ui/core/tests/unit/routes/orgs/org/users-test.js
@@ -1,10 +1,10 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Route | orgs/org/users', function(hooks) {
+module('Unit | Route | orgs/org/users', function (hooks) {
setupTest(hooks);
- test('it exists', function(assert) {
+ 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
index cd215662e..21310f7a1 100644
--- a/ui/core/tests/unit/routes/orgs/org/users/index-test.js
+++ b/ui/core/tests/unit/routes/orgs/org/users/index-test.js
@@ -1,10 +1,10 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Route | orgs/org/users/index', function(hooks) {
+module('Unit | Route | orgs/org/users/index', function (hooks) {
setupTest(hooks);
- test('it exists', function(assert) {
+ 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
index 1aef05bab..395979cad 100644
--- a/ui/core/tests/unit/routes/orgs/org/users/new-test.js
+++ b/ui/core/tests/unit/routes/orgs/org/users/new-test.js
@@ -1,10 +1,10 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Route | orgs/org/users/new', function(hooks) {
+module('Unit | Route | orgs/org/users/new', function (hooks) {
setupTest(hooks);
- test('it exists', function(assert) {
+ 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
index 4bd6f26a2..48a657875 100644
--- a/ui/core/tests/unit/routes/orgs/org/users/user-test.js
+++ b/ui/core/tests/unit/routes/orgs/org/users/user-test.js
@@ -1,10 +1,10 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Route | orgs/org/users/user', function(hooks) {
+module('Unit | Route | orgs/org/users/user', function (hooks) {
setupTest(hooks);
- test('it exists', function(assert) {
+ test('it exists', function (assert) {
let route = this.owner.lookup('route:orgs/org/users/user');
assert.ok(route);
});
diff --git a/ui/core/tests/unit/routes/scopes-test.js b/ui/core/tests/unit/routes/scopes-test.js
index 06a5af092..914469429 100644
--- a/ui/core/tests/unit/routes/scopes-test.js
+++ b/ui/core/tests/unit/routes/scopes-test.js
@@ -1,10 +1,10 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Route | scopes', function(hooks) {
+module('Unit | Route | scopes', function (hooks) {
setupTest(hooks);
- test('it exists', function(assert) {
+ test('it exists', function (assert) {
let route = this.owner.lookup('route:scopes');
assert.ok(route);
});
diff --git a/ui/core/tests/unit/routes/scopes/scope-test.js b/ui/core/tests/unit/routes/scopes/scope-test.js
index 62c97d9f0..3cdcf409a 100644
--- a/ui/core/tests/unit/routes/scopes/scope-test.js
+++ b/ui/core/tests/unit/routes/scopes/scope-test.js
@@ -1,10 +1,10 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Route | scopes/scope', function(hooks) {
+module('Unit | Route | scopes/scope', function (hooks) {
setupTest(hooks);
- test('it exists', function(assert) {
+ test('it exists', function (assert) {
let route = this.owner.lookup('route:scopes/scope');
assert.ok(route);
});
diff --git a/ui/core/tests/unit/routes/scopes/scope/projects-test.js b/ui/core/tests/unit/routes/scopes/scope/projects-test.js
index 4a8dde55f..127213dac 100644
--- a/ui/core/tests/unit/routes/scopes/scope/projects-test.js
+++ b/ui/core/tests/unit/routes/scopes/scope/projects-test.js
@@ -1,10 +1,10 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Route | scopes/scope/projects', function(hooks) {
+module('Unit | Route | scopes/scope/projects', function (hooks) {
setupTest(hooks);
- test('it exists', function(assert) {
+ test('it exists', function (assert) {
let route = this.owner.lookup('route:scopes/scope/projects');
assert.ok(route);
});
diff --git a/ui/core/tests/unit/routes/scopes/scope/projects/index-test.js b/ui/core/tests/unit/routes/scopes/scope/projects/index-test.js
index 71c813a35..74a15f224 100644
--- a/ui/core/tests/unit/routes/scopes/scope/projects/index-test.js
+++ b/ui/core/tests/unit/routes/scopes/scope/projects/index-test.js
@@ -1,10 +1,10 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Route | scopes/scope/projects/index', function(hooks) {
+module('Unit | Route | scopes/scope/projects/index', function (hooks) {
setupTest(hooks);
- test('it exists', function(assert) {
+ test('it exists', function (assert) {
let route = this.owner.lookup('route:scopes/scope/projects/index');
assert.ok(route);
});
diff --git a/ui/core/tests/unit/routes/scopes/scope/projects/new-test.js b/ui/core/tests/unit/routes/scopes/scope/projects/new-test.js
index 6d22e1fa7..8c28e87b5 100644
--- a/ui/core/tests/unit/routes/scopes/scope/projects/new-test.js
+++ b/ui/core/tests/unit/routes/scopes/scope/projects/new-test.js
@@ -1,10 +1,10 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Route | scopes/scope/projects/new', function(hooks) {
+module('Unit | Route | scopes/scope/projects/new', function (hooks) {
setupTest(hooks);
- test('it exists', function(assert) {
+ test('it exists', function (assert) {
let route = this.owner.lookup('route:scopes/scope/projects/new');
assert.ok(route);
});
diff --git a/ui/core/tests/unit/routes/scopes/scope/projects/project-test.js b/ui/core/tests/unit/routes/scopes/scope/projects/project-test.js
index 54555a07c..ed0ffe51a 100644
--- a/ui/core/tests/unit/routes/scopes/scope/projects/project-test.js
+++ b/ui/core/tests/unit/routes/scopes/scope/projects/project-test.js
@@ -1,10 +1,10 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Route | scopes/scope/projects/project', function(hooks) {
+module('Unit | Route | scopes/scope/projects/project', function (hooks) {
setupTest(hooks);
- test('it exists', function(assert) {
+ test('it exists', function (assert) {
let route = this.owner.lookup('route:scopes/scope/projects/project');
assert.ok(route);
});
diff --git a/ui/core/tests/unit/routes/scopes/scope/projects/project/index-test.js b/ui/core/tests/unit/routes/scopes/scope/projects/project/index-test.js
index c81b2f5a7..f14370229 100644
--- a/ui/core/tests/unit/routes/scopes/scope/projects/project/index-test.js
+++ b/ui/core/tests/unit/routes/scopes/scope/projects/project/index-test.js
@@ -1,10 +1,10 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Route | scopes/scope/projects/project/index', function(hooks) {
+module('Unit | Route | scopes/scope/projects/project/index', function (hooks) {
setupTest(hooks);
- test('it exists', function(assert) {
+ test('it exists', function (assert) {
let route = this.owner.lookup('route:scopes/scope/projects/project/index');
assert.ok(route);
});
diff --git a/ui/core/tests/unit/routes/scopes/scope/users-test.js b/ui/core/tests/unit/routes/scopes/scope/users-test.js
new file mode 100644
index 000000000..12f7813b1
--- /dev/null
+++ b/ui/core/tests/unit/routes/scopes/scope/users-test.js
@@ -0,0 +1,11 @@
+import { module, test } from 'qunit';
+import { setupTest } from 'ember-qunit';
+
+module('Unit | Route | scopes/scope/users', function (hooks) {
+ setupTest(hooks);
+
+ test('it exists', function (assert) {
+ let route = this.owner.lookup('route:scopes/scope/users');
+ assert.ok(route);
+ });
+});
diff --git a/ui/core/tests/unit/routes/scopes/scope/users/index-test.js b/ui/core/tests/unit/routes/scopes/scope/users/index-test.js
new file mode 100644
index 000000000..f2c453604
--- /dev/null
+++ b/ui/core/tests/unit/routes/scopes/scope/users/index-test.js
@@ -0,0 +1,11 @@
+import { module, test } from 'qunit';
+import { setupTest } from 'ember-qunit';
+
+module('Unit | Route | scopes/scope/users/index', function (hooks) {
+ setupTest(hooks);
+
+ test('it exists', function (assert) {
+ let route = this.owner.lookup('route:scopes/scope/users/index');
+ assert.ok(route);
+ });
+});
diff --git a/ui/core/tests/unit/routes/scopes/scope/users/new-test.js b/ui/core/tests/unit/routes/scopes/scope/users/new-test.js
new file mode 100644
index 000000000..147af3ba2
--- /dev/null
+++ b/ui/core/tests/unit/routes/scopes/scope/users/new-test.js
@@ -0,0 +1,11 @@
+import { module, test } from 'qunit';
+import { setupTest } from 'ember-qunit';
+
+module('Unit | Route | scopes/scope/users/new', function (hooks) {
+ setupTest(hooks);
+
+ test('it exists', function (assert) {
+ let route = this.owner.lookup('route:scopes/scope/users/new');
+ assert.ok(route);
+ });
+});
diff --git a/ui/core/tests/unit/routes/scopes/scope/users/user-test.js b/ui/core/tests/unit/routes/scopes/scope/users/user-test.js
new file mode 100644
index 000000000..69f34e847
--- /dev/null
+++ b/ui/core/tests/unit/routes/scopes/scope/users/user-test.js
@@ -0,0 +1,11 @@
+import { module, test } from 'qunit';
+import { setupTest } from 'ember-qunit';
+
+module('Unit | Route | scopes/scope/users/user', function (hooks) {
+ setupTest(hooks);
+
+ test('it exists', function (assert) {
+ let route = this.owner.lookup('route:scopes/scope/users/user');
+ assert.ok(route);
+ });
+});
diff --git a/ui/core/tests/unit/routes/scopes/scope/users/user/index-test.js b/ui/core/tests/unit/routes/scopes/scope/users/user/index-test.js
new file mode 100644
index 000000000..21302ee4b
--- /dev/null
+++ b/ui/core/tests/unit/routes/scopes/scope/users/user/index-test.js
@@ -0,0 +1,11 @@
+import { module, test } from 'qunit';
+import { setupTest } from 'ember-qunit';
+
+module('Unit | Route | scopes/scope/users/user/index', function (hooks) {
+ setupTest(hooks);
+
+ test('it exists', function (assert) {
+ let route = this.owner.lookup('route:scopes/scope/users/user/index');
+ assert.ok(route);
+ });
+});