feat: 🎸 Update target model for address (#1557)

✅ Closes: ICU-7489
This commit is contained in:
Zhihe Li authored and GitHub committed 2023-01-09 12:35:42 -05:00
1 parent c21f011bb2
commit 6d048d8e10
3 files changed
+10

No files matched your search

@@ -60,4 +60,10 @@ export default class GeneratedTargetModel extends BaseModel {
description: 'Current version number of this resource.',
})
version;
@attr('string', {
description:
'An IP address or DNS name for the session to connect to. Cannot be used in conjunction with host sources.',
})
address;
}
+1
View File
@@ -94,6 +94,7 @@ export default function (server) {
server.createList('host-catalog', 8, { scope }, 'withChildren');
server.createList('credential-store', 3, { scope }, 'withAssociations');
server.createList('target', 2, { scope }, 'withAssociations');
server.create('target', { scope, address: '0.0.0.0' });
// Sessions have target data. Create it after targets.
server.createList('session', 4, { scope }, 'withAssociations');
// Create IAM resources for project
@@ -28,6 +28,7 @@ module('Unit | Serializer | target', function (hooks) {
default_port: 1234,
version: 1,
type: TYPE_TARGET_TCP,
address: '0.0.0.0',
});
const snapshot = record._createSnapshot();
snapshot.adapterOptions = {};
@@ -44,6 +45,7 @@ module('Unit | Serializer | target', function (hooks) {
attributes: {
default_port: 1234,
},
address: '0.0.0.0',
});
});
@@ -146,6 +148,7 @@ module('Unit | Serializer | target', function (hooks) {
attributes: {
default_port: 1234,
},
address: null,
});
});