diff --git a/addons/api/addon/adapters/application.js b/addons/api/addon/adapters/application.js
index d2c91e481..944bfb2be 100644
--- a/addons/api/addon/adapters/application.js
+++ b/addons/api/addon/adapters/application.js
@@ -35,13 +35,12 @@ function payloadIsBlank(adapterPayload) {
* @return {object}
*/
function prenormalizeArrayResponse(response) {
- return payloadIsBlank(response) ? {items: []} : response;
+ return payloadIsBlank(response) ? { items: [] } : response;
}
export default class ApplicationAdapter extends RESTAdapter.extend(
AdapterBuildURLMixin
) {
-
// =attributes
/**
@@ -68,7 +67,7 @@ export default class ApplicationAdapter extends RESTAdapter.extend(
* @param {object} snapshot
* @return {string}
*/
- urlSuffix(modelName, id, snapshot={}) {
+ urlSuffix(modelName, id, snapshot = {}) {
const method = getWithDefault(snapshot, 'adapterOptions.method', '');
return method ? `:${method}` : '';
}
@@ -205,7 +204,7 @@ export default class ApplicationAdapter extends RESTAdapter.extend(
normalizeErrorResponse(/*status, headers, payload*/) {
const errors = super.normalizeErrorResponse(...arguments);
if (isArray(errors)) {
- errors.forEach(error => {
+ errors.forEach((error) => {
switch (Number(error.status)) {
case 401:
error.isUnauthenticated = true;
diff --git a/addons/api/addon/generated/models/account.js b/addons/api/addon/generated/models/account.js
index 1abfe3e3f..df7012495 100644
--- a/addons/api/addon/generated/models/account.js
+++ b/addons/api/addon/generated/models/account.js
@@ -2,19 +2,20 @@ import BaseModel from '../../models/base';
import { attr } from '@ember-data/model';
/**
- * Account contains all fields related to an account resource
+ * Account contains all fields related to an account resource
*/
export default class GeneratedAccountModel extends BaseModel {
-
// =attributes
@attr('string', {
- description: 'The type of the resource, to help differentiate schemas'
- }) type;
+ description: 'The type of the resource, to help differentiate schemas',
+ })
+ type;
@attr('string', {
description: 'The owning auth method ID.',
- }) auth_method_id;
+ })
+ auth_method_id;
@attr('string', {
description: 'Optional name for identification purposes',
@@ -42,5 +43,4 @@ export default class GeneratedAccountModel extends BaseModel {
description: 'Current version number of this resource.',
})
version;
-
}
diff --git a/addons/api/addon/generated/models/auth-method.js b/addons/api/addon/generated/models/auth-method.js
index 7dd5805c0..8c68a8f53 100644
--- a/addons/api/addon/generated/models/auth-method.js
+++ b/addons/api/addon/generated/models/auth-method.js
@@ -5,12 +5,12 @@ import { attr } from '@ember-data/model';
*
*/
export default class GeneratedAuthMethodModel extends BaseModel {
-
// =attributes
@attr('string', {
- description: 'The type of the resource, to help differentiate schemas'
- }) type;
+ description: 'The type of the resource, to help differentiate schemas',
+ })
+ type;
@attr('string', {
description: 'Optional name for identification purposes',
@@ -43,5 +43,4 @@ export default class GeneratedAuthMethodModel extends BaseModel {
description: 'Current version number of this resource.',
})
version;
-
}
diff --git a/addons/api/addon/generated/models/group.js b/addons/api/addon/generated/models/group.js
index e8c442e1b..45a10bc86 100644
--- a/addons/api/addon/generated/models/group.js
+++ b/addons/api/addon/generated/models/group.js
@@ -3,7 +3,7 @@ import { attr } from '@ember-data/model';
/**
* Group contains all fields related to a Group resource
-*/
+ */
export default class GeneratedGroupModel extends BaseModel {
// = attributes
@@ -38,5 +38,4 @@ export default class GeneratedGroupModel extends BaseModel {
description: 'Current version number of this resource.',
})
version;
-
}
diff --git a/addons/api/addon/generated/models/host-catalog.js b/addons/api/addon/generated/models/host-catalog.js
index 7207048c2..5f4569e6a 100644
--- a/addons/api/addon/generated/models/host-catalog.js
+++ b/addons/api/addon/generated/models/host-catalog.js
@@ -5,42 +5,47 @@ import { attr } from '@ember-data/model';
* HostCatalog manages Hosts and HostSets
*/
export default class GeneratedHostCatalogModel extends BaseModel {
-
// =attributes
@attr('string', {
- description: 'The type of the resource, to help differentiate schemas'
- }) type;
+ description: 'The type of the resource, to help differentiate schemas',
+ })
+ type;
@attr('string', {
- description: 'Optional name for identification purposes'
- }) name;
+ description: 'Optional name for identification purposes',
+ })
+ name;
@attr('string', {
- description: 'Optional user-set description for identification purposes'
- }) description;
+ description: 'Optional user-set description for identification purposes',
+ })
+ description;
@attr('date', {
description: 'The time this resource was created\nOutput only.',
- readOnly: true
- }) created_time;
+ readOnly: true,
+ })
+ created_time;
@attr('date', {
description: 'The time this resource was last updated\nOutput only.',
- readOnly: true
- }) updated_time;
+ readOnly: true,
+ })
+ updated_time;
@attr('boolean', {
- description: 'Whether the catalog is disabled'
- }) disabled;
+ description: 'Whether the catalog is disabled',
+ })
+ disabled;
@attr({
- description: 'Attributes specific to the catalog type'
- }) attributes;
+ description: 'Attributes specific to the catalog type',
+ })
+ attributes;
@attr('number', {
description: 'Current version number of this resource.',
})
version;
-
}
diff --git a/addons/api/addon/generated/models/host-set.js b/addons/api/addon/generated/models/host-set.js
index 309165055..44c0991d6 100644
--- a/addons/api/addon/generated/models/host-set.js
+++ b/addons/api/addon/generated/models/host-set.js
@@ -5,35 +5,40 @@ import { attr } from '@ember-data/model';
* HostSet is a collection of Hosts created and managed by a HostCatalog
*/
export default class GeneratedHostSetModel extends BaseModel {
-
// =attributes
@attr('string', {
description: 'The type of the resource, to help differentiate schemas',
- readOnly: true
- }) type;
+ readOnly: true,
+ })
+ type;
@attr('string', {
description: 'The owning host catalog ID.',
- }) host_catalog_id;
+ })
+ host_catalog_id;
@attr('string', {
- description: 'Optional name for identification purposes'
- }) name;
+ description: 'Optional name for identification purposes',
+ })
+ name;
@attr('string', {
- description: 'Optional user-set description for identification purposes'
- }) description;
+ description: 'Optional user-set description for identification purposes',
+ })
+ description;
@attr('date', {
description: 'The time this resource was created\nOutput only.',
- readOnly: true
- }) created_time;
+ readOnly: true,
+ })
+ created_time;
@attr('date', {
description: 'The time this resource was last updated\nOutput only.',
- readOnly: true
- }) updated_time;
+ readOnly: true,
+ })
+ updated_time;
@attr('number', {
description: 'Current version number of this resource.',
@@ -42,7 +47,7 @@ export default class GeneratedHostSetModel extends BaseModel {
@attr('number', {
description: 'The total count of hosts in this host set\nOutput only.',
- readOnly: true
- }) size;
-
+ readOnly: true,
+ })
+ size;
}
diff --git a/addons/api/addon/generated/models/host.js b/addons/api/addon/generated/models/host.js
index 50f1463e0..10486fe1d 100644
--- a/addons/api/addon/generated/models/host.js
+++ b/addons/api/addon/generated/models/host.js
@@ -5,38 +5,42 @@ import { attr } from '@ember-data/model';
* Host contains all fields related to a Host resource
*/
export default class GeneratedHostModel extends BaseModel {
-
// =attributes
@attr('string', {
- description: 'The type of the resource, to help differentiate schemas'
- }) type;
+ description: 'The type of the resource, to help differentiate schemas',
+ })
+ type;
@attr('string', {
description: 'The owning host catalog ID.',
- }) host_catalog_id;
+ })
+ host_catalog_id;
@attr('string', {
- description: 'Optional name for identification purposes'
- }) name;
+ description: 'Optional name for identification purposes',
+ })
+ name;
@attr('string', {
- description: 'Optional user-set description for identification purposes'
- }) description;
+ description: 'Optional user-set description for identification purposes',
+ })
+ description;
@attr('date', {
description: 'The time this resource was created\nOutput only.',
- readOnly: true
- }) created_time;
+ readOnly: true,
+ })
+ created_time;
@attr('date', {
description: 'The time this resource was last updated\nOutput only.',
- readOnly: true
- }) updated_time;
+ readOnly: true,
+ })
+ updated_time;
@attr('number', {
description: 'Current version number of this resource.',
})
version;
-
}
diff --git a/addons/api/addon/generated/models/role.js b/addons/api/addon/generated/models/role.js
index 0177972a0..5d8f2bddc 100644
--- a/addons/api/addon/generated/models/role.js
+++ b/addons/api/addon/generated/models/role.js
@@ -38,5 +38,4 @@ export default class GeneratedRoleModel extends BaseModel {
description: 'Current version number of this resource.',
})
version;
-
}
diff --git a/addons/api/addon/generated/models/scope.js b/addons/api/addon/generated/models/scope.js
index 3c3731b3d..2fff1057b 100644
--- a/addons/api/addon/generated/models/scope.js
+++ b/addons/api/addon/generated/models/scope.js
@@ -5,12 +5,12 @@ import { attr } from '@ember-data/model';
*
*/
export default class GeneratedScopeModel extends BaseModel {
-
// =attributes
@attr('string', {
- description: 'The type of the resource'
- }) type;
+ description: 'The type of the resource',
+ })
+ type;
@attr('string', {
description: 'Optional name for identification purposes',
@@ -38,5 +38,4 @@ export default class GeneratedScopeModel extends BaseModel {
description: 'Current version number of this resource.',
})
version;
-
}
diff --git a/addons/api/addon/generated/models/target.js b/addons/api/addon/generated/models/target.js
index 60a105b45..38b831966 100644
--- a/addons/api/addon/generated/models/target.js
+++ b/addons/api/addon/generated/models/target.js
@@ -5,34 +5,39 @@ import { attr } from '@ember-data/model';
* Target
*/
export default class GeneratedTargetModel extends BaseModel {
-
// =attributes
@attr('string', {
- description: 'The type of the resource, to help differentiate schemas'
- }) type;
+ description: 'The type of the resource, to help differentiate schemas',
+ })
+ type;
@attr('string', {
- description: 'Optional name for identification purposes'
- }) name;
+ description: 'Optional name for identification purposes',
+ })
+ name;
@attr('string', {
- description: 'Optional user-set description for identification purposes'
- }) description;
+ description: 'Optional user-set description for identification purposes',
+ })
+ description;
@attr('date', {
description: 'The time this resource was created\nOutput only.',
- readOnly: true
- }) created_time;
+ readOnly: true,
+ })
+ created_time;
@attr('date', {
description: 'The time this resource was last updated\nOutput only.',
- readOnly: true
- }) updated_time;
+ readOnly: true,
+ })
+ updated_time;
@attr('boolean', {
- description: 'Whether the catalog is disabled'
- }) disabled;
+ description: 'Whether the catalog is disabled',
+ })
+ disabled;
@attr('number', {
description: 'Current version number of this resource.',
diff --git a/addons/api/addon/generated/models/user.js b/addons/api/addon/generated/models/user.js
index 433faeceb..a8bc17acf 100644
--- a/addons/api/addon/generated/models/user.js
+++ b/addons/api/addon/generated/models/user.js
@@ -3,7 +3,7 @@ import { attr } from '@ember-data/model';
/**
* User contains all fields related to a user resource
-*/
+ */
export default class GeneratedUserModel extends BaseModel {
// =attributes
diff --git a/addons/api/addon/mixins/adapter-build-url.js b/addons/api/addon/mixins/adapter-build-url.js
index cee278e05..3437cb981 100644
--- a/addons/api/addon/mixins/adapter-build-url.js
+++ b/addons/api/addon/mixins/adapter-build-url.js
@@ -13,7 +13,6 @@ import { get } from '@ember/object';
* uses this mixin to alter generated URLs.
*/
export default Mixin.create({
-
// =methods
/**
@@ -162,6 +161,5 @@ export default Mixin.create({
*/
urlForDeleteRecord(id, modelName, snapshot) {
return this._buildURL(modelName, id, snapshot);
- }
-
+ },
});
diff --git a/addons/api/addon/models/account.js b/addons/api/addon/models/account.js
index 4c52347f5..874b88ec4 100644
--- a/addons/api/addon/models/account.js
+++ b/addons/api/addon/models/account.js
@@ -2,7 +2,6 @@ import GeneratedAccountModel from '../generated/models/account';
import { fragment } from 'ember-data-model-fragments/attributes';
export default class AccountModel extends GeneratedAccountModel {
-
/**
* Attributes of this resource, if any, represented as a JSON fragment.
* @type {FragmentAccountAttributesModel}
@@ -19,18 +18,17 @@ export default class AccountModel extends GeneratedAccountModel {
* @param {object} options.adapterOptions
* @return {Promise}
*/
- setPassword(password, options={ adapterOptions: {} }) {
+ setPassword(password, options = { adapterOptions: {} }) {
const defaultAdapterOptions = {
method: 'set-password',
- password
+ password,
};
return this.save({
...options,
adapterOptions: {
...defaultAdapterOptions,
- ...options.adapterOptions
- }
+ ...options.adapterOptions,
+ },
});
}
-
}
diff --git a/addons/api/addon/models/base.js b/addons/api/addon/models/base.js
index cfbcce14b..2a01e39f5 100644
--- a/addons/api/addon/models/base.js
+++ b/addons/api/addon/models/base.js
@@ -26,7 +26,6 @@ import { get } from '@ember/object';
* 2) Or as an ID: `record.scopeID`.
*/
export default class BaseModel extends Model {
-
// =relationships
/**
@@ -83,5 +82,4 @@ export default class BaseModel extends Model {
get cannotSave() {
return !this.canSave;
}
-
}
diff --git a/addons/api/addon/models/fragment-account-attributes.js b/addons/api/addon/models/fragment-account-attributes.js
index 76ee82487..bb0371398 100644
--- a/addons/api/addon/models/fragment-account-attributes.js
+++ b/addons/api/addon/models/fragment-account-attributes.js
@@ -2,9 +2,8 @@ import Fragment from 'ember-data-model-fragments/fragment';
import { attr } from '@ember-data/model';
export default class FragmentAccountAttributesModel extends Fragment {
-
@attr('string', {
- description: 'The account login name'
- }) login_name;
-
+ description: 'The account login name',
+ })
+ login_name;
}
diff --git a/addons/api/addon/models/fragment-host-attributes.js b/addons/api/addon/models/fragment-host-attributes.js
index 851b404b2..3f0ac9073 100644
--- a/addons/api/addon/models/fragment-host-attributes.js
+++ b/addons/api/addon/models/fragment-host-attributes.js
@@ -2,9 +2,8 @@ import Fragment from 'ember-data-model-fragments/fragment';
import { attr } from '@ember-data/model';
export default class FragmentHostAttributesModel extends Fragment {
-
@attr('string', {
- description: 'The address (DNS or IP name) used to reach the host'
- }) address;
-
+ description: 'The address (DNS or IP name) used to reach the host',
+ })
+ address;
}
diff --git a/addons/api/addon/models/fragment-host-set.js b/addons/api/addon/models/fragment-host-set.js
index 975d7e1f0..e0f3a1e1c 100644
--- a/addons/api/addon/models/fragment-host-set.js
+++ b/addons/api/addon/models/fragment-host-set.js
@@ -2,15 +2,15 @@ import Fragment from 'ember-data-model-fragments/fragment';
import { attr } from '@ember-data/model';
export default class FragmentHostSetModel extends Fragment {
-
// =attributes
@attr('string', {
- description: 'ID of the related host set'
- }) host_set_id;
+ description: 'ID of the related host set',
+ })
+ host_set_id;
@attr('string', {
- description: 'ID of the catalog to which the host set belongs'
- }) host_catalog_id;
-
+ description: 'ID of the catalog to which the host set belongs',
+ })
+ host_catalog_id;
}
diff --git a/addons/api/addon/models/fragment-principal.js b/addons/api/addon/models/fragment-principal.js
index 4c6bcb9c0..5488ef509 100644
--- a/addons/api/addon/models/fragment-principal.js
+++ b/addons/api/addon/models/fragment-principal.js
@@ -2,19 +2,20 @@ import Fragment from 'ember-data-model-fragments/fragment';
import { attr } from '@ember-data/model';
export default class FragmentPrincipal extends Fragment {
-
// =attributes
@attr('string', {
- description: 'ID of the related scope'
- }) scope_id;
+ description: 'ID of the related scope',
+ })
+ scope_id;
@attr('string', {
- description: 'ID of the related principal (user or group)'
- }) principal_id;
+ description: 'ID of the related principal (user or group)',
+ })
+ principal_id;
@attr('string', {
- description: 'Type of the related principal (user or group)'
- }) type;
-
+ description: 'Type of the related principal (user or group)',
+ })
+ type;
}
diff --git a/addons/api/addon/models/fragment-scope.js b/addons/api/addon/models/fragment-scope.js
index 1a402c383..f6d7a2db8 100644
--- a/addons/api/addon/models/fragment-scope.js
+++ b/addons/api/addon/models/fragment-scope.js
@@ -4,33 +4,39 @@ import { attr } from '@ember-data/model';
import { scopeTypes } from './scope';
export default class FragmentScope extends Fragment {
-
// =attributes
@attr('string', {
- description: 'ID of the related scope'
- }) scope_id;
+ description: 'ID of the related scope',
+ })
+ scope_id;
@attr('string', {
- description: 'The type of the resource'
- }) type;
+ description: 'The type of the resource',
+ })
+ type;
/**
* @type {boolean}
*/
@computed('type')
- get isGlobal() { return this.type === scopeTypes.global; }
+ get isGlobal() {
+ return this.type === scopeTypes.global;
+ }
/**
* @type {boolean}
*/
@computed('type')
- get isOrg() { return this.type === scopeTypes.org; }
+ get isOrg() {
+ return this.type === scopeTypes.org;
+ }
/**
* @type {boolean}
*/
@computed('type')
- get isProject() { return this.type === scopeTypes.project; }
-
+ get isProject() {
+ return this.type === scopeTypes.project;
+ }
}
diff --git a/addons/api/addon/models/fragment-string.js b/addons/api/addon/models/fragment-string.js
index 78ddb80b5..8f2c8690c 100644
--- a/addons/api/addon/models/fragment-string.js
+++ b/addons/api/addon/models/fragment-string.js
@@ -5,12 +5,10 @@ import { attr } from '@ember-data/model';
* Represents an item in an array of strings.
*/
export default class FragmentStringModel extends Fragment {
-
// =attributes
@attr('string', {
- description: 'The value of the string.'
+ description: 'The value of the string.',
})
value;
-
}
diff --git a/addons/api/addon/models/fragment-target-attributes.js b/addons/api/addon/models/fragment-target-attributes.js
index 1ab994d9d..44f1a94aa 100644
--- a/addons/api/addon/models/fragment-target-attributes.js
+++ b/addons/api/addon/models/fragment-target-attributes.js
@@ -2,9 +2,8 @@ import Fragment from 'ember-data-model-fragments/fragment';
import { attr } from '@ember-data/model';
export default class FragmentTargetAttributesModel extends Fragment {
-
@attr('number', {
- description: 'The default port a target should use if present.'
- }) default_port;
-
+ description: 'The default port a target should use if present.',
+ })
+ default_port;
}
diff --git a/addons/api/addon/models/group.js b/addons/api/addon/models/group.js
index 6b0da1b1a..87fff30c1 100644
--- a/addons/api/addon/models/group.js
+++ b/addons/api/addon/models/group.js
@@ -4,7 +4,6 @@ import { computed } from '@ember/object';
import { A } from '@ember/array';
export default class GroupModel extends GeneratedGroupModel {
-
// =attributes
/**
@@ -14,8 +13,9 @@ export default class GroupModel extends GeneratedGroupModel {
@attr({
readOnly: true,
defaultValue: () => A(),
- emptyArrayIfMissing: true
- }) member_ids;
+ emptyArrayIfMissing: true,
+ })
+ member_ids;
/**
* An array of resolved user instances.
@@ -26,7 +26,7 @@ export default class GroupModel extends GeneratedGroupModel {
@computed('member_ids.[]')
get members() {
return this.member_ids
- .map(id => this.store.peekRecord('user', id))
+ .map((id) => this.store.peekRecord('user', id))
.filter(Boolean);
}
@@ -40,10 +40,10 @@ export default class GroupModel extends GeneratedGroupModel {
* @param {object} options.adapterOptions
* @return {Promise}
*/
- addMembers(memberIDs, options={ adapterOptions: {} }) {
+ addMembers(memberIDs, options = { adapterOptions: {} }) {
const defaultAdapterOptions = {
method: 'add-members',
- memberIDs
+ memberIDs,
};
// There is no "deep merge" in ES.
// All of this nonsense is here to ensure we get
@@ -52,8 +52,8 @@ export default class GroupModel extends GeneratedGroupModel {
...options,
adapterOptions: {
...defaultAdapterOptions,
- ...options.adapterOptions
- }
+ ...options.adapterOptions,
+ },
});
}
@@ -65,10 +65,10 @@ export default class GroupModel extends GeneratedGroupModel {
* @param {object} options.adapterOptions
* @return {Promise}
*/
- removeMembers(memberIDs, options={ adapterOptions: {} }) {
+ removeMembers(memberIDs, options = { adapterOptions: {} }) {
const defaultAdapterOptions = {
method: 'remove-members',
- memberIDs
+ memberIDs,
};
// There is no "deep merge" in ES.
// All of this nonsense is here to ensure we get
@@ -77,8 +77,8 @@ export default class GroupModel extends GeneratedGroupModel {
...options,
adapterOptions: {
...defaultAdapterOptions,
- ...options.adapterOptions
- }
+ ...options.adapterOptions,
+ },
});
}
@@ -91,5 +91,4 @@ export default class GroupModel extends GeneratedGroupModel {
removeMember(memberID, options) {
return this.removeMembers([memberID], options);
}
-
}
diff --git a/addons/api/addon/models/host-set.js b/addons/api/addon/models/host-set.js
index 018f95f64..61033dd79 100644
--- a/addons/api/addon/models/host-set.js
+++ b/addons/api/addon/models/host-set.js
@@ -2,7 +2,6 @@ import GeneratedHostSetModel from '../generated/models/host-set';
import { fragmentArray } from 'ember-data-model-fragments/attributes';
export default class HostSetModel extends GeneratedHostSetModel {
-
// =attributes
/**
@@ -11,8 +10,9 @@ export default class HostSetModel extends GeneratedHostSetModel {
*/
@fragmentArray('fragment-string', {
readOnly: true,
- emptyArrayIfMissing: true
- }) host_ids;
+ emptyArrayIfMissing: true,
+ })
+ host_ids;
// =methods
@@ -24,17 +24,17 @@ export default class HostSetModel extends GeneratedHostSetModel {
* @param {object} options.adapterOptions
* @return {Promise}
*/
- addHosts(hostIDs, options={ adapterOptions: {} }) {
+ addHosts(hostIDs, options = { adapterOptions: {} }) {
const defaultAdapterOptions = {
method: 'add-hosts',
- hostIDs
+ hostIDs,
};
return this.save({
...options,
adapterOptions: {
...defaultAdapterOptions,
- ...options.adapterOptions
- }
+ ...options.adapterOptions,
+ },
});
}
@@ -46,17 +46,17 @@ export default class HostSetModel extends GeneratedHostSetModel {
* @param {object} options.adapterOptions
* @return {Promise}
*/
- removeHosts(hostIDs, options={ adapterOptions: {} }) {
+ removeHosts(hostIDs, options = { adapterOptions: {} }) {
const defaultAdapterOptions = {
method: 'remove-hosts',
- hostIDs
+ hostIDs,
};
return this.save({
...options,
adapterOptions: {
...defaultAdapterOptions,
- ...options.adapterOptions
- }
+ ...options.adapterOptions,
+ },
});
}
diff --git a/addons/api/addon/models/host.js b/addons/api/addon/models/host.js
index a2e855084..7748e023b 100644
--- a/addons/api/addon/models/host.js
+++ b/addons/api/addon/models/host.js
@@ -2,11 +2,9 @@ import GeneratedHostModel from '../generated/models/host';
import { fragment } from 'ember-data-model-fragments/attributes';
export default class HostModel extends GeneratedHostModel {
-
/**
* Attributes of this resource, if any, represented as a JSON fragment.
* @type {FragmentHostAttributesModel}
*/
@fragment('fragment-host-attributes', { defaultValue: {} }) attributes;
-
}
diff --git a/addons/api/addon/models/role.js b/addons/api/addon/models/role.js
index 83d1a99a7..9e37867ad 100644
--- a/addons/api/addon/models/role.js
+++ b/addons/api/addon/models/role.js
@@ -2,7 +2,6 @@ import GeneratedRoleModel from '../generated/models/role';
import { fragmentArray } from 'ember-data-model-fragments/attributes';
export default class RoleModel extends GeneratedRoleModel {
-
// =attributes
/**
@@ -14,14 +13,15 @@ export default class RoleModel extends GeneratedRoleModel {
*/
@fragmentArray('fragment-principal', {
readOnly: true,
- emptyArrayIfMissing: true
- }) principals;
+ emptyArrayIfMissing: true,
+ })
+ principals;
/**
* Grants is read-only _most_ under normal circumstances. But grants can
* be persisted via a dedicated call to `saveGrants()`.
*/
- @fragmentArray('fragment-string', {readOnly: true}) grants;
+ @fragmentArray('fragment-string', { readOnly: true }) grants;
// =methods
@@ -34,8 +34,8 @@ export default class RoleModel extends GeneratedRoleModel {
return this.save({
adapterOptions: {
method: 'set-grants',
- serializeGrants: true
- }
+ serializeGrants: true,
+ },
});
}
@@ -47,10 +47,10 @@ export default class RoleModel extends GeneratedRoleModel {
* @param {object} options.adapterOptions
* @return {Promise}
*/
- addPrincipals(principalIDs, options={ adapterOptions: {} }) {
+ addPrincipals(principalIDs, options = { adapterOptions: {} }) {
const defaultAdapterOptions = {
method: 'add-principals',
- principalIDs
+ principalIDs,
};
// There is no "deep merge" in ES.
// All of this nonsense is here to ensure we get
@@ -59,8 +59,8 @@ export default class RoleModel extends GeneratedRoleModel {
...options,
adapterOptions: {
...defaultAdapterOptions,
- ...options.adapterOptions
- }
+ ...options.adapterOptions,
+ },
});
}
@@ -72,10 +72,10 @@ export default class RoleModel extends GeneratedRoleModel {
* @param {object} options.adapterOptions
* @return {Promise}
*/
- removePrincipals(principalIDs, options={ adapterOptions: {} }) {
+ removePrincipals(principalIDs, options = { adapterOptions: {} }) {
const defaultAdapterOptions = {
method: 'remove-principals',
- principalIDs
+ principalIDs,
};
// There is no "deep merge" in ES.
// All of this nonsense is here to ensure we get
@@ -84,8 +84,8 @@ export default class RoleModel extends GeneratedRoleModel {
...options,
adapterOptions: {
...defaultAdapterOptions,
- ...options.adapterOptions
- }
+ ...options.adapterOptions,
+ },
});
}
@@ -98,5 +98,4 @@ export default class RoleModel extends GeneratedRoleModel {
removePrincipal(principalID, options) {
return this.removePrincipals([principalID], options);
}
-
}
diff --git a/addons/api/addon/models/scope.js b/addons/api/addon/models/scope.js
index 061501759..69b82381e 100644
--- a/addons/api/addon/models/scope.js
+++ b/addons/api/addon/models/scope.js
@@ -4,11 +4,10 @@ import { computed } from '@ember/object';
export const scopeTypes = {
global: 'global',
org: 'org',
- project: 'project'
+ project: 'project',
};
export default class ScopeModel extends GeneratedScopeModel {
-
// =attributes
/**
@@ -42,5 +41,4 @@ export default class ScopeModel extends GeneratedScopeModel {
set isProject(value) {
if (value) this.type = scopeTypes.project;
}
-
}
diff --git a/addons/api/addon/models/target.js b/addons/api/addon/models/target.js
index 57b87ff29..25a67ea9b 100644
--- a/addons/api/addon/models/target.js
+++ b/addons/api/addon/models/target.js
@@ -3,7 +3,6 @@ import { fragment, fragmentArray } from 'ember-data-model-fragments/attributes';
import { computed } from '@ember/object';
export default class TargetModel extends GeneratedTargetModel {
-
// =attributes
/**
@@ -17,8 +16,9 @@ export default class TargetModel extends GeneratedTargetModel {
*/
@fragmentArray('fragment-host-set', {
readOnly: true,
- emptyArrayIfMissing: true
- }) host_sets;
+ emptyArrayIfMissing: true,
+ })
+ host_sets;
/**
* An array of resolved host set and host catalog instances. Model instances
@@ -31,9 +31,9 @@ export default class TargetModel extends GeneratedTargetModel {
return this.host_sets
.map(({ host_set_id, host_catalog_id }) => ({
model: this.store.peekRecord('host-set', host_set_id),
- hostCatalog: this.store.peekRecord('host-catalog', host_catalog_id)
+ hostCatalog: this.store.peekRecord('host-catalog', host_catalog_id),
}))
- .filter(hostSetRef => hostSetRef.model !== null);
+ .filter((hostSetRef) => hostSetRef.model !== null);
}
// =methods
@@ -46,10 +46,10 @@ export default class TargetModel extends GeneratedTargetModel {
* @param {object} options.adapterOptions
* @return {Promise}
*/
- addHostSets(hostSetIDs, options={ adapterOptions: {} }) {
+ addHostSets(hostSetIDs, options = { adapterOptions: {} }) {
const defaultAdapterOptions = {
method: 'add-host-sets',
- hostSetIDs
+ hostSetIDs,
};
// There is no "deep merge" in ES.
// All of this nonsense is here to ensure we get
@@ -58,8 +58,8 @@ export default class TargetModel extends GeneratedTargetModel {
...options,
adapterOptions: {
...defaultAdapterOptions,
- ...options.adapterOptions
- }
+ ...options.adapterOptions,
+ },
});
}
@@ -71,10 +71,10 @@ export default class TargetModel extends GeneratedTargetModel {
* @param {object} options.adapterOptions
* @return {Promise}
*/
- removeHostSets(hostSetIDs, options={ adapterOptions: {} }) {
+ removeHostSets(hostSetIDs, options = { adapterOptions: {} }) {
const defaultAdapterOptions = {
method: 'remove-host-sets',
- hostSetIDs
+ hostSetIDs,
};
// There is no "deep merge" in ES.
// All of this nonsense is here to ensure we get
@@ -83,8 +83,8 @@ export default class TargetModel extends GeneratedTargetModel {
...options,
adapterOptions: {
...defaultAdapterOptions,
- ...options.adapterOptions
- }
+ ...options.adapterOptions,
+ },
});
}
@@ -97,5 +97,4 @@ export default class TargetModel extends GeneratedTargetModel {
removeHostSet(hostSetID, options) {
return this.removeHostSets([hostSetID], options);
}
-
}
diff --git a/addons/api/addon/serializers/account.js b/addons/api/addon/serializers/account.js
index c014c2361..a24def72e 100644
--- a/addons/api/addon/serializers/account.js
+++ b/addons/api/addon/serializers/account.js
@@ -1,7 +1,6 @@
import ApplicationSerializer from './application';
export default class AccountSerializer extends ApplicationSerializer {
-
// =methods
/**
@@ -16,7 +15,8 @@ export default class AccountSerializer extends ApplicationSerializer {
serialize(snapshot) {
const password = snapshot?.adapterOptions?.password;
let serialized = super.serialize(...arguments);
- if (password && snapshot?.record?.isNew) serialized.attributes.password = password;
+ if (password && snapshot?.record?.isNew)
+ serialized.attributes.password = password;
if (snapshot?.adapterOptions?.method === 'set-password') {
serialized = this.serializeForSetPassword(snapshot, password);
}
@@ -35,5 +35,4 @@ export default class AccountSerializer extends ApplicationSerializer {
password,
};
}
-
}
diff --git a/addons/api/addon/serializers/application.js b/addons/api/addon/serializers/application.js
index 6dd0b84bd..a41c97730 100644
--- a/addons/api/addon/serializers/application.js
+++ b/addons/api/addon/serializers/application.js
@@ -7,7 +7,6 @@ import { copy } from 'ember-copy';
* Manages serialization/normalization of data to/from the API.
*/
export default class ApplicationSerializer extends RESTSerializer {
-
// =methods
/**
@@ -160,9 +159,11 @@ export default class ApplicationSerializer extends RESTSerializer {
* @return {object}
*/
normalizeMissingArrays(store, primaryModelClass, payload) {
- const attrDefs = store._attributesDefinitionFor(primaryModelClass.modelName);
+ const attrDefs = store._attributesDefinitionFor(
+ primaryModelClass.modelName
+ );
if (attrDefs) {
- Object.keys(attrDefs).forEach(key => {
+ Object.keys(attrDefs).forEach((key) => {
if (!payload[key] && attrDefs[key]?.options?.emptyArrayIfMissing) {
payload[key] = [];
}
@@ -187,5 +188,4 @@ export default class ApplicationSerializer extends RESTSerializer {
if (scopeID) normalizedHash.scope.scope_id = scopeID;
return super.normalize(typeClass, normalizedHash);
}
-
}
diff --git a/addons/api/addon/serializers/fragment-host-set.js b/addons/api/addon/serializers/fragment-host-set.js
index e073397ec..564c7ec9b 100644
--- a/addons/api/addon/serializers/fragment-host-set.js
+++ b/addons/api/addon/serializers/fragment-host-set.js
@@ -1,7 +1,6 @@
import JSONSerializer from '@ember-data/serializer/json';
export default class FragmentHostSetSerializer extends JSONSerializer {
-
// =methods
/**
@@ -14,5 +13,4 @@ export default class FragmentHostSetSerializer extends JSONSerializer {
normalize(typeClass, { id: host_set_id, ...obj }) {
return super.normalize(typeClass, { host_set_id, ...obj });
}
-
}
diff --git a/addons/api/addon/serializers/fragment-principal.js b/addons/api/addon/serializers/fragment-principal.js
index 8d8896594..d4d5555a0 100644
--- a/addons/api/addon/serializers/fragment-principal.js
+++ b/addons/api/addon/serializers/fragment-principal.js
@@ -1,7 +1,6 @@
import JSONSerializer from '@ember-data/serializer/json';
export default class FragmentPrincipalSerializer extends JSONSerializer {
-
// =methods
/**
@@ -14,5 +13,4 @@ export default class FragmentPrincipalSerializer extends JSONSerializer {
normalize(typeClass, { id: principal_id, ...obj }) {
return super.normalize(typeClass, { principal_id, ...obj });
}
-
}
diff --git a/addons/api/addon/serializers/group.js b/addons/api/addon/serializers/group.js
index bbccc068f..906e28cde 100644
--- a/addons/api/addon/serializers/group.js
+++ b/addons/api/addon/serializers/group.js
@@ -1,7 +1,6 @@
import ApplicationSerializer from './application';
export default class GroupSerializer extends ApplicationSerializer {
-
// =methods
/**
@@ -27,8 +26,7 @@ export default class GroupSerializer extends ApplicationSerializer {
serializewithMembers(snapshot, memberIDs) {
return {
version: snapshot.attr('version'),
- member_ids: memberIDs
+ member_ids: memberIDs,
};
}
-
}
diff --git a/addons/api/addon/serializers/host-set.js b/addons/api/addon/serializers/host-set.js
index 3ce7c7161..591da7c76 100644
--- a/addons/api/addon/serializers/host-set.js
+++ b/addons/api/addon/serializers/host-set.js
@@ -1,7 +1,6 @@
import ApplicationSerializer from './application';
export default class HostSetSerializer extends ApplicationSerializer {
-
// =methods
/**
@@ -44,10 +43,8 @@ export default class HostSetSerializer extends ApplicationSerializer {
// TODO: can fragment string normalization be handled generically?
// TODO: host_ids might actually be attributes.host_ids
if (resourceHash.host_ids) {
- resourceHash.host_ids =
- resourceHash.host_ids.map(value => ({ value }));
+ resourceHash.host_ids = resourceHash.host_ids.map((value) => ({ value }));
}
return super.normalize(modelClass, resourceHash);
}
-
}
diff --git a/addons/api/addon/serializers/role.js b/addons/api/addon/serializers/role.js
index 89d10353d..5efd37c0f 100644
--- a/addons/api/addon/serializers/role.js
+++ b/addons/api/addon/serializers/role.js
@@ -2,7 +2,6 @@ import ApplicationSerializer from './application';
import { get } from '@ember/object';
export default class RoleSerializer extends ApplicationSerializer {
-
// =methods
/**
@@ -20,8 +19,8 @@ export default class RoleSerializer extends ApplicationSerializer {
let serialized = super.serialize(...arguments);
if (serializeGrants) serialized = this.serializeWithGrants(snapshot);
const principalIDs = snapshot?.adapterOptions?.principalIDs;
- if (principalIDs) serialized =
- this.serializewithPrincipals(snapshot, principalIDs);
+ if (principalIDs)
+ serialized = this.serializewithPrincipals(snapshot, principalIDs);
return serialized;
}
@@ -33,7 +32,9 @@ export default class RoleSerializer extends ApplicationSerializer {
serializeWithGrants(snapshot) {
return {
version: snapshot.attr('version'),
- grant_strings: snapshot.attr('grants').map(grant => grant.attr('value'))
+ grant_strings: snapshot
+ .attr('grants')
+ .map((grant) => grant.attr('value')),
};
}
@@ -47,7 +48,7 @@ export default class RoleSerializer extends ApplicationSerializer {
serializewithPrincipals(snapshot, principalIDs) {
return {
version: snapshot.attr('version'),
- principal_ids: principalIDs
+ principal_ids: principalIDs,
};
}
@@ -62,10 +63,10 @@ export default class RoleSerializer extends ApplicationSerializer {
normalize(modelClass, resourceHash) {
// TODO: can fragment string normalization be handled generically?
if (resourceHash.grant_strings) {
- resourceHash.grants =
- resourceHash.grant_strings.map(value => ({ value }));
+ resourceHash.grants = resourceHash.grant_strings.map((value) => ({
+ value,
+ }));
}
return super.normalize(modelClass, resourceHash);
}
-
}
diff --git a/addons/api/addon/serializers/target.js b/addons/api/addon/serializers/target.js
index eae3ad5b1..4c6745b89 100644
--- a/addons/api/addon/serializers/target.js
+++ b/addons/api/addon/serializers/target.js
@@ -1,7 +1,6 @@
import ApplicationSerializer from './application';
export default class TargetSerializer extends ApplicationSerializer {
-
// =methods
/**
@@ -15,8 +14,8 @@ export default class TargetSerializer extends ApplicationSerializer {
serialize(snapshot) {
let serialized = super.serialize(...arguments);
const hostSetIDs = snapshot?.adapterOptions?.hostSetIDs;
- if (hostSetIDs) serialized =
- this.serializeWithHostSets(snapshot, hostSetIDs);
+ if (hostSetIDs)
+ serialized = this.serializeWithHostSets(snapshot, hostSetIDs);
return serialized;
}
@@ -30,8 +29,7 @@ export default class TargetSerializer extends ApplicationSerializer {
serializeWithHostSets(snapshot, hostSetIDs) {
return {
version: snapshot.attr('version'),
- host_set_ids: hostSetIDs
+ host_set_ids: hostSetIDs,
};
}
-
}
diff --git a/addons/api/tests/dummy/mirage/config.js b/addons/api/tests/dummy/mirage/config.js
index c2cd26a9d..3e74fe7c0 100644
--- a/addons/api/tests/dummy/mirage/config.js
+++ b/addons/api/tests/dummy/mirage/config.js
@@ -1,17 +1,13 @@
-export default function() {
-
+export default function () {
// These comments are here to help you get started. Feel free to delete them.
-
/*
Config (with defaults).
Note: these only affect routes defined *after* them!
*/
-
// this.urlPrefix = ''; // make this `http://localhost:8080`, for example, if your API is on a different server
// this.namespace = ''; // make this `/api`, for example, if your API is namespaced
// this.timing = 400; // delay for each request, automatically set to 0 during testing
-
/*
Shorthand cheatsheet:
diff --git a/addons/api/tests/dummy/mirage/scenarios/default.js b/addons/api/tests/dummy/mirage/scenarios/default.js
index adb3af4c0..d388296b5 100644
--- a/addons/api/tests/dummy/mirage/scenarios/default.js
+++ b/addons/api/tests/dummy/mirage/scenarios/default.js
@@ -1,9 +1,7 @@
-export default function(/* server */) {
-
+export default function (/* server */) {
/*
Seed your development database using your factories.
This data will not be loaded in your tests.
*/
-
// server.createList('post', 10);
}
diff --git a/addons/api/tests/dummy/mirage/serializers/application.js b/addons/api/tests/dummy/mirage/serializers/application.js
index 6d47a3669..6224ab8c9 100644
--- a/addons/api/tests/dummy/mirage/serializers/application.js
+++ b/addons/api/tests/dummy/mirage/serializers/application.js
@@ -1,4 +1,3 @@
import { JSONAPISerializer } from 'ember-cli-mirage';
-export default JSONAPISerializer.extend({
-});
+export default JSONAPISerializer.extend({});
diff --git a/addons/api/tests/unit/adapters/application-test.js b/addons/api/tests/unit/adapters/application-test.js
index 633dc7b73..a2d8d9b0e 100644
--- a/addons/api/tests/unit/adapters/application-test.js
+++ b/addons/api/tests/unit/adapters/application-test.js
@@ -35,7 +35,7 @@ module('Unit | Adapter | application', function (hooks) {
const method = 'set-something';
const adapter = this.owner.lookup('adapter:application');
const suffix = adapter.urlSuffix(null, null, {
- adapterOptions: { method }
+ adapterOptions: { method },
});
assert.ok(config.api.namespace);
assert.equal(suffix, ':set-something');
@@ -48,31 +48,56 @@ module('Unit | Adapter | application', function (hooks) {
const mockSnapshot = {
adapterOptions: {
scopeID,
- method
- }
+ method,
+ },
};
const adapter = this.owner.lookup('adapter:application');
// test URL generation for each request type...
- const findRecordURL = adapter.buildURL('user', '1', mockSnapshot, 'findRecord');
+ const findRecordURL = adapter.buildURL(
+ 'user',
+ '1',
+ mockSnapshot,
+ 'findRecord'
+ );
assert.equal(findRecordURL, '/v1/users/1:my-custom-method');
const findAllURL = adapter.buildURL('user', null, mockSnapshot, 'findAll');
assert.equal(findAllURL, '/v1/users:my-custom-method');
- const findBelongsToURL = adapter.buildURL('user', '2', mockSnapshot, 'findBelongsTo');
+ const findBelongsToURL = adapter.buildURL(
+ 'user',
+ '2',
+ mockSnapshot,
+ 'findBelongsTo'
+ );
assert.equal(findBelongsToURL, '/v1/users/2:my-custom-method');
- const createRecordURL = adapter.buildURL('user', null, mockSnapshot, 'createRecord');
+ const createRecordURL = adapter.buildURL(
+ 'user',
+ null,
+ mockSnapshot,
+ 'createRecord'
+ );
assert.equal(createRecordURL, '/v1/users:my-custom-method');
- const updateRecordURL = adapter.buildURL('user', '3', mockSnapshot, 'updateRecord');
+ const updateRecordURL = adapter.buildURL(
+ 'user',
+ '3',
+ mockSnapshot,
+ 'updateRecord'
+ );
assert.equal(updateRecordURL, '/v1/users/3:my-custom-method');
- const deleteRecordURL = adapter.buildURL('user', '4', mockSnapshot, 'deleteRecord');
+ const deleteRecordURL = adapter.buildURL(
+ 'user',
+ '4',
+ mockSnapshot,
+ 'deleteRecord'
+ );
assert.equal(deleteRecordURL, '/v1/users/4:my-custom-method');
});
test('it can request records through the store from a specified scope', async function (assert) {
assert.expect(1);
const store = this.owner.lookup('service:store');
- this.server.get('/v1/groups', (_, { queryParams: { scope_id }}) => {
+ this.server.get('/v1/groups', (_, { queryParams: { scope_id } }) => {
assert.equal(scope_id, 'p_456', 'Scoped resource URL was requested.');
- return {items: []};
+ return { items: [] };
});
await store.query('group', { scope_id: 'p_456' });
});
@@ -95,15 +120,15 @@ module('Unit | Adapter | application', function (hooks) {
const store = this.owner.lookup('service:store');
const snapshot = store.createRecord('role', {})._createSnapshot();
snapshot.adapterOptions = {
- method: 'custom-method'
- }
+ method: 'custom-method',
+ };
// TODO this is icky, should be changed to a spy or stub
const originalAjax = RESTAdapter.prototype.ajax;
RESTAdapter.prototype.ajax = (url, type) => {
assert.equal(type, 'POST');
RESTAdapter.prototype.ajax = originalAjax;
};
- adapter.updateRecord(store, {modelName: 'user'}, snapshot);
+ adapter.updateRecord(store, { modelName: 'user' }, snapshot);
});
test('it prenormalizes "empty" responses into a form that the fetch-manager will not reject', async function (assert) {
@@ -111,8 +136,13 @@ module('Unit | Adapter | application', function (hooks) {
const adapter = this.owner.lookup('adapter:application');
const store = this.owner.lookup('service:store');
this.server.get('/v1/users', () => new Response({}));
- const prenormalized = await adapter.findAll(store, {modelName: 'user'}, null, []);
- assert.deepEqual(prenormalized, {items: []});
+ const prenormalized = await adapter.findAll(
+ store,
+ { modelName: 'user' },
+ null,
+ []
+ );
+ assert.deepEqual(prenormalized, { items: [] });
});
test('it correctly identifies 400 responses as invalid', function (assert) {
diff --git a/addons/api/tests/unit/mixins/adapter-build-url-test.js b/addons/api/tests/unit/mixins/adapter-build-url-test.js
index 560f3f8fc..734d0d161 100644
--- a/addons/api/tests/unit/mixins/adapter-build-url-test.js
+++ b/addons/api/tests/unit/mixins/adapter-build-url-test.js
@@ -3,7 +3,7 @@ import AdapterBuildURLMixin from 'api/mixins/adapter-build-url';
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Mixin | build-url', function(hooks) {
+module('Unit | Mixin | build-url', function (hooks) {
setupTest(hooks);
test('it does not interfere with basic URLs', function (assert) {
@@ -18,7 +18,7 @@ module('Unit | Mixin | build-url', function(hooks) {
test('it does not interfere with namespaced URLs', function (assert) {
assert.expect(1);
const Adapter = RESTAdapter.extend(AdapterBuildURLMixin, {
- namespace: 'api/v1'
+ namespace: 'api/v1',
});
this.owner.register('adapter:adapter', Adapter);
const adapter = this.owner.lookup('adapter:adapter');
@@ -30,8 +30,8 @@ module('Unit | Mixin | build-url', function(hooks) {
assert.expect(1);
const Adapter = RESTAdapter.extend(AdapterBuildURLMixin, {
urlPrefix() {
- return '/foo/bars'
- }
+ return '/foo/bars';
+ },
});
this.owner.register('adapter:adapter', Adapter);
const adapter = this.owner.lookup('adapter:adapter');
@@ -43,13 +43,12 @@ module('Unit | Mixin | build-url', function(hooks) {
assert.expect(1);
const Adapter = RESTAdapter.extend(AdapterBuildURLMixin, {
urlSuffix() {
- return ':method'
- }
+ return ':method';
+ },
});
this.owner.register('adapter:adapter', Adapter);
const adapter = this.owner.lookup('adapter:adapter');
const url = adapter._buildURL('model', 1);
assert.equal(url, '/models/1:method');
});
-
});
diff --git a/addons/api/tests/unit/models/account-test.js b/addons/api/tests/unit/models/account-test.js
index dcd3fe8bb..554a72be5 100644
--- a/addons/api/tests/unit/models/account-test.js
+++ b/addons/api/tests/unit/models/account-test.js
@@ -1,13 +1,12 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Model | account', function(hooks) {
+module('Unit | Model | account', function (hooks) {
setupTest(hooks);
- test('it exists', function(assert) {
+ test('it exists', function (assert) {
let store = this.owner.lookup('service:store');
let model = store.createRecord('account', {});
assert.ok(model);
});
-
});
diff --git a/addons/api/tests/unit/models/auth-method-test.js b/addons/api/tests/unit/models/auth-method-test.js
index 3de95883a..31ff3fca1 100644
--- a/addons/api/tests/unit/models/auth-method-test.js
+++ b/addons/api/tests/unit/models/auth-method-test.js
@@ -1,11 +1,11 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Model | auth method', function(hooks) {
+module('Unit | Model | auth method', function (hooks) {
setupTest(hooks);
// Replace this with your real tests.
- test('it exists', function(assert) {
+ test('it exists', function (assert) {
let store = this.owner.lookup('service:store');
let model = store.createRecord('auth-method', {});
assert.ok(model);
diff --git a/addons/api/tests/unit/models/base-test.js b/addons/api/tests/unit/models/base-test.js
index cc89967a0..228f47782 100644
--- a/addons/api/tests/unit/models/base-test.js
+++ b/addons/api/tests/unit/models/base-test.js
@@ -19,8 +19,8 @@ module('Unit | Model | base', function (hooks) {
store.push({
data: {
id: 'o_1',
- type: 'scope'
- }
+ type: 'scope',
+ },
});
store.push({
data: {
@@ -29,10 +29,10 @@ module('Unit | Model | base', function (hooks) {
attributes: {
scope: {
scope_id: 'o_1',
- type: 'scope'
- }
- }
- }
+ type: 'scope',
+ },
+ },
+ },
});
const scope = store.peekRecord('scope', 'o_1');
const model = store.peekRecord('user', '123abc');
@@ -42,7 +42,7 @@ module('Unit | Model | base', function (hooks) {
test('it may accept a `scopeModel` for convenience, instead of a fragment', function (assert) {
assert.expect(3);
const store = this.owner.lookup('service:store');
- const scope = store.createRecord('scope', {id: 'o_1', type: 'org'});
+ const scope = store.createRecord('scope', { id: 'o_1', type: 'org' });
const model = store.createRecord('user', '123abc');
assert.notEqual(model.scopeID, scope.id);
model.scopeModel = scope;
@@ -98,17 +98,17 @@ module('Unit | Model | base', function (hooks) {
const store = this.owner.lookup('service:store');
const model = store.createRecord('user', { scopeID: 'o_123' });
this.server.post('/v1/users', () => {
- assert.ok(true, 'Correctly scoped create record URL was requested.')
+ assert.ok(true, 'Correctly scoped create record URL was requested.');
return {};
});
await model.save();
this.server.patch('/v1/users', () => {
- assert.ok(true, 'Correctly scoped update record URL was requested.')
+ assert.ok(true, 'Correctly scoped update record URL was requested.');
return {};
});
await model.save();
this.server.delete('/v1/users', () => {
- assert.ok(true, 'Correctly scoped delete record URL was requested.')
+ assert.ok(true, 'Correctly scoped delete record URL was requested.');
return {};
});
await model.destroyRecord();
@@ -118,35 +118,35 @@ module('Unit | Model | base', function (hooks) {
assert.expect(3);
const store = this.owner.lookup('service:store');
const customScopeID = 'global';
- const scope = {scope_id: 'o_123'};
+ const scope = { scope_id: 'o_123' };
const model = store.createRecord('user', { scope });
this.server.post('/v1/users', () => {
- assert.ok(true, 'Correctly scoped create record URL was requested.')
+ assert.ok(true, 'Correctly scoped create record URL was requested.');
return {};
});
- await model.save({adapterOptions: {scopeID: customScopeID}});
+ await model.save({ adapterOptions: { scopeID: customScopeID } });
this.server.patch('/v1/users', () => {
- assert.ok(true, 'Correctly scoped update record URL was requested.')
+ assert.ok(true, 'Correctly scoped update record URL was requested.');
return {};
});
- await model.save({adapterOptions: {scopeID: customScopeID}});
+ await model.save({ adapterOptions: { scopeID: customScopeID } });
this.server.delete('/v1/users', () => {
- assert.ok(true, 'Correctly scoped delete record URL was requested.')
+ assert.ok(true, 'Correctly scoped delete record URL was requested.');
return {};
});
- await model.destroyRecord({adapterOptions: {scopeID: customScopeID}});
+ await model.destroyRecord({ adapterOptions: { scopeID: customScopeID } });
});
test('it saves records to a URL with a custom method if requested', async function (assert) {
assert.expect(1);
const store = this.owner.lookup('service:store');
const method = 'my-custom-method';
- const scope = {scope_id: 'o_123'};
+ const scope = { scope_id: 'o_123' };
const model = store.createRecord('user', { scope });
this.server.post(`/v1/users:${method}`, () => {
- assert.ok(true, 'Correctly scoped create record URL was requested.')
+ assert.ok(true, 'Correctly scoped create record URL was requested.');
return {};
});
- await model.save({adapterOptions: {method}});
+ await model.save({ adapterOptions: { method } });
});
});
diff --git a/addons/api/tests/unit/models/fragment-host-set-test.js b/addons/api/tests/unit/models/fragment-host-set-test.js
index 5862a94a3..9d9248f8b 100644
--- a/addons/api/tests/unit/models/fragment-host-set-test.js
+++ b/addons/api/tests/unit/models/fragment-host-set-test.js
@@ -1,11 +1,11 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Model | fragment host set', function(hooks) {
+module('Unit | Model | fragment host set', function (hooks) {
setupTest(hooks);
// Replace this with your real tests.
- test('it exists', function(assert) {
+ test('it exists', function (assert) {
let store = this.owner.lookup('service:store');
let model = store.createRecord('fragment-host-set', {});
assert.ok(model);
diff --git a/addons/api/tests/unit/models/fragment-principal-test.js b/addons/api/tests/unit/models/fragment-principal-test.js
index 055f52da7..f6c243ede 100644
--- a/addons/api/tests/unit/models/fragment-principal-test.js
+++ b/addons/api/tests/unit/models/fragment-principal-test.js
@@ -1,11 +1,11 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Model | fragment principal', function(hooks) {
+module('Unit | Model | fragment principal', function (hooks) {
setupTest(hooks);
// Replace this with your real tests.
- test('it exists', function(assert) {
+ test('it exists', function (assert) {
let store = this.owner.lookup('service:store');
let model = store.createRecord('fragment-principal', {});
assert.ok(model);
diff --git a/addons/api/tests/unit/models/fragment-string-test.js b/addons/api/tests/unit/models/fragment-string-test.js
index 8bfd2c018..72f2c3eee 100644
--- a/addons/api/tests/unit/models/fragment-string-test.js
+++ b/addons/api/tests/unit/models/fragment-string-test.js
@@ -1,11 +1,11 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Model | fragment string', function(hooks) {
+module('Unit | Model | fragment string', function (hooks) {
setupTest(hooks);
// Replace this with your real tests.
- test('it exists', function(assert) {
+ test('it exists', function (assert) {
let store = this.owner.lookup('service:store');
let model = store.createRecord('fragment-string', {});
assert.ok(model);
diff --git a/addons/api/tests/unit/models/group-test.js b/addons/api/tests/unit/models/group-test.js
index e5b2423c8..9788c99cd 100644
--- a/addons/api/tests/unit/models/group-test.js
+++ b/addons/api/tests/unit/models/group-test.js
@@ -2,11 +2,11 @@ import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
import setupMirage from 'ember-cli-mirage/test-support/setup-mirage';
-module('Unit | Model | group', function(hooks) {
+module('Unit | Model | group', function (hooks) {
setupTest(hooks);
setupMirage(hooks);
- test('it has a `members` array of resolved model instances (if those instances are already in the store)', function(assert) {
+ test('it has a `members` array of resolved model instances (if those instances are already in the store)', function (assert) {
assert.expect(4);
const store = this.owner.lookup('service:store');
store.push({
@@ -14,30 +14,42 @@ module('Unit | Model | group', function(hooks) {
id: 'group_123',
type: 'group',
attributes: {
- member_ids: [ '1', '2', ]
- }
- }
+ member_ids: ['1', '2'],
+ },
+ },
});
const group = store.peekRecord('group', 'group_123');
- assert.equal(group.member_ids.length, 2, 'Group has two entires in member_ids');
- assert.equal(group.members.length, 0, 'Group has no resolved members because they are not loaded yet');
+ assert.equal(
+ group.member_ids.length,
+ 2,
+ 'Group has two entires in member_ids'
+ );
+ assert.equal(
+ group.members.length,
+ 0,
+ 'Group has no resolved members because they are not loaded yet'
+ );
store.push({
data: {
id: '1',
type: 'user',
- attributes: {}
- }
+ attributes: {},
+ },
});
store.push({
data: {
id: '2',
type: 'user',
- attributes: {}
- }
+ attributes: {},
+ },
});
// eslint-disable-next-line no-self-assign
group.member_ids = [...group.member_ids];
- assert.equal(group.member_ids.length, 2, 'Group has two entires in member_ids');
+ assert.equal(
+ group.member_ids.length,
+ 2,
+ 'Group has two entires in member_ids'
+ );
assert.equal(group.members.length, 2, 'Group has two resolved members');
});
@@ -47,7 +59,7 @@ module('Unit | Model | group', function(hooks) {
const body = JSON.parse(request.requestBody);
assert.deepEqual(body, {
member_ids: ['123_abc', 'foobar'],
- version: 1
+ version: 1,
});
});
const store = this.owner.lookup('service:store');
@@ -58,14 +70,14 @@ module('Unit | Model | group', function(hooks) {
attributes: {
name: 'Group',
description: 'Description',
- member_ids: [ '1', '2' ],
+ member_ids: ['1', '2'],
version: 1,
scope: {
scope_id: 'o_1',
- type: 'scope'
- }
- }
- }
+ type: 'scope',
+ },
+ },
+ },
});
const model = store.peekRecord('group', '123abc');
await model.addMembers(['123_abc', 'foobar']);
@@ -77,7 +89,7 @@ module('Unit | Model | group', function(hooks) {
const body = JSON.parse(request.requestBody);
assert.deepEqual(body, {
member_ids: ['1', '3'],
- version: 1
+ version: 1,
});
});
const store = this.owner.lookup('service:store');
@@ -88,14 +100,14 @@ module('Unit | Model | group', function(hooks) {
attributes: {
name: 'group',
description: 'Description',
- member_ids: [ '4', '5' ],
+ member_ids: ['4', '5'],
version: 1,
scope: {
scope_id: 'o_1',
- type: 'scope'
- }
- }
- }
+ type: 'scope',
+ },
+ },
+ },
});
const model = store.peekRecord('group', '123abc');
await model.removeMembers(['1', '3']);
@@ -107,7 +119,7 @@ module('Unit | Model | group', function(hooks) {
const body = JSON.parse(request.requestBody);
assert.deepEqual(body, {
member_ids: ['3'],
- version: 1
+ version: 1,
});
});
const store = this.owner.lookup('service:store');
@@ -118,29 +130,33 @@ module('Unit | Model | group', function(hooks) {
attributes: {
name: 'group',
description: 'Description',
- member_ids: [ '1', '3' ],
+ member_ids: ['1', '3'],
version: 1,
scope: {
scope_id: 'o_1',
- type: 'scope'
- }
- }
- }
+ type: 'scope',
+ },
+ },
+ },
});
const model = store.peekRecord('group', '123abc');
await model.removeMember('3');
});
- test('it defaults `members_ids` to an empty array when model instance does not define it', function(assert) {
+ test('it defaults `members_ids` to an empty array when model instance does not define it', function (assert) {
assert.expect(1);
const store = this.owner.lookup('service:store');
store.push({
data: {
id: 'group_123',
- type: 'group'
- }
+ type: 'group',
+ },
});
const group = store.peekRecord('group', 'group_123');
- assert.equal(group.member_ids.length, 0, 'Group has empty member_ids by default');
+ assert.equal(
+ group.member_ids.length,
+ 0,
+ 'Group has empty member_ids by default'
+ );
});
});
diff --git a/addons/api/tests/unit/models/host-catalog-test.js b/addons/api/tests/unit/models/host-catalog-test.js
index b653f00a5..e35a07be7 100644
--- a/addons/api/tests/unit/models/host-catalog-test.js
+++ b/addons/api/tests/unit/models/host-catalog-test.js
@@ -1,10 +1,10 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Model | host catalog', function(hooks) {
+module('Unit | Model | host catalog', function (hooks) {
setupTest(hooks);
- test('it exists', function(assert) {
+ test('it exists', function (assert) {
let store = this.owner.lookup('service:store');
let model = store.createRecord('host-catalog', {});
assert.ok(model);
diff --git a/addons/api/tests/unit/models/host-set-test.js b/addons/api/tests/unit/models/host-set-test.js
index 61e007f70..540718c4e 100644
--- a/addons/api/tests/unit/models/host-set-test.js
+++ b/addons/api/tests/unit/models/host-set-test.js
@@ -1,11 +1,11 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Model | host set', function(hooks) {
+module('Unit | Model | host set', function (hooks) {
setupTest(hooks);
// Replace this with your real tests.
- test('it exists', function(assert) {
+ test('it exists', function (assert) {
let store = this.owner.lookup('service:store');
let model = store.createRecord('host-set', {});
assert.ok(model);
diff --git a/addons/api/tests/unit/models/host-test.js b/addons/api/tests/unit/models/host-test.js
index 3cc0a3ad9..73e66b086 100644
--- a/addons/api/tests/unit/models/host-test.js
+++ b/addons/api/tests/unit/models/host-test.js
@@ -1,23 +1,23 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Model | host', function(hooks) {
+module('Unit | Model | host', function (hooks) {
setupTest(hooks);
// Replace this with your real tests.
- test('it exists', function(assert) {
+ test('it exists', function (assert) {
let store = this.owner.lookup('service:store');
let model = store.createRecord('host', {});
assert.ok(model);
});
- test('it contains attributes', function(assert) {
+ test('it contains attributes', function (assert) {
let store = this.owner.lookup('service:store');
let model = store.createRecord('host', {
type: 'static',
attributes: {
- address: '127.0.0.1'
- }
+ address: '127.0.0.1',
+ },
});
assert.equal(model.attributes.address, '127.0.0.1');
});
diff --git a/addons/api/tests/unit/models/role-test.js b/addons/api/tests/unit/models/role-test.js
index 42aefae25..2548aace8 100644
--- a/addons/api/tests/unit/models/role-test.js
+++ b/addons/api/tests/unit/models/role-test.js
@@ -6,7 +6,7 @@ module('Unit | Model | role', function (hooks) {
setupTest(hooks);
setupMirage(hooks);
- test('it exists', function(assert) {
+ test('it exists', function (assert) {
let store = this.owner.lookup('service:store');
let model = store.createRecord('role', {});
assert.ok(model);
@@ -18,7 +18,7 @@ module('Unit | Model | role', function (hooks) {
const body = JSON.parse(request.requestBody);
assert.deepEqual(body, {
grant_strings: ['grant1', 'grant2'],
- version: 1
+ version: 1,
});
});
const store = this.owner.lookup('service:store');
@@ -29,14 +29,14 @@ module('Unit | Model | role', function (hooks) {
attributes: {
name: 'Role',
description: 'Description',
- grants: [{value: 'grant1'}, {value: 'grant2'}],
+ grants: [{ value: 'grant1' }, { value: 'grant2' }],
version: 1,
scope: {
scope_id: 'o_1',
- type: 'scope'
- }
- }
- }
+ type: 'scope',
+ },
+ },
+ },
});
const model = store.peekRecord('role', '123abc');
await model.saveGrants();
@@ -48,7 +48,7 @@ module('Unit | Model | role', function (hooks) {
const body = JSON.parse(request.requestBody);
assert.deepEqual(body, {
principal_ids: ['123_abc', 'foobar'],
- version: 1
+ version: 1,
});
});
const store = this.owner.lookup('service:store');
@@ -61,15 +61,15 @@ module('Unit | Model | role', function (hooks) {
description: 'Description',
principals: [
{ id: '1', type: 'user' },
- { id: '3', type: 'group' }
+ { id: '3', type: 'group' },
],
version: 1,
scope: {
scope_id: 'o_1',
- type: 'scope'
- }
- }
- }
+ type: 'scope',
+ },
+ },
+ },
});
const model = store.peekRecord('role', '123abc');
await model.addPrincipals(['123_abc', 'foobar']);
@@ -77,13 +77,16 @@ module('Unit | Model | role', function (hooks) {
test('it has a `removePrincipals` method that targets a specific POST API endpoint and serialization', async function (assert) {
assert.expect(1);
- this.server.post('/v1/roles/123abc:remove-principals', (schema, request) => {
- const body = JSON.parse(request.requestBody);
- assert.deepEqual(body, {
- principal_ids: ['1', '3'],
- version: 1
- });
- });
+ this.server.post(
+ '/v1/roles/123abc:remove-principals',
+ (schema, request) => {
+ const body = JSON.parse(request.requestBody);
+ assert.deepEqual(body, {
+ principal_ids: ['1', '3'],
+ version: 1,
+ });
+ }
+ );
const store = this.owner.lookup('service:store');
store.push({
data: {
@@ -94,15 +97,15 @@ module('Unit | Model | role', function (hooks) {
description: 'Description',
principals: [
{ id: '1', type: 'user' },
- { id: '3', type: 'group' }
+ { id: '3', type: 'group' },
],
version: 1,
scope: {
scope_id: 'o_1',
- type: 'scope'
- }
- }
- }
+ type: 'scope',
+ },
+ },
+ },
});
const model = store.peekRecord('role', '123abc');
await model.removePrincipals(['1', '3']);
@@ -110,13 +113,16 @@ module('Unit | Model | role', function (hooks) {
test('it has a `removePrincipal` method that deletes a single principal using `removePrincipals` method', async function (assert) {
assert.expect(1);
- this.server.post('/v1/roles/123abc:remove-principals', (schema, request) => {
- const body = JSON.parse(request.requestBody);
- assert.deepEqual(body, {
- principal_ids: ['3'],
- version: 1
- });
- });
+ this.server.post(
+ '/v1/roles/123abc:remove-principals',
+ (schema, request) => {
+ const body = JSON.parse(request.requestBody);
+ assert.deepEqual(body, {
+ principal_ids: ['3'],
+ version: 1,
+ });
+ }
+ );
const store = this.owner.lookup('service:store');
store.push({
data: {
@@ -127,15 +133,15 @@ module('Unit | Model | role', function (hooks) {
description: 'Description',
principals: [
{ id: '1', type: 'user' },
- { id: '3', type: 'group' }
+ { id: '3', type: 'group' },
],
version: 1,
scope: {
scope_id: 'o_1',
- type: 'scope'
- }
- }
- }
+ type: 'scope',
+ },
+ },
+ },
});
const model = store.peekRecord('role', '123abc');
await model.removePrincipal('3');
diff --git a/addons/api/tests/unit/models/scope-test.js b/addons/api/tests/unit/models/scope-test.js
index ee2e212b9..1ac318e57 100644
--- a/addons/api/tests/unit/models/scope-test.js
+++ b/addons/api/tests/unit/models/scope-test.js
@@ -2,37 +2,60 @@ import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
import setupMirage from 'ember-cli-mirage/test-support/setup-mirage';
-module('Unit | Model | scope', function(hooks) {
+module('Unit | Model | scope', function (hooks) {
setupTest(hooks);
setupMirage(hooks);
- test('it may have a scope fragment', async function(assert) {
+ test('it may have a scope fragment', async function (assert) {
assert.expect(6);
const store = this.owner.lookup('service:store');
this.server.get('/v1/scopes', () => ({
items: [
- {id: 'global', type: 'global'},
- {id: 'o_1', type: 'org', scope: {scope_id: 'global'}},
- {id: 'o_2', type: 'org', scope: {scope_id: 'global'}},
- {id: 'p_1', type: 'project', scope: {scope_id: 'o_1'}},
- {id: 'p_2', type: 'project', scope: {scope_id: 'o_1'}},
- {id: 'p_3', type: 'project', scope: {scope_id: 'o_2'}},
- ]
+ { id: 'global', type: 'global' },
+ { id: 'o_1', type: 'org', scope: { scope_id: 'global' } },
+ { id: 'o_2', type: 'org', scope: { scope_id: 'global' } },
+ { id: 'p_1', type: 'project', scope: { scope_id: 'o_1' } },
+ { id: 'p_2', type: 'project', scope: { scope_id: 'o_1' } },
+ { id: 'p_3', type: 'project', scope: { scope_id: 'o_2' } },
+ ],
}));
const scopes = await store.findAll('scope');
// check integrity of scope relationships
- assert.notOk(await scopes.firstObject.get('scope'), 'Global scope has no parent');
- assert.equal(await scopes.objectAt(1).get('scope.scope_id'), 'global', 'Org 1 parent scope is global');
- assert.equal(await scopes.objectAt(2).get('scope.scope_id'), 'global', 'Org 2 parent scope is global');
- assert.equal(await scopes.objectAt(3).get('scope.scope_id'), 'o_1', 'Project 1 parent scope is org 1');
- assert.equal(await scopes.objectAt(4).get('scope.scope_id'), 'o_1', 'Project 2 parent scope is org 1');
- assert.equal(await scopes.objectAt(5).get('scope.scope_id'), 'o_2', 'Project 3 parent scope is org 2');
+ assert.notOk(
+ await scopes.firstObject.get('scope'),
+ 'Global scope has no parent'
+ );
+ assert.equal(
+ await scopes.objectAt(1).get('scope.scope_id'),
+ 'global',
+ 'Org 1 parent scope is global'
+ );
+ assert.equal(
+ await scopes.objectAt(2).get('scope.scope_id'),
+ 'global',
+ 'Org 2 parent scope is global'
+ );
+ assert.equal(
+ await scopes.objectAt(3).get('scope.scope_id'),
+ 'o_1',
+ 'Project 1 parent scope is org 1'
+ );
+ assert.equal(
+ await scopes.objectAt(4).get('scope.scope_id'),
+ 'o_1',
+ 'Project 2 parent scope is org 1'
+ );
+ assert.equal(
+ await scopes.objectAt(5).get('scope.scope_id'),
+ 'o_2',
+ 'Project 3 parent scope is org 2'
+ );
});
- test('it has isType boolean getters and setters', async function(assert) {
+ test('it has isType boolean getters and setters', async function (assert) {
assert.expect(9);
const store = this.owner.lookup('service:store');
- const model = store.createRecord('scope', {type: 'global'});
+ const model = store.createRecord('scope', { type: 'global' });
assert.ok(model.isGlobal);
assert.notOk(model.isOrg);
assert.notOk(model.isProject);
@@ -45,5 +68,4 @@ module('Unit | Model | scope', function(hooks) {
assert.notOk(model.isOrg);
assert.ok(model.isProject);
});
-
});
diff --git a/addons/api/tests/unit/models/target-test.js b/addons/api/tests/unit/models/target-test.js
index 2652fcce7..d7e98bcd8 100644
--- a/addons/api/tests/unit/models/target-test.js
+++ b/addons/api/tests/unit/models/target-test.js
@@ -6,7 +6,7 @@ module('Unit | Model | target', function (hooks) {
setupTest(hooks);
setupMirage(hooks);
- test('it has a `hostSets` array of resolved model instances (if those instances are already in the store)', function(assert) {
+ test('it has a `hostSets` array of resolved model instances (if those instances are already in the store)', function (assert) {
assert.expect(6);
const store = this.owner.lookup('service:store');
store.push({
@@ -16,41 +16,56 @@ module('Unit | Model | target', function (hooks) {
attributes: {
host_sets: [
{ host_set_id: '1', host_catalog_id: '2' },
- { host_set_id: '3', host_catalog_id: '2' }
- ]
- }
- }
+ { host_set_id: '3', host_catalog_id: '2' },
+ ],
+ },
+ },
});
const target = store.peekRecord('target', '123abc');
- assert.equal(target.host_sets.length, 2, 'Target has two entires in host_sets');
- assert.equal(target.hostSets.length, 0, 'Target has no resolved hostSets because they are not loaded yet');
+ assert.equal(
+ target.host_sets.length,
+ 2,
+ 'Target has two entires in host_sets'
+ );
+ assert.equal(
+ target.hostSets.length,
+ 0,
+ 'Target has no resolved hostSets because they are not loaded yet'
+ );
store.push({
data: {
id: '1',
type: 'host-set',
- attributes: {}
- }
+ attributes: {},
+ },
});
store.push({
data: {
id: '3',
type: 'host-set',
- attributes: {}
- }
+ attributes: {},
+ },
});
// Since `hostSets` is computed on `host_sets`, not the store itself,
// it's necessary to do this assignment to kick-off the computed update.
// eslint-disable-next-line no-self-assign
target.host_sets = target.host_sets;
- assert.equal(target.host_sets.length, 2, 'Target has two entires in host_sets');
+ assert.equal(
+ target.host_sets.length,
+ 2,
+ 'Target has two entires in host_sets'
+ );
assert.equal(target.hostSets.length, 2, 'Target has two resolved hostSets');
- assert.notOk(target.hostSets[0].hostCatalog, 'Host catalog was not resolved because it is not loaded yet');
+ assert.notOk(
+ target.hostSets[0].hostCatalog,
+ 'Host catalog was not resolved because it is not loaded yet'
+ );
store.push({
data: {
id: '2',
type: 'host-catalog',
- attributes: {}
- }
+ attributes: {},
+ },
});
// eslint-disable-next-line no-self-assign
target.host_sets = target.host_sets;
@@ -63,7 +78,7 @@ module('Unit | Model | target', function (hooks) {
const body = JSON.parse(request.requestBody);
assert.deepEqual(body, {
host_set_ids: ['123_abc', 'foobar'],
- version: 1
+ version: 1,
});
});
const store = this.owner.lookup('service:store');
@@ -76,15 +91,15 @@ module('Unit | Model | target', function (hooks) {
description: 'Description',
host_sets: [
{ host_set_id: '1', host_catalog_id: '2' },
- { host_set_id: '3', host_catalog_id: '4' }
+ { host_set_id: '3', host_catalog_id: '4' },
],
version: 1,
scope: {
scope_id: 'o_1',
- type: 'scope'
- }
- }
- }
+ type: 'scope',
+ },
+ },
+ },
});
const model = store.peekRecord('target', '123abc');
await model.addHostSets(['123_abc', 'foobar']);
@@ -92,13 +107,16 @@ module('Unit | Model | target', function (hooks) {
test('it has a `removeHostSets` method that targets a specific POST API endpoint and serialization', async function (assert) {
assert.expect(1);
- this.server.post('/v1/targets/123abc:remove-host-sets', (schema, request) => {
- const body = JSON.parse(request.requestBody);
- assert.deepEqual(body, {
- host_set_ids: ['1', '3'],
- version: 1
- });
- });
+ this.server.post(
+ '/v1/targets/123abc:remove-host-sets',
+ (schema, request) => {
+ const body = JSON.parse(request.requestBody);
+ assert.deepEqual(body, {
+ host_set_ids: ['1', '3'],
+ version: 1,
+ });
+ }
+ );
const store = this.owner.lookup('service:store');
store.push({
data: {
@@ -109,15 +127,15 @@ module('Unit | Model | target', function (hooks) {
description: 'Description',
host_sets: [
{ host_set_id: '1', host_catalog_id: '2' },
- { host_set_id: '3', host_catalog_id: '4' }
+ { host_set_id: '3', host_catalog_id: '4' },
],
version: 1,
scope: {
scope_id: 'o_1',
- type: 'scope'
- }
- }
- }
+ type: 'scope',
+ },
+ },
+ },
});
const model = store.peekRecord('target', '123abc');
await model.removeHostSets(['1', '3']);
@@ -125,13 +143,16 @@ module('Unit | Model | target', function (hooks) {
test('it has a `removeHostSet` method that deletes a single host set using `removeHostSets` method', async function (assert) {
assert.expect(1);
- this.server.post('/v1/targets/123abc:remove-host-sets', (schema, request) => {
- const body = JSON.parse(request.requestBody);
- assert.deepEqual(body, {
- host_set_ids: ['3'],
- version: 1
- });
- });
+ this.server.post(
+ '/v1/targets/123abc:remove-host-sets',
+ (schema, request) => {
+ const body = JSON.parse(request.requestBody);
+ assert.deepEqual(body, {
+ host_set_ids: ['3'],
+ version: 1,
+ });
+ }
+ );
const store = this.owner.lookup('service:store');
store.push({
data: {
@@ -142,15 +163,15 @@ module('Unit | Model | target', function (hooks) {
description: 'Description',
host_sets: [
{ host_set_id: '1', host_catalog_id: '2' },
- { host_set_id: '3', host_catalog_id: '4' }
+ { host_set_id: '3', host_catalog_id: '4' },
],
version: 1,
scope: {
scope_id: 'o_1',
- type: 'scope'
- }
- }
- }
+ type: 'scope',
+ },
+ },
+ },
});
const model = store.peekRecord('target', '123abc');
await model.removeHostSet('3');
diff --git a/addons/api/tests/unit/models/user-test.js b/addons/api/tests/unit/models/user-test.js
index 1ba358ae1..df69a6501 100644
--- a/addons/api/tests/unit/models/user-test.js
+++ b/addons/api/tests/unit/models/user-test.js
@@ -1,10 +1,10 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Model | user', function(hooks) {
+module('Unit | Model | user', function (hooks) {
setupTest(hooks);
- test('it exists', function(assert) {
+ test('it exists', function (assert) {
let store = this.owner.lookup('service:store');
let model = store.createRecord('user', {});
assert.ok(model);
diff --git a/addons/api/tests/unit/serializers/account-test.js b/addons/api/tests/unit/serializers/account-test.js
index 85f9b655f..a94bf28f6 100644
--- a/addons/api/tests/unit/serializers/account-test.js
+++ b/addons/api/tests/unit/serializers/account-test.js
@@ -1,7 +1,7 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Serializer | account', function(hooks) {
+module('Unit | Serializer | account', function (hooks) {
setupTest(hooks);
test('it serializes normally', function (assert) {
@@ -16,7 +16,7 @@ module('Unit | Serializer | account', function(hooks) {
attributes: {
login_name: 'Login Name',
},
- version: 1
+ version: 1,
});
const snapshot = record._createSnapshot();
snapshot.adapterOptions = {};
@@ -27,9 +27,9 @@ module('Unit | Serializer | account', function(hooks) {
auth_method_id: '1',
description: 'Description',
attributes: {
- login_name: 'Login Name'
+ login_name: 'Login Name',
},
- version: 1
+ version: 1,
});
});
@@ -45,11 +45,11 @@ module('Unit | Serializer | account', function(hooks) {
attributes: {
login_name: 'Login Name',
},
- version: 1
+ version: 1,
});
const snapshot = record._createSnapshot();
snapshot.adapterOptions = {
- password: 'Password'
+ password: 'Password',
};
const serializedRecord = serializer.serialize(snapshot);
assert.deepEqual(serializedRecord, {
@@ -59,9 +59,9 @@ module('Unit | Serializer | account', function(hooks) {
description: 'Description',
attributes: {
login_name: 'Login Name',
- password: 'Password'
+ password: 'Password',
},
- version: 1
+ version: 1,
});
});
@@ -78,20 +78,20 @@ module('Unit | Serializer | account', function(hooks) {
name: 'Name',
description: 'Description',
attributes: {
- login_name: 'Login Name'
+ login_name: 'Login Name',
},
auth_method_id: '1',
- version: 1
+ version: 1,
});
const snapshot = record._createSnapshot();
snapshot.adapterOptions = {
method: 'set-password',
- password: 'Password'
+ password: 'Password',
};
const serializedRecord = serializer.serialize(snapshot);
assert.deepEqual(serializedRecord, {
password: 'Password',
- version: 1
+ version: 1,
});
});
});
diff --git a/addons/api/tests/unit/serializers/application-test.js b/addons/api/tests/unit/serializers/application-test.js
index 094e0ffb3..3ab733e52 100644
--- a/addons/api/tests/unit/serializers/application-test.js
+++ b/addons/api/tests/unit/serializers/application-test.js
@@ -19,14 +19,14 @@ module('Unit | Serializer | application', function (hooks) {
description: 'Description',
scope: {
scope_id: 'global',
- type: 'global'
- }
+ type: 'global',
+ },
});
const serializedRecord = record.serialize();
assert.deepEqual(serializedRecord, {
name: 'User',
description: 'Description',
- scope_id: 'global'
+ scope_id: 'global',
});
});
@@ -38,14 +38,14 @@ module('Unit | Serializer | application', function (hooks) {
description: 'Description',
scope: {
scope_id: 'global',
- type: 'global'
- }
+ type: 'global',
+ },
});
const serializedRecord = record.serialize();
assert.deepEqual(serializedRecord, {
name: 'User',
description: 'Description',
- scope_id: 'global'
+ scope_id: 'global',
});
});
@@ -55,19 +55,19 @@ module('Unit | Serializer | application', function (hooks) {
const record = store.createRecord('user', {
name: 'User',
description: 'Description',
- version: null
+ version: null,
});
let serializedRecord = record.serialize();
assert.deepEqual(serializedRecord, {
name: 'User',
- description: 'Description'
+ description: 'Description',
});
record.version = 1;
serializedRecord = record.serialize();
assert.deepEqual(serializedRecord, {
name: 'User',
description: 'Description',
- version: 1
+ version: 1,
});
});
@@ -121,7 +121,7 @@ module('Unit | Serializer | application', function (hooks) {
const payload = {
id: '1',
name: 'User 1',
- scope: { id: 'o_123' }
+ scope: { id: 'o_123' },
};
const normalized = serializer.normalizeSingleResponse(
store,
@@ -147,7 +147,7 @@ module('Unit | Serializer | application', function (hooks) {
const payload = {
id: '1',
name: 'Target 1',
- scope: { id: 'o_123' }
+ scope: { id: 'o_123' },
};
const normalized = serializer.normalizeSingleResponse(
store,
@@ -162,7 +162,7 @@ module('Unit | Serializer | application', function (hooks) {
attributes: {
name: 'Target 1',
scope: { scope_id: 'o_123' },
- host_sets: []
+ host_sets: [],
},
relationships: {},
},
diff --git a/addons/api/tests/unit/serializers/fragment-host-set-test.js b/addons/api/tests/unit/serializers/fragment-host-set-test.js
index 7a0cb2c59..61285678d 100644
--- a/addons/api/tests/unit/serializers/fragment-host-set-test.js
+++ b/addons/api/tests/unit/serializers/fragment-host-set-test.js
@@ -2,27 +2,27 @@ import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
import FragmentHostSet from 'api/models/fragment-host-set';
-module('Unit | Serializer | fragment host set', function(hooks) {
+module('Unit | Serializer | fragment host set', function (hooks) {
setupTest(hooks);
- test('it normalizes `id` into `host_set_id`', function(assert) {
+ test('it normalizes `id` into `host_set_id`', function (assert) {
assert.expect(1);
const store = this.owner.lookup('service:store');
const serializer = store.serializerFor('fragment-host-set');
const normalized = serializer.normalize(FragmentHostSet, {
id: '2',
- host_catalog_id: '1'
+ host_catalog_id: '1',
});
assert.deepEqual(normalized, {
data: {
attributes: {
host_set_id: '2',
- host_catalog_id: '1'
+ host_catalog_id: '1',
},
id: null,
relationships: {},
- type: 'fragment-host-set'
- }
+ type: 'fragment-host-set',
+ },
});
});
});
diff --git a/addons/api/tests/unit/serializers/fragment-principal-test.js b/addons/api/tests/unit/serializers/fragment-principal-test.js
index bda2d46c5..d6606dff3 100644
--- a/addons/api/tests/unit/serializers/fragment-principal-test.js
+++ b/addons/api/tests/unit/serializers/fragment-principal-test.js
@@ -2,29 +2,29 @@ import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
import FragmentPrincipal from 'api/models/fragment-principal';
-module('Unit | Serializer | fragment principal', function(hooks) {
+module('Unit | Serializer | fragment principal', function (hooks) {
setupTest(hooks);
- test('it normalizes `id` into `principal_id`', function(assert) {
+ test('it normalizes `id` into `principal_id`', function (assert) {
assert.expect(1);
const store = this.owner.lookup('service:store');
const serializer = store.serializerFor('fragment-principal');
const normalized = serializer.normalize(FragmentPrincipal, {
scope_id: '1',
principal_id: '2',
- type: 'user'
+ type: 'user',
});
assert.deepEqual(normalized, {
data: {
attributes: {
scope_id: '1',
principal_id: '2',
- type: 'user'
+ type: 'user',
},
id: null,
relationships: {},
- type: 'fragment-principal'
- }
+ type: 'fragment-principal',
+ },
});
});
});
diff --git a/addons/api/tests/unit/serializers/group-test.js b/addons/api/tests/unit/serializers/group-test.js
index 8c80a1b50..29d0e5d90 100644
--- a/addons/api/tests/unit/serializers/group-test.js
+++ b/addons/api/tests/unit/serializers/group-test.js
@@ -1,7 +1,7 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Serializer | group', function(hooks) {
+module('Unit | Serializer | group', function (hooks) {
setupTest(hooks);
test('it serializes groups normally, without members', function (assert) {
@@ -11,8 +11,8 @@ module('Unit | Serializer | group', function(hooks) {
const record = store.createRecord('group', {
name: 'Group',
description: 'Description',
- member_ids: [ '1', '2', ],
- version: 1
+ member_ids: ['1', '2'],
+ version: 1,
});
const snapshot = record._createSnapshot();
snapshot.adapterOptions = {};
@@ -20,7 +20,7 @@ module('Unit | Serializer | group', function(hooks) {
assert.deepEqual(serializedRecord, {
name: 'Group',
description: 'Description',
- version: 1
+ version: 1,
});
});
@@ -31,17 +31,17 @@ module('Unit | Serializer | group', function(hooks) {
const record = store.createRecord('group', {
name: 'Group',
description: 'Description',
- member_ids: [ '1', '2', ],
- version: 1
+ member_ids: ['1', '2'],
+ version: 1,
});
const snapshot = record._createSnapshot();
snapshot.adapterOptions = {
- memberIDs: ['4', '5']
+ memberIDs: ['4', '5'],
};
const serializedRecord = serializer.serialize(snapshot);
assert.deepEqual(serializedRecord, {
member_ids: ['4', '5'],
- version: 1
+ version: 1,
});
});
@@ -53,7 +53,7 @@ module('Unit | Serializer | group', function(hooks) {
const payload = {
id: '1',
name: 'Group 1',
- scope: { id: 'o_123' }
+ scope: { id: 'o_123' },
};
const normalized = serializer.normalizeSingleResponse(
store,
@@ -68,11 +68,10 @@ module('Unit | Serializer | group', function(hooks) {
attributes: {
name: 'Group 1',
scope: { scope_id: 'o_123' },
- member_ids: []
+ member_ids: [],
},
relationships: {},
},
});
});
-
});
diff --git a/addons/api/tests/unit/serializers/host-set-test.js b/addons/api/tests/unit/serializers/host-set-test.js
index be9d51436..015c7802b 100644
--- a/addons/api/tests/unit/serializers/host-set-test.js
+++ b/addons/api/tests/unit/serializers/host-set-test.js
@@ -1,7 +1,7 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Serializer | host set', function(hooks) {
+module('Unit | Serializer | host set', function (hooks) {
setupTest(hooks);
test('it serializes host sets normally, without host_ids', function (assert) {
@@ -12,7 +12,7 @@ module('Unit | Serializer | host set', function(hooks) {
name: 'Host Set 1',
description: 'Description',
host_catalog_id: '123',
- version: 1
+ version: 1,
});
const snapshot = record._createSnapshot();
snapshot.adapterOptions = {};
@@ -21,7 +21,7 @@ module('Unit | Serializer | host set', function(hooks) {
name: 'Host Set 1',
description: 'Description',
host_catalog_id: '123',
- version: 1
+ version: 1,
});
});
@@ -32,17 +32,17 @@ module('Unit | Serializer | host set', function(hooks) {
const record = store.createRecord('host-set', {
name: 'Host Set 1',
description: 'Description',
- host_ids: [{value: '1'}, {value: '2'}, {value: '3'}],
- version: 1
+ host_ids: [{ value: '1' }, { value: '2' }, { value: '3' }],
+ version: 1,
});
const snapshot = record._createSnapshot();
snapshot.adapterOptions = {
- hostIDs: ['4', '5']
+ hostIDs: ['4', '5'],
};
const serializedRecord = serializer.serialize(snapshot);
assert.deepEqual(serializedRecord, {
host_ids: ['4', '5'],
- version: 1
+ version: 1,
});
});
@@ -54,7 +54,7 @@ module('Unit | Serializer | host set', function(hooks) {
const payload = {
id: '1',
name: 'Host Set 1',
- host_ids: ['1', '2', '3']
+ host_ids: ['1', '2', '3'],
};
const normalized = serializer.normalizeSingleResponse(
store,
@@ -68,7 +68,7 @@ module('Unit | Serializer | host set', function(hooks) {
type: 'host-set',
attributes: {
name: 'Host Set 1',
- host_ids: [{value: '1'}, {value: '2'}, {value: '3'}],
+ host_ids: [{ value: '1' }, { value: '2' }, { value: '3' }],
},
relationships: {},
},
@@ -83,7 +83,7 @@ module('Unit | Serializer | host set', function(hooks) {
const payload = {
id: '1',
name: 'Host Set 1',
- scope: { id: 'o_123' }
+ scope: { id: 'o_123' },
};
const normalized = serializer.normalizeSingleResponse(
store,
@@ -98,11 +98,10 @@ module('Unit | Serializer | host set', function(hooks) {
attributes: {
name: 'Host Set 1',
scope: { scope_id: 'o_123' },
- host_ids: []
+ host_ids: [],
},
relationships: {},
},
});
});
-
});
diff --git a/addons/api/tests/unit/serializers/role-test.js b/addons/api/tests/unit/serializers/role-test.js
index 7a3d6e59d..1e0624d6a 100644
--- a/addons/api/tests/unit/serializers/role-test.js
+++ b/addons/api/tests/unit/serializers/role-test.js
@@ -1,7 +1,7 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Serializer | role', function(hooks) {
+module('Unit | Serializer | role', function (hooks) {
setupTest(hooks);
test('it serializes roles normally, without grants', function (assert) {
@@ -11,8 +11,8 @@ module('Unit | Serializer | role', function(hooks) {
const record = store.createRecord('role', {
name: 'User',
description: 'Description',
- grants: [{value: 'foo'}, {value: 'bar'}],
- version: 1
+ grants: [{ value: 'foo' }, { value: 'bar' }],
+ version: 1,
});
const snapshot = record._createSnapshot();
snapshot.adapterOptions = {};
@@ -20,7 +20,7 @@ module('Unit | Serializer | role', function(hooks) {
assert.deepEqual(serializedRecord, {
name: 'User',
description: 'Description',
- version: 1
+ version: 1,
});
});
@@ -31,17 +31,17 @@ module('Unit | Serializer | role', function(hooks) {
const record = store.createRecord('role', {
name: 'User',
description: 'Description',
- grants: [{value: 'foo'}, {value: 'bar'}],
- version: 1
+ grants: [{ value: 'foo' }, { value: 'bar' }],
+ version: 1,
});
const snapshot = record._createSnapshot();
snapshot.adapterOptions = {
- serializeGrants: true
+ serializeGrants: true,
};
const serializedRecord = serializer.serialize(snapshot);
assert.deepEqual(serializedRecord, {
grant_strings: ['foo', 'bar'],
- version: 1
+ version: 1,
});
});
@@ -53,7 +53,7 @@ module('Unit | Serializer | role', function(hooks) {
const payload = {
id: '1',
name: 'Role 1',
- grant_strings: ['*', '*']
+ grant_strings: ['*', '*'],
};
const normalized = serializer.normalizeSingleResponse(
store,
@@ -67,8 +67,8 @@ module('Unit | Serializer | role', function(hooks) {
type: 'role',
attributes: {
name: 'Role 1',
- grants: [{value: '*'}, {value: '*'}],
- principals: []
+ grants: [{ value: '*' }, { value: '*' }],
+ principals: [],
},
relationships: {},
},
@@ -83,13 +83,9 @@ module('Unit | Serializer | role', function(hooks) {
const payload = {
id: '1',
name: 'Role 1',
- scope: { id: 'o_123' }
+ scope: { id: 'o_123' },
};
- const normalized = serializer.normalizeSingleResponse(
- store,
- role,
- payload
- );
+ const normalized = serializer.normalizeSingleResponse(store, role, payload);
assert.deepEqual(normalized, {
included: [],
data: {
@@ -98,11 +94,10 @@ module('Unit | Serializer | role', function(hooks) {
attributes: {
name: 'Role 1',
scope: { scope_id: 'o_123' },
- principals: []
+ principals: [],
},
relationships: {},
},
});
});
-
});
diff --git a/addons/api/tests/unit/serializers/target-test.js b/addons/api/tests/unit/serializers/target-test.js
index e129331eb..07d5b3c21 100644
--- a/addons/api/tests/unit/serializers/target-test.js
+++ b/addons/api/tests/unit/serializers/target-test.js
@@ -1,7 +1,7 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
-module('Unit | Serializer | target', function(hooks) {
+module('Unit | Serializer | target', function (hooks) {
setupTest(hooks);
test('it serializes targets normally, without host sets', function (assert) {
@@ -13,14 +13,14 @@ module('Unit | Serializer | target', function(hooks) {
description: 'Description',
host_sets: [
{ host_set_id: '1', host_catalog_id: '2' },
- { host_set_id: '3', host_catalog_id: '4' }
+ { host_set_id: '3', host_catalog_id: '4' },
],
scope: {
scope_id: 'org_1',
- type: 'org'
+ type: 'org',
},
version: 1,
- type: 'tcp'
+ type: 'tcp',
});
const snapshot = record._createSnapshot();
snapshot.adapterOptions = {};
@@ -32,10 +32,9 @@ module('Unit | Serializer | target', function(hooks) {
type: 'tcp',
scope_id: 'org_1',
attributes: {
- default_port: null
- }
+ default_port: null,
+ },
});
-
});
test('it serializes only host sets and version when an `adapterOptions.hostSetIDs` array is passed', function (assert) {
@@ -47,18 +46,18 @@ module('Unit | Serializer | target', function(hooks) {
description: 'Description',
host_sets: [
{ host_set_id: '1', host_catalog_id: '2' },
- { host_set_id: '3', host_catalog_id: '4' }
+ { host_set_id: '3', host_catalog_id: '4' },
],
- version: 1
+ version: 1,
});
const snapshot = record._createSnapshot();
snapshot.adapterOptions = {
- hostSetIDs: ['4', '5']
+ hostSetIDs: ['4', '5'],
};
const serializedRecord = serializer.serialize(snapshot);
assert.deepEqual(serializedRecord, {
host_set_ids: ['4', '5'],
- version: 1
+ version: 1,
});
});
@@ -72,8 +71,8 @@ module('Unit | Serializer | target', function(hooks) {
name: 'Target 1',
host_sets: [
{ host_set_id: '1', host_catalog_id: '2' },
- { host_set_id: '3', host_catalog_id: '4' }
- ]
+ { host_set_id: '3', host_catalog_id: '4' },
+ ],
};
const normalized = serializer.normalizeSingleResponse(
store,
@@ -89,8 +88,8 @@ module('Unit | Serializer | target', function(hooks) {
name: 'Target 1',
host_sets: [
{ host_set_id: '1', host_catalog_id: '2' },
- { host_set_id: '3', host_catalog_id: '4' }
- ]
+ { host_set_id: '3', host_catalog_id: '4' },
+ ],
},
relationships: {},
},
@@ -105,7 +104,7 @@ module('Unit | Serializer | target', function(hooks) {
const payload = {
id: '1',
name: 'Target 1',
- scope: { id: 'o_123' }
+ scope: { id: 'o_123' },
};
const normalized = serializer.normalizeSingleResponse(
store,
@@ -120,11 +119,10 @@ module('Unit | Serializer | target', function(hooks) {
attributes: {
name: 'Target 1',
scope: { scope_id: 'o_123' },
- host_sets: []
+ host_sets: [],
},
relationships: {},
},
});
});
-
});
diff --git a/addons/auth/tests/dummy/app/authenticators/password.js b/addons/auth/tests/dummy/app/authenticators/password.js
index e259039a3..1953a8f5d 100644
--- a/addons/auth/tests/dummy/app/authenticators/password.js
+++ b/addons/auth/tests/dummy/app/authenticators/password.js
@@ -1,13 +1,11 @@
import PasswordAuthenticator from 'auth/authenticators/password';
export default class ApplicationPasswordAuthenticator extends PasswordAuthenticator {
-
buildAuthEndpointURL() {
return '/authenticate';
}
-
+
buildDeauthEndpointURL() {
return '/deauthenticate';
}
-
}
diff --git a/addons/auth/tests/unit/authenticators/password-test.js b/addons/auth/tests/unit/authenticators/password-test.js
index 372d57a0c..873277469 100644
--- a/addons/auth/tests/unit/authenticators/password-test.js
+++ b/addons/auth/tests/unit/authenticators/password-test.js
@@ -10,11 +10,14 @@ module('Unit | Authenticator | password', function (hooks) {
test('it authenticates to the specified authEndpoint', async function (assert) {
assert.expect(2);
const authenticator = this.owner.lookup('authenticator:password');
- this.server.post(authenticator.buildAuthEndpointURL(), (schema, request) => {
- const json = JSON.parse(request.requestBody);
- assert.ok(json.token_type, 'Requested token cookies by default');
- return new Response(200);
- });
+ this.server.post(
+ authenticator.buildAuthEndpointURL(),
+ (schema, request) => {
+ const json = JSON.parse(request.requestBody);
+ assert.ok(json.token_type, 'Requested token cookies by default');
+ return new Response(200);
+ }
+ );
await authenticator.authenticate({}).then(() => {
assert.ok(true, 'authentication succeeded');
});
@@ -23,11 +26,14 @@ module('Unit | Authenticator | password', function (hooks) {
test('it can authenticate without requesting cookies', async function (assert) {
assert.expect(2);
const authenticator = this.owner.lookup('authenticator:password');
- this.server.post(authenticator.buildAuthEndpointURL(), (schema, request) => {
- const json = JSON.parse(request.requestBody);
- assert.notOk(json.token_type, 'Did not request tokens cookies');
- return new Response(200);
- });
+ this.server.post(
+ authenticator.buildAuthEndpointURL(),
+ (schema, request) => {
+ const json = JSON.parse(request.requestBody);
+ assert.notOk(json.token_type, 'Did not request tokens cookies');
+ return new Response(200);
+ }
+ );
await authenticator.authenticate({}, false).then(() => {
assert.ok(true, 'authentication succeeded');
});
@@ -36,17 +42,20 @@ module('Unit | Authenticator | password', function (hooks) {
test('it authenticates with the expected payload', async function (assert) {
assert.expect(1);
const authenticator = this.owner.lookup('authenticator:password');
- this.server.post(authenticator.buildAuthEndpointURL(), (schema, request) => {
- const json = JSON.parse(request.requestBody);
- assert.deepEqual(json, {
- token_type: 'cookie',
- credentials: {
- login_name: 'foo',
- password: 'bar',
- },
- });
- return new Response(200);
- });
+ this.server.post(
+ authenticator.buildAuthEndpointURL(),
+ (schema, request) => {
+ const json = JSON.parse(request.requestBody);
+ assert.deepEqual(json, {
+ token_type: 'cookie',
+ credentials: {
+ login_name: 'foo',
+ password: 'bar',
+ },
+ });
+ return new Response(200);
+ }
+ );
const creds = {
identification: 'foo',
password: 'bar',
diff --git a/addons/rose/addon/components/rose/list/key-value.js b/addons/rose/addon/components/rose/list/key-value.js
index 0d173250c..279a84e82 100644
--- a/addons/rose/addon/components/rose/list/key-value.js
+++ b/addons/rose/addon/components/rose/list/key-value.js
@@ -3,5 +3,5 @@ import layout from '../../../templates/components/rose/list/key-value';
export default Component.extend({
layout,
- tagName: ''
+ tagName: '',
});
diff --git a/addons/rose/addon/components/rose/list/key-value/item.js b/addons/rose/addon/components/rose/list/key-value/item.js
index 291e1b9da..37c30217d 100644
--- a/addons/rose/addon/components/rose/list/key-value/item.js
+++ b/addons/rose/addon/components/rose/list/key-value/item.js
@@ -4,5 +4,5 @@ import ComponentAutoId from '../../../../mixins/component-auto-id';
export default Component.extend(ComponentAutoId, {
layout,
- tagName: ''
+ tagName: '',
});
diff --git a/addons/rose/addon/styles/rose/components/dropdown/_index.scss b/addons/rose/addon/styles/rose/components/dropdown/_index.scss
index 665c33f0f..bb5b6e91f 100644
--- a/addons/rose/addon/styles/rose/components/dropdown/_index.scss
+++ b/addons/rose/addon/styles/rose/components/dropdown/_index.scss
@@ -1,3 +1,3 @@
@import 'dropdown';
@import 'button';
-@import 'link';
\ No newline at end of file
+@import 'link';
diff --git a/addons/rose/addon/styles/rose/components/form/_input.scss b/addons/rose/addon/styles/rose/components/form/_input.scss
index 4b898f4ef..bdfd5fff9 100644
--- a/addons/rose/addon/styles/rose/components/form/_input.scss
+++ b/addons/rose/addon/styles/rose/components/form/_input.scss
@@ -16,8 +16,7 @@
background-color: var(--subtle);
border: sizing.rems(xxxxs) solid var(--ui-gray-subtler-2);
border-radius: sizing.rems(xxxs);
- box-shadow: inset 0px 3px 1px
- rgba(var(--stark-components), var(--opacity-4));
+ box-shadow: inset 0px 3px 1px rgba(var(--stark-components), var(--opacity-4));
&.error {
color: var(--failure);
diff --git a/addons/rose/addon/styles/rose/components/header/_dropdown.scss b/addons/rose/addon/styles/rose/components/header/_dropdown.scss
index 8dfe39547..fc81fdf23 100644
--- a/addons/rose/addon/styles/rose/components/header/_dropdown.scss
+++ b/addons/rose/addon/styles/rose/components/header/_dropdown.scss
@@ -3,7 +3,7 @@
$chevron: "data:image/svg+xml;utf-8,";
-.rose-header {
+.rose-header {
.rose-dropdown {
&,
&[open] {
@@ -33,7 +33,8 @@ $chevron: "data:image/svg+xml;utf-8,`);
- assert.equal(await find('.rose-form-checkbox-label-text').textContent.trim(), 'Label');
- assert.equal(await find('.rose-form-checkbox-label-description').textContent.trim(), 'Hello world');
+ await render(
+ hbs``
+ );
+ assert.equal(
+ await find('.rose-form-checkbox-label-text').textContent.trim(),
+ 'Label'
+ );
+ assert.equal(
+ await find('.rose-form-checkbox-label-description').textContent.trim(),
+ 'Hello world'
+ );
assert.ok(await find('input'));
});
diff --git a/addons/rose/tests/integration/components/rose/form/helper-text-test.js b/addons/rose/tests/integration/components/rose/form/helper-text-test.js
index 277b6f2b6..76aef0308 100644
--- a/addons/rose/tests/integration/components/rose/form/helper-text-test.js
+++ b/addons/rose/tests/integration/components/rose/form/helper-text-test.js
@@ -3,7 +3,7 @@ import { setupRenderingTest } from 'ember-qunit';
import { render, find } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
-module('Integration | Component | rose/form/helper-text', function(hooks) {
+module('Integration | Component | rose/form/helper-text', function (hooks) {
setupRenderingTest(hooks);
test('it renders', async function (assert) {
diff --git a/addons/rose/tests/integration/components/rose/form/input-test.js b/addons/rose/tests/integration/components/rose/form/input-test.js
index edea0f7aa..2f6c6cc56 100644
--- a/addons/rose/tests/integration/components/rose/form/input-test.js
+++ b/addons/rose/tests/integration/components/rose/form/input-test.js
@@ -80,7 +80,10 @@ module('Integration | Component | rose/form/input', function (hooks) {
`);
- assert.notOk(find('.rose-form-input'), 'The form field wrapper element is not present in contextual mode');
+ assert.notOk(
+ find('.rose-form-input'),
+ 'The form field wrapper element is not present in contextual mode'
+ );
assert.ok(find('.rose-form-label.error'));
assert.ok(find('.rose-form-helper-text.error'));
assert.ok(find('.rose-form-input-field.error'));
diff --git a/addons/rose/tests/integration/components/rose/form/label-test.js b/addons/rose/tests/integration/components/rose/form/label-test.js
index 3a5298fb6..ac74b210c 100644
--- a/addons/rose/tests/integration/components/rose/form/label-test.js
+++ b/addons/rose/tests/integration/components/rose/form/label-test.js
@@ -3,7 +3,7 @@ import { setupRenderingTest } from 'ember-qunit';
import { render, find } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
-module('Integration | Component | rose/form/label', function(hooks) {
+module('Integration | Component | rose/form/label', function (hooks) {
setupRenderingTest(hooks);
test('it renders', async function (assert) {
@@ -14,9 +14,6 @@ module('Integration | Component | rose/form/label', function(hooks) {
/Rose::Form::Label>
`);
assert.ok(find('.rose-form-label'));
- assert.equal(
- find('.rose-form-label').textContent.trim(),
- 'Form Label'
- );
+ assert.equal(find('.rose-form-label').textContent.trim(), 'Form Label');
});
});
diff --git a/addons/rose/tests/integration/components/rose/list/key-value-test.js b/addons/rose/tests/integration/components/rose/list/key-value-test.js
index 086bf9b64..38e10c345 100644
--- a/addons/rose/tests/integration/components/rose/list/key-value-test.js
+++ b/addons/rose/tests/integration/components/rose/list/key-value-test.js
@@ -3,10 +3,10 @@ import { setupRenderingTest } from 'ember-qunit';
import { render, find, findAll } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
-module('Integration | Component | rose/list/key-value', function(hooks) {
+module('Integration | Component | rose/list/key-value', function (hooks) {
setupRenderingTest(hooks);
- test('it renders', async function(assert) {
+ test('it renders', async function (assert) {
assert.expect(2);
await render(hbs`
@@ -20,10 +20,18 @@ module('Integration | Component | rose/list/key-value', function(hooks) {
`);
- const itemLabelledBy = find('.rose-list-key-value-item:first-child').getAttribute('aria-labelledby');
- assert.equal(findAll('.rose-list-key-value-item').length, 2, 'it has two items');
+ const itemLabelledBy = find(
+ '.rose-list-key-value-item:first-child'
+ ).getAttribute('aria-labelledby');
+ assert.equal(
+ findAll('.rose-list-key-value-item').length,
+ 2,
+ 'it has two items'
+ );
assert.ok(
- find(`.rose-list-key-value-item:first-child > .rose-list-key-value-item-cell:first-child#${itemLabelledBy}`),
+ find(
+ `.rose-list-key-value-item:first-child > .rose-list-key-value-item-cell:first-child#${itemLabelledBy}`
+ ),
'The key cell has an ID associated with the `aria-labelledby` attribute of its parent item element'
);
});
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);
});