@device-management-toolkit/wsman-messages 6.0.0 → 6.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/wsman.test.js DELETED
@@ -1,477 +0,0 @@
1
- /*********************************************************************
2
- * Copyright (c) Intel Corporation 2021
3
- * SPDX-License-Identifier: Apache-2.0
4
- **********************************************************************/
5
- import { WSManMessageCreator, BaseActions } from './WSMan.js';
6
- import { CIM, AMT } from './index.js';
7
- const wsmanMessageCreator = new WSManMessageCreator('http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/');
8
- describe('WSManMessageCreator Tests', () => {
9
- const selector = { name: 'InstanceID', value: 'Intel(r) AMT Device 0' };
10
- let messageId = 0;
11
- const enumerationContext = 'A4070000-0000-0000-0000-000000000000';
12
- describe('createXml Tests', () => {
13
- it('creates an enumerate wsman string when provided a header and body to createXml', () => {
14
- const header = wsmanMessageCreator.createHeader(BaseActions.ENUMERATE, CIM.Classes.SERVICE_AVAILABLE_TO_ELEMENT);
15
- const body = wsmanMessageCreator.createCommonBody.Enumerate();
16
- const response = wsmanMessageCreator.createXml(header, body);
17
- const correctResponse = `<?xml version="1.0" encoding="utf-8"?><Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns="http://www.w3.org/2003/05/soap-envelope"><Header><a:Action>http://schemas.xmlsoap.org/ws/2004/09/enumeration/Enumerate</a:Action><a:To>/wsman</a:To><w:ResourceURI>http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ServiceAvailableToElement</w:ResourceURI><a:MessageID>${messageId++}</a:MessageID><a:ReplyTo><a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo><w:OperationTimeout>PT60S</w:OperationTimeout></Header><Body><Enumerate xmlns="http://schemas.xmlsoap.org/ws/2004/09/enumeration" /></Body></Envelope>`;
18
- expect(response).toEqual(correctResponse);
19
- });
20
- it('creates a pull wsman string when provided a header and body to createXml', () => {
21
- const header = wsmanMessageCreator.createHeader(BaseActions.PULL, CIM.Classes.SERVICE_AVAILABLE_TO_ELEMENT);
22
- const body = wsmanMessageCreator.createCommonBody.Pull('A4070000-0000-0000-0000-000000000000');
23
- const response = wsmanMessageCreator.createXml(header, body);
24
- const correctResponse = `<?xml version="1.0" encoding="utf-8"?><Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns="http://www.w3.org/2003/05/soap-envelope"><Header><a:Action>http://schemas.xmlsoap.org/ws/2004/09/enumeration/Pull</a:Action><a:To>/wsman</a:To><w:ResourceURI>http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ServiceAvailableToElement</w:ResourceURI><a:MessageID>${messageId++}</a:MessageID><a:ReplyTo><a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo><w:OperationTimeout>PT60S</w:OperationTimeout></Header><Body><Pull xmlns="http://schemas.xmlsoap.org/ws/2004/09/enumeration"><EnumerationContext>${enumerationContext}</EnumerationContext><MaxElements>999</MaxElements><MaxCharacters>99999</MaxCharacters></Pull></Body></Envelope>`;
25
- expect(response).toEqual(correctResponse);
26
- });
27
- });
28
- describe('createHeader Tests', () => {
29
- it('creates a correct header with action, resourceUri, and messageId provided for createHeader', () => {
30
- const correctHeader = `<Header><a:Action>http://schemas.xmlsoap.org/ws/2004/09/enumeration/Enumerate</a:Action><a:To>/wsman</a:To><w:ResourceURI>http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ServiceAvailableToElement</w:ResourceURI><a:MessageID>${messageId++}</a:MessageID><a:ReplyTo><a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo><w:OperationTimeout>PT60S</w:OperationTimeout></Header>`;
31
- const header = wsmanMessageCreator.createHeader(BaseActions.ENUMERATE, CIM.Classes.SERVICE_AVAILABLE_TO_ELEMENT);
32
- expect(header).toEqual(correctHeader);
33
- });
34
- it('applies custom address correctly in createHeader', () => {
35
- const correctHeader = `<Header><a:Action>http://schemas.xmlsoap.org/ws/2004/09/enumeration/Enumerate</a:Action><a:To>/wsman</a:To><w:ResourceURI>http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ServiceAvailableToElement</w:ResourceURI><a:MessageID>${messageId++}</a:MessageID><a:ReplyTo><a:Address>customAddress</a:Address></a:ReplyTo><w:OperationTimeout>PT60S</w:OperationTimeout></Header>`;
36
- const header = wsmanMessageCreator.createHeader(BaseActions.ENUMERATE, CIM.Classes.SERVICE_AVAILABLE_TO_ELEMENT, undefined, 'customAddress');
37
- expect(header).toEqual(correctHeader);
38
- });
39
- it('applies custom timeout correctly in createHeader', () => {
40
- const correctHeader = `<Header><a:Action>http://schemas.xmlsoap.org/ws/2004/09/enumeration/Enumerate</a:Action><a:To>/wsman</a:To><w:ResourceURI>http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ServiceAvailableToElement</w:ResourceURI><a:MessageID>${messageId++}</a:MessageID><a:ReplyTo><a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo><w:OperationTimeout>PT30S</w:OperationTimeout></Header>`;
41
- const header = wsmanMessageCreator.createHeader(BaseActions.ENUMERATE, CIM.Classes.SERVICE_AVAILABLE_TO_ELEMENT, undefined, undefined, 'PT30S');
42
- expect(header).toEqual(correctHeader);
43
- });
44
- it('applies custom selector correctly in createHeader', () => {
45
- const correctHeader = `<Header><a:Action>http://schemas.xmlsoap.org/ws/2004/09/enumeration/Enumerate</a:Action><a:To>/wsman</a:To><w:ResourceURI>http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ServiceAvailableToElement</w:ResourceURI><a:MessageID>${messageId++}</a:MessageID><a:ReplyTo><a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo><w:OperationTimeout>PT30S</w:OperationTimeout><w:SelectorSet><w:Selector Name="InstanceID">Intel(r) AMT Device 0</w:Selector></w:SelectorSet></Header>`;
46
- const header = wsmanMessageCreator.createHeader(BaseActions.ENUMERATE, CIM.Classes.SERVICE_AVAILABLE_TO_ELEMENT, selector, undefined, 'PT30S');
47
- expect(header).toEqual(correctHeader);
48
- });
49
- });
50
- describe('createSelector Tests', () => {
51
- it('creates a correct SelectorSet string when a simple name value pair is provided', () => {
52
- const selectorSet = {
53
- name: 'name',
54
- value: 'value'
55
- };
56
- const correctString = `<w:SelectorSet><w:Selector Name="${selectorSet.name}">${selectorSet.value}</w:Selector></w:SelectorSet>`;
57
- const result = wsmanMessageCreator.createSelector(selectorSet);
58
- expect(result).toEqual(correctString);
59
- });
60
- it('creates a correct SelectorSet string when selectorSet is complex', () => {
61
- const selectorSet = {
62
- test: {
63
- ReferenceParameters: {
64
- ResourceURI: 'ResourceURI',
65
- SelectorSet: {
66
- Selector: {
67
- $: {
68
- Name: 'name'
69
- },
70
- _: 'InstanceID'
71
- }
72
- }
73
- },
74
- Address: 'address'
75
- }
76
- };
77
- const correctString = '<w:SelectorSet><w:Selector Name="test"><a:EndpointReference><a:Address>address</a:Address><a:ReferenceParameters><w:ResourceURI>ResourceURI</w:ResourceURI><w:SelectorSet><w:Selector Name="name">InstanceID</w:Selector></w:SelectorSet></a:ReferenceParameters></a:EndpointReference></w:Selector></w:SelectorSet>';
78
- const result = wsmanMessageCreator.createSelector(selectorSet);
79
- expect(result).toEqual(correctString);
80
- });
81
- });
82
- describe('createCommonBody Tests', () => {
83
- it('creates correct Pull body ', () => {
84
- const correctBody = `<Body><Pull xmlns="http://schemas.xmlsoap.org/ws/2004/09/enumeration"><EnumerationContext>${enumerationContext}</EnumerationContext><MaxElements>999</MaxElements><MaxCharacters>99999</MaxCharacters></Pull></Body>`;
85
- const body = wsmanMessageCreator.createCommonBody.Pull(enumerationContext);
86
- expect(body).toEqual(correctBody);
87
- });
88
- it('creates correct Enumerate body ', () => {
89
- const correctBody = '<Body><Enumerate xmlns="http://schemas.xmlsoap.org/ws/2004/09/enumeration" /></Body>';
90
- const body = wsmanMessageCreator.createCommonBody.Enumerate();
91
- expect(body).toEqual(correctBody);
92
- });
93
- it('creates correct Get body ', () => {
94
- const correctBody = '<Body></Body>';
95
- const body = wsmanMessageCreator.createCommonBody.Get();
96
- expect(body).toEqual(correctBody);
97
- });
98
- it('creates correct Delete body ', () => {
99
- const correctBody = '<Body></Body>';
100
- const body = wsmanMessageCreator.createCommonBody.Delete();
101
- expect(body).toEqual(correctBody);
102
- });
103
- });
104
- describe('createBody Tests', () => {
105
- it('should convert obj to XML with object test values', () => {
106
- const result = wsmanMessageCreator.createBody('testMethod', 'testUri', { testXmlns: 'test' });
107
- expect(result).toBe('<Body><h:testMethod xmlns:h="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/testUri"><h:testXmlns>test</h:testXmlns></h:testMethod></Body>');
108
- });
109
- it('should convert obj to XML with array test values', () => {
110
- const result = wsmanMessageCreator.createBody('testMethod', 'testUri', [{ testXmlns: 'test' }]);
111
- expect(result).toBe('<Body><h:testMethod xmlns:h="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/testUri"><h:testXmlns>test</h:testXmlns></h:testMethod></Body>');
112
- });
113
- it('should convert obj to XML with not empty', () => {
114
- const result = wsmanMessageCreator.createBody('test_INPUT', 'example', [
115
- {
116
- AMTNetworkEnabled: '1',
117
- DDNSPeriodicUpdateInterval: '1440',
118
- DDNSTTL: '900'
119
- }
120
- ]);
121
- expect(result).toBe('<Body><h:test_INPUT xmlns:h="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/example"><h:AMTNetworkEnabled>1</h:AMTNetworkEnabled><h:DDNSPeriodicUpdateInterval>1440</h:DDNSPeriodicUpdateInterval><h:DDNSTTL>900</h:DDNSTTL></h:test_INPUT></Body>');
122
- });
123
- it('should convert obj to XML with not empty with nested object', () => {
124
- const data = {
125
- AMT_GeneralSettings: {
126
- AMTNetworkEnabled: '1',
127
- DDNSPeriodicUpdateInterval: '1440',
128
- DDNSTTL: '900'
129
- }
130
- };
131
- const key = Object.keys(data)[0];
132
- const result = wsmanMessageCreator.createBody('test_INPUT', key, [data[key]]);
133
- expect(result).toBe('<Body><h:test_INPUT xmlns:h="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/AMT_GeneralSettings"><h:AMTNetworkEnabled>1</h:AMTNetworkEnabled><h:DDNSPeriodicUpdateInterval>1440</h:DDNSPeriodicUpdateInterval><h:DDNSTTL>900</h:DDNSTTL></h:test_INPUT></Body>');
134
- });
135
- it('should convert obj to XML with not empty with double nested object', () => {
136
- const data = {
137
- AMT_GeneralSettings: {
138
- AMTNetworkEnabled: '1',
139
- DDNSPeriodicUpdateInterval: '1440',
140
- DDNSTTL: '900',
141
- Settings: {
142
- Set1: 1,
143
- Set2: 7,
144
- Set3: 8
145
- }
146
- }
147
- };
148
- const key = Object.keys(data)[0];
149
- const result = wsmanMessageCreator.createBody('test_INPUT', key, [data[key]]);
150
- expect(result).toBe('<Body><h:test_INPUT xmlns:h="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/AMT_GeneralSettings"><h:AMTNetworkEnabled>1</h:AMTNetworkEnabled><h:DDNSPeriodicUpdateInterval>1440</h:DDNSPeriodicUpdateInterval><h:DDNSTTL>900</h:DDNSTTL><h:Settings><h:Set1>1</h:Set1><h:Set2>7</h:Set2><h:Set3>8</h:Set3></h:Settings></h:test_INPUT></Body>');
151
- });
152
- it('should convert obj to XML with data that includes Selector array', () => {
153
- const data = {
154
- ManagedElement: {
155
- Address: 'http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous',
156
- ReferenceParameters: {
157
- ResourceURI: 'http://intel.com/wbem/wscim/1/amt-schema/1/AMT_ManagementPresenceRemoteSAP',
158
- SelectorSet: {
159
- Selector: [
160
- {
161
- _: 'AMT_ManagementPresenceRemoteSAP',
162
- $: {
163
- Name: 'CreationClassName'
164
- }
165
- },
166
- {
167
- _: 'Intel(r) AMT:Management Presence Server 0',
168
- $: {
169
- Name: 'Name'
170
- }
171
- },
172
- {
173
- _: 'CIM_ComputerSystem',
174
- $: {
175
- Name: 'SystemCreationClassName'
176
- }
177
- },
178
- {
179
- _: 'Intel(r) AMT',
180
- $: {
181
- Name: 'SystemName'
182
- }
183
- }
184
- ]
185
- }
186
- }
187
- },
188
- MpsType: 0,
189
- OrderOfAccess: 0,
190
- PolicySet: {
191
- Address: 'http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous',
192
- ReferenceParameters: {
193
- ResourceURI: 'http://intel.com/wbem/wscim/1/amt-schema/1/AMT_RemoteAccessPolicyRule',
194
- SelectorSet: {
195
- Selector: [
196
- {
197
- _: 'AMT_RemoteAccessPolicyRule',
198
- $: {
199
- Name: 'CreationClassName'
200
- }
201
- },
202
- {
203
- _: 'Periodic',
204
- $: {
205
- Name: 'PolicyRuleName'
206
- }
207
- },
208
- {
209
- _: 'CIM_ComputerSystem',
210
- $: {
211
- Name: 'SystemCreationClassName'
212
- }
213
- },
214
- {
215
- _: 'Intel(r) AMT',
216
- $: {
217
- Name: 'SystemName'
218
- }
219
- }
220
- ]
221
- }
222
- }
223
- }
224
- };
225
- const result = wsmanMessageCreator.createBody('AMT_RemoteAccessPolicyAppliesToMPS', 'AMT_RemoteAccessPolicyAppliesToMPS', [data]);
226
- expect(result).toBe('<Body><h:AMT_RemoteAccessPolicyAppliesToMPS xmlns:h="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/AMT_RemoteAccessPolicyAppliesToMPS"><h:ManagedElement><a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address><a:ReferenceParameters><w:ResourceURI>http://intel.com/wbem/wscim/1/amt-schema/1/AMT_ManagementPresenceRemoteSAP</w:ResourceURI><w:SelectorSet><w:Selector Name="CreationClassName">AMT_ManagementPresenceRemoteSAP</w:Selector><w:Selector Name="Name">Intel(r) AMT:Management Presence Server 0</w:Selector><w:Selector Name="SystemCreationClassName">CIM_ComputerSystem</w:Selector><w:Selector Name="SystemName">Intel(r) AMT</w:Selector></w:SelectorSet></a:ReferenceParameters></h:ManagedElement><h:MpsType>0</h:MpsType><h:OrderOfAccess>0</h:OrderOfAccess><h:PolicySet><a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address><a:ReferenceParameters><w:ResourceURI>http://intel.com/wbem/wscim/1/amt-schema/1/AMT_RemoteAccessPolicyRule</w:ResourceURI><w:SelectorSet><w:Selector Name="CreationClassName">AMT_RemoteAccessPolicyRule</w:Selector><w:Selector Name="PolicyRuleName">Periodic</w:Selector><w:Selector Name="SystemCreationClassName">CIM_ComputerSystem</w:Selector><w:Selector Name="SystemName">Intel(r) AMT</w:Selector></w:SelectorSet></a:ReferenceParameters></h:PolicySet></h:AMT_RemoteAccessPolicyAppliesToMPS></Body>');
227
- });
228
- it('should create a proper wsman body with a mix of xml properties', () => {
229
- const data = {
230
- ManagedElement: {
231
- Address: 'http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous',
232
- ReferenceParameters: {
233
- ResourceURI: 'http://intel.com/wbem/wscim/1/amt-schema/1/AMT_ManagementPresenceRemoteSAP',
234
- SelectorSet: {
235
- Selector: [
236
- {
237
- _: 'AMT_ManagementPresenceRemoteSAP',
238
- $: {
239
- Name: 'CreationClassName'
240
- }
241
- },
242
- {
243
- _: 'Intel(r) AMT:Management Presence Server 0',
244
- $: {
245
- Name: 'Name'
246
- }
247
- },
248
- {
249
- _: 'CIM_ComputerSystem',
250
- $: {
251
- Name: 'SystemCreationClassName'
252
- }
253
- },
254
- {
255
- _: 'Intel(r) AMT',
256
- $: {
257
- Name: 'SystemName'
258
- }
259
- }
260
- ]
261
- }
262
- }
263
- },
264
- MpsType: 0,
265
- OrderOfAccess: 0,
266
- PolicySet: {
267
- Address: 'http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous',
268
- ReferenceParameters: {
269
- ResourceURI: 'http://intel.com/wbem/wscim/1/amt-schema/1/AMT_RemoteAccessPolicyRule',
270
- SelectorSet: {
271
- Selector: [
272
- {
273
- _: 'AMT_RemoteAccessPolicyRule',
274
- $: {
275
- Name: 'CreationClassName'
276
- }
277
- },
278
- {
279
- _: 'Periodic',
280
- $: {
281
- Name: 'PolicyRuleName'
282
- }
283
- },
284
- {
285
- _: 'CIM_ComputerSystem',
286
- $: {
287
- Name: 'SystemCreationClassName'
288
- }
289
- },
290
- {
291
- _: 'Intel(r) AMT',
292
- $: {
293
- Name: 'SystemName'
294
- }
295
- }
296
- ]
297
- }
298
- }
299
- }
300
- };
301
- const expectedBody = '<Body><h:AMT_RemoteAccessPolicyAppliesToMPS xmlns:h="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/AMT_RemoteAccessPolicyAppliesToMPS"><h:ManagedElement><a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address><a:ReferenceParameters><w:ResourceURI>http://intel.com/wbem/wscim/1/amt-schema/1/AMT_ManagementPresenceRemoteSAP</w:ResourceURI><w:SelectorSet><w:Selector Name="CreationClassName">AMT_ManagementPresenceRemoteSAP</w:Selector><w:Selector Name="Name">Intel(r) AMT:Management Presence Server 0</w:Selector><w:Selector Name="SystemCreationClassName">CIM_ComputerSystem</w:Selector><w:Selector Name="SystemName">Intel(r) AMT</w:Selector></w:SelectorSet></a:ReferenceParameters></h:ManagedElement><h:MpsType>0</h:MpsType><h:OrderOfAccess>0</h:OrderOfAccess><h:PolicySet><a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address><a:ReferenceParameters><w:ResourceURI>http://intel.com/wbem/wscim/1/amt-schema/1/AMT_RemoteAccessPolicyRule</w:ResourceURI><w:SelectorSet><w:Selector Name="CreationClassName">AMT_RemoteAccessPolicyRule</w:Selector><w:Selector Name="PolicyRuleName">Periodic</w:Selector><w:Selector Name="SystemCreationClassName">CIM_ComputerSystem</w:Selector><w:Selector Name="SystemName">Intel(r) AMT</w:Selector></w:SelectorSet></a:ReferenceParameters></h:PolicySet></h:AMT_RemoteAccessPolicyAppliesToMPS></Body>';
302
- const result = wsmanMessageCreator.createBody(AMT.Classes.REMOTE_ACCESS_POLICY_APPLIES_TO_MPS, AMT.Classes.REMOTE_ACCESS_POLICY_APPLIES_TO_MPS, [data]);
303
- expect(result).toStrictEqual(expectedBody);
304
- });
305
- });
306
- describe('processBody tests', () => {
307
- it('should update the data with proper prefixes', () => {
308
- const data = {
309
- ManagedElement: {
310
- Address: 'http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous',
311
- ReferenceParameters: {
312
- ResourceURI: 'http://intel.com/wbem/wscim/1/amt-schema/1/AMT_ManagementPresenceRemoteSAP',
313
- SelectorSet: {
314
- Selector: [
315
- {
316
- _: 'AMT_ManagementPresenceRemoteSAP',
317
- $: {
318
- Name: 'CreationClassName'
319
- }
320
- },
321
- {
322
- _: 'Intel(r) AMT:Management Presence Server 0',
323
- $: {
324
- Name: 'Name'
325
- }
326
- },
327
- {
328
- _: 'CIM_ComputerSystem',
329
- $: {
330
- Name: 'SystemCreationClassName'
331
- }
332
- },
333
- {
334
- _: 'Intel(r) AMT',
335
- $: {
336
- Name: 'SystemName'
337
- }
338
- }
339
- ]
340
- }
341
- }
342
- },
343
- MpsType: 0,
344
- OrderOfAccess: 0,
345
- PolicySet: {
346
- Address: 'http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous',
347
- ReferenceParameters: {
348
- ResourceURI: 'http://intel.com/wbem/wscim/1/amt-schema/1/AMT_RemoteAccessPolicyRule',
349
- SelectorSet: {
350
- Selector: [
351
- {
352
- _: 'AMT_RemoteAccessPolicyRule',
353
- $: {
354
- Name: 'CreationClassName'
355
- }
356
- },
357
- {
358
- _: 'Periodic',
359
- $: {
360
- Name: 'PolicyRuleName'
361
- }
362
- },
363
- {
364
- _: 'CIM_ComputerSystem',
365
- $: {
366
- Name: 'SystemCreationClassName'
367
- }
368
- },
369
- {
370
- _: 'Intel(r) AMT',
371
- $: {
372
- Name: 'SystemName'
373
- }
374
- }
375
- ]
376
- }
377
- }
378
- }
379
- };
380
- const expectedData = {
381
- 'h:ManagedElement': {
382
- 'a:Address': 'http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous',
383
- 'a:ReferenceParameters': {
384
- 'w:ResourceURI': 'http://intel.com/wbem/wscim/1/amt-schema/1/AMT_ManagementPresenceRemoteSAP',
385
- 'w:SelectorSet': {
386
- 'w:Selector': [
387
- {
388
- _: 'AMT_ManagementPresenceRemoteSAP',
389
- $: {
390
- Name: 'CreationClassName'
391
- }
392
- },
393
- {
394
- _: 'Intel(r) AMT:Management Presence Server 0',
395
- $: {
396
- Name: 'Name'
397
- }
398
- },
399
- {
400
- _: 'CIM_ComputerSystem',
401
- $: {
402
- Name: 'SystemCreationClassName'
403
- }
404
- },
405
- {
406
- _: 'Intel(r) AMT',
407
- $: {
408
- Name: 'SystemName'
409
- }
410
- }
411
- ]
412
- }
413
- }
414
- },
415
- 'h:MpsType': 0,
416
- 'h:OrderOfAccess': 0,
417
- 'h:PolicySet': {
418
- 'a:Address': 'http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous',
419
- 'a:ReferenceParameters': {
420
- 'w:ResourceURI': 'http://intel.com/wbem/wscim/1/amt-schema/1/AMT_RemoteAccessPolicyRule',
421
- 'w:SelectorSet': {
422
- 'w:Selector': [
423
- {
424
- _: 'AMT_RemoteAccessPolicyRule',
425
- $: {
426
- Name: 'CreationClassName'
427
- }
428
- },
429
- {
430
- _: 'Periodic',
431
- $: {
432
- Name: 'PolicyRuleName'
433
- }
434
- },
435
- {
436
- _: 'CIM_ComputerSystem',
437
- $: {
438
- Name: 'SystemCreationClassName'
439
- }
440
- },
441
- {
442
- _: 'Intel(r) AMT',
443
- $: {
444
- Name: 'SystemName'
445
- }
446
- }
447
- ]
448
- }
449
- }
450
- }
451
- };
452
- wsmanMessageCreator.processBody(data);
453
- expect(data).toStrictEqual(expectedData);
454
- });
455
- });
456
- describe('renameKey tests', () => {
457
- it('should properly rename keys', () => {
458
- const data = {
459
- origKey: {
460
- nestedData: {
461
- moreData: 'value'
462
- }
463
- }
464
- };
465
- const modifiedData = {
466
- 'h:origKey': {
467
- 'h:nestedData': {
468
- 'h:moreData': 'value'
469
- }
470
- }
471
- };
472
- wsmanMessageCreator.prependObjectKey(data, 'origKey', 'h:');
473
- expect(data).toStrictEqual(modifiedData);
474
- });
475
- });
476
- });
477
- //# sourceMappingURL=wsman.test.js.map
package/wsman.test.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"wsman.test.js","sourceRoot":"","sources":["../src/wsman.test.ts"],"names":[],"mappings":"AAAA;;;wEAGwE;AAExE,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAC7D,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,YAAY,CAAA;AAGrC,MAAM,mBAAmB,GAAG,IAAI,mBAAmB,CAAC,oDAAoD,CAAC,CAAA;AACzG,QAAQ,CAAC,2BAA2B,EAAE,GAAG,EAAE;IACzC,MAAM,QAAQ,GAAa,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,uBAAuB,EAAE,CAAA;IACjF,IAAI,SAAS,GAAG,CAAC,CAAA;IACjB,MAAM,kBAAkB,GAAG,sCAAsC,CAAA;IACjE,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;QAC/B,EAAE,CAAC,gFAAgF,EAAE,GAAG,EAAE;YACxF,MAAM,MAAM,GAAG,mBAAmB,CAAC,YAAY,CAAC,WAAW,CAAC,SAAS,EAAE,GAAG,CAAC,OAAO,CAAC,4BAA4B,CAAC,CAA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