chore: 🤖 add rdp target type
This commit is contained in:
1 parent
e1696e9a4d
commit
d2d351c9f7
7 files changed
+48
-4
No files matched your search
@@ -12,6 +12,7 @@ const types = [...TYPES_TARGET].reverse();
|
||||
const icons = {
|
||||
ssh: 'terminal-screen',
|
||||
tcp: 'network',
|
||||
rdp: 'monitor',
|
||||
};
|
||||
export default class FormTargetComponent extends Component {
|
||||
// =services
|
||||
|
||||
@@ -14,6 +14,7 @@ const licensedFeatures = {
|
||||
'multi-hop-sessions': false,
|
||||
'ssh-target': false,
|
||||
'ssh-session-recording': false,
|
||||
'rdp-target': false,
|
||||
};
|
||||
// Base edition declares available features, disabled by default.
|
||||
const baseEdition = {
|
||||
|
||||
@@ -10,7 +10,11 @@ import setupMirage from 'ember-cli-mirage/test-support/setup-mirage';
|
||||
import { setupSqlite } from 'api/test-support/helpers/sqlite';
|
||||
import { setupIntl } from 'ember-intl/test-support';
|
||||
import { authenticateSession } from 'ember-simple-auth/test-support';
|
||||
import { TYPE_TARGET_SSH, TYPE_TARGET_TCP } from 'api/models/target';
|
||||
import {
|
||||
TYPE_TARGET_TCP,
|
||||
TYPE_TARGET_SSH,
|
||||
TYPE_TARGET_RDP,
|
||||
} from 'api/models/target';
|
||||
|
||||
module('Unit | Controller | scopes/scope/targets/index', function (hooks) {
|
||||
setupTest(hooks);
|
||||
@@ -99,6 +103,7 @@ module('Unit | Controller | scopes/scope/targets/index', function (hooks) {
|
||||
assert.deepEqual(controller.targetTypeOptions, [
|
||||
{ id: TYPE_TARGET_TCP, name: 'Generic TCP' },
|
||||
{ id: TYPE_TARGET_SSH, name: 'SSH' },
|
||||
{ id: TYPE_TARGET_RDP, name: 'RDP' },
|
||||
]);
|
||||
});
|
||||
|
||||
|
||||
@@ -15,7 +15,11 @@ import {
|
||||
STATUS_SESSION_PENDING,
|
||||
STATUS_SESSION_CANCELING,
|
||||
} from 'api/models/session';
|
||||
import { TYPE_TARGET_SSH, TYPE_TARGET_TCP } from 'api/models/target';
|
||||
import {
|
||||
TYPE_TARGET_SSH,
|
||||
TYPE_TARGET_TCP,
|
||||
TYPE_TARGET_RDP,
|
||||
} from 'api/models/target';
|
||||
|
||||
module(
|
||||
'Unit | Controller | scopes/scope/projects/targets/index',
|
||||
@@ -167,6 +171,7 @@ module(
|
||||
assert.deepEqual(controller.targetTypeOptions, [
|
||||
{ id: TYPE_TARGET_TCP, name: 'Generic TCP' },
|
||||
{ id: TYPE_TARGET_SSH, name: 'SSH' },
|
||||
{ id: TYPE_TARGET_RDP, name: 'RDP' },
|
||||
]);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user