-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjunit.xml
More file actions
336 lines (319 loc) · 22.7 KB
/
junit.xml
File metadata and controls
336 lines (319 loc) · 22.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="jest tests" tests="39" failures="8" errors="0" time="0.865">
<testsuite name="undefined" errors="0" failures="0" skipped="0" timestamp="2026-04-10T07:58:39" time="0.223" tests="2">
<testcase classname=" putIntegerProfileIntegerValue - 12345" name=" putIntegerProfileIntegerValue - 12345" time="0.002">
</testcase>
<testcase classname=" putIntegerProfileIntegerValue - 23456" name=" putIntegerProfileIntegerValue - 23456" time="0.001">
</testcase>
</testsuite>
<testsuite name="provideListOfConnectedDevices" errors="0" failures="0" skipped="0" timestamp="2026-04-10T07:58:39" time="0.469" tests="2">
<testcase classname="provideListOfConnectedDevices should call postRequestDataFromMWDI with correct arguments and return the result" name="provideListOfConnectedDevices should call postRequestDataFromMWDI with correct arguments and return the result" time="0.003">
</testcase>
<testcase classname="provideListOfConnectedDevices should handle errors and throw an exception if postRequestDataFromOtherApp fails" name="provideListOfConnectedDevices should handle errors and throw an exception if postRequestDataFromOtherApp fails" time="0.003">
</testcase>
</testsuite>
<testsuite name="provideListOfConnectedDevices" errors="0" failures="0" skipped="0" timestamp="2026-04-10T07:58:39" time="0.489" tests="2">
<testcase classname="provideListOfConnectedDevices should call axios.post with correct arguments and return the result" name="provideListOfConnectedDevices should call axios.post with correct arguments and return the result" time="0.007">
</testcase>
<testcase classname="checkErrorTranslation should call axios.post and return the translated result" name="checkErrorTranslation should call axios.post and return the translated result" time="0.017">
</testcase>
</testsuite>
<testsuite name="extractWireInterfaceGeneralInfo" errors="0" failures="7" skipped="0" timestamp="2026-04-10T07:58:39" time="0.491" tests="29">
<testcase classname="extractWireInterfaceGeneralInfo should return an empty array when wireinterfceLtpList is empty" name="extractWireInterfaceGeneralInfo should return an empty array when wireinterfceLtpList is empty" time="0.002">
</testcase>
<testcase classname="extractWireInterfaceGeneralInfo should return an empty array when LTP has no layer protocol" name="extractWireInterfaceGeneralInfo should return an empty array when LTP has no layer protocol" time="0">
</testcase>
<testcase classname="extractWireInterfaceGeneralInfo should return an empty array when layer protocol does not contain wire-interface-pac" name="extractWireInterfaceGeneralInfo should return an empty array when layer protocol does not contain wire-interface-pac" time="0">
</testcase>
<testcase classname="extractWireInterfaceGeneralInfo should extract basic wire interface configuration, status, and capability" name="extractWireInterfaceGeneralInfo should extract basic wire interface configuration, status, and capability" time="0.003">
<failure>Error: expect(received).toMatchObject(expected)
- Expected - 16
+ Received + 16
@@ -1,63 +1,63 @@
Array [
Object {
- "administrative_state": "core-model-1-4:ADMINISTRATIVE_STATE_UNLOCKED",
- "duplex": "wire-interface-2-0:DUPLEX_TYPE_NOT_YET_DEFINED",
+ "administrative_state": "UNLOCKED",
+ "duplex": "NOT_YET_DEFINED",
"fixed_pmd_kind": "NOT_YET_DEFINED",
"interface_name": "",
- "interface_status": "wire-interface-2-0:INTERFACE_STATUS_TYPE_UP",
+ "interface_status": "UP",
"local_id": "86.1.4",
"mount_name": "CO12123",
- "operational_state": "core-model-1-4:OPERATIONAL_STATE_ENABLED",
+ "operational_state": "ENABLED",
"original_ltp_name": "LAN:1/4",
"pmd_kind_cur": "10GBASE-LR-LW",
"pmd_name": "10GBASE-LR-LW",
"speed": "NOT_YET_DEFINED",
"timestamp": 1748327909254,
"uuid": "ETY-86.1.4",
},
Object {
- "administrative_state": "core-model-1-4:ADMINISTRATIVE_STATE_UNLOCKED",
- "duplex": "wire-interface-2-0:DUPLEX_TYPE_NOT_YET_DEFINED",
+ "administrative_state": "UNLOCKED",
+ "duplex": "NOT_YET_DEFINED",
"fixed_pmd_kind": "NOT_YET_DEFINED",
"interface_name": "",
- "interface_status": "wire-interface-2-0:INTERFACE_STATUS_TYPE_UP",
+ "interface_status": "UP",
"local_id": "86.1.4",
"mount_name": "CO12123",
- "operational_state": "core-model-1-4:OPERATIONAL_STATE_ENABLED",
+ "operational_state": "ENABLED",
"original_ltp_name": "LAN:1/4",
"pmd_kind_cur": "10GBASE-LR-LW",
"pmd_name": "NOT_YET_DEFINED",
"speed": "NOT_YET_DEFINED",
"timestamp": 1748327909254,
"uuid": "ETY-86.1.4",
},
Object {
- "administrative_state": "core-model-1-4:ADMINISTRATIVE_STATE_UNLOCKED",
- "duplex": "wire-interface-2-0:DUPLEX_TYPE_NOT_YET_DEFINED",
+ "administrative_state": "UNLOCKED",
+ "duplex": "NOT_YET_DEFINED",
"fixed_pmd_kind": "NOT_YET_DEFINED",
"interface_name": "Y-cable to 6691",
- "interface_status": "wire-interface-2-0:INTERFACE_STATUS_TYPE_DOWN",
+ "interface_status": "DOWN",
"local_id": "86.1.2",
"mount_name": "CO12123",
- "operational_state": "core-model-1-4:OPERATIONAL_STATE_DISABLED",
+ "operational_state": "DISABLED",
"original_ltp_name": "LAN:1/2",
"pmd_kind_cur": "10GBASE-LR-LW",
"pmd_name": "10GBASE-LR-LW",
"speed": "NOT_YET_DEFINED",
"timestamp": 1748327909254,
"uuid": "ETY-86.1.2",
},
Object {
- "administrative_state": "core-model-1-4:ADMINISTRATIVE_STATE_UNLOCKED",
- "duplex": "wire-interface-2-0:DUPLEX_TYPE_NOT_YET_DEFINED",
+ "administrative_state": "UNLOCKED",
+ "duplex": "NOT_YET_DEFINED",
"fixed_pmd_kind": "NOT_YET_DEFINED",
"interface_name": "Y-cable to 6691",
- "interface_status": "wire-interface-2-0:INTERFACE_STATUS_TYPE_DOWN",
+ "interface_status": "DOWN",
"local_id": "86.1.2",
"mount_name": "CO12123",
- "operational_state": "core-model-1-4:OPERATIONAL_STATE_DISABLED",
+ "operational_state": "DISABLED",
"original_ltp_name": "LAN:1/2",
"pmd_kind_cur": "10GBASE-LR-LW",
"pmd_name": "NOT_YET_DEFINED",
"speed": "NOT_YET_DEFINED",
"timestamp": 1748327909254,
at Object.toMatchObject (/Users/mady/Downloads/projects/siaemic/NetExplorerProxy/server/service/test/BasicServicesService.test.js:137:20)
at processTicksAndRejections (node:internal/process/task_queues:105:5)</failure>
</testcase>
<testcase classname="extractWireInterfaceGeneralInfo should handle missing configuration/status/capability blocks gracefully" name="extractWireInterfaceGeneralInfo should handle missing configuration/status/capability blocks gracefully" time="0.001">
</testcase>
<testcase classname="extractWireInterfaceGeneralInfo should handle multiple wire interface LTPs correctly" name="extractWireInterfaceGeneralInfo should handle multiple wire interface LTPs correctly" time="0">
<failure>Error: expect(received).toMatchObject(expected)
- Expected - 4
+ Received + 4
@@ -1,14 +1,14 @@
Object {
- "administrative_state": "core-model-1-4:ADMINISTRATIVE_STATE_UNLOCKED",
- "duplex": "wire-interface-2-0:DUPLEX_TYPE_NOT_YET_DEFINED",
+ "administrative_state": "UNLOCKED",
+ "duplex": "NOT_YET_DEFINED",
"fixed_pmd_kind": "NOT_YET_DEFINED",
"interface_name": "",
- "interface_status": "wire-interface-2-0:INTERFACE_STATUS_TYPE_UP",
+ "interface_status": "UP",
"local_id": "86.1.4",
"mount_name": "CO12123",
- "operational_state": "core-model-1-4:OPERATIONAL_STATE_ENABLED",
+ "operational_state": "ENABLED",
"original_ltp_name": "LAN:1/4",
"pmd_kind_cur": "10GBASE-LR-LW",
"pmd_name": "10GBASE-LR-LW",
"speed": "NOT_YET_DEFINED",
"timestamp": 1748327909254,
at Object.toMatchObject (/Users/mady/Downloads/projects/siaemic/NetExplorerProxy/server/service/test/BasicServicesService.test.js:386:27)
at processTicksAndRejections (node:internal/process/task_queues:105:5)</failure>
</testcase>
<testcase classname="extractEthernetContainerInfo should return an empty array when ethInterfaceLtpList is empty" name="extractEthernetContainerInfo should return an empty array when ethInterfaceLtpList is empty" time="0">
</testcase>
<testcase classname="extractEthernetContainerInfo should extract basic information from LTP without ethernet-container-pac" name="extractEthernetContainerInfo should extract basic information from LTP without ethernet-container-pac" time="0">
</testcase>
<testcase classname="extractEthernetContainerInfo should extract complete information including ethernet-container-pac data" name="extractEthernetContainerInfo should extract complete information including ethernet-container-pac data" time="0">
<failure>Error: expect(received).toMatchObject(expected)
- Expected - 1
+ Received + 1
@@ -1,10 +1,10 @@
Object {
"administrative_state": "UNLOCKED",
"bundling_is_on": true,
"interface_name": "eth0",
- "interface_status": "UP",
+ "interface_status": "-----------",
"local_id": "test-local-id",
"mount_name": "test-mount",
"operational_state": "ENABLED",
"original_ltp_name": "test-ltp-name",
"timestamp": 12345,
at Object.toMatchObject (/Users/mady/Downloads/projects/siaemic/NetExplorerProxy/server/service/test/BasicServicesService.test.js:566:23)
at processTicksAndRejections (node:internal/process/task_queues:105:5)</failure>
</testcase>
<testcase classname="extractEthernetContainerInfo should handle multiple LTPs correctly" name="extractEthernetContainerInfo should handle multiple LTPs correctly" time="0">
<failure>Error: expect(received).toMatchObject(expected)
- Expected - 1
+ Received + 1
@@ -1,10 +1,10 @@
Object {
"administrative_state": "UNLOCKED",
"bundling_is_on": true,
"interface_name": "eth0",
- "interface_status": "UP",
+ "interface_status": "-----------",
"local_id": "local-id-1",
"mount_name": "test-mount",
"operational_state": "ENABLED",
"original_ltp_name": "ltp-name-1",
"timestamp": 12345,
at Object.toMatchObject (/Users/mady/Downloads/projects/siaemic/NetExplorerProxy/server/service/test/BasicServicesService.test.js:632:23)
at processTicksAndRejections (node:internal/process/task_queues:105:5)</failure>
</testcase>
<testcase classname="extractEthernetContainerInfo should handle missing ltp-augment-pac gracefully" name="extractEthernetContainerInfo should handle missing ltp-augment-pac gracefully" time="0">
</testcase>
<testcase classname="extractEthernetContainerInfo should handle malformed LTP data gracefully" name="extractEthernetContainerInfo should handle malformed LTP data gracefully" time="0">
</testcase>
<testcase classname="extractGeneralInfo should return all values when all fields are present" name="extractGeneralInfo should return all values when all fields are present" time="0.001">
</testcase>
<testcase classname="extractGeneralInfo should return only device_model_name and external_label when system_name is missing" name="extractGeneralInfo should return only device_model_name and external_label when system_name is missing" time="0">
</testcase>
<testcase classname="extractGeneralInfo should return only system_name when device-model-name and external-label are missing" name="extractGeneralInfo should return only system_name when device-model-name and external-label are missing" time="0">
</testcase>
<testcase classname="extractGeneralInfo should return only mount_name and timestamp when all optional fields are missing" name="extractGeneralInfo should return only mount_name and timestamp when all optional fields are missing" time="0">
</testcase>
<testcase classname="extractGeneralInfo should return empty object with only mount_name and timestamp when input is empty" name="extractGeneralInfo should return empty object with only mount_name and timestamp when input is empty" time="0">
</testcase>
<testcase classname="extractGeneralInfo should return empty object with only mount_name and timestamp when input is null" name="extractGeneralInfo should return empty object with only mount_name and timestamp when input is null" time="0">
</testcase>
<testcase classname="extractEquipmentData should return full mapped equipment data when all fields are present" name="extractEquipmentData should return full mapped equipment data when all fields are present" time="0">
</testcase>
<testcase classname="extractEquipmentData should skip equipment without 'actual-equipment'" name="extractEquipmentData should skip equipment without 'actual-equipment'" time="0">
</testcase>
<testcase classname="extractEquipmentData should skip equipment without 'manufactured-thing'" name="extractEquipmentData should skip equipment without 'manufactured-thing'" time="0">
</testcase>
<testcase classname="extractEquipmentData should return equipment object with only available fields" name="extractEquipmentData should return equipment object with only available fields" time="0">
</testcase>
<testcase classname="extractEquipmentData should return empty array if input is empty" name="extractEquipmentData should return empty array if input is empty" time="0">
</testcase>
<testcase classname="extractEquipmentData should return empty array if input is null" name="extractEquipmentData should return empty array if input is null" time="0">
</testcase>
<testcase classname="extractEquipmentData should return empty array if equipment is not an array" name="extractEquipmentData should return empty array if equipment is not an array" time="0.001">
</testcase>
<testcase classname="extractAirContainerGeneralInfoAndTransmissionInfo should return full airContainerGeneralInfo and transmissionListInfo when all properties exist" name="extractAirContainerGeneralInfoAndTransmissionInfo should return full airContainerGeneralInfo and transmissionListInfo when all properties exist" time="0">
<failure>Error: expect(received).toEqual(expected) // deep equality
- Expected - 3
+ Received + 3
@@ -1,14 +1,14 @@
Object {
"airContainerGeneralInfo": Array [
Object {
- "administrative_state": "core-model-1-4:ADMINISTRATIVE_STATE_UNLOCKED",
+ "administrative_state": "UNLOCKED",
"external_label": "External label not yet defined.",
- "interface_status": "air-interface-2-0:INTERFACE_STATUS_TYPE_UP",
+ "interface_status": "UP",
"local_id": "819.1.1",
"mount_name": "CO12123",
- "operational_state": "core-model-1-4:OPERATIONAL_STATE_ENABLED",
+ "operational_state": "ENABLED",
"original_ltp_name": "CT 1/1/1",
"power_is_on": true,
"timestamp": "1747995605012",
"transmission_mode_max": "782.1.1.16.19",
"transmission_mode_min": "782.1.1.16.3",
at Object.toEqual (/Users/mady/Downloads/projects/siaemic/NetExplorerProxy/server/service/test/BasicServicesService.test.js:1151:20)
at processTicksAndRejections (node:internal/process/task_queues:105:5)</failure>
</testcase>
<testcase classname="extractAirContainerGeneralInfoAndTransmissionInfo should return empty arrays when input is empty" name="extractAirContainerGeneralInfoAndTransmissionInfo should return empty arrays when input is empty" time="0">
</testcase>
<testcase classname="extractAirContainerGeneralInfoAndTransmissionInfo should handle missing air-interface-pac properties" name="extractAirContainerGeneralInfoAndTransmissionInfo should handle missing air-interface-pac properties" time="0">
<failure>Error: expect(received).toEqual(expected) // deep equality
- Expected - 2
+ Received + 2
@@ -1,13 +1,13 @@
Object {
"airContainerGeneralInfo": Array [
Object {
- "administrative_state": "core-model-1-4:ADMINISTRATIVE_STATE_UNLOCKED",
+ "administrative_state": "UNLOCKED",
"external_label": "External label not yet defined.",
"local_id": "819.1.1",
"mount_name": "CO12123",
- "operational_state": "core-model-1-4:OPERATIONAL_STATE_ENABLED",
+ "operational_state": "ENABLED",
"original_ltp_name": "CT 1/1/1",
"timestamp": "1747995605012",
"type_of_equipment": "UKL 501 003/21L R1A CXP9026371_3 R29E117",
"uuid": "RF-819.1.1",
},
at Object.toEqual (/Users/mady/Downloads/projects/siaemic/NetExplorerProxy/server/service/test/BasicServicesService.test.js:1204:18)
at processTicksAndRejections (node:internal/process/task_queues:105:5)</failure>
</testcase>
<testcase classname="extractAirContainerGeneralInfoAndTransmissionInfo should handle missing transmission-mode-list" name="extractAirContainerGeneralInfoAndTransmissionInfo should handle missing transmission-mode-list" time="0">
<failure>Error: expect(received).toEqual(expected) // deep equality
- Expected - 3
+ Received + 3
@@ -1,13 +1,13 @@
Object {
"airContainerGeneralInfo": Array [
Object {
- "administrative_state": "core-model-1-4:ADMINISTRATIVE_STATE_UNLOCKED",
- "interface_status": "air-interface-2-0:INTERFACE_STATUS_TYPE_UP",
+ "administrative_state": "UNLOCKED",
+ "interface_status": "UP",
"local_id": "819.1.1",
"mount_name": "CO12123",
- "operational_state": "core-model-1-4:OPERATIONAL_STATE_ENABLED",
+ "operational_state": "ENABLED",
"timestamp": "1747995605012",
"transmission_mode_min": "782.1.1.16.3",
"transmitter_is_on": true,
"type_of_equipment": "UKL 501 003/21L R1A CXP9026371_3 R29E117",
"uuid": "RF-819.1.1",
at Object.toEqual (/Users/mady/Downloads/projects/siaemic/NetExplorerProxy/server/service/test/BasicServicesService.test.js:1252:20)
at processTicksAndRejections (node:internal/process/task_queues:105:5)</failure>
</testcase>
</testsuite>
<testsuite name="readCurrentMacTableFromDevice" errors="0" failures="1" skipped="0" timestamp="2026-04-10T07:58:39" time="0.655" tests="4">
<testcase classname="readCurrentMacTableFromDevice should call postRequestDataFromOtherApp with correct arguments and return the result" name="readCurrentMacTableFromDevice should call postRequestDataFromOtherApp with correct arguments and return the result" time="0.01">
<failure>Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)
- Expected
+ Received
"http://localhost:4018/v1/read-current-mac-table-from-device",
"PromptForProvidingMacTableOfSpecificDeviceCausesReadingMacTableFromMatrCache",
@@ -3,9 +3,9 @@
"requestor-address": Object {
"ip-address": Object {
"ipv-4-address": "127.0.0.1",
},
},
- "requestor-port": 4018,
+ "requestor-port": 4032,
"requestor-protocol": "HTTP",
"requestor-receive-operation": "/v1/receive-current-mac-table-of-device",
},
"/v1/read-current-mac-table-from-device",
Number of calls: 1
at Object.toHaveBeenCalledWith (/Users/mady/Downloads/projects/siaemic/NetExplorerProxy/server/service/ReadCurrentMacTableFromDevice.test.js:51:60)</failure>
</testcase>
<testcase classname="readCurrentMacTableFromDevice should handle errors and throw an exception if postRequestDataFromOtherApp fails" name="readCurrentMacTableFromDevice should handle errors and throw an exception if postRequestDataFromOtherApp fails" time="0.005">
</testcase>
<testcase classname="readCurrentMacTableFromDevice throttling should call postRequestDataFromOtherApp with correct arguments and return the result" name="readCurrentMacTableFromDevice throttling should call postRequestDataFromOtherApp with correct arguments and return the result" time="0.025">
</testcase>
<testcase classname="readCurrentMacTableFromDevice maximum call check should refuse calls after 100 per day" name="readCurrentMacTableFromDevice maximum call check should refuse calls after 100 per day" time="0.136">
</testcase>
</testsuite>
</testsuites>