chore: 🤖 rename host_set_id to host_source_id internally
This commit is contained in:
9 files changed
+29
-29
No files matched your search
@@ -15,8 +15,8 @@ module('Unit | Model | target', function (hooks) {
|
||||
type: 'target',
|
||||
attributes: {
|
||||
host_sets: [
|
||||
{ host_set_id: '1', host_catalog_id: '2' },
|
||||
{ host_set_id: '3', host_catalog_id: '2' },
|
||||
{ host_source_id: '1', host_catalog_id: '2' },
|
||||
{ host_source_id: '3', host_catalog_id: '2' },
|
||||
],
|
||||
},
|
||||
},
|
||||
@@ -91,8 +91,8 @@ module('Unit | Model | target', function (hooks) {
|
||||
name: 'Target',
|
||||
description: 'Description',
|
||||
host_sets: [
|
||||
{ host_set_id: '1', host_catalog_id: '2' },
|
||||
{ host_set_id: '3', host_catalog_id: '4' },
|
||||
{ host_source_id: '1', host_catalog_id: '2' },
|
||||
{ host_source_id: '3', host_catalog_id: '4' },
|
||||
],
|
||||
version: 1,
|
||||
scope: {
|
||||
@@ -128,8 +128,8 @@ module('Unit | Model | target', function (hooks) {
|
||||
name: 'Target',
|
||||
description: 'Description',
|
||||
host_sets: [
|
||||
{ host_set_id: '1', host_catalog_id: '2' },
|
||||
{ host_set_id: '3', host_catalog_id: '4' },
|
||||
{ host_source_id: '1', host_catalog_id: '2' },
|
||||
{ host_source_id: '3', host_catalog_id: '4' },
|
||||
],
|
||||
version: 1,
|
||||
scope: {
|
||||
@@ -165,8 +165,8 @@ module('Unit | Model | target', function (hooks) {
|
||||
name: 'Target',
|
||||
description: 'Description',
|
||||
host_sets: [
|
||||
{ host_set_id: '1', host_catalog_id: '2' },
|
||||
{ host_set_id: '3', host_catalog_id: '4' },
|
||||
{ host_source_id: '1', host_catalog_id: '2' },
|
||||
{ host_source_id: '3', host_catalog_id: '4' },
|
||||
],
|
||||
version: 1,
|
||||
scope: {
|
||||
|
||||
@@ -5,7 +5,7 @@ import FragmentHostSource from 'api/models/fragment-host-source';
|
||||
module('Unit | Serializer | fragment host source', function (hooks) {
|
||||
setupTest(hooks);
|
||||
|
||||
test('it normalizes `id` into `host_set_id`', function (assert) {
|
||||
test('it normalizes `id` into `host_source_id`', function (assert) {
|
||||
assert.expect(1);
|
||||
const store = this.owner.lookup('service:store');
|
||||
const serializer = store.serializerFor('fragment-host-source');
|
||||
@@ -16,7 +16,7 @@ module('Unit | Serializer | fragment host source', function (hooks) {
|
||||
assert.deepEqual(normalized, {
|
||||
data: {
|
||||
attributes: {
|
||||
host_set_id: '2',
|
||||
host_source_id: '2',
|
||||
host_catalog_id: '1',
|
||||
},
|
||||
id: null,
|
||||
|
||||
@@ -12,8 +12,8 @@ module('Unit | Serializer | target', function (hooks) {
|
||||
name: 'User',
|
||||
description: 'Description',
|
||||
host_sets: [
|
||||
{ host_set_id: '1', host_catalog_id: '2' },
|
||||
{ host_set_id: '3', host_catalog_id: '4' },
|
||||
{ host_source_id: '1', host_catalog_id: '2' },
|
||||
{ host_source_id: '3', host_catalog_id: '4' },
|
||||
],
|
||||
application_credential_library_ids: [{ value: '1' }, { value: '2' }],
|
||||
scope: {
|
||||
@@ -48,8 +48,8 @@ module('Unit | Serializer | target', function (hooks) {
|
||||
name: 'User',
|
||||
description: 'Description',
|
||||
host_sets: [
|
||||
{ host_set_id: '1', host_catalog_id: '2' },
|
||||
{ host_set_id: '3', host_catalog_id: '4' },
|
||||
{ host_source_id: '1', host_catalog_id: '2' },
|
||||
{ host_source_id: '3', host_catalog_id: '4' },
|
||||
],
|
||||
version: 1,
|
||||
});
|
||||
@@ -94,8 +94,8 @@ module('Unit | Serializer | target', function (hooks) {
|
||||
id: '1',
|
||||
name: 'Target 1',
|
||||
host_sets: [
|
||||
{ host_set_id: '1', host_catalog_id: '2' },
|
||||
{ host_set_id: '3', host_catalog_id: '4' },
|
||||
{ host_source_id: '1', host_catalog_id: '2' },
|
||||
{ host_source_id: '3', host_catalog_id: '4' },
|
||||
],
|
||||
application_credential_library_ids: ['1'],
|
||||
};
|
||||
@@ -113,8 +113,8 @@ module('Unit | Serializer | target', function (hooks) {
|
||||
authorized_actions: [],
|
||||
name: 'Target 1',
|
||||
host_sets: [
|
||||
{ host_set_id: '1', host_catalog_id: '2' },
|
||||
{ host_set_id: '3', host_catalog_id: '4' },
|
||||
{ host_source_id: '1', host_catalog_id: '2' },
|
||||
{ host_source_id: '3', host_catalog_id: '4' },
|
||||
],
|
||||
application_credential_library_ids: [{ value: '1' }],
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user