From f4daaa45a91cffa8e2440b70130fb6e8427a8a59 Mon Sep 17 00:00:00 2001 From: Susmitha Girumala Date: Wed, 16 Sep 2020 14:33:04 -0400 Subject: [PATCH] style: format ui/core --- ui/core/app/authenticators/password.js | 15 +++-- .../components/form/account/password/index.js | 1 - .../account/password/set-password/index.js | 2 - .../form/group/add-members/index.js | 2 - .../form/host-set/add-hosts/index.js | 3 +- .../components/form/host-set/hosts/index.js | 6 +- .../form/role/add-principals/index.js | 15 +++-- .../app/components/form/role/grants/index.js | 1 - .../form/target/add-host-sets/index.js | 11 ++-- .../auth-methods/auth-method/accounts.js | 2 - .../auth-method/accounts/account.js | 2 - .../auth-methods/auth-method/accounts/new.js | 2 - .../controllers/scopes/scope/authenticate.js | 2 - .../scopes/scope/groups/group/add-members.js | 2 - .../scope/projects/project/host-catalogs.js | 2 - .../project/host-catalogs/host-catalog.js | 2 - .../host-catalogs/host-catalog/host-sets.js | 2 - .../host-catalog/host-sets/host-set.js | 2 - .../host-catalog/host-sets/new.js | 1 - .../host-catalogs/host-catalog/hosts.js | 2 - .../host-catalogs/host-catalog/hosts/host.js | 2 - .../host-catalogs/host-catalog/hosts/new.js | 2 - .../projects/project/host-catalogs/new.js | 2 - .../scopes/scope/projects/project/targets.js | 2 - .../scope/projects/project/targets/new.js | 2 - .../scope/projects/project/targets/target.js | 2 - .../project/targets/target/add-host-sets.js | 2 - .../project/targets/target/host-sets.js | 1 - .../scopes/scope/roles/role/add-principals.js | 2 - ui/core/app/router.js | 58 ++++++++++--------- ui/core/app/routes/scopes/scope.js | 7 +-- .../app/routes/scopes/scope/auth-methods.js | 6 +- .../auth-methods/auth-method/accounts.js | 18 ++++-- .../auth-method/accounts/account.js | 35 ++++++----- .../auth-method/accounts/account/index.js | 3 +- .../accounts/account/set-password.js | 22 ++++--- .../auth-methods/auth-method/accounts/new.js | 15 +++-- .../scope/auth-methods/auth-method/index.js | 3 +- .../routes/scopes/scope/auth-methods/index.js | 3 +- .../routes/scopes/scope/auth-methods/new.js | 4 +- .../app/routes/scopes/scope/groups/group.js | 7 +-- .../scopes/scope/groups/group/add-members.js | 10 ++-- .../scopes/scope/groups/group/members.js | 10 ++-- ui/core/app/routes/scopes/scope/orgs.js | 2 - ui/core/app/routes/scopes/scope/orgs/index.js | 3 +- ui/core/app/routes/scopes/scope/orgs/new.js | 2 - .../routes/scopes/scope/projects/project.js | 2 +- .../scope/projects/project/host-catalogs.js | 8 +-- .../project/host-catalogs/host-catalog.js | 40 ++++++++----- .../host-catalogs/host-catalog/host-sets.js | 19 ++++-- .../host-catalog/host-sets/host-set.js | 39 ++++++++----- .../host-sets/host-set/add-hosts.js | 32 ++++++---- .../host-catalog/host-sets/host-set/hosts.js | 21 ++++--- .../host-catalog/host-sets/host-set/index.js | 3 +- .../host-catalog/host-sets/index.js | 3 +- .../host-catalog/host-sets/new.js | 25 ++++---- .../host-catalogs/host-catalog/hosts.js | 19 ++++-- .../host-catalogs/host-catalog/hosts/host.js | 39 ++++++++----- .../host-catalog/hosts/host/index.js | 3 +- .../host-catalogs/host-catalog/hosts/index.js | 3 +- .../host-catalogs/host-catalog/hosts/new.js | 25 ++++---- .../host-catalogs/host-catalog/index.js | 3 +- .../projects/project/host-catalogs/index.js | 3 +- .../projects/project/host-catalogs/new.js | 4 +- .../scopes/scope/projects/project/targets.js | 2 - .../scope/projects/project/targets/index.js | 3 +- .../scope/projects/project/targets/new.js | 4 +- .../scope/projects/project/targets/target.js | 2 - .../project/targets/target/add-host-sets.js | 31 ++++++---- .../project/targets/target/host-sets.js | 28 ++++----- .../targets/target/host-sets/host-set.js | 3 +- .../project/targets/target/host-sets/index.js | 3 +- .../projects/project/targets/target/index.js | 3 +- .../scopes/scope/roles/role/add-principals.js | 4 +- .../routes/scopes/scope/roles/role/grants.js | 6 +- .../scopes/scope/roles/role/principals.js | 14 ++--- ui/core/app/styles/_notify.scss | 8 +-- .../tests/acceptance/authentication-test.js | 38 +++++++++--- ui/core/tests/acceptance/bread-crumbs-test.js | 4 +- ui/core/tests/acceptance/groups-test.js | 5 +- .../tests/acceptance/host-catalogs-test.js | 22 +++---- ui/core/tests/acceptance/host-sets-test.js | 1 - ui/core/tests/acceptance/orgs-test.js | 11 ++-- ui/core/tests/acceptance/roles-test.js | 6 +- ui/core/tests/acceptance/targets-test.js | 4 +- ui/core/tests/acceptance/users-test.js | 2 +- .../components/form/account-test.js | 3 +- .../components/form/account/password-test.js | 3 +- .../account/password/set-password-test.js | 23 ++++---- .../components/form/host-set-test.js | 2 +- .../form/host-set/add-hosts-test.js | 6 +- .../components/form/host-set/hosts-test.js | 2 +- .../integration/components/form/host-test.js | 4 +- .../integration/components/form/org-test.js | 2 +- .../form/role/add-principals-test.js | 4 +- .../form/target/add-host-sets-test.js | 4 +- .../unit/authenticators/password-test.js | 9 ++- .../scopes/scope/auth-methods-test.js | 4 +- .../scope/auth-methods/auth-method-test.js | 10 +++- .../auth-methods/auth-method/accounts-test.js | 21 ++++--- .../auth-method/accounts/account-test.js | 21 ++++--- .../auth-method/accounts/new-test.js | 21 ++++--- .../scopes/scope/auth-methods/new-test.js | 8 ++- .../scopes/scope/authenticate-test.js | 4 +- .../scope/groups/group/add-members-test.js | 10 +++- .../controllers/scopes/scope/orgs-test.js | 4 +- .../controllers/scopes/scope/orgs/new-test.js | 4 +- .../projects/project/host-catalogs-test.js | 21 ++++--- .../host-catalogs/host-catalog-test.js | 21 ++++--- .../host-catalog/host-sets-test.js | 21 ++++--- .../host-catalog/host-sets/host-set-test.js | 21 ++++--- .../host-catalog/host-sets/new-test.js | 21 ++++--- .../host-catalogs/host-catalog/hosts-test.js | 21 ++++--- .../host-catalog/hosts/host-test.js | 21 ++++--- .../host-catalog/hosts/new-test.js | 21 ++++--- .../project/host-catalogs/new-test.js | 21 ++++--- .../scope/projects/project/targets-test.js | 10 +++- .../projects/project/targets/new-test.js | 21 ++++--- .../projects/project/targets/target-test.js | 21 ++++--- .../targets/target/add-host-sets-test.js | 21 ++++--- .../project/targets/target/host-sets-test.js | 21 ++++--- .../scope/roles/role/add-principals-test.js | 10 +++- .../routes/scopes/scope/auth-methods-test.js | 4 +- .../scope/auth-methods/auth-method-test.js | 10 +++- .../auth-methods/auth-method/accounts-test.js | 19 +++--- .../auth-method/accounts/account-test.js | 19 +++--- .../accounts/account/index-test.js | 19 +++--- .../accounts/account/set-password-test.js | 19 +++--- .../auth-method/accounts/new-test.js | 19 +++--- .../auth-methods/auth-method/index-test.js | 10 +++- .../scopes/scope/auth-methods/index-test.js | 4 +- .../scopes/scope/auth-methods/new-test.js | 4 +- .../scope/groups/group/add-members-test.js | 10 +++- .../scopes/scope/groups/group/members-test.js | 4 +- .../unit/routes/scopes/scope/orgs-test.js | 4 +- .../routes/scopes/scope/orgs/index-test.js | 4 +- .../unit/routes/scopes/scope/orgs/new-test.js | 4 +- .../projects/project/host-catalogs-test.js | 10 +++- .../host-catalogs/host-catalog-test.js | 19 +++--- .../host-catalog/host-sets-test.js | 19 +++--- .../host-catalog/host-sets/host-set-test.js | 19 +++--- .../host-sets/host-set/add-hosts-test.js | 19 +++--- .../host-sets/host-set/hosts-test.js | 19 +++--- .../host-sets/host-set/index-test.js | 19 +++--- .../host-catalog/host-sets/index-test.js | 19 +++--- .../host-catalog/host-sets/new-test.js | 19 +++--- .../host-catalogs/host-catalog/hosts-test.js | 19 +++--- .../host-catalog/hosts/host-test.js | 19 +++--- .../host-catalog/hosts/host/index-test.js | 19 +++--- .../host-catalog/hosts/index-test.js | 19 +++--- .../host-catalog/hosts/new-test.js | 19 +++--- .../host-catalogs/host-catalog/index-test.js | 19 +++--- .../project/host-catalogs/index-test.js | 19 +++--- .../project/host-catalogs/new-test.js | 19 +++--- .../scope/projects/project/targets-test.js | 10 +++- .../projects/project/targets/index-test.js | 10 +++- .../projects/project/targets/new-test.js | 10 +++- .../projects/project/targets/target-test.js | 10 +++- .../targets/target/add-host-sets-test.js | 19 +++--- .../project/targets/target/host-sets-test.js | 19 +++--- .../targets/target/host-sets/host-set-test.js | 19 +++--- .../project/targets/target/index-test.js | 19 +++--- .../scope/roles/role/add-principals-test.js | 10 +++- .../scopes/scope/roles/role/grants-test.js | 4 +- .../scope/roles/role/principals-test.js | 4 +- 165 files changed, 1075 insertions(+), 785 deletions(-) diff --git a/ui/core/app/authenticators/password.js b/ui/core/app/authenticators/password.js index 88bf63c0a..2d64dfc47 100644 --- a/ui/core/app/authenticators/password.js +++ b/ui/core/app/authenticators/password.js @@ -50,12 +50,11 @@ export default class PasswordAuthenticator extends BasePasswordAuthenticator { * @override */ authenticate() { - return super.authenticate(...arguments) - .then(data => { - const token = data?.token; - if (token) this.addTokenToAuthorization(token); - return data; - }); + return super.authenticate(...arguments).then((data) => { + const token = data?.token; + if (token) this.addTokenToAuthorization(token); + return data; + }); } /** @@ -78,8 +77,8 @@ export default class PasswordAuthenticator extends BasePasswordAuthenticator { * @param {string} token */ addTokenToAuthorization(token) { - const adapterPrototype = - this.store.adapterFor('application').constructor.prototype; + const adapterPrototype = this.store.adapterFor('application').constructor + .prototype; const headers = adapterPrototype?.headers; if (!headers) adapterPrototype.headers = {}; adapterPrototype.headers.Authorization = null; diff --git a/ui/core/app/components/form/account/password/index.js b/ui/core/app/components/form/account/password/index.js index 6b500094d..e5d4a264b 100644 --- a/ui/core/app/components/form/account/password/index.js +++ b/ui/core/app/components/form/account/password/index.js @@ -4,7 +4,6 @@ import { action } from '@ember/object'; import { next } from '@ember/runloop'; export default class FormAccountPasswordIndexComponent extends Component { - // =properties /** diff --git a/ui/core/app/components/form/account/password/set-password/index.js b/ui/core/app/components/form/account/password/set-password/index.js index e034e0995..124f783b9 100644 --- a/ui/core/app/components/form/account/password/set-password/index.js +++ b/ui/core/app/components/form/account/password/set-password/index.js @@ -5,7 +5,6 @@ import { action } from '@ember/object'; import { next } from '@ember/runloop'; export default class FormAccountPasswordSetPasswordIndexComponent extends Component { - // =properties /** @@ -54,5 +53,4 @@ export default class FormAccountPasswordSetPasswordIndexComponent extends Compon this.resetPassword(); fn(); } - } diff --git a/ui/core/app/components/form/group/add-members/index.js b/ui/core/app/components/form/group/add-members/index.js index dbf5256bb..397a97fec 100644 --- a/ui/core/app/components/form/group/add-members/index.js +++ b/ui/core/app/components/form/group/add-members/index.js @@ -3,7 +3,6 @@ import { computed, action } from '@ember/object'; import { A } from '@ember/array'; export default class FormGroupAddMembersComponent extends Component { - // =properties /** @@ -38,5 +37,4 @@ export default class FormGroupAddMembersComponent extends Component { submit(fn) { fn(this.selectedMemberIDs); } - } diff --git a/ui/core/app/components/form/host-set/add-hosts/index.js b/ui/core/app/components/form/host-set/add-hosts/index.js index 37d12c6b7..1dd955f1d 100644 --- a/ui/core/app/components/form/host-set/add-hosts/index.js +++ b/ui/core/app/components/form/host-set/add-hosts/index.js @@ -3,7 +3,6 @@ import { computed, action } from '@ember/object'; import { A } from '@ember/array'; export default class FormHostSetAddHostsIndexComponent extends Component { - // =properties /** @@ -28,7 +27,7 @@ export default class FormHostSetAddHostsIndexComponent extends Component { */ @computed('args.{model,hosts}') get filteredHosts() { - const currentHostIDs = this.args.model.host_ids.map(host => host.value); + const currentHostIDs = this.args.model.host_ids.map((host) => host.value); return this.args.hosts.filter(({ id }) => !currentHostIDs.includes(id)); } diff --git a/ui/core/app/components/form/host-set/hosts/index.js b/ui/core/app/components/form/host-set/hosts/index.js index 1e420869a..5b6484bc9 100644 --- a/ui/core/app/components/form/host-set/hosts/index.js +++ b/ui/core/app/components/form/host-set/hosts/index.js @@ -2,7 +2,6 @@ import Component from '@glimmer/component'; import { computed } from '@ember/object'; export default class FormHostSetHostsComponent extends Component { - // =attributes /** @@ -14,10 +13,9 @@ export default class FormHostSetHostsComponent extends Component { @computed('args.{hosts.[],model.host_ids.[]}') get options() { const { hosts, model: hostSet } = this.args; - return hosts.map(host => ({ + return hosts.map((host) => ({ host, - selected: Boolean(hostSet.host_ids.findBy('value', host.id)) + selected: Boolean(hostSet.host_ids.findBy('value', host.id)), })); } - } diff --git a/ui/core/app/components/form/role/add-principals/index.js b/ui/core/app/components/form/role/add-principals/index.js index 484f2ef1a..fb2c30537 100644 --- a/ui/core/app/components/form/role/add-principals/index.js +++ b/ui/core/app/components/form/role/add-principals/index.js @@ -3,8 +3,6 @@ import { computed, action } from '@ember/object'; import { A } from '@ember/array'; export default class FormRoleAddPrincipalsIndexComponent extends Component { - - // =properties /** @@ -31,10 +29,16 @@ export default class FormRoleAddPrincipalsIndexComponent extends Component { @computed('args.{model,users,groups}') get filteredPrincipals() { // Retrieve principal IDs assigned to current role - const currentPrincipalIDs = this.args.model.principals.map(principal => principal.principal_id); + const currentPrincipalIDs = this.args.model.principals.map( + (principal) => principal.principal_id + ); // Retrieve principal IDs not assigned to current role - const unassignedUsers = this.args.users.filter(({ id }) => !currentPrincipalIDs.includes(id)); - const unassignedGroups = this.args.groups.filter(({ id }) => !currentPrincipalIDs.includes(id)); + const unassignedUsers = this.args.users.filter( + ({ id }) => !currentPrincipalIDs.includes(id) + ); + const unassignedGroups = this.args.groups.filter( + ({ id }) => !currentPrincipalIDs.includes(id) + ); return [...unassignedUsers, ...unassignedGroups]; } @@ -53,5 +57,4 @@ export default class FormRoleAddPrincipalsIndexComponent extends Component { submit(fn) { fn(this.selectedPrincipalIDs); } - } diff --git a/ui/core/app/components/form/role/grants/index.js b/ui/core/app/components/form/role/grants/index.js index 509d4356f..f1f0f8ce3 100644 --- a/ui/core/app/components/form/role/grants/index.js +++ b/ui/core/app/components/form/role/grants/index.js @@ -3,7 +3,6 @@ import { tracked } from '@glimmer/tracking'; import { computed, action } from '@ember/object'; export default class FormRoleGrantsComponent extends Component { - // =attributes /** diff --git a/ui/core/app/components/form/target/add-host-sets/index.js b/ui/core/app/components/form/target/add-host-sets/index.js index aadca547e..317ac2ba6 100644 --- a/ui/core/app/components/form/target/add-host-sets/index.js +++ b/ui/core/app/components/form/target/add-host-sets/index.js @@ -3,7 +3,6 @@ import { computed, action } from '@ember/object'; import { A } from '@ember/array'; export default class FormTargetAddHostSetsComponent extends Component { - // =properties /** @@ -19,10 +18,12 @@ export default class FormTargetAddHostSetsComponent extends Component { @computed('args.{hostSets.[],model.host_sets.[]}') get filteredHostSets() { // Get IDs for host sets already added to the current target - const alreadyAddedHostSetIDs = this.args.model.host_sets - .map(({ host_set_id }) => host_set_id); - const notAddedHostSets = this.args.hostSets - .filter(({ id }) => !alreadyAddedHostSetIDs.includes(id)); + const alreadyAddedHostSetIDs = this.args.model.host_sets.map( + ({ host_set_id }) => host_set_id + ); + const notAddedHostSets = this.args.hostSets.filter( + ({ id }) => !alreadyAddedHostSetIDs.includes(id) + ); return notAddedHostSets; } diff --git a/ui/core/app/controllers/scopes/scope/auth-methods/auth-method/accounts.js b/ui/core/app/controllers/scopes/scope/auth-methods/auth-method/accounts.js index 56b5b657c..a922414ef 100644 --- a/ui/core/app/controllers/scopes/scope/auth-methods/auth-method/accounts.js +++ b/ui/core/app/controllers/scopes/scope/auth-methods/auth-method/accounts.js @@ -2,7 +2,6 @@ import Controller from '@ember/controller'; import { inject as service } from '@ember/service'; export default class ScopesScopeAuthMethodsAuthMethodAccountsController extends Controller { - // =services @service intl; @@ -16,5 +15,4 @@ export default class ScopesScopeAuthMethodsAuthMethodAccountsController extends get breadCrumb() { return this.intl.t('resources.accounts'); } - } diff --git a/ui/core/app/controllers/scopes/scope/auth-methods/auth-method/accounts/account.js b/ui/core/app/controllers/scopes/scope/auth-methods/auth-method/accounts/account.js index 677c82383..57bce2d7b 100644 --- a/ui/core/app/controllers/scopes/scope/auth-methods/auth-method/accounts/account.js +++ b/ui/core/app/controllers/scopes/scope/auth-methods/auth-method/accounts/account.js @@ -1,7 +1,6 @@ import Controller from '@ember/controller'; export default class ScopesScopeAuthMethodsAuthMethodAccountsAccountController extends Controller { - // =attributes /** @@ -11,5 +10,4 @@ export default class ScopesScopeAuthMethodsAuthMethodAccountsAccountController e get breadCrumb() { return this.model.displayName; } - } diff --git a/ui/core/app/controllers/scopes/scope/auth-methods/auth-method/accounts/new.js b/ui/core/app/controllers/scopes/scope/auth-methods/auth-method/accounts/new.js index 151ae7ff0..d2a542cfe 100644 --- a/ui/core/app/controllers/scopes/scope/auth-methods/auth-method/accounts/new.js +++ b/ui/core/app/controllers/scopes/scope/auth-methods/auth-method/accounts/new.js @@ -2,7 +2,6 @@ import Controller from '@ember/controller'; import { inject as service } from '@ember/service'; export default class ScopesScopeAuthMethodsAuthMethodAccountsNewController extends Controller { - // =services @service intl; @@ -16,5 +15,4 @@ export default class ScopesScopeAuthMethodsAuthMethodAccountsNewController exten get breadCrumb() { return this.intl.t('titles.new'); } - } diff --git a/ui/core/app/controllers/scopes/scope/authenticate.js b/ui/core/app/controllers/scopes/scope/authenticate.js index b982a3c1c..139f77c05 100644 --- a/ui/core/app/controllers/scopes/scope/authenticate.js +++ b/ui/core/app/controllers/scopes/scope/authenticate.js @@ -2,7 +2,6 @@ import Controller from '@ember/controller'; import { sort } from '@ember/object/computed'; export default class ScopesScopeAuthenticateController extends Controller { - // =attributes /** @@ -17,5 +16,4 @@ export default class ScopesScopeAuthenticateController extends Controller { return 0; }) sortedScopes; - } diff --git a/ui/core/app/controllers/scopes/scope/groups/group/add-members.js b/ui/core/app/controllers/scopes/scope/groups/group/add-members.js index 7a94c1034..fc07abb38 100644 --- a/ui/core/app/controllers/scopes/scope/groups/group/add-members.js +++ b/ui/core/app/controllers/scopes/scope/groups/group/add-members.js @@ -2,7 +2,6 @@ import Controller from '@ember/controller'; import { inject as service } from '@ember/service'; export default class ScopesScopeGroupsGroupAddMembersController extends Controller { - // =services @service intl; @@ -16,5 +15,4 @@ export default class ScopesScopeGroupsGroupAddMembersController extends Controll get breadCrumb() { return this.intl.t('actions.add-members'); } - } diff --git a/ui/core/app/controllers/scopes/scope/projects/project/host-catalogs.js b/ui/core/app/controllers/scopes/scope/projects/project/host-catalogs.js index 854de55e2..e323437e8 100644 --- a/ui/core/app/controllers/scopes/scope/projects/project/host-catalogs.js +++ b/ui/core/app/controllers/scopes/scope/projects/project/host-catalogs.js @@ -2,7 +2,6 @@ import Controller from '@ember/controller'; import { inject as service } from '@ember/service'; export default class ScopesScopeProjectsProjectHostCatalogsController extends Controller { - // =services @service intl; @@ -15,5 +14,4 @@ export default class ScopesScopeProjectsProjectHostCatalogsController extends Co get breadCrumb() { return this.intl.t('resources.host-catalogs'); } - } diff --git a/ui/core/app/controllers/scopes/scope/projects/project/host-catalogs/host-catalog.js b/ui/core/app/controllers/scopes/scope/projects/project/host-catalogs/host-catalog.js index 97fa6533b..333fbfe1a 100644 --- a/ui/core/app/controllers/scopes/scope/projects/project/host-catalogs/host-catalog.js +++ b/ui/core/app/controllers/scopes/scope/projects/project/host-catalogs/host-catalog.js @@ -1,7 +1,6 @@ import Controller from '@ember/controller'; export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogController extends Controller { - // =attributes /** @@ -10,5 +9,4 @@ export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogController get breadCrumb() { return this.model.displayName; } - } diff --git a/ui/core/app/controllers/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets.js b/ui/core/app/controllers/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets.js index e7b0ab912..381afcab6 100644 --- a/ui/core/app/controllers/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets.js +++ b/ui/core/app/controllers/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets.js @@ -2,7 +2,6 @@ import Controller from '@ember/controller'; import { inject as service } from '@ember/service'; export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostSetsController extends Controller { - // =services @service intl; @@ -16,5 +15,4 @@ export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostSetsCo get breadCrumb() { return this.intl.t('resources.host-sets'); } - } diff --git a/ui/core/app/controllers/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set.js b/ui/core/app/controllers/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set.js index 97210f306..8e59a9fa9 100644 --- a/ui/core/app/controllers/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set.js +++ b/ui/core/app/controllers/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set.js @@ -1,7 +1,6 @@ import Controller from '@ember/controller'; export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostSetsHostSetController extends Controller { - // =attributes /** @@ -11,5 +10,4 @@ export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostSetsHo get breadCrumb() { return this.model.displayName; } - } diff --git a/ui/core/app/controllers/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/new.js b/ui/core/app/controllers/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/new.js index 8c048369d..8a0383067 100644 --- a/ui/core/app/controllers/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/new.js +++ b/ui/core/app/controllers/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/new.js @@ -2,7 +2,6 @@ import Controller from '@ember/controller'; import { inject as service } from '@ember/service'; export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostSetsNewController extends Controller { - // =services @service intl; diff --git a/ui/core/app/controllers/scopes/scope/projects/project/host-catalogs/host-catalog/hosts.js b/ui/core/app/controllers/scopes/scope/projects/project/host-catalogs/host-catalog/hosts.js index 0ce0c8ba4..04a32f97f 100644 --- a/ui/core/app/controllers/scopes/scope/projects/project/host-catalogs/host-catalog/hosts.js +++ b/ui/core/app/controllers/scopes/scope/projects/project/host-catalogs/host-catalog/hosts.js @@ -2,7 +2,6 @@ import Controller from '@ember/controller'; import { inject as service } from '@ember/service'; export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostsController extends Controller { - // =services @service intl; @@ -16,5 +15,4 @@ export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostsContr get breadCrumb() { return this.intl.t('resources.hosts'); } - } diff --git a/ui/core/app/controllers/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/host.js b/ui/core/app/controllers/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/host.js index 7b1b2883b..fc59d096c 100644 --- a/ui/core/app/controllers/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/host.js +++ b/ui/core/app/controllers/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/host.js @@ -1,7 +1,6 @@ import Controller from '@ember/controller'; export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostsHostController extends Controller { - // =attributes /** @@ -11,5 +10,4 @@ export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostsHostC get breadCrumb() { return this.model.displayName; } - } diff --git a/ui/core/app/controllers/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/new.js b/ui/core/app/controllers/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/new.js index cc56bcf08..420a7f671 100644 --- a/ui/core/app/controllers/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/new.js +++ b/ui/core/app/controllers/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/new.js @@ -2,7 +2,6 @@ import Controller from '@ember/controller'; import { inject as service } from '@ember/service'; export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostsNewController extends Controller { - // =services @service intl; @@ -16,5 +15,4 @@ export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostsNewCo get breadCrumb() { return this.intl.t('titles.new'); } - } diff --git a/ui/core/app/controllers/scopes/scope/projects/project/host-catalogs/new.js b/ui/core/app/controllers/scopes/scope/projects/project/host-catalogs/new.js index 549965fb3..040876e4f 100644 --- a/ui/core/app/controllers/scopes/scope/projects/project/host-catalogs/new.js +++ b/ui/core/app/controllers/scopes/scope/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 ScopesScopeProjectsProjectHostCatalogsNewController extends Controller { - // =services @service intl; @@ -16,5 +15,4 @@ export default class ScopesScopeProjectsProjectHostCatalogsNewController extends get breadCrumb() { return this.intl.t('titles.new'); } - } diff --git a/ui/core/app/controllers/scopes/scope/projects/project/targets.js b/ui/core/app/controllers/scopes/scope/projects/project/targets.js index a0d75250f..5d11f3566 100644 --- a/ui/core/app/controllers/scopes/scope/projects/project/targets.js +++ b/ui/core/app/controllers/scopes/scope/projects/project/targets.js @@ -2,7 +2,6 @@ import Controller from '@ember/controller'; import { inject as service } from '@ember/service'; export default class ScopesScopeProjectsProjectTargetsController extends Controller { - // =services @service intl; @@ -16,5 +15,4 @@ export default class ScopesScopeProjectsProjectTargetsController extends Control get breadCrumb() { return this.intl.t('resources.targets'); } - } diff --git a/ui/core/app/controllers/scopes/scope/projects/project/targets/new.js b/ui/core/app/controllers/scopes/scope/projects/project/targets/new.js index 035a83756..588dca4b6 100644 --- a/ui/core/app/controllers/scopes/scope/projects/project/targets/new.js +++ b/ui/core/app/controllers/scopes/scope/projects/project/targets/new.js @@ -2,7 +2,6 @@ import Controller from '@ember/controller'; import { inject as service } from '@ember/service'; export default class ScopesScopeProjectsProjectTargetsNewController extends Controller { - // =services @service intl; @@ -16,5 +15,4 @@ export default class ScopesScopeProjectsProjectTargetsNewController extends Cont get breadCrumb() { return this.intl.t('titles.new'); } - } diff --git a/ui/core/app/controllers/scopes/scope/projects/project/targets/target.js b/ui/core/app/controllers/scopes/scope/projects/project/targets/target.js index 0da51ffa4..4cad64e2b 100644 --- a/ui/core/app/controllers/scopes/scope/projects/project/targets/target.js +++ b/ui/core/app/controllers/scopes/scope/projects/project/targets/target.js @@ -1,7 +1,6 @@ import Controller from '@ember/controller'; export default class ScopesScopeProjectsProjectTargetsTargetController extends Controller { - // =attributes /** @@ -11,5 +10,4 @@ export default class ScopesScopeProjectsProjectTargetsTargetController extends C get breadCrumb() { return this.model.displayName; } - } diff --git a/ui/core/app/controllers/scopes/scope/projects/project/targets/target/add-host-sets.js b/ui/core/app/controllers/scopes/scope/projects/project/targets/target/add-host-sets.js index 81698e45f..db7181061 100644 --- a/ui/core/app/controllers/scopes/scope/projects/project/targets/target/add-host-sets.js +++ b/ui/core/app/controllers/scopes/scope/projects/project/targets/target/add-host-sets.js @@ -2,7 +2,6 @@ import Controller from '@ember/controller'; import { inject as service } from '@ember/service'; export default class ScopesScopeProjectsProjectTargetsTargetAddHostSetsController extends Controller { - // =services @service intl; @@ -15,5 +14,4 @@ export default class ScopesScopeProjectsProjectTargetsTargetAddHostSetsControlle get breadCrumb() { return this.intl.t('actions.add-host-sets'); } - } diff --git a/ui/core/app/controllers/scopes/scope/projects/project/targets/target/host-sets.js b/ui/core/app/controllers/scopes/scope/projects/project/targets/target/host-sets.js index a8fb5fd35..92d1dfc1f 100644 --- a/ui/core/app/controllers/scopes/scope/projects/project/targets/target/host-sets.js +++ b/ui/core/app/controllers/scopes/scope/projects/project/targets/target/host-sets.js @@ -2,7 +2,6 @@ import Controller from '@ember/controller'; import { inject as service } from '@ember/service'; export default class ScopesScopeProjectsProjectTargetsTargetHostSetsController extends Controller { - // =services @service intl; diff --git a/ui/core/app/controllers/scopes/scope/roles/role/add-principals.js b/ui/core/app/controllers/scopes/scope/roles/role/add-principals.js index 36c232398..1d64b6362 100644 --- a/ui/core/app/controllers/scopes/scope/roles/role/add-principals.js +++ b/ui/core/app/controllers/scopes/scope/roles/role/add-principals.js @@ -2,7 +2,6 @@ import Controller from '@ember/controller'; import { inject as service } from '@ember/service'; export default class ScopesScopeRolesRoleAddPrincipalsController extends Controller { - // =services @service intl; @@ -16,5 +15,4 @@ export default class ScopesScopeRolesRoleAddPrincipalsController extends Control get breadCrumb() { return this.intl.t('actions.add-principals'); } - } diff --git a/ui/core/app/router.js b/ui/core/app/router.js index c702702cb..dc30cf017 100644 --- a/ui/core/app/router.js +++ b/ui/core/app/router.js @@ -9,37 +9,44 @@ export default class Router extends EmberRouter { Router.map(function () { this.route('scopes', function () { this.route('scope', { path: ':scope_id' }, function () { - this.route('authenticate', function () { this.route('method', { path: ':auth_method_id' }); }); - this.route('orgs', function() { + this.route('orgs', function () { this.route('new'); }); - this.route('projects', function() { - this.route('project', { path: ':project_id' }, function() { - this.route('host-catalogs', function() { + this.route('projects', function () { + this.route('project', { path: ':project_id' }, function () { + this.route('host-catalogs', function () { this.route('new'); - this.route('host-catalog', { path: ':host_catalog_id' }, function() { - this.route('host-sets', function() { - this.route('host-set', { path: ':host_set_id' }, function() { - this.route('hosts'); - this.route('add-hosts'); + this.route( + 'host-catalog', + { path: ':host_catalog_id' }, + function () { + this.route('host-sets', function () { + this.route('host-set', { path: ':host_set_id' }, function () { + this.route('hosts'); + this.route('add-hosts'); + }); + this.route('new'); }); - this.route('new'); - }); - this.route('hosts', function() { - this.route('host', { path: ':host_id' }, function() {}); - this.route('new'); - }); - }); + this.route('hosts', function () { + this.route('host', { path: ':host_id' }, function () {}); + this.route('new'); + }); + } + ); }); - this.route('targets', function() { - this.route('target', { path: ':target_id' }, function() { - this.route('host-sets', function() { - this.route('host-set', { path: ':host_set_id'}, function() {}); + this.route('targets', function () { + this.route('target', { path: ':target_id' }, function () { + this.route('host-sets', function () { + this.route( + 'host-set', + { path: ':host_set_id' }, + function () {} + ); }); this.route('add-host-sets'); }); @@ -71,10 +78,10 @@ Router.map(function () { this.route('new'); }); - this.route('auth-methods', function() { - this.route('auth-method', { path: ':auth_method_id' }, function() { - this.route('accounts', function() { - this.route('account', { path: ':account_id' }, function() { + this.route('auth-methods', function () { + this.route('auth-method', { path: ':auth_method_id' }, function () { + this.route('accounts', function () { + this.route('account', { path: ':account_id' }, function () { this.route('set-password'); }); this.route('new'); @@ -82,7 +89,6 @@ Router.map(function () { }); this.route('new'); }); - }); }); }); diff --git a/ui/core/app/routes/scopes/scope.js b/ui/core/app/routes/scopes/scope.js index 08cd2d207..820f7caf2 100644 --- a/ui/core/app/routes/scopes/scope.js +++ b/ui/core/app/routes/scopes/scope.js @@ -2,7 +2,6 @@ import Route from '@ember/routing/route'; import { inject as service } from '@ember/service'; export default class ScopesScopeRoute extends Route { - // =services @service intl; @@ -29,9 +28,9 @@ export default class ScopesScopeRoute extends Route { if (type === 'global') { scopeOptions.name = this.intl.t('titles.global'); } - return maybeExistingScope || - this.store.createRecord('scope', scopeOptions); + return ( + maybeExistingScope || this.store.createRecord('scope', scopeOptions) + ); }); } - } diff --git a/ui/core/app/routes/scopes/scope/auth-methods.js b/ui/core/app/routes/scopes/scope/auth-methods.js index ca382d686..c5190b637 100644 --- a/ui/core/app/routes/scopes/scope/auth-methods.js +++ b/ui/core/app/routes/scopes/scope/auth-methods.js @@ -48,8 +48,10 @@ export default class ScopesScopeAuthMethodsRoute extends Route { const { isNew } = authMethod; try { await authMethod.save(); - await this - .transitionTo('scopes.scope.auth-methods.auth-method', authMethod); + await this.transitionTo( + 'scopes.scope.auth-methods.auth-method', + authMethod + ); this.refresh(); this.notify.success( this.intl.t(isNew ? 'notify.create-success' : 'notify.save-success') diff --git a/ui/core/app/routes/scopes/scope/auth-methods/auth-method/accounts.js b/ui/core/app/routes/scopes/scope/auth-methods/auth-method/accounts.js index a5a5efa5f..0ecd6ebc4 100644 --- a/ui/core/app/routes/scopes/scope/auth-methods/auth-method/accounts.js +++ b/ui/core/app/routes/scopes/scope/auth-methods/auth-method/accounts.js @@ -3,7 +3,6 @@ import { action } from '@ember/object'; import { inject as service } from '@ember/service'; export default class ScopesScopeAuthMethodsAuthMethodAccountsRoute extends Route { - // =services @service intl; @@ -16,8 +15,9 @@ export default class ScopesScopeAuthMethodsAuthMethodAccountsRoute extends Route * @return {Promise{[AccountModel]}} */ model() { - const { id: auth_method_id } = - this.modelFor('scopes.scope.auth-methods.auth-method'); + const { id: auth_method_id } = this.modelFor( + 'scopes.scope.auth-methods.auth-method' + ); return this.store.query('account', { auth_method_id }); } @@ -31,7 +31,8 @@ export default class ScopesScopeAuthMethodsAuthMethodAccountsRoute extends Route cancel(account) { const { isNew } = account; account.rollbackAttributes(); - if (isNew) this.transitionTo('scopes.scope.auth-methods.auth-method.accounts'); + if (isNew) + this.transitionTo('scopes.scope.auth-methods.auth-method.accounts'); } /** @@ -42,10 +43,15 @@ export default class ScopesScopeAuthMethodsAuthMethodAccountsRoute extends Route async save(account, password) { const { isNew } = account; const adapterOptions = {}; - if(isNew) { adapterOptions.password = password; } + if (isNew) { + adapterOptions.password = password; + } try { await account.save({ adapterOptions }); - await this.transitionTo('scopes.scope.auth-methods.auth-method.accounts.account', account); + await this.transitionTo( + 'scopes.scope.auth-methods.auth-method.accounts.account', + account + ); this.refresh(); this.notify.success( this.intl.t(isNew ? 'notify.create-success' : 'notify.save-success') diff --git a/ui/core/app/routes/scopes/scope/auth-methods/auth-method/accounts/account.js b/ui/core/app/routes/scopes/scope/auth-methods/auth-method/accounts/account.js index e8ec60bf6..8f90f239e 100644 --- a/ui/core/app/routes/scopes/scope/auth-methods/auth-method/accounts/account.js +++ b/ui/core/app/routes/scopes/scope/auth-methods/auth-method/accounts/account.js @@ -1,7 +1,6 @@ import Route from '@ember/routing/route'; export default class ScopesScopeAuthMethodsAuthMethodAccountsAccountRoute extends Route { - // =methods /** @@ -21,20 +20,28 @@ export default class ScopesScopeAuthMethodsAuthMethodAccountsAccountRoute extend renderTemplate() { super.renderTemplate(...arguments); - this.render('scopes/scope/auth-methods/auth-method/accounts/account/-header', { - into: 'scopes/scope/auth-methods/auth-method', - outlet: 'header' - }); + this.render( + 'scopes/scope/auth-methods/auth-method/accounts/account/-header', + { + into: 'scopes/scope/auth-methods/auth-method', + outlet: 'header', + } + ); - this.render('scopes/scope/auth-methods/auth-method/accounts/account/-actions', { - into: 'scopes/scope/auth-methods/auth-method', - outlet: 'actions' - }); + this.render( + 'scopes/scope/auth-methods/auth-method/accounts/account/-actions', + { + into: 'scopes/scope/auth-methods/auth-method', + outlet: 'actions', + } + ); - this.render('scopes/scope/auth-methods/auth-method/accounts/account/-navigation', { - into: 'scopes/scope/auth-methods/auth-method', - outlet: 'navigation' - }); + this.render( + 'scopes/scope/auth-methods/auth-method/accounts/account/-navigation', + { + into: 'scopes/scope/auth-methods/auth-method', + outlet: 'navigation', + } + ); } - } diff --git a/ui/core/app/routes/scopes/scope/auth-methods/auth-method/accounts/account/index.js b/ui/core/app/routes/scopes/scope/auth-methods/auth-method/accounts/account/index.js index 4e996c777..a3d16587d 100644 --- a/ui/core/app/routes/scopes/scope/auth-methods/auth-method/accounts/account/index.js +++ b/ui/core/app/routes/scopes/scope/auth-methods/auth-method/accounts/account/index.js @@ -1,4 +1,3 @@ import Route from '@ember/routing/route'; -export default class ScopesScopeAuthMethodsAuthMethodAccountsAccountIndexRoute extends Route { -} +export default class ScopesScopeAuthMethodsAuthMethodAccountsAccountIndexRoute extends Route {} diff --git a/ui/core/app/routes/scopes/scope/auth-methods/auth-method/accounts/account/set-password.js b/ui/core/app/routes/scopes/scope/auth-methods/auth-method/accounts/account/set-password.js index 5b3ff726f..a5461eacf 100644 --- a/ui/core/app/routes/scopes/scope/auth-methods/auth-method/accounts/account/set-password.js +++ b/ui/core/app/routes/scopes/scope/auth-methods/auth-method/accounts/account/set-password.js @@ -3,7 +3,6 @@ import { action } from '@ember/object'; import { inject as service } from '@ember/service'; export default class ScopesScopeAuthMethodsAuthMethodAccountsAccountSettingsRoute extends Route { - // =services @service intl; @@ -17,10 +16,13 @@ export default class ScopesScopeAuthMethodsAuthMethodAccountsAccountSettingsRout */ renderTemplate() { super.renderTemplate(...arguments); - this.render('scopes/scope/auth-methods/auth-method/accounts/account/set-password/-header', { - into: 'scopes/scope/auth-methods/auth-method', - outlet: 'header' - }); + this.render( + 'scopes/scope/auth-methods/auth-method/accounts/account/set-password/-header', + { + into: 'scopes/scope/auth-methods/auth-method', + outlet: 'header', + } + ); } // =actions @@ -34,10 +36,10 @@ export default class ScopesScopeAuthMethodsAuthMethodAccountsAccountSettingsRout async setPassword(account, password) { try { await account.setPassword(password); - await this.replaceWith('scopes.scope.auth-methods.auth-method.accounts.account.set-password'); - this.notify.success( - this.intl.t('notify.save-success') + await this.replaceWith( + 'scopes.scope.auth-methods.auth-method.accounts.account.set-password' ); + this.notify.success(this.intl.t('notify.save-success')); } catch (error) { // TODO: replace with translated strings this.notify.error(error.message, { closeAfter: null }); @@ -49,6 +51,8 @@ export default class ScopesScopeAuthMethodsAuthMethodAccountsAccountSettingsRout */ @action cancel() { - this.replaceWith('scopes.scope.auth-methods.auth-method.accounts.account.set-password'); + this.replaceWith( + 'scopes.scope.auth-methods.auth-method.accounts.account.set-password' + ); } } diff --git a/ui/core/app/routes/scopes/scope/auth-methods/auth-method/accounts/new.js b/ui/core/app/routes/scopes/scope/auth-methods/auth-method/accounts/new.js index 37dbf4933..20062c03e 100644 --- a/ui/core/app/routes/scopes/scope/auth-methods/auth-method/accounts/new.js +++ b/ui/core/app/routes/scopes/scope/auth-methods/auth-method/accounts/new.js @@ -1,7 +1,6 @@ import Route from '@ember/routing/route'; export default class ScopesScopeAuthMethodsAuthMethodAccountsNewRoute extends Route { - // =methods /** @@ -9,11 +8,12 @@ export default class ScopesScopeAuthMethodsAuthMethodAccountsNewRoute extends Ro * @return {AccountModel} */ model() { - const { id: auth_method_id } = - this.modelFor('scopes.scope.auth-methods.auth-method'); + const { id: auth_method_id } = this.modelFor( + 'scopes.scope.auth-methods.auth-method' + ); return this.store.createRecord('account', { type: 'password', - auth_method_id + auth_method_id, }); } @@ -26,18 +26,17 @@ export default class ScopesScopeAuthMethodsAuthMethodAccountsNewRoute extends Ro this.render('scopes/scope/auth-methods/auth-method/accounts/new/-header', { into: 'scopes/scope/auth-methods/auth-method', - outlet: 'header' + outlet: 'header', }); this.render('_empty', { into: 'scopes/scope/auth-methods/auth-method', - outlet: 'actions' + outlet: 'actions', }); this.render('_empty', { into: 'scopes/scope/auth-methods/auth-method', - outlet: 'navigation' + outlet: 'navigation', }); } - } diff --git a/ui/core/app/routes/scopes/scope/auth-methods/auth-method/index.js b/ui/core/app/routes/scopes/scope/auth-methods/auth-method/index.js index 5cef508e0..3518389e4 100644 --- a/ui/core/app/routes/scopes/scope/auth-methods/auth-method/index.js +++ b/ui/core/app/routes/scopes/scope/auth-methods/auth-method/index.js @@ -1,4 +1,3 @@ import Route from '@ember/routing/route'; -export default class ScopesScopeAuthMethodsAuthMethodIndexRoute extends Route { -} +export default class ScopesScopeAuthMethodsAuthMethodIndexRoute extends Route {} diff --git a/ui/core/app/routes/scopes/scope/auth-methods/index.js b/ui/core/app/routes/scopes/scope/auth-methods/index.js index 56fa5fabf..a7e38aa5a 100644 --- a/ui/core/app/routes/scopes/scope/auth-methods/index.js +++ b/ui/core/app/routes/scopes/scope/auth-methods/index.js @@ -1,4 +1,3 @@ import Route from '@ember/routing/route'; -export default class ScopesScopeAuthMethodsIndexRoute extends Route { -} +export default class ScopesScopeAuthMethodsIndexRoute extends Route {} diff --git a/ui/core/app/routes/scopes/scope/auth-methods/new.js b/ui/core/app/routes/scopes/scope/auth-methods/new.js index 09fa7d445..dca9fcbdb 100644 --- a/ui/core/app/routes/scopes/scope/auth-methods/new.js +++ b/ui/core/app/routes/scopes/scope/auth-methods/new.js @@ -1,7 +1,6 @@ import Route from '@ember/routing/route'; export default class ScopesScopeAuthMethodsNewRoute extends Route { - // =methods /** @@ -12,8 +11,7 @@ export default class ScopesScopeAuthMethodsNewRoute extends Route { const scopeModel = this.modelFor('scopes.scope'); return this.store.createRecord('auth-method', { scopeModel, - type: 'password' + type: 'password', }); } - } diff --git a/ui/core/app/routes/scopes/scope/groups/group.js b/ui/core/app/routes/scopes/scope/groups/group.js index e7ed63424..0d9ad56bf 100644 --- a/ui/core/app/routes/scopes/scope/groups/group.js +++ b/ui/core/app/routes/scopes/scope/groups/group.js @@ -1,7 +1,6 @@ import Route from '@ember/routing/route'; export default class ScopesScopeGroupsGroupRoute extends Route { - // =methods /** @@ -23,17 +22,17 @@ export default class ScopesScopeGroupsGroupRoute extends Route { this.render('scopes/scope/groups/group/-header', { into: 'scopes/scope/groups/group', - outlet: 'header' + outlet: 'header', }); this.render('scopes/scope/groups/group/-actions', { into: 'scopes/scope/groups/group', - outlet: 'actions' + outlet: 'actions', }); this.render('scopes/scope/groups/group/-navigation', { into: 'scopes/scope/groups/group', - outlet: 'navigation' + outlet: 'navigation', }); } } diff --git a/ui/core/app/routes/scopes/scope/groups/group/add-members.js b/ui/core/app/routes/scopes/scope/groups/group/add-members.js index 303a73662..1a9b8bc07 100644 --- a/ui/core/app/routes/scopes/scope/groups/group/add-members.js +++ b/ui/core/app/routes/scopes/scope/groups/group/add-members.js @@ -4,7 +4,6 @@ import { action } from '@ember/object'; import { hash } from 'rsvp'; export default class ScopesScopeGroupsGroupAddMembersRoute extends Route { - // =services @service intl; @@ -28,7 +27,7 @@ export default class ScopesScopeGroupsGroupAddMembersRoute extends Route { const { scopeID: scope_id } = group; return hash({ group: this.modelFor('scopes.scope.groups.group'), - users: this.store.query('user', { scope_id }) + users: this.store.query('user', { scope_id }), }); } @@ -41,17 +40,17 @@ export default class ScopesScopeGroupsGroupAddMembersRoute extends Route { this.render('scopes/scope/groups/group/add-members/-header', { into: 'scopes/scope/groups/group', - outlet: 'header' + outlet: 'header', }); this.render('-empty', { into: 'scopes/scope/groups/group', - outlet: 'actions' + outlet: 'actions', }); this.render('-empty', { into: 'scopes/scope/groups/group', - outlet: 'navigation' + outlet: 'navigation', }); } @@ -82,5 +81,4 @@ export default class ScopesScopeGroupsGroupAddMembersRoute extends Route { cancel() { this.replaceWith('scopes.scope.groups.group.members'); } - } diff --git a/ui/core/app/routes/scopes/scope/groups/group/members.js b/ui/core/app/routes/scopes/scope/groups/group/members.js index eb3fe8eb2..41b73ba9c 100644 --- a/ui/core/app/routes/scopes/scope/groups/group/members.js +++ b/ui/core/app/routes/scopes/scope/groups/group/members.js @@ -4,7 +4,6 @@ import { inject as service } from '@ember/service'; import { hash, all } from 'rsvp'; export default class ScopesScopeGroupsGroupMembersRoute extends Route { - // =services @service intl; @@ -21,9 +20,11 @@ export default class ScopesScopeGroupsGroupMembersRoute extends Route { const group = this.modelFor('scopes.scope.groups.group'); return hash({ group, - members: all(group.member_ids.map(id => - this.store.findRecord('user', id, { adapterOptions: { scopeID } }) - )) + members: all( + group.member_ids.map((id) => + this.store.findRecord('user', id, { adapterOptions: { scopeID } }) + ) + ), }); } @@ -45,5 +46,4 @@ export default class ScopesScopeGroupsGroupMembersRoute extends Route { this.notify.error(error.message, { closeAfter: null }); } } - } diff --git a/ui/core/app/routes/scopes/scope/orgs.js b/ui/core/app/routes/scopes/scope/orgs.js index c2fa56ffc..7056c6f46 100644 --- a/ui/core/app/routes/scopes/scope/orgs.js +++ b/ui/core/app/routes/scopes/scope/orgs.js @@ -3,7 +3,6 @@ import { inject as service } from '@ember/service'; import { action } from '@ember/object'; export default class ScopesScopeOrgsRoute extends Route { - // =services @service intl; @@ -60,5 +59,4 @@ export default class ScopesScopeOrgsRoute extends Route { this.notify.error(error.message, { closeAfter: null }); } } - } diff --git a/ui/core/app/routes/scopes/scope/orgs/index.js b/ui/core/app/routes/scopes/scope/orgs/index.js index 4a344e13a..e41a21c19 100644 --- a/ui/core/app/routes/scopes/scope/orgs/index.js +++ b/ui/core/app/routes/scopes/scope/orgs/index.js @@ -1,4 +1,3 @@ import Route from '@ember/routing/route'; -export default class ScopesScopeOrgsIndexRoute extends Route { -} +export default class ScopesScopeOrgsIndexRoute extends Route {} diff --git a/ui/core/app/routes/scopes/scope/orgs/new.js b/ui/core/app/routes/scopes/scope/orgs/new.js index 0337f2dce..a8819e58c 100644 --- a/ui/core/app/routes/scopes/scope/orgs/new.js +++ b/ui/core/app/routes/scopes/scope/orgs/new.js @@ -1,7 +1,6 @@ import Route from '@ember/routing/route'; export default class ScopesScopeOrgsNewRoute extends Route { - // =methods /** @@ -14,5 +13,4 @@ export default class ScopesScopeOrgsNewRoute extends Route { scopeID: 'global', }); } - } diff --git a/ui/core/app/routes/scopes/scope/projects/project.js b/ui/core/app/routes/scopes/scope/projects/project.js index 5907122b9..bf92852d2 100644 --- a/ui/core/app/routes/scopes/scope/projects/project.js +++ b/ui/core/app/routes/scopes/scope/projects/project.js @@ -25,7 +25,7 @@ export default class ScopesScopeProjectsProjectRoute extends Route { this.render('scopes/scope/projects/project/_sidebar', { into: 'scopes/scope', outlet: 'sidebar', - model: model + model: model, }); } } diff --git a/ui/core/app/routes/scopes/scope/projects/project/host-catalogs.js b/ui/core/app/routes/scopes/scope/projects/project/host-catalogs.js index feebc44d2..e4df664ef 100644 --- a/ui/core/app/routes/scopes/scope/projects/project/host-catalogs.js +++ b/ui/core/app/routes/scopes/scope/projects/project/host-catalogs.js @@ -3,7 +3,6 @@ import { inject as service } from '@ember/service'; import { action } from '@ember/object'; export default class ScopesScopeProjectsProjectHostCatalogsRoute extends Route { - // =services @service intl; @@ -11,7 +10,6 @@ export default class ScopesScopeProjectsProjectHostCatalogsRoute extends Route { // =methods - /** * Loads all host catalogs under the current scope. * @return {Promise{[HostCatalogModel]}} @@ -48,7 +46,10 @@ export default class ScopesScopeProjectsProjectHostCatalogsRoute extends Route { this.notify.success( this.intl.t(isNew ? 'notify.create-success' : 'notify.save-success') ); - this.transitionTo('scopes.scope.projects.project.host-catalogs.host-catalog', hostCatalog); + this.transitionTo( + 'scopes.scope.projects.project.host-catalogs.host-catalog', + hostCatalog + ); } catch (error) { // TODO: replace with translated strings this.notify.error(error.message, { closeAfter: null }); @@ -71,5 +72,4 @@ export default class ScopesScopeProjectsProjectHostCatalogsRoute extends Route { this.notify.error(error.message, { closeAfter: null }); } } - } diff --git a/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog.js b/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog.js index ef495cef4..71fbe290b 100644 --- a/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog.js +++ b/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog.js @@ -1,7 +1,6 @@ import Route from '@ember/routing/route'; export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogRoute extends Route { - // =methods /** @@ -23,22 +22,31 @@ export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogRoute exte renderTemplate(controller, model) { super.renderTemplate(...arguments); - this.render('scopes/scope/projects/project/host-catalogs/host-catalog/-header', { - into: 'scopes/scope/projects/project/host-catalogs/host-catalog', - outlet: 'header', - model: model - }); + this.render( + 'scopes/scope/projects/project/host-catalogs/host-catalog/-header', + { + into: 'scopes/scope/projects/project/host-catalogs/host-catalog', + outlet: 'header', + model: model, + } + ); - this.render('scopes/scope/projects/project/host-catalogs/host-catalog/-navigation', { - into: 'scopes/scope/projects/project/host-catalogs/host-catalog', - outlet: 'navigation', - model: model - }); + this.render( + 'scopes/scope/projects/project/host-catalogs/host-catalog/-navigation', + { + into: 'scopes/scope/projects/project/host-catalogs/host-catalog', + outlet: 'navigation', + model: model, + } + ); - this.render('scopes/scope/projects/project/host-catalogs/host-catalog/-actions', { - into: 'scopes/scope/projects/project/host-catalogs/host-catalog', - outlet: 'actions', - model: model - }); + this.render( + 'scopes/scope/projects/project/host-catalogs/host-catalog/-actions', + { + into: 'scopes/scope/projects/project/host-catalogs/host-catalog', + outlet: 'actions', + model: model, + } + ); } } diff --git a/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets.js b/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets.js index 3d2ec03bc..9f8617677 100644 --- a/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets.js +++ b/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets.js @@ -15,8 +15,9 @@ export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostSetsRo * @return {Promise{[HostSetModel]}} */ model() { - const { id: host_catalog_id } = - this.modelFor('scopes.scope.projects.project.host-catalogs.host-catalog'); + const { id: host_catalog_id } = this.modelFor( + 'scopes.scope.projects.project.host-catalogs.host-catalog' + ); return this.store.query('host-set', { host_catalog_id }); } @@ -30,7 +31,10 @@ export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostSetsRo cancel(hostSet) { const { isNew } = hostSet; hostSet.rollbackAttributes(); - if (isNew) this.transitionTo('scopes.scope.projects.project.host-catalogs.host-catalog.host-sets'); + if (isNew) + this.transitionTo( + 'scopes.scope.projects.project.host-catalogs.host-catalog.host-sets' + ); } /** @@ -43,7 +47,10 @@ export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostSetsRo try { const { isNew } = hostSet; await hostSet.save(); - await this.transitionTo('scopes.scope.projects.project.host-catalogs.host-catalog.host-sets.host-set', hostSet); + await this.transitionTo( + 'scopes.scope.projects.project.host-catalogs.host-catalog.host-sets.host-set', + hostSet + ); await this.refresh(); this.notify.success( this.intl.t(isNew ? 'notify.create-success' : 'notify.save-success') @@ -63,7 +70,9 @@ export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostSetsRo try { await hostSet.destroyRecord(); this.notify.success(this.intl.t('notify.delete-success')); - this.transitionTo('scopes.scope.projects.project.host-catalogs.host-catalog.host-sets'); + this.transitionTo( + 'scopes.scope.projects.project.host-catalogs.host-catalog.host-sets' + ); } catch (error) { // TODO: replace with translated strings this.notify.error(error.message, { closeAfter: null }); diff --git a/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set.js b/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set.js index 7b422c1ac..91a502f82 100644 --- a/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set.js +++ b/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set.js @@ -22,22 +22,31 @@ export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostSetsHo renderTemplate(controller, model) { super.renderTemplate(...arguments); - this.render('scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/-header', { - into: 'scopes/scope/projects/project/host-catalogs/host-catalog', - outlet: 'header', - model: model - }); + this.render( + 'scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/-header', + { + into: 'scopes/scope/projects/project/host-catalogs/host-catalog', + outlet: 'header', + model: model, + } + ); - this.render('scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/-navigation', { - into: 'scopes/scope/projects/project/host-catalogs/host-catalog', - outlet: 'navigation', - model: model - }); + this.render( + 'scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/-navigation', + { + into: 'scopes/scope/projects/project/host-catalogs/host-catalog', + outlet: 'navigation', + model: model, + } + ); - this.render('scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/-actions', { - into: 'scopes/scope/projects/project/host-catalogs/host-catalog', - outlet: 'actions', - model: model - }); + this.render( + 'scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/-actions', + { + into: 'scopes/scope/projects/project/host-catalogs/host-catalog', + outlet: 'actions', + model: model, + } + ); } } diff --git a/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set/add-hosts.js b/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set/add-hosts.js index d4a301f93..672c9ab58 100644 --- a/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set/add-hosts.js +++ b/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set/add-hosts.js @@ -4,7 +4,6 @@ import { action } from '@ember/object'; import { hash } from 'rsvp'; export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostSetsHostSetAddHostsRoute extends Route { - // =services @service intl; @@ -24,10 +23,14 @@ export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostSetsHo * @return {Promise{HostSetModel,[HostModel]}} */ async model() { - const { id: host_catalog_id } = this.modelFor('scopes.scope.projects.project.host-catalogs.host-catalog'); + const { id: host_catalog_id } = this.modelFor( + 'scopes.scope.projects.project.host-catalogs.host-catalog' + ); return hash({ - hostSet: this.modelFor('scopes.scope.projects.project.host-catalogs.host-catalog.host-sets.host-set'), - hosts: this.store.query('host', { host_catalog_id }) + hostSet: this.modelFor( + 'scopes.scope.projects.project.host-catalogs.host-catalog.host-sets.host-set' + ), + hosts: this.store.query('host', { host_catalog_id }), }); } @@ -39,10 +42,13 @@ export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostSetsHo renderTemplate() { super.renderTemplate(...arguments); - this.render('scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set/add-hosts/-header', { - into: 'scopes/scope/projects/project/host-catalogs/host-catalog', - outlet: 'header', - }); + this.render( + 'scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set/add-hosts/-header', + { + into: 'scopes/scope/projects/project/host-catalogs/host-catalog', + outlet: 'header', + } + ); this.render('-empty', { into: 'scopes/scope/projects/project/host-catalogs/host-catalog', @@ -84,10 +90,10 @@ export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostSetsHo async addHosts(hostSet, hostIDs) { try { await hostSet.addHosts(hostIDs); - await this.replaceWith('scopes.scope.projects.project.host-catalogs.host-catalog.host-sets.host-set.hosts'); - this.notify.success( - this.intl.t('notify.save-success') + await this.replaceWith( + 'scopes.scope.projects.project.host-catalogs.host-catalog.host-sets.host-set.hosts' ); + this.notify.success(this.intl.t('notify.save-success')); } catch (error) { // TODO: replace with translated strings this.notify.error(error.message, { closeAfter: null }); @@ -99,6 +105,8 @@ export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostSetsHo */ @action cancel() { - this.replaceWith('scopes.scope.projects.project.host-catalogs.host-catalog.host-sets.host-set.hosts'); + this.replaceWith( + 'scopes.scope.projects.project.host-catalogs.host-catalog.host-sets.host-set.hosts' + ); } } diff --git a/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set/hosts.js b/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set/hosts.js index 7ae488994..a8724fdff 100644 --- a/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set/hosts.js +++ b/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set/hosts.js @@ -4,7 +4,6 @@ import { action } from '@ember/object'; import { inject as service } from '@ember/service'; export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostSetsHostSetHostsRoute extends Route { - // =services @service intl; @@ -17,12 +16,16 @@ export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostSetsHo * @return {Promise{HostSetModel,[HostModel]}} */ async model() { - const hostSet = this.modelFor('scopes.scope.projects.project.host-catalogs.host-catalog.host-sets.host-set'); + const hostSet = this.modelFor( + 'scopes.scope.projects.project.host-catalogs.host-catalog.host-sets.host-set' + ); return hash({ hostSet, - hosts: all(hostSet.host_ids.map(host => - this.store.findRecord('host', host.value, { reload: true }) - )) + hosts: all( + hostSet.host_ids.map((host) => + this.store.findRecord('host', host.value, { reload: true }) + ) + ), }); } @@ -35,8 +38,12 @@ export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostSetsHo async removeHost(hostSet, host) { try { const scopeID = this.modelFor('scopes.scope.projects.project').id; - const hostCatalogID = this.modelFor('scopes.scope.projects.project.host-catalogs.host-catalog').id; - await hostSet.removeHost(host.id, { adapterOptions : { scopeID, hostCatalogID } }); + const hostCatalogID = this.modelFor( + 'scopes.scope.projects.project.host-catalogs.host-catalog' + ).id; + await hostSet.removeHost(host.id, { + adapterOptions: { scopeID, hostCatalogID }, + }); this.refresh(); this.notify.success(this.intl.t('notify.delete-success')); } catch (error) { diff --git a/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set/index.js b/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set/index.js index 261452404..0f73c321d 100644 --- a/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set/index.js +++ b/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set/index.js @@ -1,4 +1,3 @@ import Route from '@ember/routing/route'; -export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostSetsHostSetIndexRoute extends Route { -} +export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostSetsHostSetIndexRoute extends Route {} diff --git a/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/index.js b/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/index.js index dd0a311d8..8243577dc 100644 --- a/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/index.js +++ b/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/index.js @@ -1,4 +1,3 @@ import Route from '@ember/routing/route'; -export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostSetsIndexRoute extends Route { -} +export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostSetsIndexRoute extends Route {} diff --git a/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/new.js b/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/new.js index 378b78c7a..44a134995 100644 --- a/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/new.js +++ b/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/new.js @@ -1,7 +1,6 @@ import Route from '@ember/routing/route'; export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostSetsNewRoute extends Route { - // =methods /** @@ -9,11 +8,12 @@ export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostSetsNe * @return {HostSetModel} */ model() { - const { id: host_catalog_id } = - this.modelFor('scopes.scope.projects.project.host-catalogs.host-catalog'); + const { id: host_catalog_id } = this.modelFor( + 'scopes.scope.projects.project.host-catalogs.host-catalog' + ); return this.store.createRecord('host-set', { type: 'static', - host_catalog_id + host_catalog_id, }); } @@ -26,22 +26,25 @@ export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostSetsNe renderTemplate(controller, model) { super.renderTemplate(...arguments); - this.render('scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/new/-header', { - into: 'scopes/scope/projects/project/host-catalogs/host-catalog', - outlet: 'header', - model: model - }); + this.render( + 'scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/new/-header', + { + into: 'scopes/scope/projects/project/host-catalogs/host-catalog', + outlet: 'header', + model: model, + } + ); this.render('_empty', { into: 'scopes/scope/projects/project/host-catalogs/host-catalog', outlet: 'navigation', - model: model + model: model, }); this.render('_empty', { into: 'scopes/scope/projects/project/host-catalogs/host-catalog', outlet: 'actions', - model: model + model: model, }); } } diff --git a/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/hosts.js b/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/hosts.js index d8bfcfddc..8d9951af8 100644 --- a/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/hosts.js +++ b/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/hosts.js @@ -15,8 +15,9 @@ export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostsRoute * @return {Promise{[HostModel]}} */ model() { - const { id: host_catalog_id } = - this.modelFor('scopes.scope.projects.project.host-catalogs.host-catalog'); + const { id: host_catalog_id } = this.modelFor( + 'scopes.scope.projects.project.host-catalogs.host-catalog' + ); return this.store.query('host', { host_catalog_id }); } @@ -30,7 +31,10 @@ export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostsRoute cancel(host) { const { isNew } = host; host.rollbackAttributes(); - if (isNew) this.transitionTo('scopes.scope.projects.project.host-catalogs.host-catalog.hosts'); + if (isNew) + this.transitionTo( + 'scopes.scope.projects.project.host-catalogs.host-catalog.hosts' + ); } /** @@ -43,7 +47,10 @@ export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostsRoute try { const { isNew } = host; await host.save(); - await this.transitionTo('scopes.scope.projects.project.host-catalogs.host-catalog.hosts.host', host); + await this.transitionTo( + 'scopes.scope.projects.project.host-catalogs.host-catalog.hosts.host', + host + ); await this.refresh(); this.notify.success( this.intl.t(isNew ? 'notify.create-success' : 'notify.save-success') @@ -64,7 +71,9 @@ export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostsRoute await host.destroyRecord(); this.refresh(); this.notify.success(this.intl.t('notify.delete-success')); - this.transitionTo('scopes.scope.projects.project.host-catalogs.host-catalog.hosts'); + this.transitionTo( + 'scopes.scope.projects.project.host-catalogs.host-catalog.hosts' + ); } catch (error) { // TODO: replace with translated strings this.notify.error(error.message, { closeAfter: null }); diff --git a/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/host.js b/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/host.js index 2561da8d6..1cfa23223 100644 --- a/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/host.js +++ b/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/host.js @@ -22,22 +22,31 @@ export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostsHostR renderTemplate(controller, model) { super.renderTemplate(...arguments); - this.render('scopes/scope/projects/project/host-catalogs/host-catalog/hosts/-header', { - into: 'scopes/scope/projects/project/host-catalogs/host-catalog', - outlet: 'header', - model: model - }); + this.render( + 'scopes/scope/projects/project/host-catalogs/host-catalog/hosts/-header', + { + into: 'scopes/scope/projects/project/host-catalogs/host-catalog', + outlet: 'header', + model: model, + } + ); - this.render('scopes/scope/projects/project/host-catalogs/host-catalog/hosts/-navigation', { - into: 'scopes/scope/projects/project/host-catalogs/host-catalog', - outlet: 'navigation', - model: model - }); + this.render( + 'scopes/scope/projects/project/host-catalogs/host-catalog/hosts/-navigation', + { + into: 'scopes/scope/projects/project/host-catalogs/host-catalog', + outlet: 'navigation', + model: model, + } + ); - this.render('scopes/scope/projects/project/host-catalogs/host-catalog/hosts/-actions', { - into: 'scopes/scope/projects/project/host-catalogs/host-catalog', - outlet: 'actions', - model: model - }); + this.render( + 'scopes/scope/projects/project/host-catalogs/host-catalog/hosts/-actions', + { + into: 'scopes/scope/projects/project/host-catalogs/host-catalog', + outlet: 'actions', + model: model, + } + ); } } diff --git a/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/host/index.js b/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/host/index.js index a270ffacc..14e5c2210 100644 --- a/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/host/index.js +++ b/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/host/index.js @@ -1,4 +1,3 @@ import Route from '@ember/routing/route'; -export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostsHostIndexRoute extends Route { -} +export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostsHostIndexRoute extends Route {} diff --git a/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/index.js b/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/index.js index 96bba9927..d6847d0b1 100644 --- a/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/index.js +++ b/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/index.js @@ -1,4 +1,3 @@ import Route from '@ember/routing/route'; -export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostsIndexRoute extends Route { -} +export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostsIndexRoute extends Route {} diff --git a/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/new.js b/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/new.js index d8234bc47..6ea7a3f7b 100644 --- a/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/new.js +++ b/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/new.js @@ -1,7 +1,6 @@ import Route from '@ember/routing/route'; export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostsNewRoute extends Route { - // =methods /** @@ -9,11 +8,12 @@ export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostsNewRo * @return {HostModel} */ model() { - const { id: host_catalog_id } = - this.modelFor('scopes.scope.projects.project.host-catalogs.host-catalog'); + const { id: host_catalog_id } = this.modelFor( + 'scopes.scope.projects.project.host-catalogs.host-catalog' + ); return this.store.createRecord('host', { type: 'static', - host_catalog_id + host_catalog_id, }); } @@ -26,22 +26,25 @@ export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostsNewRo renderTemplate(controller, model) { super.renderTemplate(...arguments); - this.render('scopes/scope/projects/project/host-catalogs/host-catalog/hosts/new/-header', { - into: 'scopes/scope/projects/project/host-catalogs/host-catalog', - outlet: 'header', - model: model - }); + this.render( + 'scopes/scope/projects/project/host-catalogs/host-catalog/hosts/new/-header', + { + into: 'scopes/scope/projects/project/host-catalogs/host-catalog', + outlet: 'header', + model: model, + } + ); this.render('_empty', { into: 'scopes/scope/projects/project/host-catalogs/host-catalog', outlet: 'navigation', - model: model + model: model, }); this.render('_empty', { into: 'scopes/scope/projects/project/host-catalogs/host-catalog', outlet: 'actions', - model: model + model: model, }); } } diff --git a/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/index.js b/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/index.js index 34bccc035..88bc29fe9 100644 --- a/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/index.js +++ b/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/host-catalog/index.js @@ -1,4 +1,3 @@ import Route from '@ember/routing/route'; -export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogIndexRoute extends Route { -} +export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogIndexRoute extends Route {} diff --git a/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/index.js b/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/index.js index b01277c47..be34e9260 100644 --- a/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/index.js +++ b/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/index.js @@ -1,4 +1,3 @@ import Route from '@ember/routing/route'; -export default class ScopesScopeProjectsProjectHostCatalogsIndexRoute extends Route { -} +export default class ScopesScopeProjectsProjectHostCatalogsIndexRoute extends Route {} diff --git a/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/new.js b/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/new.js index 22097c23d..58e326cb8 100644 --- a/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/new.js +++ b/ui/core/app/routes/scopes/scope/projects/project/host-catalogs/new.js @@ -1,7 +1,6 @@ import Route from '@ember/routing/route'; export default class ScopesScopeProjectsProjectHostCatalogsNewRoute extends Route { - // =methods /** @@ -12,8 +11,7 @@ export default class ScopesScopeProjectsProjectHostCatalogsNewRoute extends Rout const scopeModel = this.modelFor('scopes.scope.projects.project'); return this.store.createRecord('host-catalog', { type: 'static', - scopeModel + scopeModel, }); } - } diff --git a/ui/core/app/routes/scopes/scope/projects/project/targets.js b/ui/core/app/routes/scopes/scope/projects/project/targets.js index e91f0480e..8b62762bf 100644 --- a/ui/core/app/routes/scopes/scope/projects/project/targets.js +++ b/ui/core/app/routes/scopes/scope/projects/project/targets.js @@ -3,7 +3,6 @@ import { inject as service } from '@ember/service'; import { action } from '@ember/object'; export default class ScopesScopeProjectsProjectTargetsRoute extends Route { - // =services @service intl; @@ -70,5 +69,4 @@ export default class ScopesScopeProjectsProjectTargetsRoute extends Route { this.notify.error(error.message, { closeAfter: null }); } } - } diff --git a/ui/core/app/routes/scopes/scope/projects/project/targets/index.js b/ui/core/app/routes/scopes/scope/projects/project/targets/index.js index 0506aa8da..903db12df 100644 --- a/ui/core/app/routes/scopes/scope/projects/project/targets/index.js +++ b/ui/core/app/routes/scopes/scope/projects/project/targets/index.js @@ -1,4 +1,3 @@ import Route from '@ember/routing/route'; -export default class ScopesScopeProjectsProjectTargetsIndexRoute extends Route { -} +export default class ScopesScopeProjectsProjectTargetsIndexRoute extends Route {} diff --git a/ui/core/app/routes/scopes/scope/projects/project/targets/new.js b/ui/core/app/routes/scopes/scope/projects/project/targets/new.js index ab5c04496..d6cbcaf99 100644 --- a/ui/core/app/routes/scopes/scope/projects/project/targets/new.js +++ b/ui/core/app/routes/scopes/scope/projects/project/targets/new.js @@ -1,7 +1,6 @@ import Route from '@ember/routing/route'; export default class ScopesScopeProjectsProjectTargetsNewRoute extends Route { - // =methods /** @@ -12,8 +11,7 @@ export default class ScopesScopeProjectsProjectTargetsNewRoute extends Route { const scopeModel = this.modelFor('scopes.scope.projects.project'); return this.store.createRecord('target', { type: 'tcp', - scopeModel + scopeModel, }); } - } diff --git a/ui/core/app/routes/scopes/scope/projects/project/targets/target.js b/ui/core/app/routes/scopes/scope/projects/project/targets/target.js index c13eebac6..83bd76120 100644 --- a/ui/core/app/routes/scopes/scope/projects/project/targets/target.js +++ b/ui/core/app/routes/scopes/scope/projects/project/targets/target.js @@ -1,7 +1,6 @@ import Route from '@ember/routing/route'; export default class ScopesScopeProjectsProjectTargetsTargetRoute extends Route { - // =methods /** @@ -37,5 +36,4 @@ export default class ScopesScopeProjectsProjectTargetsTargetRoute extends Route outlet: 'actions', }); } - } diff --git a/ui/core/app/routes/scopes/scope/projects/project/targets/target/add-host-sets.js b/ui/core/app/routes/scopes/scope/projects/project/targets/target/add-host-sets.js index 96e1cd71a..d5b31a9c2 100644 --- a/ui/core/app/routes/scopes/scope/projects/project/targets/target/add-host-sets.js +++ b/ui/core/app/routes/scopes/scope/projects/project/targets/target/add-host-sets.js @@ -4,7 +4,6 @@ import { action } from '@ember/object'; import { all } from 'rsvp'; export default class ScopesScopeProjectsProjectTargetsTargetAddHostSetsRoute extends Route { - // =services @service intl; @@ -24,18 +23,21 @@ export default class ScopesScopeProjectsProjectTargetsTargetAddHostSetsRoute ext * @return {{target: TargetModel, hostCatalogs: [HostCatalogModel], hostSets: [HostSetModel]}} */ async model() { - const target = - this.modelFor('scopes.scope.projects.project.targets.target'); + const target = this.modelFor( + 'scopes.scope.projects.project.targets.target' + ); const { id: scope_id } = this.modelFor('scopes.scope.projects.project'); const hostCatalogs = await this.store.query('host-catalog', { scope_id }); - await all(hostCatalogs.map(({ id: host_catalog_id }) => - this.store.query('host-set', { host_catalog_id }) - )); + await all( + hostCatalogs.map(({ id: host_catalog_id }) => + this.store.query('host-set', { host_catalog_id }) + ) + ); const hostSets = this.store.peekAll('host-set'); return { target, hostCatalogs, - hostSets + hostSets, }; } @@ -46,10 +48,13 @@ export default class ScopesScopeProjectsProjectTargetsTargetAddHostSetsRoute ext renderTemplate() { super.renderTemplate(...arguments); - this.render('scopes/scope/projects/project/targets/target/add-host-sets/-header', { - into: 'scopes/scope/projects/project/targets/target', - outlet: 'header', - }); + this.render( + 'scopes/scope/projects/project/targets/target/add-host-sets/-header', + { + into: 'scopes/scope/projects/project/targets/target', + outlet: 'header', + } + ); this.render('-empty', { into: 'scopes/scope/projects/project/targets/target', @@ -68,7 +73,9 @@ export default class ScopesScopeProjectsProjectTargetsTargetAddHostSetsRoute ext async save(target, hostSetIDs) { try { await target.addHostSets(hostSetIDs); - this.replaceWith('scopes.scope.projects.project.targets.target.host-sets'); + this.replaceWith( + 'scopes.scope.projects.project.targets.target.host-sets' + ); this.notify.success(this.intl.t('notify.save-success')); } catch (error) { // TODO: replace with translated strings diff --git a/ui/core/app/routes/scopes/scope/projects/project/targets/target/host-sets.js b/ui/core/app/routes/scopes/scope/projects/project/targets/target/host-sets.js index d60d1d2f0..e6e85ca01 100644 --- a/ui/core/app/routes/scopes/scope/projects/project/targets/target/host-sets.js +++ b/ui/core/app/routes/scopes/scope/projects/project/targets/target/host-sets.js @@ -3,7 +3,6 @@ import { all, hash } from 'rsvp'; import { action } from '@ember/object'; import { inject as service } from '@ember/service'; - export default class ScopesScopeProjectsProjectTargetsTargetHostSetsRoute extends Route { // =services @@ -18,26 +17,23 @@ export default class ScopesScopeProjectsProjectTargetsTargetHostSetsRoute extend * @return {Promise{[HostSetModel, HostCatalogModel]}} */ beforeModel() { - const { scopeID, host_sets } = - this.modelFor('scopes.scope.projects.project.targets.target'); - const promises = host_sets - .map(({ host_set_id, host_catalog_id: hostCatalogID }) => + const { scopeID, host_sets } = this.modelFor( + 'scopes.scope.projects.project.targets.target' + ); + const promises = host_sets.map( + ({ host_set_id, host_catalog_id: hostCatalogID }) => hash({ // TODO: multiple host sets may belong to the same catalog, // resulting in the catalog being loaded multiple times. // An improvement would be to find the unique set of catalogs first. - hostCatalog: this.store.findRecord( - 'host-catalog', - hostCatalogID, - { adapterOptions: { scopeID } } - ), - hostSet: this.store.findRecord( - 'host-set', - host_set_id, - { adapterOptions: { scopeID, hostCatalogID } } - ) + hostCatalog: this.store.findRecord('host-catalog', hostCatalogID, { + adapterOptions: { scopeID }, + }), + hostSet: this.store.findRecord('host-set', host_set_id, { + adapterOptions: { scopeID, hostCatalogID }, + }), }) - ); + ); return all(promises); } diff --git a/ui/core/app/routes/scopes/scope/projects/project/targets/target/host-sets/host-set.js b/ui/core/app/routes/scopes/scope/projects/project/targets/target/host-sets/host-set.js index 2b45938a3..e7843fca7 100644 --- a/ui/core/app/routes/scopes/scope/projects/project/targets/target/host-sets/host-set.js +++ b/ui/core/app/routes/scopes/scope/projects/project/targets/target/host-sets/host-set.js @@ -1,4 +1,3 @@ import Route from '@ember/routing/route'; -export default class ScopesScopeProjectsProjectTargetsTargetHostSetsHostSetRoute extends Route { -} +export default class ScopesScopeProjectsProjectTargetsTargetHostSetsHostSetRoute extends Route {} diff --git a/ui/core/app/routes/scopes/scope/projects/project/targets/target/host-sets/index.js b/ui/core/app/routes/scopes/scope/projects/project/targets/target/host-sets/index.js index 6e14d67c1..80a35e875 100644 --- a/ui/core/app/routes/scopes/scope/projects/project/targets/target/host-sets/index.js +++ b/ui/core/app/routes/scopes/scope/projects/project/targets/target/host-sets/index.js @@ -1,4 +1,3 @@ import Route from '@ember/routing/route'; -export default class ScopesScopeProjectsProjectTargetsTargetHostSetsIndexRoute extends Route { -} +export default class ScopesScopeProjectsProjectTargetsTargetHostSetsIndexRoute extends Route {} diff --git a/ui/core/app/routes/scopes/scope/projects/project/targets/target/index.js b/ui/core/app/routes/scopes/scope/projects/project/targets/target/index.js index ff772f61f..3eb6dfa5f 100644 --- a/ui/core/app/routes/scopes/scope/projects/project/targets/target/index.js +++ b/ui/core/app/routes/scopes/scope/projects/project/targets/target/index.js @@ -1,4 +1,3 @@ import Route from '@ember/routing/route'; -export default class ScopesScopeProjectsProjectTargetsTargetIndexRoute extends Route { -} +export default class ScopesScopeProjectsProjectTargetsTargetIndexRoute extends Route {} diff --git a/ui/core/app/routes/scopes/scope/roles/role/add-principals.js b/ui/core/app/routes/scopes/scope/roles/role/add-principals.js index afa955a90..0bb2c0e5a 100644 --- a/ui/core/app/routes/scopes/scope/roles/role/add-principals.js +++ b/ui/core/app/routes/scopes/scope/roles/role/add-principals.js @@ -4,7 +4,6 @@ import { action } from '@ember/object'; import { hash } from 'rsvp'; export default class ScopesScopeRolesRoleAddPrincipalsRoute extends Route { - // =services @service intl; @@ -22,7 +21,7 @@ export default class ScopesScopeRolesRoleAddPrincipalsRoute extends Route { return hash({ role, users: this.store.query('user', { scope_id }), - groups: this.store.query('group', { scope_id }) + groups: this.store.query('group', { scope_id }), }); } @@ -76,5 +75,4 @@ export default class ScopesScopeRolesRoleAddPrincipalsRoute extends Route { cancel() { this.replaceWith('scopes.scope.roles.role.principals'); } - } diff --git a/ui/core/app/routes/scopes/scope/roles/role/grants.js b/ui/core/app/routes/scopes/scope/roles/role/grants.js index a46277957..60368286b 100644 --- a/ui/core/app/routes/scopes/scope/roles/role/grants.js +++ b/ui/core/app/routes/scopes/scope/roles/role/grants.js @@ -3,7 +3,6 @@ import { inject as service } from '@ember/service'; import { action } from '@ember/object'; export default class ScopesScopeRolesRoleGrantsRoute extends Route { - // =services @service intl; @@ -42,13 +41,10 @@ export default class ScopesScopeRolesRoleGrantsRoute extends Route { async save(role) { try { await role.saveGrants(); - this.notify.success( - this.intl.t('notify.save-success') - ); + this.notify.success(this.intl.t('notify.save-success')); } catch (error) { // TODO: replace with translated strings this.notify.error(error.message, { closeAfter: null }); } } - } diff --git a/ui/core/app/routes/scopes/scope/roles/role/principals.js b/ui/core/app/routes/scopes/scope/roles/role/principals.js index 9f7545830..ca364acfd 100644 --- a/ui/core/app/routes/scopes/scope/roles/role/principals.js +++ b/ui/core/app/routes/scopes/scope/roles/role/principals.js @@ -4,12 +4,10 @@ import { action } from '@ember/object'; import { inject as service } from '@ember/service'; export default class ScopesScopeRolesRolePrincipalsRoute extends Route { - // =services @service intl; @service notify; - // =methods /** @@ -23,19 +21,19 @@ export default class ScopesScopeRolesRolePrincipalsRoute extends Route { const users = role.principals .filterBy('type', 'user') .map(({ principal_id }) => - this.store.findRecord('user', principal_id, { adapterOptions }) - .then(model => ({ + this.store + .findRecord('user', principal_id, { adapterOptions }) + .then((model) => ({ type: 'user', - model + model, })) ); const groups = role.principals .filterBy('type', 'group') .map(({ principal_id }) => - this.store.findRecord('group', principal_id) - .then(model => ({ + this.store.findRecord('group', principal_id).then((model) => ({ type: 'group', - model + model, })) ); return all(users.concat(groups)); diff --git a/ui/core/app/styles/_notify.scss b/ui/core/app/styles/_notify.scss index 784bc746f..438f0950c 100644 --- a/ui/core/app/styles/_notify.scss +++ b/ui/core/app/styles/_notify.scss @@ -61,19 +61,19 @@ .ember-notify-show { -webkit-animation-duration: 500ms; -webkit-animation-name: ember-notify-show; - -webkit-animation-timing-function: cubic-bezier(.175, .885, .32, 1.275); + -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275); animation-duration: 500ms; animation-name: ember-notify-show; - animation-timing-function: cubic-bezier(.175, .885, .32, 1.275); + animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275); } .ember-notify-hide { -webkit-animation-duration: 250ms; -webkit-animation-name: ember-notify-hide; - -webkit-animation-timing-function: cubic-bezier(.6, -.28, .735, .045); + -webkit-animation-timing-function: cubic-bezier(0.6, -0.28, 0.735, 0.045); animation-duration: 250ms; animation-name: ember-notify-hide; - animation-timing-function: cubic-bezier(.6, -.28, .735, .045); + animation-timing-function: cubic-bezier(0.6, -0.28, 0.735, 0.045); &:hover { -moz-animation-play-state: paused; diff --git a/ui/core/tests/acceptance/authentication-test.js b/ui/core/tests/acceptance/authentication-test.js index 86425d6fa..9a6641194 100644 --- a/ui/core/tests/acceptance/authentication-test.js +++ b/ui/core/tests/acceptance/authentication-test.js @@ -1,5 +1,13 @@ import { module, test } from 'qunit'; -import { visit, currentURL, fillIn, click, find, findAll, setupOnerror } from '@ember/test-helpers'; +import { + visit, + currentURL, + fillIn, + click, + find, + findAll, + setupOnerror, +} from '@ember/test-helpers'; import { setupApplicationTest } from 'ember-qunit'; import setupMirage from 'ember-cli-mirage/test-support/setup-mirage'; import { Response } from 'miragejs'; @@ -45,7 +53,9 @@ module('Acceptance | authentication', function (hooks) { 'withChildren' ); scope = { id: orgScope.id, type: orgScope.type }; - globalAuthMethod = this.server.create('auth-method', { scope: globalScope }); + globalAuthMethod = this.server.create('auth-method', { + scope: globalScope, + }); authMethod = this.server.create('auth-method', { scope: orgScope }); orgScopeID = orgScope.id; globalAuthMethodID = globalAuthMethod.id; @@ -69,7 +79,7 @@ module('Acceptance | authentication', function (hooks) { test('visiting auth methods authenticate route when there no methods shows a message', async function (assert) { assert.expect(2); - authMethod.destroy() + authMethod.destroy(); await visit(authenticateURL); await a11yAudit(); assert.equal(currentURL(), authenticateURL); @@ -127,7 +137,9 @@ module('Acceptance | authentication', function (hooks) { test('visiting index or scopes routes while already authenticated with global redirects to orgs', async function (assert) { assert.expect(4); - authenticateSession({ scope: { id: globalScope.id, type: globalScope.type } }); + authenticateSession({ + scope: { id: globalScope.id, type: globalScope.type }, + }); await visit(indexURL); assert.equal(currentURL(), orgsURL); await visit(scopesURL); @@ -169,7 +181,9 @@ module('Acceptance | authentication', function (hooks) { // Open header utilities dropdown await click('.rose-header-utilities .rose-dropdown summary'); // Find and click on last element in dropdown - should be deauthenticate button - const menu = findAll('.rose-header-utilities .rose-dropdown .rose-dropdown-content button'); + const menu = findAll( + '.rose-header-utilities .rose-dropdown .rose-dropdown-content button' + ); await click(menu[menu.length - 1]); assert.notOk(currentSession().isAuthenticated); assert.equal(currentURL(), authMethodGlobalAuthenticateURL); @@ -177,12 +191,20 @@ module('Acceptance | authentication', function (hooks) { test('401 responses result in deauthentication', async function (assert) { assert.expect(2); - authenticateSession({ scope: { id: globalScope.id, type: globalScope.type } }); + authenticateSession({ + scope: { id: globalScope.id, type: globalScope.type }, + }); await visit(orgsURL); - assert.ok(currentSession().isAuthenticated, 'Session begins authenticated, before encountering 401'); + assert.ok( + currentSession().isAuthenticated, + 'Session begins authenticated, before encountering 401' + ); this.server.get('/scopes', () => new Response(401)); setupOnerror(() => { - assert.notOk(currentSession().isAuthenticated, 'Session is unauthenticated, after encountering 401'); + assert.notOk( + currentSession().isAuthenticated, + 'Session is unauthenticated, after encountering 401' + ); }); await visit(projectsURL); }); diff --git a/ui/core/tests/acceptance/bread-crumbs-test.js b/ui/core/tests/acceptance/bread-crumbs-test.js index 4dc48c832..02d7474f2 100644 --- a/ui/core/tests/acceptance/bread-crumbs-test.js +++ b/ui/core/tests/acceptance/bread-crumbs-test.js @@ -45,7 +45,9 @@ module('Acceptance | breadcrumbs', function (hooks) { user = this.server.create('user', { scope: orgScope }); role = this.server.create('role', { scope: orgScope }); group = this.server.create('group', { scope: orgScope }); - hostCatalog = this.server.create('host-catalog', { scope: getProjectScope() }); + hostCatalog = this.server.create('host-catalog', { + scope: getProjectScope(), + }); projectsURL = `/scopes/${orgScope.id}/projects`; newProjectURL = `${projectsURL}/new`; diff --git a/ui/core/tests/acceptance/groups-test.js b/ui/core/tests/acceptance/groups-test.js index df2967970..6f04e2492 100644 --- a/ui/core/tests/acceptance/groups-test.js +++ b/ui/core/tests/acceptance/groups-test.js @@ -30,7 +30,7 @@ module('Acceptance | groups', function (hooks) { ); const group = this.server.create('group', { - scope: orgScope + scope: orgScope, }); groupsURL = `/scopes/${orgScope.id}/groups`; @@ -219,7 +219,7 @@ module('Acceptance | groups', function (hooks) { assert.expect(0); }); - test('can delete members', async function(assert) { + test('can delete members', async function (assert) { assert.expect(0); }); @@ -230,5 +230,4 @@ module('Acceptance | groups', function (hooks) { test('select and cancel members to add', async function (assert) { assert.expect(0); }); - }); diff --git a/ui/core/tests/acceptance/host-catalogs-test.js b/ui/core/tests/acceptance/host-catalogs-test.js index 7b4f0d6b2..677fada21 100644 --- a/ui/core/tests/acceptance/host-catalogs-test.js +++ b/ui/core/tests/acceptance/host-catalogs-test.js @@ -19,9 +19,9 @@ module('Acceptance | host catalogs', function (hooks) { scopes: { global: null, org: null, - project: null + project: null, }, - hostCatalog: null + hostCatalog: null, }; const urls = { orgScope: null, @@ -29,20 +29,22 @@ module('Acceptance | host catalogs', function (hooks) { project: null, hostCatalogs: null, newHostCatalog: null, - hostCatalog: null + hostCatalog: null, }; hooks.beforeEach(function () { // Setup Mirage mock resources for this test instances.scopes.global = this.server.create('scope', { id: 'global' }); - instances.scopes.org = this.server.create('scope', { type: 'org', - scope: { id: 'global', type: 'global' } + instances.scopes.org = this.server.create('scope', { + type: 'org', + scope: { id: 'global', type: 'global' }, }); - instances.scopes.project = this.server.create('scope', { type: 'project', - scope: { id: instances.scopes.org.id, type: 'org' } + instances.scopes.project = this.server.create('scope', { + type: 'project', + scope: { id: instances.scopes.org.id, type: 'org' }, }); instances.hostCatalog = this.server.create('host-catalog', { - scope: instances.scopes.project + scope: instances.scopes.project, }); // Generate route URLs for resources @@ -99,7 +101,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(1); const hostCatalogsCount = this.server.db.hostCatalogs.length; authenticateSession({}); @@ -109,7 +111,7 @@ module('Acceptance | host catalogs', function (hooks) { assert.equal(this.server.db.hostCatalogs.length, hostCatalogsCount + 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(1); const hostCatalogsCount = this.server.db.hostCatalogs.length; authenticateSession({}); diff --git a/ui/core/tests/acceptance/host-sets-test.js b/ui/core/tests/acceptance/host-sets-test.js index a5bac11c9..741283838 100644 --- a/ui/core/tests/acceptance/host-sets-test.js +++ b/ui/core/tests/acceptance/host-sets-test.js @@ -70,5 +70,4 @@ module('Acceptance | host sets', function (hooks) { test('can cancel add/remove host associations to a host set', async function (assert) { assert.expect(0); }); - }); diff --git a/ui/core/tests/acceptance/orgs-test.js b/ui/core/tests/acceptance/orgs-test.js index 5871fd404..941d3429c 100644 --- a/ui/core/tests/acceptance/orgs-test.js +++ b/ui/core/tests/acceptance/orgs-test.js @@ -4,12 +4,11 @@ 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'; +import //authenticateSession, +// These are left here intentionally for future reference. +//currentSession, +//invalidateSession, +'ember-simple-auth/test-support'; module('Acceptance | org', function (hooks) { setupApplicationTest(hooks); diff --git a/ui/core/tests/acceptance/roles-test.js b/ui/core/tests/acceptance/roles-test.js index edb2d59c3..df68d06eb 100644 --- a/ui/core/tests/acceptance/roles-test.js +++ b/ui/core/tests/acceptance/roles-test.js @@ -30,7 +30,7 @@ module('Acceptance | roles', function (hooks) { ); const role = this.server.create('role', { - scope: orgScope + scope: orgScope, }); rolesURL = `/scopes/${orgScope.id}/roles`; @@ -219,7 +219,7 @@ module('Acceptance | roles', function (hooks) { assert.expect(0); }); - test('principal can be removed from a role', async function(assert) { + test('principal can be removed from a role', async function (assert) { assert.expect(0); }); @@ -239,7 +239,7 @@ module('Acceptance | roles', function (hooks) { assert.expect(0); }); - test('can delete a principal', async function(assert) { + test('can delete a principal', async function (assert) { assert.expect(0); }); diff --git a/ui/core/tests/acceptance/targets-test.js b/ui/core/tests/acceptance/targets-test.js index 734090704..d7858be8a 100644 --- a/ui/core/tests/acceptance/targets-test.js +++ b/ui/core/tests/acceptance/targets-test.js @@ -63,10 +63,10 @@ module('Acceptance | targets', function (hooks) { assert.expect(0); }); - test('can delete a host sets', async function(assert) { + test('can delete a host sets', async function (assert) { assert.expect(0); }); - + test('select and save host sets to add', async function (assert) { assert.expect(0); }); diff --git a/ui/core/tests/acceptance/users-test.js b/ui/core/tests/acceptance/users-test.js index 8ef6afc98..36e57926a 100644 --- a/ui/core/tests/acceptance/users-test.js +++ b/ui/core/tests/acceptance/users-test.js @@ -30,7 +30,7 @@ module('Acceptance | users', function (hooks) { ); const user = this.server.create('user', { - scope: orgScope + scope: orgScope, }); usersURL = `/scopes/${orgScope.id}/users`; diff --git a/ui/core/tests/integration/components/form/account-test.js b/ui/core/tests/integration/components/form/account-test.js index dddbd38c8..5fc184035 100644 --- a/ui/core/tests/integration/components/form/account-test.js +++ b/ui/core/tests/integration/components/form/account-test.js @@ -3,7 +3,7 @@ import { setupRenderingTest } from 'ember-qunit'; import { render, find } from '@ember/test-helpers'; import { hbs } from 'ember-cli-htmlbars'; -module('Integration | Component | form/account/index', function(hooks) { +module('Integration | Component | form/account/index', function (hooks) { setupRenderingTest(hooks); test('it renders', async function (assert) { @@ -20,5 +20,4 @@ module('Integration | Component | form/account/index', function(hooks) { assert.ok(find('form')); }); - }); diff --git a/ui/core/tests/integration/components/form/account/password-test.js b/ui/core/tests/integration/components/form/account/password-test.js index 0b25dc826..3ac6bf4ed 100644 --- a/ui/core/tests/integration/components/form/account/password-test.js +++ b/ui/core/tests/integration/components/form/account/password-test.js @@ -3,7 +3,7 @@ import { setupRenderingTest } from 'ember-qunit'; import { render, find } from '@ember/test-helpers'; import { hbs } from 'ember-cli-htmlbars'; -module('Integration | Component | form/account/password', function(hooks) { +module('Integration | Component | form/account/password', function (hooks) { setupRenderingTest(hooks); test('it renders', async function (assert) { @@ -20,5 +20,4 @@ module('Integration | Component | form/account/password', function(hooks) { assert.ok(find('form')); }); - }); diff --git a/ui/core/tests/integration/components/form/account/password/set-password-test.js b/ui/core/tests/integration/components/form/account/password/set-password-test.js index e6326aaa7..ae4e1d355 100644 --- a/ui/core/tests/integration/components/form/account/password/set-password-test.js +++ b/ui/core/tests/integration/components/form/account/password/set-password-test.js @@ -3,21 +3,24 @@ import { setupRenderingTest } from 'ember-qunit'; import { render, find } from '@ember/test-helpers'; import { hbs } from 'ember-cli-htmlbars'; -module('Integration | Component | form/account/password/set-password', function(hooks) { - setupRenderingTest(hooks); +module( + 'Integration | Component | form/account/password/set-password', + function (hooks) { + setupRenderingTest(hooks); - test('it renders', async function(assert) { - this.submit = () => {}; - this.cancel = () => {}; - this.model = { type: 'password' }; + test('it renders', async function (assert) { + this.submit = () => {}; + this.cancel = () => {}; + this.model = { type: 'password' }; - await render(hbs` + await render(hbs` `); - assert.ok(find('form')); - }); -}); + assert.ok(find('form')); + }); + } +); diff --git a/ui/core/tests/integration/components/form/host-set-test.js b/ui/core/tests/integration/components/form/host-set-test.js index 9797376cc..849ca7651 100644 --- a/ui/core/tests/integration/components/form/host-set-test.js +++ b/ui/core/tests/integration/components/form/host-set-test.js @@ -3,7 +3,7 @@ import { setupRenderingTest } from 'ember-qunit'; import { render, find } from '@ember/test-helpers'; import { hbs } from 'ember-cli-htmlbars'; -module('Integration | Component | form/host-set', function(hooks) { +module('Integration | Component | form/host-set', function (hooks) { setupRenderingTest(hooks); test('it renders', async function (assert) { diff --git a/ui/core/tests/integration/components/form/host-set/add-hosts-test.js b/ui/core/tests/integration/components/form/host-set/add-hosts-test.js index 827fa036d..2614047a0 100644 --- a/ui/core/tests/integration/components/form/host-set/add-hosts-test.js +++ b/ui/core/tests/integration/components/form/host-set/add-hosts-test.js @@ -3,10 +3,10 @@ import { setupRenderingTest } from 'ember-qunit'; // import { render } from '@ember/test-helpers'; // import { hbs } from 'ember-cli-htmlbars'; -module('Integration | Component | form/host-set/add-hosts', function(hooks) { +module('Integration | Component | form/host-set/add-hosts', function (hooks) { setupRenderingTest(hooks); - test('it renders', async function(assert) { + test('it renders', async function (assert) { assert.expect(0); }); -}); \ No newline at end of file +}); diff --git a/ui/core/tests/integration/components/form/host-set/hosts-test.js b/ui/core/tests/integration/components/form/host-set/hosts-test.js index e99b6a33e..e5d2bfe87 100644 --- a/ui/core/tests/integration/components/form/host-set/hosts-test.js +++ b/ui/core/tests/integration/components/form/host-set/hosts-test.js @@ -3,7 +3,7 @@ import { setupRenderingTest } from 'ember-qunit'; import { render, find } from '@ember/test-helpers'; import { hbs } from 'ember-cli-htmlbars'; -module('Integration | Component | form/host-set/hosts', function(hooks) { +module('Integration | Component | form/host-set/hosts', function (hooks) { setupRenderingTest(hooks); test('it renders', async function (assert) { diff --git a/ui/core/tests/integration/components/form/host-test.js b/ui/core/tests/integration/components/form/host-test.js index 39c5147db..bb4420a6f 100644 --- a/ui/core/tests/integration/components/form/host-test.js +++ b/ui/core/tests/integration/components/form/host-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', function(hooks) { +module('Integration | Component | form/host', 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/integration/components/form/org-test.js b/ui/core/tests/integration/components/form/org-test.js index 76c3d9b8f..cfc7d25e5 100644 --- a/ui/core/tests/integration/components/form/org-test.js +++ b/ui/core/tests/integration/components/form/org-test.js @@ -3,7 +3,7 @@ import { setupRenderingTest } from 'ember-qunit'; import { render, find } from '@ember/test-helpers'; import { hbs } from 'ember-cli-htmlbars'; -module('Integration | Component | form/org', function(hooks) { +module('Integration | Component | form/org', function (hooks) { setupRenderingTest(hooks); test('it renders', async function (assert) { diff --git a/ui/core/tests/integration/components/form/role/add-principals-test.js b/ui/core/tests/integration/components/form/role/add-principals-test.js index 1e155a103..4b6ed6a3d 100644 --- a/ui/core/tests/integration/components/form/role/add-principals-test.js +++ b/ui/core/tests/integration/components/form/role/add-principals-test.js @@ -3,10 +3,10 @@ import { setupRenderingTest } from 'ember-qunit'; // import { render } from '@ember/test-helpers'; // import { hbs } from 'ember-cli-htmlbars'; -module('Integration | Component | form/role/add-principals', function(hooks) { +module('Integration | Component | form/role/add-principals', function (hooks) { setupRenderingTest(hooks); - test('it renders', async function(assert) { + test('it renders', async function (assert) { assert.expect(0); }); }); diff --git a/ui/core/tests/integration/components/form/target/add-host-sets-test.js b/ui/core/tests/integration/components/form/target/add-host-sets-test.js index 6013607fe..ce93c7a02 100644 --- a/ui/core/tests/integration/components/form/target/add-host-sets-test.js +++ b/ui/core/tests/integration/components/form/target/add-host-sets-test.js @@ -3,10 +3,10 @@ import { setupRenderingTest } from 'ember-qunit'; // import { render } from '@ember/test-helpers'; // import { hbs } from 'ember-cli-htmlbars'; -module('Integration | Component | form/target/add-host-sets', function(hooks) { +module('Integration | Component | form/target/add-host-sets', function (hooks) { setupRenderingTest(hooks); - test('it renders', async function(assert) { + test('it renders', async function (assert) { assert.expect(0); }); }); diff --git a/ui/core/tests/unit/authenticators/password-test.js b/ui/core/tests/unit/authenticators/password-test.js index 0ea67ee58..79996c8c0 100644 --- a/ui/core/tests/unit/authenticators/password-test.js +++ b/ui/core/tests/unit/authenticators/password-test.js @@ -36,11 +36,10 @@ module('Unit | Authenticator | password', function (hooks) { const authMethod = { id: 'paum_1234' }; this.server.create('scope', { id: 'global', type: 'global' }); this.server.create('auth-method', { id: authMethod.id, scopeId: 'global' }); - await authenticator.authenticate( - creds, - null, - { scope, authMethod } + await authenticator.authenticate(creds, null, { scope, authMethod }); + assert.equal( + applicationAdapter.headers.Authorization, + 'Bearer thetokenstring' ); - assert.equal(applicationAdapter.headers.Authorization, 'Bearer thetokenstring'); }); }); diff --git a/ui/core/tests/unit/controllers/scopes/scope/auth-methods-test.js b/ui/core/tests/unit/controllers/scopes/scope/auth-methods-test.js index 20cbdbe00..af2caa0e3 100644 --- a/ui/core/tests/unit/controllers/scopes/scope/auth-methods-test.js +++ b/ui/core/tests/unit/controllers/scopes/scope/auth-methods-test.js @@ -1,11 +1,11 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Controller | scopes/scope/auth-methods', function(hooks) { +module('Unit | Controller | scopes/scope/auth-methods', 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/auth-methods'); assert.ok(controller); }); diff --git a/ui/core/tests/unit/controllers/scopes/scope/auth-methods/auth-method-test.js b/ui/core/tests/unit/controllers/scopes/scope/auth-methods/auth-method-test.js index ad19d3e67..f9fe31d0b 100644 --- a/ui/core/tests/unit/controllers/scopes/scope/auth-methods/auth-method-test.js +++ b/ui/core/tests/unit/controllers/scopes/scope/auth-methods/auth-method-test.js @@ -1,12 +1,16 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Controller | scopes/scope/auth-methods/auth-method', function(hooks) { +module('Unit | Controller | scopes/scope/auth-methods/auth-method', function ( + hooks +) { setupTest(hooks); // Replace this with your real tests. - test('it exists', function(assert) { - let controller = this.owner.lookup('controller:scopes/scope/auth-methods/auth-method'); + test('it exists', function (assert) { + let controller = this.owner.lookup( + 'controller:scopes/scope/auth-methods/auth-method' + ); assert.ok(controller); }); }); diff --git a/ui/core/tests/unit/controllers/scopes/scope/auth-methods/auth-method/accounts-test.js b/ui/core/tests/unit/controllers/scopes/scope/auth-methods/auth-method/accounts-test.js index d3dd6050d..7475cb779 100644 --- a/ui/core/tests/unit/controllers/scopes/scope/auth-methods/auth-method/accounts-test.js +++ b/ui/core/tests/unit/controllers/scopes/scope/auth-methods/auth-method/accounts-test.js @@ -1,12 +1,17 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Controller | scopes/scope/auth-methods/auth-method/accounts', function(hooks) { - setupTest(hooks); +module( + 'Unit | Controller | scopes/scope/auth-methods/auth-method/accounts', + function (hooks) { + setupTest(hooks); - // Replace this with your real tests. - test('it exists', function(assert) { - let controller = this.owner.lookup('controller:scopes/scope/auth-methods/auth-method/accounts'); - assert.ok(controller); - }); -}); + // Replace this with your real tests. + test('it exists', function (assert) { + let controller = this.owner.lookup( + 'controller:scopes/scope/auth-methods/auth-method/accounts' + ); + assert.ok(controller); + }); + } +); diff --git a/ui/core/tests/unit/controllers/scopes/scope/auth-methods/auth-method/accounts/account-test.js b/ui/core/tests/unit/controllers/scopes/scope/auth-methods/auth-method/accounts/account-test.js index 69d2c77f9..d906d24de 100644 --- a/ui/core/tests/unit/controllers/scopes/scope/auth-methods/auth-method/accounts/account-test.js +++ b/ui/core/tests/unit/controllers/scopes/scope/auth-methods/auth-method/accounts/account-test.js @@ -1,12 +1,17 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Controller | scopes/scope/auth-methods/auth-method/accounts/account', function(hooks) { - setupTest(hooks); +module( + 'Unit | Controller | scopes/scope/auth-methods/auth-method/accounts/account', + function (hooks) { + setupTest(hooks); - // Replace this with your real tests. - test('it exists', function(assert) { - let controller = this.owner.lookup('controller:scopes/scope/auth-methods/auth-method/accounts/account'); - assert.ok(controller); - }); -}); + // Replace this with your real tests. + test('it exists', function (assert) { + let controller = this.owner.lookup( + 'controller:scopes/scope/auth-methods/auth-method/accounts/account' + ); + assert.ok(controller); + }); + } +); diff --git a/ui/core/tests/unit/controllers/scopes/scope/auth-methods/auth-method/accounts/new-test.js b/ui/core/tests/unit/controllers/scopes/scope/auth-methods/auth-method/accounts/new-test.js index 6111c96a8..1c8baec09 100644 --- a/ui/core/tests/unit/controllers/scopes/scope/auth-methods/auth-method/accounts/new-test.js +++ b/ui/core/tests/unit/controllers/scopes/scope/auth-methods/auth-method/accounts/new-test.js @@ -1,12 +1,17 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Controller | scopes/scope/auth-methods/auth-method/accounts/new', function(hooks) { - setupTest(hooks); +module( + 'Unit | Controller | scopes/scope/auth-methods/auth-method/accounts/new', + function (hooks) { + setupTest(hooks); - // Replace this with your real tests. - test('it exists', function(assert) { - let controller = this.owner.lookup('controller:scopes/scope/auth-methods/auth-method/accounts/new'); - assert.ok(controller); - }); -}); + // Replace this with your real tests. + test('it exists', function (assert) { + let controller = this.owner.lookup( + 'controller:scopes/scope/auth-methods/auth-method/accounts/new' + ); + assert.ok(controller); + }); + } +); diff --git a/ui/core/tests/unit/controllers/scopes/scope/auth-methods/new-test.js b/ui/core/tests/unit/controllers/scopes/scope/auth-methods/new-test.js index 2d5306d6a..a3d44a02a 100644 --- a/ui/core/tests/unit/controllers/scopes/scope/auth-methods/new-test.js +++ b/ui/core/tests/unit/controllers/scopes/scope/auth-methods/new-test.js @@ -1,12 +1,14 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Controller | scopes/scope/auth-methods/new', function(hooks) { +module('Unit | Controller | scopes/scope/auth-methods/new', function (hooks) { setupTest(hooks); // Replace this with your real tests. - test('it exists', function(assert) { - let controller = this.owner.lookup('controller:scopes/scope/auth-methods/new'); + test('it exists', function (assert) { + let controller = this.owner.lookup( + 'controller:scopes/scope/auth-methods/new' + ); assert.ok(controller); }); }); diff --git a/ui/core/tests/unit/controllers/scopes/scope/authenticate-test.js b/ui/core/tests/unit/controllers/scopes/scope/authenticate-test.js index 41bd58b67..cd9b09503 100644 --- a/ui/core/tests/unit/controllers/scopes/scope/authenticate-test.js +++ b/ui/core/tests/unit/controllers/scopes/scope/authenticate-test.js @@ -1,11 +1,11 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Controller | scopes/scope/authenticate', function(hooks) { +module('Unit | Controller | scopes/scope/authenticate', 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/authenticate'); assert.ok(controller); }); diff --git a/ui/core/tests/unit/controllers/scopes/scope/groups/group/add-members-test.js b/ui/core/tests/unit/controllers/scopes/scope/groups/group/add-members-test.js index 17daef1db..baffc2dda 100644 --- a/ui/core/tests/unit/controllers/scopes/scope/groups/group/add-members-test.js +++ b/ui/core/tests/unit/controllers/scopes/scope/groups/group/add-members-test.js @@ -1,12 +1,16 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Controller | scopes/scope/groups/group/add-members', function(hooks) { +module('Unit | Controller | scopes/scope/groups/group/add-members', function ( + hooks +) { setupTest(hooks); // Replace this with your real tests. - test('it exists', function(assert) { - let controller = this.owner.lookup('controller:scopes/scope/groups/group/add-members'); + test('it exists', function (assert) { + let controller = this.owner.lookup( + 'controller:scopes/scope/groups/group/add-members' + ); assert.ok(controller); }); }); diff --git a/ui/core/tests/unit/controllers/scopes/scope/orgs-test.js b/ui/core/tests/unit/controllers/scopes/scope/orgs-test.js index f89afd0fc..2833aba29 100644 --- a/ui/core/tests/unit/controllers/scopes/scope/orgs-test.js +++ b/ui/core/tests/unit/controllers/scopes/scope/orgs-test.js @@ -1,11 +1,11 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Controller | scopes/scope/orgs', function(hooks) { +module('Unit | Controller | scopes/scope/orgs', 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/orgs'); assert.ok(controller); }); diff --git a/ui/core/tests/unit/controllers/scopes/scope/orgs/new-test.js b/ui/core/tests/unit/controllers/scopes/scope/orgs/new-test.js index c6631a1ab..e11003833 100644 --- a/ui/core/tests/unit/controllers/scopes/scope/orgs/new-test.js +++ b/ui/core/tests/unit/controllers/scopes/scope/orgs/new-test.js @@ -1,11 +1,11 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Controller | scopes/scope/orgs/new', function(hooks) { +module('Unit | Controller | scopes/scope/orgs/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/orgs/new'); assert.ok(controller); }); diff --git a/ui/core/tests/unit/controllers/scopes/scope/projects/project/host-catalogs-test.js b/ui/core/tests/unit/controllers/scopes/scope/projects/project/host-catalogs-test.js index ce6e91cd3..76cfc0a4d 100644 --- a/ui/core/tests/unit/controllers/scopes/scope/projects/project/host-catalogs-test.js +++ b/ui/core/tests/unit/controllers/scopes/scope/projects/project/host-catalogs-test.js @@ -1,12 +1,17 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Controller | scopes/scope/projects/project/host-catalogs', function(hooks) { - setupTest(hooks); +module( + 'Unit | Controller | scopes/scope/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:scopes/scope/projects/project/host-catalogs'); - assert.ok(controller); - }); -}); + // Replace this with your real tests. + test('it exists', function (assert) { + let controller = this.owner.lookup( + 'controller:scopes/scope/projects/project/host-catalogs' + ); + assert.ok(controller); + }); + } +); diff --git a/ui/core/tests/unit/controllers/scopes/scope/projects/project/host-catalogs/host-catalog-test.js b/ui/core/tests/unit/controllers/scopes/scope/projects/project/host-catalogs/host-catalog-test.js index b93e2d1ce..a7f2eed72 100644 --- a/ui/core/tests/unit/controllers/scopes/scope/projects/project/host-catalogs/host-catalog-test.js +++ b/ui/core/tests/unit/controllers/scopes/scope/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 | scopes/scope/projects/project/host-catalogs/host-catalog', function(hooks) { - setupTest(hooks); +module( + 'Unit | Controller | scopes/scope/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:scopes/scope/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:scopes/scope/projects/project/host-catalogs/host-catalog' + ); + assert.ok(controller); + }); + } +); diff --git a/ui/core/tests/unit/controllers/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets-test.js b/ui/core/tests/unit/controllers/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets-test.js index c42783690..ac959ef1c 100644 --- a/ui/core/tests/unit/controllers/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets-test.js +++ b/ui/core/tests/unit/controllers/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets-test.js @@ -1,12 +1,17 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Controller | scopes/scope/projects/project/host-catalogs/host-catalog/host-sets', function(hooks) { - setupTest(hooks); +module( + 'Unit | Controller | scopes/scope/projects/project/host-catalogs/host-catalog/host-sets', + 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/host-catalog/host-sets'); - assert.ok(controller); - }); -}); + // Replace this with your real tests. + test('it exists', function (assert) { + let controller = this.owner.lookup( + 'controller:scopes/scope/projects/project/host-catalogs/host-catalog/host-sets' + ); + assert.ok(controller); + }); + } +); diff --git a/ui/core/tests/unit/controllers/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set-test.js b/ui/core/tests/unit/controllers/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set-test.js index 4c138b857..10fc9c009 100644 --- a/ui/core/tests/unit/controllers/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set-test.js +++ b/ui/core/tests/unit/controllers/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set-test.js @@ -1,12 +1,17 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Controller | scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set', function(hooks) { - setupTest(hooks); +module( + 'Unit | Controller | scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set', + 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/host-catalog/host-sets/host-set'); - assert.ok(controller); - }); -}); + // Replace this with your real tests. + test('it exists', function (assert) { + let controller = this.owner.lookup( + 'controller:scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set' + ); + assert.ok(controller); + }); + } +); diff --git a/ui/core/tests/unit/controllers/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/new-test.js b/ui/core/tests/unit/controllers/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/new-test.js index 168a1c576..5781b7eaa 100644 --- a/ui/core/tests/unit/controllers/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/new-test.js +++ b/ui/core/tests/unit/controllers/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/new-test.js @@ -1,12 +1,17 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Controller | scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/new', function(hooks) { - setupTest(hooks); +module( + 'Unit | Controller | scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/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/host-catalog/host-sets/new'); - assert.ok(controller); - }); -}); + // Replace this with your real tests. + test('it exists', function (assert) { + let controller = this.owner.lookup( + 'controller:scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/new' + ); + assert.ok(controller); + }); + } +); diff --git a/ui/core/tests/unit/controllers/scopes/scope/projects/project/host-catalogs/host-catalog/hosts-test.js b/ui/core/tests/unit/controllers/scopes/scope/projects/project/host-catalogs/host-catalog/hosts-test.js index 0abab9e08..21d65d16a 100644 --- a/ui/core/tests/unit/controllers/scopes/scope/projects/project/host-catalogs/host-catalog/hosts-test.js +++ b/ui/core/tests/unit/controllers/scopes/scope/projects/project/host-catalogs/host-catalog/hosts-test.js @@ -1,12 +1,17 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Controller | scopes/scope/projects/project/host-catalogs/host-catalog/hosts', function(hooks) { - setupTest(hooks); +module( + 'Unit | Controller | scopes/scope/projects/project/host-catalogs/host-catalog/hosts', + 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/host-catalog/hosts'); - assert.ok(controller); - }); -}); + // Replace this with your real tests. + test('it exists', function (assert) { + let controller = this.owner.lookup( + 'controller:scopes/scope/projects/project/host-catalogs/host-catalog/hosts' + ); + assert.ok(controller); + }); + } +); diff --git a/ui/core/tests/unit/controllers/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/host-test.js b/ui/core/tests/unit/controllers/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/host-test.js index caa2b88fd..48b020001 100644 --- a/ui/core/tests/unit/controllers/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/host-test.js +++ b/ui/core/tests/unit/controllers/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/host-test.js @@ -1,12 +1,17 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Controller | scopes/scope/projects/project/host-catalogs/host-catalog/hosts/host', function(hooks) { - setupTest(hooks); +module( + 'Unit | Controller | scopes/scope/projects/project/host-catalogs/host-catalog/hosts/host', + 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/host-catalog/hosts/host'); - assert.ok(controller); - }); -}); + // Replace this with your real tests. + test('it exists', function (assert) { + let controller = this.owner.lookup( + 'controller:scopes/scope/projects/project/host-catalogs/host-catalog/hosts/host' + ); + assert.ok(controller); + }); + } +); diff --git a/ui/core/tests/unit/controllers/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/new-test.js b/ui/core/tests/unit/controllers/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/new-test.js index 0fc59faf5..8823785d6 100644 --- a/ui/core/tests/unit/controllers/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/new-test.js +++ b/ui/core/tests/unit/controllers/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/new-test.js @@ -1,12 +1,17 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Controller | scopes/scope/projects/project/host-catalogs/host-catalog/hosts/new', function(hooks) { - setupTest(hooks); +module( + 'Unit | Controller | scopes/scope/projects/project/host-catalogs/host-catalog/hosts/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/host-catalog/hosts/new'); - assert.ok(controller); - }); -}); + // Replace this with your real tests. + test('it exists', function (assert) { + let controller = this.owner.lookup( + 'controller:scopes/scope/projects/project/host-catalogs/host-catalog/hosts/new' + ); + 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 index 2f653e30b..f6fe63dbd 100644 --- 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 @@ -1,12 +1,17 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Controller | scopes/scope/projects/project/host-catalogs/new', function(hooks) { - setupTest(hooks); +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); - }); -}); + // 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/controllers/scopes/scope/projects/project/targets-test.js b/ui/core/tests/unit/controllers/scopes/scope/projects/project/targets-test.js index 908c813bf..738a97d05 100644 --- a/ui/core/tests/unit/controllers/scopes/scope/projects/project/targets-test.js +++ b/ui/core/tests/unit/controllers/scopes/scope/projects/project/targets-test.js @@ -1,12 +1,16 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Controller | scopes/scope/projects/project/targets', function(hooks) { +module('Unit | Controller | scopes/scope/projects/project/targets', 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/targets'); + test('it exists', function (assert) { + let controller = this.owner.lookup( + 'controller:scopes/scope/projects/project/targets' + ); assert.ok(controller); }); }); diff --git a/ui/core/tests/unit/controllers/scopes/scope/projects/project/targets/new-test.js b/ui/core/tests/unit/controllers/scopes/scope/projects/project/targets/new-test.js index d7634fb8c..d4e27841c 100644 --- a/ui/core/tests/unit/controllers/scopes/scope/projects/project/targets/new-test.js +++ b/ui/core/tests/unit/controllers/scopes/scope/projects/project/targets/new-test.js @@ -1,12 +1,17 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Controller | scopes/scope/projects/project/targets/new', function(hooks) { - setupTest(hooks); +module( + 'Unit | Controller | scopes/scope/projects/project/targets/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/targets/new'); - assert.ok(controller); - }); -}); + // Replace this with your real tests. + test('it exists', function (assert) { + let controller = this.owner.lookup( + 'controller:scopes/scope/projects/project/targets/new' + ); + assert.ok(controller); + }); + } +); diff --git a/ui/core/tests/unit/controllers/scopes/scope/projects/project/targets/target-test.js b/ui/core/tests/unit/controllers/scopes/scope/projects/project/targets/target-test.js index 839332da1..982aa3005 100644 --- a/ui/core/tests/unit/controllers/scopes/scope/projects/project/targets/target-test.js +++ b/ui/core/tests/unit/controllers/scopes/scope/projects/project/targets/target-test.js @@ -1,12 +1,17 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Controller | scopes/scope/projects/project/targets/target', function(hooks) { - setupTest(hooks); +module( + 'Unit | Controller | scopes/scope/projects/project/targets/target', + 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/targets/target'); - assert.ok(controller); - }); -}); + // Replace this with your real tests. + test('it exists', function (assert) { + let controller = this.owner.lookup( + 'controller:scopes/scope/projects/project/targets/target' + ); + assert.ok(controller); + }); + } +); diff --git a/ui/core/tests/unit/controllers/scopes/scope/projects/project/targets/target/add-host-sets-test.js b/ui/core/tests/unit/controllers/scopes/scope/projects/project/targets/target/add-host-sets-test.js index 5d58f8870..2c14ea978 100644 --- a/ui/core/tests/unit/controllers/scopes/scope/projects/project/targets/target/add-host-sets-test.js +++ b/ui/core/tests/unit/controllers/scopes/scope/projects/project/targets/target/add-host-sets-test.js @@ -1,12 +1,17 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Controller | scopes/scope/projects/project/targets/target/add-host-sets', function(hooks) { - setupTest(hooks); +module( + 'Unit | Controller | scopes/scope/projects/project/targets/target/add-host-sets', + 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/targets/target/add-host-sets'); - assert.ok(controller); - }); -}); + // Replace this with your real tests. + test('it exists', function (assert) { + let controller = this.owner.lookup( + 'controller:scopes/scope/projects/project/targets/target/add-host-sets' + ); + assert.ok(controller); + }); + } +); diff --git a/ui/core/tests/unit/controllers/scopes/scope/projects/project/targets/target/host-sets-test.js b/ui/core/tests/unit/controllers/scopes/scope/projects/project/targets/target/host-sets-test.js index 796ce6793..4708b25e9 100644 --- a/ui/core/tests/unit/controllers/scopes/scope/projects/project/targets/target/host-sets-test.js +++ b/ui/core/tests/unit/controllers/scopes/scope/projects/project/targets/target/host-sets-test.js @@ -1,12 +1,17 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Controller | scopes/scope/projects/project/targets/target/host-sets', function(hooks) { - setupTest(hooks); +module( + 'Unit | Controller | scopes/scope/projects/project/targets/target/host-sets', + 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/targets/target/host-sets'); - assert.ok(controller); - }); -}); + // Replace this with your real tests. + test('it exists', function (assert) { + let controller = this.owner.lookup( + 'controller:scopes/scope/projects/project/targets/target/host-sets' + ); + assert.ok(controller); + }); + } +); diff --git a/ui/core/tests/unit/controllers/scopes/scope/roles/role/add-principals-test.js b/ui/core/tests/unit/controllers/scopes/scope/roles/role/add-principals-test.js index a214f448a..ed13dde40 100644 --- a/ui/core/tests/unit/controllers/scopes/scope/roles/role/add-principals-test.js +++ b/ui/core/tests/unit/controllers/scopes/scope/roles/role/add-principals-test.js @@ -1,12 +1,16 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Controller | scopes/scope/roles/role/add-principals', function(hooks) { +module('Unit | Controller | scopes/scope/roles/role/add-principals', function ( + hooks +) { setupTest(hooks); // Replace this with your real tests. - test('it exists', function(assert) { - let controller = this.owner.lookup('controller:scopes/scope/roles/role/add-principals'); + test('it exists', function (assert) { + let controller = this.owner.lookup( + 'controller:scopes/scope/roles/role/add-principals' + ); assert.ok(controller); }); }); diff --git a/ui/core/tests/unit/routes/scopes/scope/auth-methods-test.js b/ui/core/tests/unit/routes/scopes/scope/auth-methods-test.js index e5b45abad..adadcfbc4 100644 --- a/ui/core/tests/unit/routes/scopes/scope/auth-methods-test.js +++ b/ui/core/tests/unit/routes/scopes/scope/auth-methods-test.js @@ -1,10 +1,10 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Route | scopes/scope/auth-methods', function(hooks) { +module('Unit | Route | scopes/scope/auth-methods', function (hooks) { setupTest(hooks); - test('it exists', function(assert) { + test('it exists', function (assert) { let route = this.owner.lookup('route:scopes/scope/auth-methods'); assert.ok(route); }); diff --git a/ui/core/tests/unit/routes/scopes/scope/auth-methods/auth-method-test.js b/ui/core/tests/unit/routes/scopes/scope/auth-methods/auth-method-test.js index 36b2e2f2d..147a0a52b 100644 --- a/ui/core/tests/unit/routes/scopes/scope/auth-methods/auth-method-test.js +++ b/ui/core/tests/unit/routes/scopes/scope/auth-methods/auth-method-test.js @@ -1,11 +1,15 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Route | scopes/scope/auth-methods/auth-method', function(hooks) { +module('Unit | Route | scopes/scope/auth-methods/auth-method', function ( + hooks +) { setupTest(hooks); - test('it exists', function(assert) { - let route = this.owner.lookup('route:scopes/scope/auth-methods/auth-method'); + test('it exists', function (assert) { + let route = this.owner.lookup( + 'route:scopes/scope/auth-methods/auth-method' + ); assert.ok(route); }); }); diff --git a/ui/core/tests/unit/routes/scopes/scope/auth-methods/auth-method/accounts-test.js b/ui/core/tests/unit/routes/scopes/scope/auth-methods/auth-method/accounts-test.js index 785f478eb..2c2f1e055 100644 --- a/ui/core/tests/unit/routes/scopes/scope/auth-methods/auth-method/accounts-test.js +++ b/ui/core/tests/unit/routes/scopes/scope/auth-methods/auth-method/accounts-test.js @@ -1,11 +1,16 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Route | scopes/scope/auth-methods/auth-method/accounts', function(hooks) { - setupTest(hooks); +module( + 'Unit | Route | scopes/scope/auth-methods/auth-method/accounts', + function (hooks) { + setupTest(hooks); - test('it exists', function(assert) { - let route = this.owner.lookup('route:scopes/scope/auth-methods/auth-method/accounts'); - assert.ok(route); - }); -}); + test('it exists', function (assert) { + let route = this.owner.lookup( + 'route:scopes/scope/auth-methods/auth-method/accounts' + ); + assert.ok(route); + }); + } +); diff --git a/ui/core/tests/unit/routes/scopes/scope/auth-methods/auth-method/accounts/account-test.js b/ui/core/tests/unit/routes/scopes/scope/auth-methods/auth-method/accounts/account-test.js index 84dd0848f..28b940871 100644 --- a/ui/core/tests/unit/routes/scopes/scope/auth-methods/auth-method/accounts/account-test.js +++ b/ui/core/tests/unit/routes/scopes/scope/auth-methods/auth-method/accounts/account-test.js @@ -1,11 +1,16 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Route | scopes/scope/auth-methods/auth-method/accounts/account', function(hooks) { - setupTest(hooks); +module( + 'Unit | Route | scopes/scope/auth-methods/auth-method/accounts/account', + function (hooks) { + setupTest(hooks); - test('it exists', function(assert) { - let route = this.owner.lookup('route:scopes/scope/auth-methods/auth-method/accounts/account'); - assert.ok(route); - }); -}); + test('it exists', function (assert) { + let route = this.owner.lookup( + 'route:scopes/scope/auth-methods/auth-method/accounts/account' + ); + assert.ok(route); + }); + } +); diff --git a/ui/core/tests/unit/routes/scopes/scope/auth-methods/auth-method/accounts/account/index-test.js b/ui/core/tests/unit/routes/scopes/scope/auth-methods/auth-method/accounts/account/index-test.js index 66e3ce904..7c2aadde2 100644 --- a/ui/core/tests/unit/routes/scopes/scope/auth-methods/auth-method/accounts/account/index-test.js +++ b/ui/core/tests/unit/routes/scopes/scope/auth-methods/auth-method/accounts/account/index-test.js @@ -1,11 +1,16 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Route | scopes/scope/auth-methods/auth-method/accounts/account/index', function(hooks) { - setupTest(hooks); +module( + 'Unit | Route | scopes/scope/auth-methods/auth-method/accounts/account/index', + function (hooks) { + setupTest(hooks); - test('it exists', function(assert) { - let route = this.owner.lookup('route:scopes/scope/auth-methods/auth-method/accounts/account/index'); - assert.ok(route); - }); -}); + test('it exists', function (assert) { + let route = this.owner.lookup( + 'route:scopes/scope/auth-methods/auth-method/accounts/account/index' + ); + assert.ok(route); + }); + } +); diff --git a/ui/core/tests/unit/routes/scopes/scope/auth-methods/auth-method/accounts/account/set-password-test.js b/ui/core/tests/unit/routes/scopes/scope/auth-methods/auth-method/accounts/account/set-password-test.js index a07676231..2eaf2f99f 100644 --- a/ui/core/tests/unit/routes/scopes/scope/auth-methods/auth-method/accounts/account/set-password-test.js +++ b/ui/core/tests/unit/routes/scopes/scope/auth-methods/auth-method/accounts/account/set-password-test.js @@ -1,11 +1,16 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Route | scopes/scope/auth-methods/auth-method/accounts/account/set-password', function(hooks) { - setupTest(hooks); +module( + 'Unit | Route | scopes/scope/auth-methods/auth-method/accounts/account/set-password', + function (hooks) { + setupTest(hooks); - test('it exists', function(assert) { - let route = this.owner.lookup('route:scopes/scope/auth-methods/auth-method/accounts/account/set-password'); - assert.ok(route); - }); -}); + test('it exists', function (assert) { + let route = this.owner.lookup( + 'route:scopes/scope/auth-methods/auth-method/accounts/account/set-password' + ); + assert.ok(route); + }); + } +); diff --git a/ui/core/tests/unit/routes/scopes/scope/auth-methods/auth-method/accounts/new-test.js b/ui/core/tests/unit/routes/scopes/scope/auth-methods/auth-method/accounts/new-test.js index 389c7b7a1..26d1bf433 100644 --- a/ui/core/tests/unit/routes/scopes/scope/auth-methods/auth-method/accounts/new-test.js +++ b/ui/core/tests/unit/routes/scopes/scope/auth-methods/auth-method/accounts/new-test.js @@ -1,11 +1,16 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Route | scopes/scope/auth-methods/auth-method/accounts/new', function(hooks) { - setupTest(hooks); +module( + 'Unit | Route | scopes/scope/auth-methods/auth-method/accounts/new', + function (hooks) { + setupTest(hooks); - test('it exists', function(assert) { - let route = this.owner.lookup('route:scopes/scope/auth-methods/auth-method/accounts/new'); - assert.ok(route); - }); -}); + test('it exists', function (assert) { + let route = this.owner.lookup( + 'route:scopes/scope/auth-methods/auth-method/accounts/new' + ); + assert.ok(route); + }); + } +); diff --git a/ui/core/tests/unit/routes/scopes/scope/auth-methods/auth-method/index-test.js b/ui/core/tests/unit/routes/scopes/scope/auth-methods/auth-method/index-test.js index 5a51858df..1f9e281c9 100644 --- a/ui/core/tests/unit/routes/scopes/scope/auth-methods/auth-method/index-test.js +++ b/ui/core/tests/unit/routes/scopes/scope/auth-methods/auth-method/index-test.js @@ -1,11 +1,15 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Route | scopes/scope/auth-methods/auth-method/index', function(hooks) { +module('Unit | Route | scopes/scope/auth-methods/auth-method/index', function ( + hooks +) { setupTest(hooks); - test('it exists', function(assert) { - let route = this.owner.lookup('route:scopes/scope/auth-methods/auth-method/index'); + test('it exists', function (assert) { + let route = this.owner.lookup( + 'route:scopes/scope/auth-methods/auth-method/index' + ); assert.ok(route); }); }); diff --git a/ui/core/tests/unit/routes/scopes/scope/auth-methods/index-test.js b/ui/core/tests/unit/routes/scopes/scope/auth-methods/index-test.js index eb85171ad..539640b03 100644 --- a/ui/core/tests/unit/routes/scopes/scope/auth-methods/index-test.js +++ b/ui/core/tests/unit/routes/scopes/scope/auth-methods/index-test.js @@ -1,10 +1,10 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Route | scopes/scope/auth-methods/index', function(hooks) { +module('Unit | Route | scopes/scope/auth-methods/index', function (hooks) { setupTest(hooks); - test('it exists', function(assert) { + test('it exists', function (assert) { let route = this.owner.lookup('route:scopes/scope/auth-methods/index'); assert.ok(route); }); diff --git a/ui/core/tests/unit/routes/scopes/scope/auth-methods/new-test.js b/ui/core/tests/unit/routes/scopes/scope/auth-methods/new-test.js index 6eea2751c..b9c2ed527 100644 --- a/ui/core/tests/unit/routes/scopes/scope/auth-methods/new-test.js +++ b/ui/core/tests/unit/routes/scopes/scope/auth-methods/new-test.js @@ -1,10 +1,10 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Route | scopes/scope/auth-methods/new', function(hooks) { +module('Unit | Route | scopes/scope/auth-methods/new', function (hooks) { setupTest(hooks); - test('it exists', function(assert) { + test('it exists', function (assert) { let route = this.owner.lookup('route:scopes/scope/auth-methods/new'); assert.ok(route); }); diff --git a/ui/core/tests/unit/routes/scopes/scope/groups/group/add-members-test.js b/ui/core/tests/unit/routes/scopes/scope/groups/group/add-members-test.js index 8500b2957..03d00b579 100644 --- a/ui/core/tests/unit/routes/scopes/scope/groups/group/add-members-test.js +++ b/ui/core/tests/unit/routes/scopes/scope/groups/group/add-members-test.js @@ -1,11 +1,15 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Route | scopes/scope/groups/group/add-members', function(hooks) { +module('Unit | Route | scopes/scope/groups/group/add-members', function ( + hooks +) { setupTest(hooks); - test('it exists', function(assert) { - let route = this.owner.lookup('route:scopes/scope/groups/group/add-members'); + test('it exists', function (assert) { + let route = this.owner.lookup( + 'route:scopes/scope/groups/group/add-members' + ); assert.ok(route); }); }); diff --git a/ui/core/tests/unit/routes/scopes/scope/groups/group/members-test.js b/ui/core/tests/unit/routes/scopes/scope/groups/group/members-test.js index 5872d940c..c13c0291a 100644 --- a/ui/core/tests/unit/routes/scopes/scope/groups/group/members-test.js +++ b/ui/core/tests/unit/routes/scopes/scope/groups/group/members-test.js @@ -1,10 +1,10 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Route | scopes/scope/groups/group/members', function(hooks) { +module('Unit | Route | scopes/scope/groups/group/members', function (hooks) { setupTest(hooks); - test('it exists', function(assert) { + test('it exists', function (assert) { let route = this.owner.lookup('route:scopes/scope/groups/group/members'); assert.ok(route); }); diff --git a/ui/core/tests/unit/routes/scopes/scope/orgs-test.js b/ui/core/tests/unit/routes/scopes/scope/orgs-test.js index 4b9d477c3..860f214b3 100644 --- a/ui/core/tests/unit/routes/scopes/scope/orgs-test.js +++ b/ui/core/tests/unit/routes/scopes/scope/orgs-test.js @@ -1,10 +1,10 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Route | scopes/scope/orgs', function(hooks) { +module('Unit | Route | scopes/scope/orgs', function (hooks) { setupTest(hooks); - test('it exists', function(assert) { + test('it exists', function (assert) { let route = this.owner.lookup('route:scopes/scope/orgs'); assert.ok(route); }); diff --git a/ui/core/tests/unit/routes/scopes/scope/orgs/index-test.js b/ui/core/tests/unit/routes/scopes/scope/orgs/index-test.js index c62bbc625..9dde8b948 100644 --- a/ui/core/tests/unit/routes/scopes/scope/orgs/index-test.js +++ b/ui/core/tests/unit/routes/scopes/scope/orgs/index-test.js @@ -1,10 +1,10 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Route | scopes/scope/orgs/index', function(hooks) { +module('Unit | Route | scopes/scope/orgs/index', function (hooks) { setupTest(hooks); - test('it exists', function(assert) { + test('it exists', function (assert) { let route = this.owner.lookup('route:scopes/scope/orgs/index'); assert.ok(route); }); diff --git a/ui/core/tests/unit/routes/scopes/scope/orgs/new-test.js b/ui/core/tests/unit/routes/scopes/scope/orgs/new-test.js index 3cfdb8522..15aa7691f 100644 --- a/ui/core/tests/unit/routes/scopes/scope/orgs/new-test.js +++ b/ui/core/tests/unit/routes/scopes/scope/orgs/new-test.js @@ -1,10 +1,10 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Route | scopes/scope/orgs/new', function(hooks) { +module('Unit | Route | scopes/scope/orgs/new', function (hooks) { setupTest(hooks); - test('it exists', function(assert) { + test('it exists', function (assert) { let route = this.owner.lookup('route:scopes/scope/orgs/new'); assert.ok(route); }); diff --git a/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs-test.js b/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs-test.js index dde4328e4..30ac55d7a 100644 --- a/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs-test.js +++ b/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs-test.js @@ -1,11 +1,15 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Route | scopes/scope/projects/project/host-catalogs', function(hooks) { +module('Unit | Route | scopes/scope/projects/project/host-catalogs', function ( + hooks +) { setupTest(hooks); - test('it exists', function(assert) { - let route = this.owner.lookup('route:scopes/scope/projects/project/host-catalogs'); + test('it exists', function (assert) { + let route = this.owner.lookup( + 'route:scopes/scope/projects/project/host-catalogs' + ); assert.ok(route); }); }); diff --git a/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog-test.js b/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog-test.js index 9cdc47735..4855fd74a 100644 --- a/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog-test.js +++ b/ui/core/tests/unit/routes/scopes/scope/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 | scopes/scope/projects/project/host-catalogs/host-catalog', function(hooks) { - setupTest(hooks); +module( + 'Unit | Route | scopes/scope/projects/project/host-catalogs/host-catalog', + function (hooks) { + setupTest(hooks); - test('it exists', function(assert) { - let route = this.owner.lookup('route:scopes/scope/projects/project/host-catalogs/host-catalog'); - assert.ok(route); - }); -}); + test('it exists', function (assert) { + let route = this.owner.lookup( + 'route:scopes/scope/projects/project/host-catalogs/host-catalog' + ); + assert.ok(route); + }); + } +); diff --git a/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets-test.js b/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets-test.js index 9cdd5b757..f57da0c59 100644 --- a/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets-test.js +++ b/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets-test.js @@ -1,11 +1,16 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Route | scopes/scope/projects/project/host-catalogs/host-catalog/host-sets', function(hooks) { - setupTest(hooks); +module( + 'Unit | Route | scopes/scope/projects/project/host-catalogs/host-catalog/host-sets', + function (hooks) { + setupTest(hooks); - test('it exists', function(assert) { - let route = this.owner.lookup('route:scopes/scope/projects/project/host-catalogs/host-catalog/host-sets'); - assert.ok(route); - }); -}); + test('it exists', function (assert) { + let route = this.owner.lookup( + 'route:scopes/scope/projects/project/host-catalogs/host-catalog/host-sets' + ); + assert.ok(route); + }); + } +); diff --git a/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set-test.js b/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set-test.js index 320e03551..6b6057ddf 100644 --- a/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set-test.js +++ b/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set-test.js @@ -1,11 +1,16 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Route | scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set', function(hooks) { - setupTest(hooks); +module( + 'Unit | Route | scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set', + function (hooks) { + setupTest(hooks); - test('it exists', function(assert) { - let route = this.owner.lookup('route:scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set'); - assert.ok(route); - }); -}); + test('it exists', function (assert) { + let route = this.owner.lookup( + 'route:scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set' + ); + assert.ok(route); + }); + } +); diff --git a/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set/add-hosts-test.js b/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set/add-hosts-test.js index 22e869203..b93eea3c7 100644 --- a/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set/add-hosts-test.js +++ b/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set/add-hosts-test.js @@ -1,11 +1,16 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Route | scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set/add-hosts', function(hooks) { - setupTest(hooks); +module( + 'Unit | Route | scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set/add-hosts', + function (hooks) { + setupTest(hooks); - test('it exists', function(assert) { - let route = this.owner.lookup('route:scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set/add-hosts'); - assert.ok(route); - }); -}); + test('it exists', function (assert) { + let route = this.owner.lookup( + 'route:scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set/add-hosts' + ); + assert.ok(route); + }); + } +); diff --git a/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set/hosts-test.js b/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set/hosts-test.js index e7f3a700d..c527a620f 100644 --- a/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set/hosts-test.js +++ b/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set/hosts-test.js @@ -1,11 +1,16 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Route | scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set/hosts', function(hooks) { - setupTest(hooks); +module( + 'Unit | Route | scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set/hosts', + function (hooks) { + setupTest(hooks); - test('it exists', function(assert) { - let route = this.owner.lookup('route:scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set/hosts'); - assert.ok(route); - }); -}); + test('it exists', function (assert) { + let route = this.owner.lookup( + 'route:scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set/hosts' + ); + assert.ok(route); + }); + } +); diff --git a/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set/index-test.js b/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set/index-test.js index 5f0b9420b..3454fcc25 100644 --- a/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set/index-test.js +++ b/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set/index-test.js @@ -1,11 +1,16 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Route | scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set/index', function(hooks) { - setupTest(hooks); +module( + 'Unit | Route | scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set/index', + function (hooks) { + setupTest(hooks); - test('it exists', function(assert) { - let route = this.owner.lookup('route:scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set/index'); - assert.ok(route); - }); -}); + test('it exists', function (assert) { + let route = this.owner.lookup( + 'route:scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set/index' + ); + assert.ok(route); + }); + } +); diff --git a/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/index-test.js b/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/index-test.js index 88f8a3f8b..781e1b605 100644 --- a/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/index-test.js +++ b/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/index-test.js @@ -1,11 +1,16 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Route | scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/index', function(hooks) { - setupTest(hooks); +module( + 'Unit | Route | scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/index', + function (hooks) { + setupTest(hooks); - test('it exists', function(assert) { - let route = this.owner.lookup('route:scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/index'); - assert.ok(route); - }); -}); + test('it exists', function (assert) { + let route = this.owner.lookup( + 'route:scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/index' + ); + assert.ok(route); + }); + } +); diff --git a/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/new-test.js b/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/new-test.js index 7d915db00..74cda4552 100644 --- a/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/new-test.js +++ b/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/new-test.js @@ -1,11 +1,16 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Route | scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/new', function(hooks) { - setupTest(hooks); +module( + 'Unit | Route | scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/new', + function (hooks) { + setupTest(hooks); - test('it exists', function(assert) { - let route = this.owner.lookup('route:scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/new'); - assert.ok(route); - }); -}); + test('it exists', function (assert) { + let route = this.owner.lookup( + 'route:scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/new' + ); + assert.ok(route); + }); + } +); diff --git a/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/hosts-test.js b/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/hosts-test.js index 528fd1ac1..24a7ab5e9 100644 --- a/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/hosts-test.js +++ b/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/hosts-test.js @@ -1,11 +1,16 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Route | scopes/scope/projects/project/host-catalogs/host-catalog/hosts', function(hooks) { - setupTest(hooks); +module( + 'Unit | Route | scopes/scope/projects/project/host-catalogs/host-catalog/hosts', + function (hooks) { + setupTest(hooks); - test('it exists', function(assert) { - let route = this.owner.lookup('route:scopes/scope/projects/project/host-catalogs/host-catalog/hosts'); - assert.ok(route); - }); -}); + test('it exists', function (assert) { + let route = this.owner.lookup( + 'route:scopes/scope/projects/project/host-catalogs/host-catalog/hosts' + ); + assert.ok(route); + }); + } +); diff --git a/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/host-test.js b/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/host-test.js index ea1cc4118..4c1510f8b 100644 --- a/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/host-test.js +++ b/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/host-test.js @@ -1,11 +1,16 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Route | scopes/scope/projects/project/host-catalogs/host-catalog/hosts/host', function(hooks) { - setupTest(hooks); +module( + 'Unit | Route | scopes/scope/projects/project/host-catalogs/host-catalog/hosts/host', + function (hooks) { + setupTest(hooks); - test('it exists', function(assert) { - let route = this.owner.lookup('route:scopes/scope/projects/project/host-catalogs/host-catalog/hosts/host'); - assert.ok(route); - }); -}); + test('it exists', function (assert) { + let route = this.owner.lookup( + 'route:scopes/scope/projects/project/host-catalogs/host-catalog/hosts/host' + ); + assert.ok(route); + }); + } +); diff --git a/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/host/index-test.js b/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/host/index-test.js index 58704fe8c..cb7589b5a 100644 --- a/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/host/index-test.js +++ b/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/host/index-test.js @@ -1,11 +1,16 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Route | scopes/scope/projects/project/host-catalogs/host-catalog/hosts/host/index', function(hooks) { - setupTest(hooks); +module( + 'Unit | Route | scopes/scope/projects/project/host-catalogs/host-catalog/hosts/host/index', + function (hooks) { + setupTest(hooks); - test('it exists', function(assert) { - let route = this.owner.lookup('route:scopes/scope/projects/project/host-catalogs/host-catalog/hosts/host/index'); - assert.ok(route); - }); -}); + test('it exists', function (assert) { + let route = this.owner.lookup( + 'route:scopes/scope/projects/project/host-catalogs/host-catalog/hosts/host/index' + ); + assert.ok(route); + }); + } +); diff --git a/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/index-test.js b/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/index-test.js index 151e905b5..4250615d8 100644 --- a/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/index-test.js +++ b/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/index-test.js @@ -1,11 +1,16 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Route | scopes/scope/projects/project/host-catalogs/host-catalog/hosts/index', function(hooks) { - setupTest(hooks); +module( + 'Unit | Route | scopes/scope/projects/project/host-catalogs/host-catalog/hosts/index', + function (hooks) { + setupTest(hooks); - test('it exists', function(assert) { - let route = this.owner.lookup('route:scopes/scope/projects/project/host-catalogs/host-catalog/hosts/index'); - assert.ok(route); - }); -}); + test('it exists', function (assert) { + let route = this.owner.lookup( + 'route:scopes/scope/projects/project/host-catalogs/host-catalog/hosts/index' + ); + assert.ok(route); + }); + } +); diff --git a/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/new-test.js b/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/new-test.js index 93ad5522c..c4f727b6e 100644 --- a/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/new-test.js +++ b/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/hosts/new-test.js @@ -1,11 +1,16 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Route | scopes/scope/projects/project/host-catalogs/host-catalog/hosts/new', function(hooks) { - setupTest(hooks); +module( + 'Unit | Route | scopes/scope/projects/project/host-catalogs/host-catalog/hosts/new', + function (hooks) { + setupTest(hooks); - test('it exists', function(assert) { - let route = this.owner.lookup('route:scopes/scope/projects/project/host-catalogs/host-catalog/hosts/new'); - assert.ok(route); - }); -}); + test('it exists', function (assert) { + let route = this.owner.lookup( + 'route:scopes/scope/projects/project/host-catalogs/host-catalog/hosts/new' + ); + assert.ok(route); + }); + } +); diff --git a/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/index-test.js b/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/index-test.js index 92f1aa677..e440523af 100644 --- a/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/host-catalog/index-test.js +++ b/ui/core/tests/unit/routes/scopes/scope/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 | scopes/scope/projects/project/host-catalogs/host-catalog/index', function(hooks) { - setupTest(hooks); +module( + 'Unit | Route | scopes/scope/projects/project/host-catalogs/host-catalog/index', + function (hooks) { + setupTest(hooks); - test('it exists', function(assert) { - let route = this.owner.lookup('route:scopes/scope/projects/project/host-catalogs/host-catalog/index'); - assert.ok(route); - }); -}); + test('it exists', function (assert) { + let route = this.owner.lookup( + 'route:scopes/scope/projects/project/host-catalogs/host-catalog/index' + ); + assert.ok(route); + }); + } +); diff --git a/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/index-test.js b/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/index-test.js index 5cc1d842c..aa6495519 100644 --- a/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/index-test.js +++ b/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/index-test.js @@ -1,11 +1,16 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Route | scopes/scope/projects/project/host-catalogs/index', function(hooks) { - setupTest(hooks); +module( + 'Unit | Route | scopes/scope/projects/project/host-catalogs/index', + function (hooks) { + setupTest(hooks); - test('it exists', function(assert) { - let route = this.owner.lookup('route:scopes/scope/projects/project/host-catalogs/index'); - assert.ok(route); - }); -}); + test('it exists', function (assert) { + let route = this.owner.lookup( + 'route:scopes/scope/projects/project/host-catalogs/index' + ); + assert.ok(route); + }); + } +); diff --git a/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/new-test.js b/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/new-test.js index 96ccdff8b..60ca74f13 100644 --- a/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/new-test.js +++ b/ui/core/tests/unit/routes/scopes/scope/projects/project/host-catalogs/new-test.js @@ -1,11 +1,16 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Route | scopes/scope/projects/project/host-catalogs/new', function(hooks) { - setupTest(hooks); +module( + 'Unit | Route | scopes/scope/projects/project/host-catalogs/new', + function (hooks) { + setupTest(hooks); - test('it exists', function(assert) { - let route = this.owner.lookup('route:scopes/scope/projects/project/host-catalogs/new'); - assert.ok(route); - }); -}); + test('it exists', function (assert) { + let route = this.owner.lookup( + 'route:scopes/scope/projects/project/host-catalogs/new' + ); + assert.ok(route); + }); + } +); diff --git a/ui/core/tests/unit/routes/scopes/scope/projects/project/targets-test.js b/ui/core/tests/unit/routes/scopes/scope/projects/project/targets-test.js index ca2ead9ca..24a8476c4 100644 --- a/ui/core/tests/unit/routes/scopes/scope/projects/project/targets-test.js +++ b/ui/core/tests/unit/routes/scopes/scope/projects/project/targets-test.js @@ -1,11 +1,15 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Route | scopes/scope/projects/project/targets', function(hooks) { +module('Unit | Route | scopes/scope/projects/project/targets', function ( + hooks +) { setupTest(hooks); - test('it exists', function(assert) { - let route = this.owner.lookup('route:scopes/scope/projects/project/targets'); + test('it exists', function (assert) { + let route = this.owner.lookup( + 'route:scopes/scope/projects/project/targets' + ); assert.ok(route); }); }); diff --git a/ui/core/tests/unit/routes/scopes/scope/projects/project/targets/index-test.js b/ui/core/tests/unit/routes/scopes/scope/projects/project/targets/index-test.js index fa478cbe9..7d77e93a0 100644 --- a/ui/core/tests/unit/routes/scopes/scope/projects/project/targets/index-test.js +++ b/ui/core/tests/unit/routes/scopes/scope/projects/project/targets/index-test.js @@ -1,11 +1,15 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Route | scopes/scope/projects/project/targets/index', function(hooks) { +module('Unit | Route | scopes/scope/projects/project/targets/index', function ( + hooks +) { setupTest(hooks); - test('it exists', function(assert) { - let route = this.owner.lookup('route:scopes/scope/projects/project/targets/index'); + test('it exists', function (assert) { + let route = this.owner.lookup( + 'route:scopes/scope/projects/project/targets/index' + ); assert.ok(route); }); }); diff --git a/ui/core/tests/unit/routes/scopes/scope/projects/project/targets/new-test.js b/ui/core/tests/unit/routes/scopes/scope/projects/project/targets/new-test.js index dea235c50..a4b79d78c 100644 --- a/ui/core/tests/unit/routes/scopes/scope/projects/project/targets/new-test.js +++ b/ui/core/tests/unit/routes/scopes/scope/projects/project/targets/new-test.js @@ -1,11 +1,15 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Route | scopes/scope/projects/project/targets/new', function(hooks) { +module('Unit | Route | scopes/scope/projects/project/targets/new', function ( + hooks +) { setupTest(hooks); - test('it exists', function(assert) { - let route = this.owner.lookup('route:scopes/scope/projects/project/targets/new'); + test('it exists', function (assert) { + let route = this.owner.lookup( + 'route:scopes/scope/projects/project/targets/new' + ); assert.ok(route); }); }); diff --git a/ui/core/tests/unit/routes/scopes/scope/projects/project/targets/target-test.js b/ui/core/tests/unit/routes/scopes/scope/projects/project/targets/target-test.js index 0fa4c6fc5..22acb8b9e 100644 --- a/ui/core/tests/unit/routes/scopes/scope/projects/project/targets/target-test.js +++ b/ui/core/tests/unit/routes/scopes/scope/projects/project/targets/target-test.js @@ -1,11 +1,15 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Route | scopes/scope/projects/project/targets/target', function(hooks) { +module('Unit | Route | scopes/scope/projects/project/targets/target', function ( + hooks +) { setupTest(hooks); - test('it exists', function(assert) { - let route = this.owner.lookup('route:scopes/scope/projects/project/targets/target'); + test('it exists', function (assert) { + let route = this.owner.lookup( + 'route:scopes/scope/projects/project/targets/target' + ); assert.ok(route); }); }); diff --git a/ui/core/tests/unit/routes/scopes/scope/projects/project/targets/target/add-host-sets-test.js b/ui/core/tests/unit/routes/scopes/scope/projects/project/targets/target/add-host-sets-test.js index 520a4e41f..3238718e1 100644 --- a/ui/core/tests/unit/routes/scopes/scope/projects/project/targets/target/add-host-sets-test.js +++ b/ui/core/tests/unit/routes/scopes/scope/projects/project/targets/target/add-host-sets-test.js @@ -1,11 +1,16 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Route | scopes/scope/projects/project/targets/target/add-host-sets', function(hooks) { - setupTest(hooks); +module( + 'Unit | Route | scopes/scope/projects/project/targets/target/add-host-sets', + function (hooks) { + setupTest(hooks); - test('it exists', function(assert) { - let route = this.owner.lookup('route:scopes/scope/projects/project/targets/target/add-host-sets'); - assert.ok(route); - }); -}); + test('it exists', function (assert) { + let route = this.owner.lookup( + 'route:scopes/scope/projects/project/targets/target/add-host-sets' + ); + assert.ok(route); + }); + } +); diff --git a/ui/core/tests/unit/routes/scopes/scope/projects/project/targets/target/host-sets-test.js b/ui/core/tests/unit/routes/scopes/scope/projects/project/targets/target/host-sets-test.js index 41d4cf0e3..063b787d5 100644 --- a/ui/core/tests/unit/routes/scopes/scope/projects/project/targets/target/host-sets-test.js +++ b/ui/core/tests/unit/routes/scopes/scope/projects/project/targets/target/host-sets-test.js @@ -1,11 +1,16 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Route | scopes/scope/projects/project/targets/target/host-sets', function(hooks) { - setupTest(hooks); +module( + 'Unit | Route | scopes/scope/projects/project/targets/target/host-sets', + function (hooks) { + setupTest(hooks); - test('it exists', function(assert) { - let route = this.owner.lookup('route:scopes/scope/projects/project/targets/target/host-sets'); - assert.ok(route); - }); -}); + test('it exists', function (assert) { + let route = this.owner.lookup( + 'route:scopes/scope/projects/project/targets/target/host-sets' + ); + assert.ok(route); + }); + } +); diff --git a/ui/core/tests/unit/routes/scopes/scope/projects/project/targets/target/host-sets/host-set-test.js b/ui/core/tests/unit/routes/scopes/scope/projects/project/targets/target/host-sets/host-set-test.js index fb7e2480e..afc25f627 100644 --- a/ui/core/tests/unit/routes/scopes/scope/projects/project/targets/target/host-sets/host-set-test.js +++ b/ui/core/tests/unit/routes/scopes/scope/projects/project/targets/target/host-sets/host-set-test.js @@ -1,11 +1,16 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Route | scopes/scope/projects/project/targets/target/host-sets/host-set', function(hooks) { - setupTest(hooks); +module( + 'Unit | Route | scopes/scope/projects/project/targets/target/host-sets/host-set', + function (hooks) { + setupTest(hooks); - test('it exists', function(assert) { - let route = this.owner.lookup('route:scopes/scope/projects/project/targets/target/host-sets/host-set'); - assert.ok(route); - }); -}); + test('it exists', function (assert) { + let route = this.owner.lookup( + 'route:scopes/scope/projects/project/targets/target/host-sets/host-set' + ); + assert.ok(route); + }); + } +); diff --git a/ui/core/tests/unit/routes/scopes/scope/projects/project/targets/target/index-test.js b/ui/core/tests/unit/routes/scopes/scope/projects/project/targets/target/index-test.js index 5b1f35962..ec0c8507b 100644 --- a/ui/core/tests/unit/routes/scopes/scope/projects/project/targets/target/index-test.js +++ b/ui/core/tests/unit/routes/scopes/scope/projects/project/targets/target/index-test.js @@ -1,11 +1,16 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Route | scopes/scope/projects/project/targets/target/index', function(hooks) { - setupTest(hooks); +module( + 'Unit | Route | scopes/scope/projects/project/targets/target/index', + function (hooks) { + setupTest(hooks); - test('it exists', function(assert) { - let route = this.owner.lookup('route:scopes/scope/projects/project/targets/target/index'); - assert.ok(route); - }); -}); + test('it exists', function (assert) { + let route = this.owner.lookup( + 'route:scopes/scope/projects/project/targets/target/index' + ); + assert.ok(route); + }); + } +); diff --git a/ui/core/tests/unit/routes/scopes/scope/roles/role/add-principals-test.js b/ui/core/tests/unit/routes/scopes/scope/roles/role/add-principals-test.js index 3d4a91c31..d70535062 100644 --- a/ui/core/tests/unit/routes/scopes/scope/roles/role/add-principals-test.js +++ b/ui/core/tests/unit/routes/scopes/scope/roles/role/add-principals-test.js @@ -1,11 +1,15 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Route | scopes/scope/roles/role/add-principals', function(hooks) { +module('Unit | Route | scopes/scope/roles/role/add-principals', function ( + hooks +) { setupTest(hooks); - test('it exists', function(assert) { - let route = this.owner.lookup('route:scopes/scope/roles/role/add-principals'); + test('it exists', function (assert) { + let route = this.owner.lookup( + 'route:scopes/scope/roles/role/add-principals' + ); assert.ok(route); }); }); diff --git a/ui/core/tests/unit/routes/scopes/scope/roles/role/grants-test.js b/ui/core/tests/unit/routes/scopes/scope/roles/role/grants-test.js index 87b0c03c7..29d91e500 100644 --- a/ui/core/tests/unit/routes/scopes/scope/roles/role/grants-test.js +++ b/ui/core/tests/unit/routes/scopes/scope/roles/role/grants-test.js @@ -1,10 +1,10 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Route | scopes/scope/roles/role/grants', function(hooks) { +module('Unit | Route | scopes/scope/roles/role/grants', function (hooks) { setupTest(hooks); - test('it exists', function(assert) { + test('it exists', function (assert) { let route = this.owner.lookup('route:scopes/scope/roles/role/grants'); assert.ok(route); }); diff --git a/ui/core/tests/unit/routes/scopes/scope/roles/role/principals-test.js b/ui/core/tests/unit/routes/scopes/scope/roles/role/principals-test.js index ce601db65..2ab96ffee 100644 --- a/ui/core/tests/unit/routes/scopes/scope/roles/role/principals-test.js +++ b/ui/core/tests/unit/routes/scopes/scope/roles/role/principals-test.js @@ -1,10 +1,10 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Route | scopes/scope/roles/role/principals', function(hooks) { +module('Unit | Route | scopes/scope/roles/role/principals', function (hooks) { setupTest(hooks); - test('it exists', function(assert) { + test('it exists', function (assert) { let route = this.owner.lookup('route:scopes/scope/roles/role/principals'); assert.ok(route); });