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;
|
||||
}
|
||||
@@ -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,
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user