feat: 🎸 Add default client port to targets (#1700)
* feat: 🎸 Add default client port to targets ✅ Closes: ICU-9299
This commit is contained in:
1 parent
9d7a23fcc4
commit
963b5d465d
7 files changed
+50
-11
No files matched your search
@@ -83,4 +83,17 @@ export default class GeneratedTargetModel extends BaseModel {
|
||||
'An IP address or DNS name for the session to connect to. Cannot be used in conjunction with host sources.',
|
||||
})
|
||||
address;
|
||||
|
||||
@attr('number', {
|
||||
isNestedAttribute: true,
|
||||
description: 'The default port a target should use if present.',
|
||||
})
|
||||
default_port;
|
||||
|
||||
@attr('number', {
|
||||
isNestedAttribute: true,
|
||||
description:
|
||||
"The default port that will be listened on by the client's local proxy.",
|
||||
})
|
||||
default_client_port;
|
||||
}
|
||||
@@ -18,12 +18,6 @@ export default class TargetModel extends GeneratedTargetModel {
|
||||
|
||||
// =attributes
|
||||
|
||||
@attr('number', {
|
||||
isNestedAttribute: true,
|
||||
description: 'The default port a target should use if present.',
|
||||
})
|
||||
default_port;
|
||||
|
||||
/**
|
||||
* @type Array
|
||||
*/
|
||||
|
||||
@@ -17,5 +17,6 @@ export default Factory.extend({
|
||||
updated_time: () => faker.date.recent(),
|
||||
disabled: () => faker.datatype.boolean(),
|
||||
default_port: () => faker.datatype.number(),
|
||||
default_client_port: () => faker.datatype.number(),
|
||||
version: () => faker.datatype.number(),
|
||||
});
|
||||
@@ -31,6 +31,7 @@ module('Unit | Serializer | target', function (hooks) {
|
||||
type: 'org',
|
||||
},
|
||||
default_port: 1234,
|
||||
default_client_port: 4321,
|
||||
version: 1,
|
||||
type: TYPE_TARGET_TCP,
|
||||
address: '0.0.0.0',
|
||||
@@ -51,6 +52,7 @@ module('Unit | Serializer | target', function (hooks) {
|
||||
ingress_worker_filter: null,
|
||||
attributes: {
|
||||
default_port: 1234,
|
||||
default_client_port: 4321,
|
||||
},
|
||||
address: '0.0.0.0',
|
||||
});
|
||||
@@ -157,6 +159,7 @@ module('Unit | Serializer | target', function (hooks) {
|
||||
ingress_worker_filter: null,
|
||||
attributes: {
|
||||
default_port: 1234,
|
||||
default_client_port: null,
|
||||
},
|
||||
address: null,
|
||||
});
|
||||
@@ -192,6 +195,7 @@ module('Unit | Serializer | target', function (hooks) {
|
||||
ingress_worker_filter: null,
|
||||
attributes: {
|
||||
default_port: 1234,
|
||||
default_client_port: null,
|
||||
},
|
||||
address: null,
|
||||
});
|
||||
@@ -227,6 +231,7 @@ module('Unit | Serializer | target', function (hooks) {
|
||||
ingress_worker_filter: 'ingress worker',
|
||||
attributes: {
|
||||
default_port: 1234,
|
||||
default_client_port: null,
|
||||
},
|
||||
address: null,
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user