Initial
This commit is contained in:
@@ -107,13 +107,16 @@ test('buildHostPayloadFromVm attaches credential, tags, transport, and import no
|
||||
guestFullName: 'Microsoft Windows Server 2022',
|
||||
ipAddresses: ['10.42.1.20']
|
||||
},
|
||||
{ credentialId: 'cred_1', transport: 'winrm', tags: ['engineering'], visibility: 'group', groupId: 'grp_1' }
|
||||
{ credentialId: 'cred_1', connectionId: 'vc_1', transport: 'winrm', tags: ['engineering'], visibility: 'group', groupId: 'grp_1' }
|
||||
);
|
||||
|
||||
assert.equal(payload.credentialId, 'cred_1');
|
||||
assert.equal(payload.transport, 'winrm');
|
||||
assert.equal(payload.visibility, 'group');
|
||||
assert.equal(payload.groupId, 'grp_1');
|
||||
assert.equal(payload.sourceType, 'vmware');
|
||||
assert.equal(payload.sourceConnectionId, 'vc_1');
|
||||
assert.equal(payload.sourceRef, 'vm-42');
|
||||
assert.ok(payload.tags.includes('vcenter:vm-42'));
|
||||
assert.ok(payload.tags.includes('engineering'));
|
||||
assert.match(payload.notes, /Imported from VMware vCenter VM vm-42/);
|
||||
|
||||
Reference in New Issue
Block a user