diff --git a/addons/api/addon/generated/models/target.js b/addons/api/addon/generated/models/target.js
new file mode 100644
index 000000000..f80ea83cc
--- /dev/null
+++ b/addons/api/addon/generated/models/target.js
@@ -0,0 +1,41 @@
+import BaseModel from '../../models/base';
+import { attr } from '@ember-data/model';
+
+/**
+ * Target
+ */
+export default class GeneratedTargetModel extends BaseModel {
+
+ // =attributes
+
+ @attr('string', {
+ description: 'The protocol used in the target'
+ }) protocol;
+
+ @attr('string', {
+ description: 'Optional name for identification purposes'
+ }) name;
+
+ @attr('string', {
+ description: 'Optional user-set description for identification purposes'
+ }) description;
+
+ @attr('date', {
+ description: 'The time this resource was created\nOutput only.',
+ readOnly: true
+ }) created_time;
+
+ @attr('date', {
+ description: 'The time this resource was last updated\nOutput only.',
+ readOnly: true
+ }) updated_time;
+
+ @attr('boolean', {
+ description: 'Whether the catalog is disabled'
+ }) disabled;
+
+ @attr('number', {
+ description: 'Current version number of this resource.',
+ })
+ version;
+}
diff --git a/addons/api/addon/models/target.js b/addons/api/addon/models/target.js
new file mode 100644
index 000000000..84b2658dc
--- /dev/null
+++ b/addons/api/addon/models/target.js
@@ -0,0 +1,3 @@
+import GeneratedTargetModel from '../generated/models/target';
+
+export default class TargetModel extends GeneratedTargetModel {}
diff --git a/addons/api/app/models/target.js b/addons/api/app/models/target.js
new file mode 100644
index 000000000..a5b0bca2f
--- /dev/null
+++ b/addons/api/app/models/target.js
@@ -0,0 +1 @@
+export { default } from 'api/models/target';
diff --git a/addons/api/tests/unit/models/target-test.js b/addons/api/tests/unit/models/target-test.js
new file mode 100644
index 000000000..78fc71e43
--- /dev/null
+++ b/addons/api/tests/unit/models/target-test.js
@@ -0,0 +1,13 @@
+import { module, test } from 'qunit';
+import { setupTest } from 'ember-qunit';
+
+module('Unit | Model | target', function(hooks) {
+ setupTest(hooks);
+
+ // Replace this with your real tests.
+ test('it exists', function(assert) {
+ let store = this.owner.lookup('service:store');
+ let model = store.createRecord('target', {});
+ assert.ok(model);
+ });
+});
diff --git a/ui/core/app/components/form/target/index.hbs b/ui/core/app/components/form/target/index.hbs
new file mode 100644
index 000000000..45adc26d0
--- /dev/null
+++ b/ui/core/app/components/form/target/index.hbs
@@ -0,0 +1,49 @@
+
+
+
+ {{#if @model.errors.name}}
+
+ {{#each @model.errors.name as |error|}}
+ {{error.message}}
+ {{/each}}
+
+ {{/if}}
+
+
+
+ {{#if @model.errors.description}}
+
+ {{#each @model.errors.description as |error|}}
+ {{error.message}}
+ {{/each}}
+
+ {{/if}}
+
+
+
+
+
diff --git a/ui/core/app/controllers/scopes/scope/projects/project/targets.js b/ui/core/app/controllers/scopes/scope/projects/project/targets.js
new file mode 100644
index 000000000..a0d75250f
--- /dev/null
+++ b/ui/core/app/controllers/scopes/scope/projects/project/targets.js
@@ -0,0 +1,20 @@
+import Controller from '@ember/controller';
+import { inject as service } from '@ember/service';
+
+export default class ScopesScopeProjectsProjectTargetsController extends Controller {
+
+ // =services
+
+ @service intl;
+
+ // =attributes
+
+ /**
+ * Targets breadcrumb
+ * @type {string}
+ */
+ 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
new file mode 100644
index 000000000..035a83756
--- /dev/null
+++ b/ui/core/app/controllers/scopes/scope/projects/project/targets/new.js
@@ -0,0 +1,20 @@
+import Controller from '@ember/controller';
+import { inject as service } from '@ember/service';
+
+export default class ScopesScopeProjectsProjectTargetsNewController extends Controller {
+
+ // =services
+
+ @service intl;
+
+ // =attributes
+
+ /**
+ * Translated new target breadcrumb
+ * @type {string}
+ */
+ 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
new file mode 100644
index 000000000..0da51ffa4
--- /dev/null
+++ b/ui/core/app/controllers/scopes/scope/projects/project/targets/target.js
@@ -0,0 +1,15 @@
+import Controller from '@ember/controller';
+
+export default class ScopesScopeProjectsProjectTargetsTargetController extends Controller {
+
+ // =attributes
+
+ /**
+ * A target breadcrumb
+ * @type {string}
+ */
+ get breadCrumb() {
+ return this.model.displayName;
+ }
+
+}
diff --git a/ui/core/app/router.js b/ui/core/app/router.js
index aac684970..f0f18253c 100644
--- a/ui/core/app/router.js
+++ b/ui/core/app/router.js
@@ -33,6 +33,10 @@ Router.map(function () {
});
});
});
+ this.route('targets', function() {
+ this.route('target', { path: ':target_id' }, function() {});
+ this.route('new');
+ });
});
this.route('new');
});
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 7247e9446..b9afbdf98 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
@@ -17,7 +17,7 @@ export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogRoute exte
});
}
- /**
+ /**
* Renders the host-catalog specific templates for header, navigation, and actions page sections.
* @override
* @param {object} controller
diff --git a/ui/core/app/routes/scopes/scope/projects/project/targets.js b/ui/core/app/routes/scopes/scope/projects/project/targets.js
new file mode 100644
index 000000000..acb1e07cc
--- /dev/null
+++ b/ui/core/app/routes/scopes/scope/projects/project/targets.js
@@ -0,0 +1,74 @@
+import Route from '@ember/routing/route';
+import { inject as service } from '@ember/service';
+import { action } from '@ember/object';
+
+export default class ScopesScopeProjectsProjectTargetsRoute extends Route {
+
+ // =services
+
+ @service intl;
+ @service notify;
+
+ // =methods
+
+ /**
+ * Loads all targets under current project scope.
+ * @return {Promise{[TargetModel]}}
+ */
+ async model() {
+ const scopeID = this.modelFor('scopes.scope.projects.project').id;
+ return this.store.findAll('target', { adapterOptions: { scopeID } });
+ }
+
+ // =actions
+
+ /**
+ * Rollback changes on a target.
+ * @param {TargetModel} target
+ */
+ @action
+ cancel(target) {
+ const { isNew } = target;
+ target.rollbackAttributes();
+ if (isNew) this.transitionTo('scopes.scope.projects.project.targets');
+ }
+
+ /**
+ * Handle save.
+ * @param {TargetModel} target
+ * @param {Event} e
+ */
+ @action
+ async save(target) {
+ const { isNew } = target;
+ try {
+ await target.save();
+ this.refresh();
+ this.notify.success(
+ this.intl.t(isNew ? 'notify.create-success' : 'notify.save-success')
+ );
+ this.transitionTo('scopes.scope.projects.project.targets.target', target);
+ } catch (error) {
+ // TODO: replace with translated strings
+ this.notify.error(error.message, { closeAfter: null });
+ }
+ }
+
+ /**
+ * Deletes a target and redirects to targets index.
+ * @param {TargetModel} target
+ */
+ @action
+ async delete(target) {
+ try {
+ await target.destroyRecord();
+ this.refresh();
+ this.notify.success(this.intl.t('notify.delete-success'));
+ this.transitionTo('scopes.scope.projects.project.targets');
+ } 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/targets/index.js b/ui/core/app/routes/scopes/scope/projects/project/targets/index.js
new file mode 100644
index 000000000..0506aa8da
--- /dev/null
+++ b/ui/core/app/routes/scopes/scope/projects/project/targets/index.js
@@ -0,0 +1,4 @@
+import Route from '@ember/routing/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
new file mode 100644
index 000000000..000752c13
--- /dev/null
+++ b/ui/core/app/routes/scopes/scope/projects/project/targets/new.js
@@ -0,0 +1,16 @@
+import Route from '@ember/routing/route';
+
+export default class ScopesScopeProjectsProjectTargetsNewRoute extends Route {
+
+ // =methods
+
+ /**
+ * Creates a new unsaved target in current project scope.
+ * @return {TargetModel}
+ */
+ model() {
+ const scopeModel = this.modelFor('scopes.scope.projects.project');
+ return this.store.createRecord('target', { 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
new file mode 100644
index 000000000..8b5cf77ab
--- /dev/null
+++ b/ui/core/app/routes/scopes/scope/projects/project/targets/target.js
@@ -0,0 +1,18 @@
+import Route from '@ember/routing/route';
+
+export default class ScopesScopeProjectsProjectTargetsTargetRoute extends Route {
+
+ // =methods
+
+ /**
+ * Load a target.
+ * @param {object} params
+ * @param {string} params.target_id
+ * @return {TargetModel}
+ */
+ async model({ target_id }) {
+ const { id: scopeID } = this.modelFor('scopes.scope.projects.project');
+ return this.store.findRecord('target', target_id, { adapterOptions: { scopeID } });
+ }
+
+}
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
new file mode 100644
index 000000000..ff772f61f
--- /dev/null
+++ b/ui/core/app/routes/scopes/scope/projects/project/targets/target/index.js
@@ -0,0 +1,4 @@
+import Route from '@ember/routing/route';
+
+export default class ScopesScopeProjectsProjectTargetsTargetIndexRoute extends Route {
+}
diff --git a/ui/core/app/templates/scopes/scope/projects/project/_sidebar.hbs b/ui/core/app/templates/scopes/scope/projects/project/_sidebar.hbs
index 8f46f6113..ae4f79e0b 100644
--- a/ui/core/app/templates/scopes/scope/projects/project/_sidebar.hbs
+++ b/ui/core/app/templates/scopes/scope/projects/project/_sidebar.hbs
@@ -1,4 +1,7 @@
+
+ {{t "resources.targets"}}
+
{{t "resources.host-catalogs"}}
diff --git a/ui/core/app/templates/scopes/scope/projects/project/targets.hbs b/ui/core/app/templates/scopes/scope/projects/project/targets.hbs
new file mode 100644
index 000000000..744cee2b2
--- /dev/null
+++ b/ui/core/app/templates/scopes/scope/projects/project/targets.hbs
@@ -0,0 +1,3 @@
+{{title (t "resources.targets")}}
+
+{{outlet}}
diff --git a/ui/core/app/templates/scopes/scope/projects/project/targets/index.hbs b/ui/core/app/templates/scopes/scope/projects/project/targets/index.hbs
new file mode 100644
index 000000000..16511299f
--- /dev/null
+++ b/ui/core/app/templates/scopes/scope/projects/project/targets/index.hbs
@@ -0,0 +1,76 @@
+
+
+
+
+
+
+
+ {{t "resources.targets"}}
+
+
+
+ {{#if @model}}
+
+ {{t "titles.new"}}
+
+ {{/if}}
+
+
+
+
+ {{#if @model}}
+
+
+
+
+ {{t "form.label.name"}}
+ {{t "form.label.protocol"}}
+ {{t "form.label.id"}}
+
+
+
+ {{#each @model as |target|}}
+
+
+
+ {{target.displayName}}
+
+ {{target.description}}
+
+
+ {{#if target.protocol}}
+
+ {{t (concat "target.protocols." target.protocol)}}
+
+ {{/if}}
+
+
+ {{target.id}}
+
+
+ {{/each}}
+
+
+
+ {{else}}
+
+
+
+
+ {{t "descriptions.targets-welcome"}}
+
+
+
+ {{t "titles.new"}}
+
+
+
+
+ {{/if}}
+
+
+
+
diff --git a/ui/core/app/templates/scopes/scope/projects/project/targets/new.hbs b/ui/core/app/templates/scopes/scope/projects/project/targets/new.hbs
new file mode 100644
index 000000000..4ac91435b
--- /dev/null
+++ b/ui/core/app/templates/scopes/scope/projects/project/targets/new.hbs
@@ -0,0 +1,21 @@
+{{title (t 'titles.new')}}
+
+
+
+
+
+
+
+
+ {{t "titles.new"}}
+
+
+
+
+
+
+
diff --git a/ui/core/app/templates/scopes/scope/projects/project/targets/target.hbs b/ui/core/app/templates/scopes/scope/projects/project/targets/target.hbs
new file mode 100644
index 000000000..e2147cab0
--- /dev/null
+++ b/ui/core/app/templates/scopes/scope/projects/project/targets/target.hbs
@@ -0,0 +1 @@
+{{outlet}}
\ No newline at end of file
diff --git a/ui/core/app/templates/scopes/scope/projects/project/targets/target/index.hbs b/ui/core/app/templates/scopes/scope/projects/project/targets/target/index.hbs
new file mode 100644
index 000000000..da4860986
--- /dev/null
+++ b/ui/core/app/templates/scopes/scope/projects/project/targets/target/index.hbs
@@ -0,0 +1,39 @@
+
+
+
+
+
+
+
+ {{t "resources.target"}}
+
+
+
+
+
+ {{t 'titles.details'}}
+
+
+
+
+
+
+
+ {{t 'actions.delete-target'}}
+
+
+
+
+
+
+
+
+
diff --git a/ui/core/mirage/config.js b/ui/core/mirage/config.js
index 4f69c6f33..56ebd68d0 100644
--- a/ui/core/mirage/config.js
+++ b/ui/core/mirage/config.js
@@ -123,6 +123,14 @@ export default function() {
return hostSet.update(attrs);
});
+ // target
+
+ this.get('/scopes/:scope_id/targets');
+ this.post('/scopes/:scope_id/targets');
+ this.get('/scopes/:scope_id/targets/:id');
+ this.patch('/scopes/:scope_id/targets/:id');
+ this.del('/scopes/:scope_id/targets/:id');
+
// Uncomment the following line and the Response import above
// Then change the response code to simulate error responses.
// this.get('/scopes/:scope_id/projects', () => new Response(505));
diff --git a/ui/core/mirage/factories/target.js b/ui/core/mirage/factories/target.js
new file mode 100644
index 000000000..b664ff88a
--- /dev/null
+++ b/ui/core/mirage/factories/target.js
@@ -0,0 +1,3 @@
+import factory from '../generated/factories/target';
+
+export default factory.extend();
diff --git a/ui/core/mirage/generated/factories/target.js b/ui/core/mirage/generated/factories/target.js
new file mode 100644
index 000000000..134cc7c02
--- /dev/null
+++ b/ui/core/mirage/generated/factories/target.js
@@ -0,0 +1,17 @@
+import { Factory } from 'ember-cli-mirage';
+import { random, date } from 'faker';
+
+/**
+ * GeneratedTargetModelFactory
+ */
+export default Factory.extend({
+
+ protocol: 'SSH',
+ name: () => random.words(),
+ description: () => random.words(),
+ created_time: () => date.recent(),
+ updated_time: () => date.recent(),
+ disabled: () => random.boolean(),
+ version: () => random.number(),
+
+});
diff --git a/ui/core/mirage/scenarios/default.js b/ui/core/mirage/scenarios/default.js
index a4fec0451..439b9fd01 100644
--- a/ui/core/mirage/scenarios/default.js
+++ b/ui/core/mirage/scenarios/default.js
@@ -33,6 +33,7 @@ export default function(server) {
server.db.scopes.where({type: 'project'}).forEach(({ id, type }) => {
const scope = { id, type };
server.createList('host-catalog', 2, { scope }, 'withChildren');
+ server.createList('target', 2, { scope });
});
-
+
}
diff --git a/ui/core/mirage/serializers/target.js b/ui/core/mirage/serializers/target.js
new file mode 100644
index 000000000..3d4bc5f3e
--- /dev/null
+++ b/ui/core/mirage/serializers/target.js
@@ -0,0 +1,5 @@
+import ApplicationSerializer from './application';
+
+export default ApplicationSerializer.extend({
+ modelName: 'target'
+});
diff --git a/ui/core/tests/acceptance/host-sets-test.js b/ui/core/tests/acceptance/host-sets-test.js
index 7e855a326..b018fc1d8 100644
--- a/ui/core/tests/acceptance/host-sets-test.js
+++ b/ui/core/tests/acceptance/host-sets-test.js
@@ -47,7 +47,7 @@ module('Acceptance | host sets', function (hooks) {
assert.expect(0);
});
- test('errors are displayed when save on auth method fails', async function (assert) {
+ test('errors are displayed when save on host set fails', async function (assert) {
assert.expect(0);
});
diff --git a/ui/core/tests/acceptance/targets-test.js b/ui/core/tests/acceptance/targets-test.js
new file mode 100644
index 000000000..8ff26fa7f
--- /dev/null
+++ b/ui/core/tests/acceptance/targets-test.js
@@ -0,0 +1,61 @@
+import { module, test } from 'qunit';
+//import { visit, currentURL } from '@ember/test-helpers';
+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 {
+// authenticateSession,
+// // These are left here intentionally for future reference.
+// //currentSession,
+// //invalidateSession,
+// } from 'ember-simple-auth/test-support';
+
+module('Acceptance | targets', function (hooks) {
+ setupApplicationTest(hooks);
+ setupMirage(hooks);
+
+ hooks.beforeEach(function () {
+ // Setup Mirage mock resources for this test
+ // Generate route URLs for resources
+ });
+
+ test('visiting targets', async function (assert) {
+ assert.expect(0);
+ });
+
+ test('can navigate to a target form', async function (assert) {
+ assert.expect(0);
+ });
+
+ test('can update a target and save changes', async function (assert) {
+ assert.expect(0);
+ });
+
+ test('can update a target and cancel changes', async function (assert) {
+ assert.expect(0);
+ });
+
+ test('can create new target', async function (assert) {
+ assert.expect(0);
+ });
+
+ test('can cancel new target creation', async function (assert) {
+ assert.expect(0);
+ });
+
+ test('saving a new target with invalid fields displays error messages', async function (assert) {
+ assert.expect(0);
+ });
+
+ test('errors are displayed when save on target fails', async function (assert) {
+ assert.expect(0);
+ });
+
+ test('errors are displayed when delete on a target fails', async function (assert) {
+ assert.expect(0);
+ });
+
+ test('saving an existing target with invalid fields displays error messages', async function (assert) {
+ assert.expect(0);
+ });
+});
diff --git a/ui/core/tests/integration/components/form/target-test.js b/ui/core/tests/integration/components/form/target-test.js
new file mode 100644
index 000000000..e0246833f
--- /dev/null
+++ b/ui/core/tests/integration/components/form/target-test.js
@@ -0,0 +1,23 @@
+import { module, test } from 'qunit';
+import { setupRenderingTest } from 'ember-qunit';
+import { render, find } from '@ember/test-helpers';
+import { hbs } from 'ember-cli-htmlbars';
+
+module('Integration | Component | form/target', function (hooks) {
+ setupRenderingTest(hooks);
+
+ 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 = () => {};
+ this.cancel = () => {};
+
+ await render(hbs`
+ `);
+
+ assert.ok(find('form'));
+ });
+});
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
new file mode 100644
index 000000000..908c813bf
--- /dev/null
+++ b/ui/core/tests/unit/controllers/scopes/scope/projects/project/targets-test.js
@@ -0,0 +1,12 @@
+import { module, test } from 'qunit';
+import { setupTest } from 'ember-qunit';
+
+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');
+ 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
new file mode 100644
index 000000000..d7634fb8c
--- /dev/null
+++ b/ui/core/tests/unit/controllers/scopes/scope/projects/project/targets/new-test.js
@@ -0,0 +1,12 @@
+import { module, test } from 'qunit';
+import { setupTest } from 'ember-qunit';
+
+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);
+ });
+});
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
new file mode 100644
index 000000000..839332da1
--- /dev/null
+++ b/ui/core/tests/unit/controllers/scopes/scope/projects/project/targets/target-test.js
@@ -0,0 +1,12 @@
+import { module, test } from 'qunit';
+import { setupTest } from 'ember-qunit';
+
+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);
+ });
+});
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
new file mode 100644
index 000000000..ca2ead9ca
--- /dev/null
+++ b/ui/core/tests/unit/routes/scopes/scope/projects/project/targets-test.js
@@ -0,0 +1,11 @@
+import { module, test } from 'qunit';
+import { setupTest } from 'ember-qunit';
+
+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');
+ 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
new file mode 100644
index 000000000..fa478cbe9
--- /dev/null
+++ b/ui/core/tests/unit/routes/scopes/scope/projects/project/targets/index-test.js
@@ -0,0 +1,11 @@
+import { module, test } from 'qunit';
+import { setupTest } from 'ember-qunit';
+
+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');
+ 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
new file mode 100644
index 000000000..dea235c50
--- /dev/null
+++ b/ui/core/tests/unit/routes/scopes/scope/projects/project/targets/new-test.js
@@ -0,0 +1,11 @@
+import { module, test } from 'qunit';
+import { setupTest } from 'ember-qunit';
+
+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');
+ 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
new file mode 100644
index 000000000..0fa4c6fc5
--- /dev/null
+++ b/ui/core/tests/unit/routes/scopes/scope/projects/project/targets/target-test.js
@@ -0,0 +1,11 @@
+import { module, test } from 'qunit';
+import { setupTest } from 'ember-qunit';
+
+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');
+ 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
new file mode 100644
index 000000000..5b1f35962
--- /dev/null
+++ b/ui/core/tests/unit/routes/scopes/scope/projects/project/targets/target/index-test.js
@@ -0,0 +1,11 @@
+import { module, test } from 'qunit';
+import { setupTest } from 'ember-qunit';
+
+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);
+ });
+});
diff --git a/ui/core/translations/en-us.yaml b/ui/core/translations/en-us.yaml
index 434d78ee8..d9aa82900 100644
--- a/ui/core/translations/en-us.yaml
+++ b/ui/core/translations/en-us.yaml
@@ -17,6 +17,7 @@ actions:
delete-auth-method: Delete auth method
delete-host-set: Delete host set
delete-host: Delete host
+ delete-target: Delete target
add-host-set: Create Host Set
add-host: Create Host
auth:
@@ -33,6 +34,9 @@ auth:
host-set:
types:
static: Static
+target:
+ protocols:
+ SSH: SSH
host:
types:
static: Static
@@ -55,6 +59,8 @@ resources:
host-sets: Host Sets
hosts: Hosts
host: Host
+ target: Target
+ targets: Targets
titles:
iam: IAM
new: New
@@ -72,11 +78,13 @@ titles:
roles-welcome: Welcome to Roles
groups-welcome: Welcome to Groups
auth-methods-welcome: Welcome to Auth Methods
+ targets-welcome: Create your first Target
grants: Permissions
new-grant: New Grant
principals: Principals
host-sets: Host Sets
hosts: Hosts
+ targets: Targets
global: Global
descriptions:
host-catalogs: Overview of collections of hosts and host sets.
@@ -89,6 +97,7 @@ descriptions:
roles-welcome: Roles are collections of capabilities that can be granted to user and/or groups.
groups-welcome: Groups are collections of users.
auth-methods-welcome: Auth methods are configurations to authenticate users.
+ targets-welcome: Targets provide Users the means to connect to and interact networked services. A Target contains a collection of Hosts and a collection of Credentials.
states:
info: Info
success: Success
@@ -105,6 +114,7 @@ form:
manage: Manage
grant: Grant
principal: Principal
+ protocol: Protocol
errors:
titles:
unauthenticated-error: You are not signed in