@sebbo2002/node-pyatv 5.1.2-develop.3 → 6.0.0-develop.2
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/CHANGELOG.md +19 -0
- package/LICENSE +1 -1
- package/dist/lib/device-events.d.ts +1 -1
- package/dist/lib/device-events.js +3 -0
- package/dist/lib/device-events.js.map +1 -1
- package/dist/lib/device.d.ts +13 -2
- package/dist/lib/device.js +37 -0
- package/dist/lib/device.js.map +1 -1
- package/dist/lib/fake-spawn.d.ts +3 -3
- package/dist/lib/tools.d.ts +2 -2
- package/dist/lib/types.d.ts +7 -2
- package/docs/coverage/cobertura-coverage.xml +846 -783
- package/docs/coverage/device-event.ts.html +1 -1
- package/docs/coverage/device-events.ts.html +24 -15
- package/docs/coverage/device.ts.html +138 -21
- package/docs/coverage/fake-spawn.ts.html +40 -40
- package/docs/coverage/index.html +28 -28
- package/docs/coverage/index.ts.html +1 -1
- package/docs/coverage/instance.ts.html +1 -1
- package/docs/coverage/tools.ts.html +251 -251
- package/docs/coverage/types.ts.html +23 -5
- package/docs/reference/assets/main.js +56 -52
- package/docs/reference/assets/search.js +1 -1
- package/docs/reference/assets/style.css +23 -0
- package/docs/reference/classes/NodePyATVDevice.html +112 -74
- package/docs/reference/classes/NodePyATVDeviceEvent.html +10 -10
- package/docs/reference/classes/NodePyATVInstance.html +14 -14
- package/docs/reference/enums/NodePyATVDeviceState.html +11 -11
- package/docs/reference/enums/NodePyATVExecutableType.html +7 -7
- package/docs/reference/enums/NodePyATVKeys.html +28 -28
- package/docs/reference/enums/NodePyATVListenerState.html +9 -9
- package/docs/reference/enums/NodePyATVMediaType.html +9 -9
- package/docs/reference/enums/NodePyATVPowerState.html +7 -7
- package/docs/reference/enums/NodePyATVProtocol.html +9 -9
- package/docs/reference/enums/NodePyATVRepeatState.html +8 -8
- package/docs/reference/enums/NodePyATVShuffleState.html +8 -8
- package/docs/reference/index.html +5 -5
- package/docs/reference/interfaces/NodePyATVDeviceOptions.html +27 -27
- package/docs/reference/interfaces/NodePyATVFindAndInstanceOptions.html +21 -21
- package/docs/reference/interfaces/NodePyATVFindOptions.html +14 -14
- package/docs/reference/interfaces/NodePyATVGetStateOptions.html +6 -6
- package/docs/reference/interfaces/NodePyATVInstanceOptions.html +12 -12
- package/docs/reference/interfaces/NodePyATVService.html +7 -7
- package/docs/reference/interfaces/NodePyATVState.html +20 -20
- package/docs/reference/interfaces/NodePyATVVersionResponse.html +7 -7
- package/docs/reference/modules.html +4 -4
- package/docs/reference/types/NodePyATVEventValueType.html +5 -5
- package/docs/tests/index.html +1 -1
- package/docs/tests/mochawesome.json +740 -662
- package/package.json +14 -14
- package/release.config.cjs +1 -6
- package/src/lib/device-events.ts +3 -0
- package/src/lib/device.ts +40 -1
- package/src/lib/tools.ts +1 -1
- package/src/lib/types.ts +7 -1
- package/test/device.ts +42 -0
- package/tsconfig.json +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"stats": {
|
|
3
|
-
"suites":
|
|
4
|
-
"tests":
|
|
5
|
-
"passes":
|
|
3
|
+
"suites": 91,
|
|
4
|
+
"tests": 155,
|
|
5
|
+
"passes": 153,
|
|
6
6
|
"pending": 2,
|
|
7
7
|
"failures": 0,
|
|
8
|
-
"start": "
|
|
9
|
-
"end": "
|
|
10
|
-
"duration":
|
|
11
|
-
"testsRegistered":
|
|
8
|
+
"start": "2023-03-21T19:06:00.060Z",
|
|
9
|
+
"end": "2023-03-21T19:06:12.267Z",
|
|
10
|
+
"duration": 12207,
|
|
11
|
+
"testsRegistered": 155,
|
|
12
12
|
"passPercent": 100,
|
|
13
|
-
"pendingPercent": 1.
|
|
13
|
+
"pendingPercent": 1.2903225806451613,
|
|
14
14
|
"other": 0,
|
|
15
15
|
"hasOther": false,
|
|
16
16
|
"skipped": 0,
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"results": [
|
|
20
20
|
{
|
|
21
|
-
"uuid": "
|
|
21
|
+
"uuid": "cb2b6f57-83a4-4a9e-9840-6cf9b7c8fe18",
|
|
22
22
|
"title": "",
|
|
23
23
|
"fullFile": "",
|
|
24
24
|
"file": "",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"tests": [],
|
|
28
28
|
"suites": [
|
|
29
29
|
{
|
|
30
|
-
"uuid": "
|
|
30
|
+
"uuid": "dcbd2838-ae0b-4830-95bc-6a1da052278d",
|
|
31
31
|
"title": "NodePyATVDeviceEvent",
|
|
32
32
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-event.ts",
|
|
33
33
|
"file": "/test/device-event.ts",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"tests": [],
|
|
37
37
|
"suites": [
|
|
38
38
|
{
|
|
39
|
-
"uuid": "
|
|
39
|
+
"uuid": "a42c2a01-f377-4f29-a8d7-f15915d4a251",
|
|
40
40
|
"title": "get key()",
|
|
41
41
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-event.ts",
|
|
42
42
|
"file": "/test/device-event.ts",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"title": "should work",
|
|
48
48
|
"fullTitle": "NodePyATVDeviceEvent get key() should work",
|
|
49
49
|
"timedOut": false,
|
|
50
|
-
"duration":
|
|
50
|
+
"duration": 1,
|
|
51
51
|
"state": "passed",
|
|
52
52
|
"speed": "fast",
|
|
53
53
|
"pass": true,
|
|
@@ -56,26 +56,26 @@
|
|
|
56
56
|
"context": null,
|
|
57
57
|
"code": "const event = new NodePyATVDeviceEvent({\n key: 'genre',\n old: 'Jazz',\n new: 'Rock',\n device: new NodePyATVDevice({\n host: '192.168.178.2',\n name: 'My Testinstance'\n })\n});\nassert.strictEqual(event.key, 'genre');",
|
|
58
58
|
"err": {},
|
|
59
|
-
"uuid": "
|
|
60
|
-
"parentUUID": "
|
|
59
|
+
"uuid": "1e1fd9e4-d80b-49cb-88b7-3b337a2102f3",
|
|
60
|
+
"parentUUID": "a42c2a01-f377-4f29-a8d7-f15915d4a251",
|
|
61
61
|
"isHook": false,
|
|
62
62
|
"skipped": false
|
|
63
63
|
}
|
|
64
64
|
],
|
|
65
65
|
"suites": [],
|
|
66
66
|
"passes": [
|
|
67
|
-
"
|
|
67
|
+
"1e1fd9e4-d80b-49cb-88b7-3b337a2102f3"
|
|
68
68
|
],
|
|
69
69
|
"failures": [],
|
|
70
70
|
"pending": [],
|
|
71
71
|
"skipped": [],
|
|
72
|
-
"duration":
|
|
72
|
+
"duration": 1,
|
|
73
73
|
"root": false,
|
|
74
74
|
"rootEmpty": false,
|
|
75
75
|
"_timeout": 2000
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
|
-
"uuid": "
|
|
78
|
+
"uuid": "afdd5f23-3688-4828-8572-99442f96e04d",
|
|
79
79
|
"title": "get oldValue()",
|
|
80
80
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-event.ts",
|
|
81
81
|
"file": "/test/device-event.ts",
|
|
@@ -95,15 +95,15 @@
|
|
|
95
95
|
"context": null,
|
|
96
96
|
"code": "const event = new NodePyATVDeviceEvent({\n key: 'genre',\n old: 'Jazz',\n new: 'Rock',\n device: new NodePyATVDevice({\n host: '192.168.178.2',\n name: 'My Testinstance'\n })\n});\nassert.strictEqual(event.oldValue, 'Jazz');",
|
|
97
97
|
"err": {},
|
|
98
|
-
"uuid": "
|
|
99
|
-
"parentUUID": "
|
|
98
|
+
"uuid": "d84cfc45-8fed-48c7-8367-ecaf8f994eb1",
|
|
99
|
+
"parentUUID": "afdd5f23-3688-4828-8572-99442f96e04d",
|
|
100
100
|
"isHook": false,
|
|
101
101
|
"skipped": false
|
|
102
102
|
}
|
|
103
103
|
],
|
|
104
104
|
"suites": [],
|
|
105
105
|
"passes": [
|
|
106
|
-
"
|
|
106
|
+
"d84cfc45-8fed-48c7-8367-ecaf8f994eb1"
|
|
107
107
|
],
|
|
108
108
|
"failures": [],
|
|
109
109
|
"pending": [],
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
"_timeout": 2000
|
|
115
115
|
},
|
|
116
116
|
{
|
|
117
|
-
"uuid": "
|
|
117
|
+
"uuid": "a1f366b9-d57e-4bbf-a166-cfdf70fac381",
|
|
118
118
|
"title": "get newValue()",
|
|
119
119
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-event.ts",
|
|
120
120
|
"file": "/test/device-event.ts",
|
|
@@ -134,15 +134,15 @@
|
|
|
134
134
|
"context": null,
|
|
135
135
|
"code": "const event = new NodePyATVDeviceEvent({\n key: 'genre',\n old: 'Jazz',\n new: 'Rock',\n device: new NodePyATVDevice({\n host: '192.168.178.2',\n name: 'My Testinstance'\n })\n});\nassert.strictEqual(event.newValue, 'Rock');",
|
|
136
136
|
"err": {},
|
|
137
|
-
"uuid": "
|
|
138
|
-
"parentUUID": "
|
|
137
|
+
"uuid": "dc78a171-e1f1-49eb-a3f0-eccdc8f0d164",
|
|
138
|
+
"parentUUID": "a1f366b9-d57e-4bbf-a166-cfdf70fac381",
|
|
139
139
|
"isHook": false,
|
|
140
140
|
"skipped": false
|
|
141
141
|
}
|
|
142
142
|
],
|
|
143
143
|
"suites": [],
|
|
144
144
|
"passes": [
|
|
145
|
-
"
|
|
145
|
+
"dc78a171-e1f1-49eb-a3f0-eccdc8f0d164"
|
|
146
146
|
],
|
|
147
147
|
"failures": [],
|
|
148
148
|
"pending": [],
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
"_timeout": 2000
|
|
154
154
|
},
|
|
155
155
|
{
|
|
156
|
-
"uuid": "
|
|
156
|
+
"uuid": "34499f4f-8a0a-472a-9816-c8edaef6642b",
|
|
157
157
|
"title": "get value()",
|
|
158
158
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-event.ts",
|
|
159
159
|
"file": "/test/device-event.ts",
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
"title": "should work",
|
|
165
165
|
"fullTitle": "NodePyATVDeviceEvent get value() should work",
|
|
166
166
|
"timedOut": false,
|
|
167
|
-
"duration":
|
|
167
|
+
"duration": 0,
|
|
168
168
|
"state": "passed",
|
|
169
169
|
"speed": "fast",
|
|
170
170
|
"pass": true,
|
|
@@ -173,26 +173,26 @@
|
|
|
173
173
|
"context": null,
|
|
174
174
|
"code": "const event = new NodePyATVDeviceEvent({\n key: 'genre',\n old: 'Jazz',\n new: 'Rock',\n device: new NodePyATVDevice({\n host: '192.168.178.2',\n name: 'My Testinstance'\n })\n});\nassert.strictEqual(event.value, 'Rock');",
|
|
175
175
|
"err": {},
|
|
176
|
-
"uuid": "
|
|
177
|
-
"parentUUID": "
|
|
176
|
+
"uuid": "efd6a4a7-2d84-46f6-865b-918ce3148d27",
|
|
177
|
+
"parentUUID": "34499f4f-8a0a-472a-9816-c8edaef6642b",
|
|
178
178
|
"isHook": false,
|
|
179
179
|
"skipped": false
|
|
180
180
|
}
|
|
181
181
|
],
|
|
182
182
|
"suites": [],
|
|
183
183
|
"passes": [
|
|
184
|
-
"
|
|
184
|
+
"efd6a4a7-2d84-46f6-865b-918ce3148d27"
|
|
185
185
|
],
|
|
186
186
|
"failures": [],
|
|
187
187
|
"pending": [],
|
|
188
188
|
"skipped": [],
|
|
189
|
-
"duration":
|
|
189
|
+
"duration": 0,
|
|
190
190
|
"root": false,
|
|
191
191
|
"rootEmpty": false,
|
|
192
192
|
"_timeout": 2000
|
|
193
193
|
},
|
|
194
194
|
{
|
|
195
|
-
"uuid": "
|
|
195
|
+
"uuid": "b638c1ee-f054-41e5-ae7f-1e444cf9d96d",
|
|
196
196
|
"title": "get device()",
|
|
197
197
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-event.ts",
|
|
198
198
|
"file": "/test/device-event.ts",
|
|
@@ -212,15 +212,15 @@
|
|
|
212
212
|
"context": null,
|
|
213
213
|
"code": "const device = new NodePyATVDevice({\n host: '192.168.178.2',\n name: 'My Testinstance'\n});\nconst event = new NodePyATVDeviceEvent({\n key: 'genre',\n old: 'Jazz',\n new: 'Rock',\n device\n});\nassert.deepEqual(event.device, device);",
|
|
214
214
|
"err": {},
|
|
215
|
-
"uuid": "
|
|
216
|
-
"parentUUID": "
|
|
215
|
+
"uuid": "471cd8d5-64ad-4e08-ba94-1ddc83890dab",
|
|
216
|
+
"parentUUID": "b638c1ee-f054-41e5-ae7f-1e444cf9d96d",
|
|
217
217
|
"isHook": false,
|
|
218
218
|
"skipped": false
|
|
219
219
|
}
|
|
220
220
|
],
|
|
221
221
|
"suites": [],
|
|
222
222
|
"passes": [
|
|
223
|
-
"
|
|
223
|
+
"471cd8d5-64ad-4e08-ba94-1ddc83890dab"
|
|
224
224
|
],
|
|
225
225
|
"failures": [],
|
|
226
226
|
"pending": [],
|
|
@@ -241,7 +241,7 @@
|
|
|
241
241
|
"_timeout": 2000
|
|
242
242
|
},
|
|
243
243
|
{
|
|
244
|
-
"uuid": "
|
|
244
|
+
"uuid": "80bd38b8-09f6-4b7c-9f78-394eeb41751d",
|
|
245
245
|
"title": "NodePyATVDeviceEvents",
|
|
246
246
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
247
247
|
"file": "/test/device-events.ts",
|
|
@@ -250,7 +250,7 @@
|
|
|
250
250
|
"tests": [],
|
|
251
251
|
"suites": [
|
|
252
252
|
{
|
|
253
|
-
"uuid": "
|
|
253
|
+
"uuid": "7ae68349-5f8b-4dea-92b9-003a68d63456",
|
|
254
254
|
"title": "applyStateAndEmitEvents()",
|
|
255
255
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
256
256
|
"file": "/test/device-events.ts",
|
|
@@ -261,7 +261,7 @@
|
|
|
261
261
|
"title": "should emit update:key event",
|
|
262
262
|
"fullTitle": "NodePyATVDeviceEvents applyStateAndEmitEvents() should emit update:key event",
|
|
263
263
|
"timedOut": false,
|
|
264
|
-
"duration":
|
|
264
|
+
"duration": 3,
|
|
265
265
|
"state": "passed",
|
|
266
266
|
"speed": "fast",
|
|
267
267
|
"pass": true,
|
|
@@ -270,8 +270,8 @@
|
|
|
270
270
|
"context": null,
|
|
271
271
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.onStdIn(() => cp.end());\n cp.stdout({\n result: 'success',\n title: 'My Movie'\n });\n })\n });\n yield new Promise(cb => {\n device.once('update:title', event => {\n assert.ok(event instanceof NodePyATVDeviceEvent);\n assert.strictEqual(event.key, 'title');\n assert.strictEqual(event.oldValue, null);\n assert.strictEqual(event.newValue, 'My Movie');\n assert.strictEqual(event.value, 'My Movie');\n assert.deepStrictEqual(event.device, device);\n cb(undefined);\n });\n });\n});",
|
|
272
272
|
"err": {},
|
|
273
|
-
"uuid": "
|
|
274
|
-
"parentUUID": "
|
|
273
|
+
"uuid": "678e78f0-675b-4077-a1ca-fcf563573080",
|
|
274
|
+
"parentUUID": "7ae68349-5f8b-4dea-92b9-003a68d63456",
|
|
275
275
|
"isHook": false,
|
|
276
276
|
"skipped": false
|
|
277
277
|
},
|
|
@@ -279,7 +279,7 @@
|
|
|
279
279
|
"title": "should emit update event",
|
|
280
280
|
"fullTitle": "NodePyATVDeviceEvents applyStateAndEmitEvents() should emit update event",
|
|
281
281
|
"timedOut": false,
|
|
282
|
-
"duration":
|
|
282
|
+
"duration": 6,
|
|
283
283
|
"state": "passed",
|
|
284
284
|
"speed": "fast",
|
|
285
285
|
"pass": true,
|
|
@@ -288,8 +288,8 @@
|
|
|
288
288
|
"context": null,
|
|
289
289
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.onStdIn(() => cp.end());\n cp.stdout({\n result: 'success',\n title: 'My Movie'\n });\n })\n });\n yield new Promise(cb => {\n device.once('update', event => {\n assert.ok(event instanceof NodePyATVDeviceEvent);\n assert.strictEqual(event.key, 'title');\n assert.strictEqual(event.oldValue, null);\n assert.strictEqual(event.newValue, 'My Movie');\n assert.strictEqual(event.value, 'My Movie');\n assert.deepStrictEqual(event.device, device);\n cb(undefined);\n });\n });\n});",
|
|
290
290
|
"err": {},
|
|
291
|
-
"uuid": "
|
|
292
|
-
"parentUUID": "
|
|
291
|
+
"uuid": "2ffa0f11-97f3-47cb-9208-8dbb115481de",
|
|
292
|
+
"parentUUID": "7ae68349-5f8b-4dea-92b9-003a68d63456",
|
|
293
293
|
"isHook": false,
|
|
294
294
|
"skipped": false
|
|
295
295
|
},
|
|
@@ -297,7 +297,7 @@
|
|
|
297
297
|
"title": "should emit update:key event before update",
|
|
298
298
|
"fullTitle": "NodePyATVDeviceEvents applyStateAndEmitEvents() should emit update:key event before update",
|
|
299
299
|
"timedOut": false,
|
|
300
|
-
"duration":
|
|
300
|
+
"duration": 2,
|
|
301
301
|
"state": "passed",
|
|
302
302
|
"speed": "fast",
|
|
303
303
|
"pass": true,
|
|
@@ -306,8 +306,8 @@
|
|
|
306
306
|
"context": null,
|
|
307
307
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.onStdIn(() => cp.end());\n cp.stdout({\n result: 'success',\n title: 'My Movie'\n });\n })\n });\n const sort = [];\n yield Promise.race([\n new Promise(cb => {\n device.once('update', () => {\n sort.push('update');\n cb(undefined);\n });\n }),\n new Promise(cb => {\n device.once('update:title', () => {\n sort.push('update:title');\n cb(undefined);\n });\n })\n ]);\n assert.deepStrictEqual(sort, ['update:title', 'update']);\n});",
|
|
308
308
|
"err": {},
|
|
309
|
-
"uuid": "
|
|
310
|
-
"parentUUID": "
|
|
309
|
+
"uuid": "a12dff7e-cdea-4f54-a170-53b1a81d23bc",
|
|
310
|
+
"parentUUID": "7ae68349-5f8b-4dea-92b9-003a68d63456",
|
|
311
311
|
"isHook": false,
|
|
312
312
|
"skipped": false
|
|
313
313
|
},
|
|
@@ -315,7 +315,7 @@
|
|
|
315
315
|
"title": "should emit error events on failures",
|
|
316
316
|
"fullTitle": "NodePyATVDeviceEvents applyStateAndEmitEvents() should emit error events on failures",
|
|
317
317
|
"timedOut": false,
|
|
318
|
-
"duration":
|
|
318
|
+
"duration": 1,
|
|
319
319
|
"state": "passed",
|
|
320
320
|
"speed": "fast",
|
|
321
321
|
"pass": true,
|
|
@@ -324,8 +324,8 @@
|
|
|
324
324
|
"context": null,
|
|
325
325
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.onStdIn(() => cp.end());\n cp.stdout({\n result: 'failure',\n datetime: '2021-11-24T21:13:36.424576+03:00',\n exception: 'invalid credentials: 321',\n stacktrace: 'Traceback (most recent call last):\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/scripts/atvscript.py\\\", line 302, in appstart\\n print(args.output(await _handle_command(args, abort_sem, loop)), flush=True)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/scripts/atvscript.py\\\", line 196, in _handle_command\\n atv = await connect(config, loop, protocol=Protocol.MRP)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/__init__.py\\\", line 96, in connect\\n for setup_data in proto_methods.setup(\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/protocols/airplay/__init__.py\\\", line 192, in setup\\n stream = AirPlayStream(config, service)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/protocols/airplay/__init__.py\\\", line 79, in __init__\\n self._credentials: HapCredentials = parse_credentials(self.service.credentials)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/auth/hap_pairing.py\\\", line 139, in parse_credentials\\n raise exceptions.InvalidCredentialsError(\\\"invalid credentials: \\\" + detail_string)\\npyatv.exceptions.InvalidCredentialsError: invalid credentials: 321\\n'\n });\n })\n });\n yield new Promise(cb => {\n device.once('error', error => {\n assert.ok(error instanceof Error);\n assert.ok(error.toString().includes('invalid credentials: 321'));\n cb(undefined);\n });\n });\n});",
|
|
326
326
|
"err": {},
|
|
327
|
-
"uuid": "
|
|
328
|
-
"parentUUID": "
|
|
327
|
+
"uuid": "b6fce4a7-de6a-4a1b-91d8-c693dca446f1",
|
|
328
|
+
"parentUUID": "7ae68349-5f8b-4dea-92b9-003a68d63456",
|
|
329
329
|
"isHook": false,
|
|
330
330
|
"skipped": false
|
|
331
331
|
},
|
|
@@ -333,7 +333,7 @@
|
|
|
333
333
|
"title": "should not emit an update if new value is same as old one",
|
|
334
334
|
"fullTitle": "NodePyATVDeviceEvents applyStateAndEmitEvents() should not emit an update if new value is same as old one",
|
|
335
335
|
"timedOut": false,
|
|
336
|
-
"duration":
|
|
336
|
+
"duration": 3,
|
|
337
337
|
"state": "passed",
|
|
338
338
|
"speed": "fast",
|
|
339
339
|
"pass": true,
|
|
@@ -342,8 +342,8 @@
|
|
|
342
342
|
"context": null,
|
|
343
343
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n let spawnCounter = 0;\n let eventCounter = 0;\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n if (spawnCounter === 0) {\n cp.onStdIn(() => cp.end());\n }\n cp.stdout({\n result: 'success',\n title: 'My Movie'\n });\n spawnCounter++;\n if (spawnCounter >= 2) {\n cp.end();\n }\n })\n });\n const listener = () => {\n eventCounter++;\n };\n device.on('update', listener);\n yield new Promise(cb => setTimeout(cb, 0));\n yield device.getState();\n device.off('update', listener);\n assert.strictEqual(spawnCounter, 2);\n assert.strictEqual(eventCounter, 1);\n});",
|
|
344
344
|
"err": {},
|
|
345
|
-
"uuid": "
|
|
346
|
-
"parentUUID": "
|
|
345
|
+
"uuid": "8eafbafb-b2dc-44d8-9440-d92ad56d34a8",
|
|
346
|
+
"parentUUID": "7ae68349-5f8b-4dea-92b9-003a68d63456",
|
|
347
347
|
"isHook": false,
|
|
348
348
|
"skipped": false
|
|
349
349
|
},
|
|
@@ -360,8 +360,8 @@
|
|
|
360
360
|
"context": null,
|
|
361
361
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.onStdIn(() => cp.end());\n cp.stdout({\n result: 'success',\n title: 'My Movie'\n });\n })\n });\n let callCounter = 0;\n const error = new Error('This is an error. Be nice.');\n device.once('error', err => {\n assert.strictEqual(err, error);\n callCounter++;\n });\n const listener = () => {\n throw error;\n };\n device.on('update', listener);\n yield new Promise(cb => setTimeout(cb, 0));\n device.off('update', listener);\n assert.strictEqual(callCounter, 1);\n});",
|
|
362
362
|
"err": {},
|
|
363
|
-
"uuid": "
|
|
364
|
-
"parentUUID": "
|
|
363
|
+
"uuid": "52e6a084-db78-4ac7-bd3e-a65dde636276",
|
|
364
|
+
"parentUUID": "7ae68349-5f8b-4dea-92b9-003a68d63456",
|
|
365
365
|
"isHook": false,
|
|
366
366
|
"skipped": false
|
|
367
367
|
},
|
|
@@ -378,32 +378,32 @@
|
|
|
378
378
|
"context": null,
|
|
379
379
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.onStdIn(() => cp.end());\n cp.stdout({\n result: 'success',\n datetime: new Date().toJSON(),\n power_state: 'off'\n });\n })\n });\n yield new Promise(cb => {\n device.once('update:powerState', event => {\n assert.ok(event instanceof NodePyATVDeviceEvent);\n assert.strictEqual(event.key, 'powerState');\n assert.strictEqual(event.oldValue, null);\n assert.strictEqual(event.newValue, 'off');\n assert.strictEqual(event.newValue, NodePyATVPowerState.off);\n assert.strictEqual(event.value, 'off');\n assert.strictEqual(event.value, NodePyATVPowerState.off);\n assert.deepStrictEqual(event.device, device);\n cb(undefined);\n });\n });\n});",
|
|
380
380
|
"err": {},
|
|
381
|
-
"uuid": "
|
|
382
|
-
"parentUUID": "
|
|
381
|
+
"uuid": "3a26160d-0467-4c82-9eb6-a72984bf29b5",
|
|
382
|
+
"parentUUID": "7ae68349-5f8b-4dea-92b9-003a68d63456",
|
|
383
383
|
"isHook": false,
|
|
384
384
|
"skipped": false
|
|
385
385
|
}
|
|
386
386
|
],
|
|
387
387
|
"suites": [],
|
|
388
388
|
"passes": [
|
|
389
|
-
"
|
|
390
|
-
"
|
|
391
|
-
"
|
|
392
|
-
"
|
|
393
|
-
"
|
|
394
|
-
"
|
|
395
|
-
"
|
|
389
|
+
"678e78f0-675b-4077-a1ca-fcf563573080",
|
|
390
|
+
"2ffa0f11-97f3-47cb-9208-8dbb115481de",
|
|
391
|
+
"a12dff7e-cdea-4f54-a170-53b1a81d23bc",
|
|
392
|
+
"b6fce4a7-de6a-4a1b-91d8-c693dca446f1",
|
|
393
|
+
"8eafbafb-b2dc-44d8-9440-d92ad56d34a8",
|
|
394
|
+
"52e6a084-db78-4ac7-bd3e-a65dde636276",
|
|
395
|
+
"3a26160d-0467-4c82-9eb6-a72984bf29b5"
|
|
396
396
|
],
|
|
397
397
|
"failures": [],
|
|
398
398
|
"pending": [],
|
|
399
399
|
"skipped": [],
|
|
400
|
-
"duration":
|
|
400
|
+
"duration": 19,
|
|
401
401
|
"root": false,
|
|
402
402
|
"rootEmpty": false,
|
|
403
403
|
"_timeout": 2000
|
|
404
404
|
},
|
|
405
405
|
{
|
|
406
|
-
"uuid": "
|
|
406
|
+
"uuid": "87bb32ff-8254-47df-9496-801bf1276e9f",
|
|
407
407
|
"title": "start|stopListening()",
|
|
408
408
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
409
409
|
"file": "/test/device-events.ts",
|
|
@@ -414,7 +414,7 @@
|
|
|
414
414
|
"title": "should emit error if spawn fails",
|
|
415
415
|
"fullTitle": "NodePyATVDeviceEvents start|stopListening() should emit error if spawn fails",
|
|
416
416
|
"timedOut": false,
|
|
417
|
-
"duration":
|
|
417
|
+
"duration": 1,
|
|
418
418
|
"state": "passed",
|
|
419
419
|
"speed": "fast",
|
|
420
420
|
"pass": true,
|
|
@@ -423,8 +423,8 @@
|
|
|
423
423
|
"context": null,
|
|
424
424
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const error = new Error();\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.error(error).end();\n })\n });\n const listener = () => {\n // empty listener\n };\n device.on('update', listener);\n yield new Promise(cb => {\n device.once('error', err => {\n assert.strictEqual(err, error);\n cb(undefined);\n });\n });\n device.off('update', listener);\n});",
|
|
425
425
|
"err": {},
|
|
426
|
-
"uuid": "
|
|
427
|
-
"parentUUID": "
|
|
426
|
+
"uuid": "d8102947-8908-446d-89b5-6728ffa866d4",
|
|
427
|
+
"parentUUID": "87bb32ff-8254-47df-9496-801bf1276e9f",
|
|
428
428
|
"isHook": false,
|
|
429
429
|
"skipped": false
|
|
430
430
|
},
|
|
@@ -432,7 +432,7 @@
|
|
|
432
432
|
"title": "should emit error on stderr data",
|
|
433
433
|
"fullTitle": "NodePyATVDeviceEvents start|stopListening() should emit error on stderr data",
|
|
434
434
|
"timedOut": false,
|
|
435
|
-
"duration":
|
|
435
|
+
"duration": 2,
|
|
436
436
|
"state": "passed",
|
|
437
437
|
"speed": "fast",
|
|
438
438
|
"pass": true,
|
|
@@ -441,8 +441,8 @@
|
|
|
441
441
|
"context": null,
|
|
442
442
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.stderr('Hello World!').end();\n })\n });\n const listener = () => {\n // empty listener\n };\n device.on('update', listener);\n yield new Promise(cb => {\n device.once('error', err => {\n assert.ok(err instanceof Error);\n assert.ok(err.toString().includes('Got stderr output from pyatv: Hello World!'));\n cb(undefined);\n });\n });\n device.off('update', listener);\n});",
|
|
443
443
|
"err": {},
|
|
444
|
-
"uuid": "
|
|
445
|
-
"parentUUID": "
|
|
444
|
+
"uuid": "93e82d07-1a51-400b-bdc9-43ecc54cdabc",
|
|
445
|
+
"parentUUID": "87bb32ff-8254-47df-9496-801bf1276e9f",
|
|
446
446
|
"isHook": false,
|
|
447
447
|
"skipped": false
|
|
448
448
|
},
|
|
@@ -450,7 +450,7 @@
|
|
|
450
450
|
"title": "should emit error if stdout is not valid json",
|
|
451
451
|
"fullTitle": "NodePyATVDeviceEvents start|stopListening() should emit error if stdout is not valid json",
|
|
452
452
|
"timedOut": false,
|
|
453
|
-
"duration":
|
|
453
|
+
"duration": 2,
|
|
454
454
|
"state": "passed",
|
|
455
455
|
"speed": "fast",
|
|
456
456
|
"pass": true,
|
|
@@ -459,8 +459,8 @@
|
|
|
459
459
|
"context": null,
|
|
460
460
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.stdout('#').end();\n })\n });\n const listener = () => {\n // empty listener\n };\n device.on('update', listener);\n yield new Promise(cb => {\n device.once('error', err => {\n assert.ok(err instanceof Error);\n assert.ok(err.toString().includes('Unable to parse stdout json: SyntaxError: ' +\n 'Unexpected token # in JSON at position 0'));\n cb(undefined);\n });\n });\n device.off('update', listener);\n});",
|
|
461
461
|
"err": {},
|
|
462
|
-
"uuid": "
|
|
463
|
-
"parentUUID": "
|
|
462
|
+
"uuid": "03252cd1-cfd2-4d66-8cb9-027aa94e0ad1",
|
|
463
|
+
"parentUUID": "87bb32ff-8254-47df-9496-801bf1276e9f",
|
|
464
464
|
"isHook": false,
|
|
465
465
|
"skipped": false
|
|
466
466
|
},
|
|
@@ -477,30 +477,30 @@
|
|
|
477
477
|
"context": null,
|
|
478
478
|
"code": "",
|
|
479
479
|
"err": {},
|
|
480
|
-
"uuid": "
|
|
481
|
-
"parentUUID": "
|
|
480
|
+
"uuid": "23092ad4-d8f3-49cb-a244-d65b99f9d9e7",
|
|
481
|
+
"parentUUID": "87bb32ff-8254-47df-9496-801bf1276e9f",
|
|
482
482
|
"isHook": false,
|
|
483
483
|
"skipped": false
|
|
484
484
|
}
|
|
485
485
|
],
|
|
486
486
|
"suites": [],
|
|
487
487
|
"passes": [
|
|
488
|
-
"
|
|
489
|
-
"
|
|
490
|
-
"
|
|
488
|
+
"d8102947-8908-446d-89b5-6728ffa866d4",
|
|
489
|
+
"93e82d07-1a51-400b-bdc9-43ecc54cdabc",
|
|
490
|
+
"03252cd1-cfd2-4d66-8cb9-027aa94e0ad1"
|
|
491
491
|
],
|
|
492
492
|
"failures": [],
|
|
493
493
|
"pending": [
|
|
494
|
-
"
|
|
494
|
+
"23092ad4-d8f3-49cb-a244-d65b99f9d9e7"
|
|
495
495
|
],
|
|
496
496
|
"skipped": [],
|
|
497
|
-
"duration":
|
|
497
|
+
"duration": 5,
|
|
498
498
|
"root": false,
|
|
499
499
|
"rootEmpty": false,
|
|
500
500
|
"_timeout": 2000
|
|
501
501
|
},
|
|
502
502
|
{
|
|
503
|
-
"uuid": "
|
|
503
|
+
"uuid": "63c8774a-a822-49c0-bf6b-1e7b0f9a296b",
|
|
504
504
|
"title": "addListener() / removeAllListeners()",
|
|
505
505
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
506
506
|
"file": "/test/device-events.ts",
|
|
@@ -511,7 +511,7 @@
|
|
|
511
511
|
"title": "should work without any exceptions",
|
|
512
512
|
"fullTitle": "NodePyATVDeviceEvents addListener() / removeAllListeners() should work without any exceptions",
|
|
513
513
|
"timedOut": false,
|
|
514
|
-
"duration":
|
|
514
|
+
"duration": 0,
|
|
515
515
|
"state": "passed",
|
|
516
516
|
"speed": "fast",
|
|
517
517
|
"pass": true,
|
|
@@ -520,26 +520,26 @@
|
|
|
520
520
|
"context": null,
|
|
521
521
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.onStdIn(() => cp.end());\n cp.stdout({\n result: 'success',\n title: 'My Movie'\n });\n })\n });\n const listener = () => {\n // empty listener\n };\n device.addListener('update', listener);\n device.removeAllListeners('update');\n});",
|
|
522
522
|
"err": {},
|
|
523
|
-
"uuid": "
|
|
524
|
-
"parentUUID": "
|
|
523
|
+
"uuid": "3f1f9a1d-cdce-4eaf-9ea3-3354970bc868",
|
|
524
|
+
"parentUUID": "63c8774a-a822-49c0-bf6b-1e7b0f9a296b",
|
|
525
525
|
"isHook": false,
|
|
526
526
|
"skipped": false
|
|
527
527
|
}
|
|
528
528
|
],
|
|
529
529
|
"suites": [],
|
|
530
530
|
"passes": [
|
|
531
|
-
"
|
|
531
|
+
"3f1f9a1d-cdce-4eaf-9ea3-3354970bc868"
|
|
532
532
|
],
|
|
533
533
|
"failures": [],
|
|
534
534
|
"pending": [],
|
|
535
535
|
"skipped": [],
|
|
536
|
-
"duration":
|
|
536
|
+
"duration": 0,
|
|
537
537
|
"root": false,
|
|
538
538
|
"rootEmpty": false,
|
|
539
539
|
"_timeout": 2000
|
|
540
540
|
},
|
|
541
541
|
{
|
|
542
|
-
"uuid": "
|
|
542
|
+
"uuid": "66ea85af-044d-4803-bb20-a054b5dc94d8",
|
|
543
543
|
"title": "emit()",
|
|
544
544
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
545
545
|
"file": "/test/device-events.ts",
|
|
@@ -559,15 +559,15 @@
|
|
|
559
559
|
"context": null,
|
|
560
560
|
"code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.onStdIn(() => cp.end());\n })\n});\nconst event = new NodePyATVDeviceEvent({\n key: 'dateTime',\n old: 'foo',\n new: 'bar',\n device\n});\nlet executions = 0;\ndevice.once('test', (e) => {\n executions++;\n assert.strictEqual(e, event);\n assert.strictEqual(executions, 1);\n done();\n});\ndevice.emit('test', event);",
|
|
561
561
|
"err": {},
|
|
562
|
-
"uuid": "
|
|
563
|
-
"parentUUID": "
|
|
562
|
+
"uuid": "5dd207a3-02a2-4f7c-8de1-db86f8e1c050",
|
|
563
|
+
"parentUUID": "66ea85af-044d-4803-bb20-a054b5dc94d8",
|
|
564
564
|
"isHook": false,
|
|
565
565
|
"skipped": false
|
|
566
566
|
}
|
|
567
567
|
],
|
|
568
568
|
"suites": [],
|
|
569
569
|
"passes": [
|
|
570
|
-
"
|
|
570
|
+
"5dd207a3-02a2-4f7c-8de1-db86f8e1c050"
|
|
571
571
|
],
|
|
572
572
|
"failures": [],
|
|
573
573
|
"pending": [],
|
|
@@ -578,7 +578,7 @@
|
|
|
578
578
|
"_timeout": 2000
|
|
579
579
|
},
|
|
580
580
|
{
|
|
581
|
-
"uuid": "
|
|
581
|
+
"uuid": "c822dee5-4175-4c04-bcbb-4b4291caf15d",
|
|
582
582
|
"title": "eventNames()",
|
|
583
583
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
584
584
|
"file": "/test/device-events.ts",
|
|
@@ -589,7 +589,7 @@
|
|
|
589
589
|
"title": "should work",
|
|
590
590
|
"fullTitle": "NodePyATVDeviceEvents eventNames() should work",
|
|
591
591
|
"timedOut": false,
|
|
592
|
-
"duration":
|
|
592
|
+
"duration": 0,
|
|
593
593
|
"state": "passed",
|
|
594
594
|
"speed": "fast",
|
|
595
595
|
"pass": true,
|
|
@@ -598,26 +598,26 @@
|
|
|
598
598
|
"context": null,
|
|
599
599
|
"code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.onStdIn(() => cp.end());\n })\n});\nconst listener = () => {\n // ignore\n};\ndevice.on('test', listener);\nassert.deepStrictEqual(device.eventNames(), ['test']);\ndevice.off('test', listener);",
|
|
600
600
|
"err": {},
|
|
601
|
-
"uuid": "
|
|
602
|
-
"parentUUID": "
|
|
601
|
+
"uuid": "37193c7f-db1d-48c7-9af6-83e94cdf536d",
|
|
602
|
+
"parentUUID": "c822dee5-4175-4c04-bcbb-4b4291caf15d",
|
|
603
603
|
"isHook": false,
|
|
604
604
|
"skipped": false
|
|
605
605
|
}
|
|
606
606
|
],
|
|
607
607
|
"suites": [],
|
|
608
608
|
"passes": [
|
|
609
|
-
"
|
|
609
|
+
"37193c7f-db1d-48c7-9af6-83e94cdf536d"
|
|
610
610
|
],
|
|
611
611
|
"failures": [],
|
|
612
612
|
"pending": [],
|
|
613
613
|
"skipped": [],
|
|
614
|
-
"duration":
|
|
614
|
+
"duration": 0,
|
|
615
615
|
"root": false,
|
|
616
616
|
"rootEmpty": false,
|
|
617
617
|
"_timeout": 2000
|
|
618
618
|
},
|
|
619
619
|
{
|
|
620
|
-
"uuid": "
|
|
620
|
+
"uuid": "2812b534-a752-46bf-8dd5-6dcdefba7107",
|
|
621
621
|
"title": "getMaxListeners()",
|
|
622
622
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
623
623
|
"file": "/test/device-events.ts",
|
|
@@ -637,15 +637,15 @@
|
|
|
637
637
|
"context": null,
|
|
638
638
|
"code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.onStdIn(() => cp.end());\n })\n});\nconst result = device.getMaxListeners();\nassert.ok(typeof result, 'number');\nassert.ok(result >= 10);",
|
|
639
639
|
"err": {},
|
|
640
|
-
"uuid": "
|
|
641
|
-
"parentUUID": "
|
|
640
|
+
"uuid": "04dd606b-01ec-406d-81d9-8aa94ca10eea",
|
|
641
|
+
"parentUUID": "2812b534-a752-46bf-8dd5-6dcdefba7107",
|
|
642
642
|
"isHook": false,
|
|
643
643
|
"skipped": false
|
|
644
644
|
}
|
|
645
645
|
],
|
|
646
646
|
"suites": [],
|
|
647
647
|
"passes": [
|
|
648
|
-
"
|
|
648
|
+
"04dd606b-01ec-406d-81d9-8aa94ca10eea"
|
|
649
649
|
],
|
|
650
650
|
"failures": [],
|
|
651
651
|
"pending": [],
|
|
@@ -656,7 +656,7 @@
|
|
|
656
656
|
"_timeout": 2000
|
|
657
657
|
},
|
|
658
658
|
{
|
|
659
|
-
"uuid": "
|
|
659
|
+
"uuid": "59f7c1bc-8b0e-405d-bae5-acb09746f267",
|
|
660
660
|
"title": "listenerCount()",
|
|
661
661
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
662
662
|
"file": "/test/device-events.ts",
|
|
@@ -676,15 +676,15 @@
|
|
|
676
676
|
"context": null,
|
|
677
677
|
"code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.onStdIn(() => cp.end());\n })\n});\nconst listener = () => {\n // ignore\n};\nassert.deepStrictEqual(device.listenerCount('test'), 0);\ndevice.on('test', listener);\nassert.deepStrictEqual(device.listenerCount('test'), 1);\ndevice.off('test', listener);",
|
|
678
678
|
"err": {},
|
|
679
|
-
"uuid": "
|
|
680
|
-
"parentUUID": "
|
|
679
|
+
"uuid": "143b6257-cc57-4532-a4d2-147b37f433e8",
|
|
680
|
+
"parentUUID": "59f7c1bc-8b0e-405d-bae5-acb09746f267",
|
|
681
681
|
"isHook": false,
|
|
682
682
|
"skipped": false
|
|
683
683
|
}
|
|
684
684
|
],
|
|
685
685
|
"suites": [],
|
|
686
686
|
"passes": [
|
|
687
|
-
"
|
|
687
|
+
"143b6257-cc57-4532-a4d2-147b37f433e8"
|
|
688
688
|
],
|
|
689
689
|
"failures": [],
|
|
690
690
|
"pending": [],
|
|
@@ -695,7 +695,7 @@
|
|
|
695
695
|
"_timeout": 2000
|
|
696
696
|
},
|
|
697
697
|
{
|
|
698
|
-
"uuid": "
|
|
698
|
+
"uuid": "2853ae14-9c17-4c66-91e1-bd8892d54621",
|
|
699
699
|
"title": "listeners()",
|
|
700
700
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
701
701
|
"file": "/test/device-events.ts",
|
|
@@ -715,15 +715,15 @@
|
|
|
715
715
|
"context": null,
|
|
716
716
|
"code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.onStdIn(() => cp.end());\n })\n});\nconst listener = () => {\n // ignore\n};\nassert.deepStrictEqual(device.listeners('test').length, 0);\ndevice.on('test', listener);\nassert.deepStrictEqual(device.listeners('test').length, 1);\nassert.deepStrictEqual(device.listeners('test')[0], listener);\ndevice.off('test', listener);",
|
|
717
717
|
"err": {},
|
|
718
|
-
"uuid": "
|
|
719
|
-
"parentUUID": "
|
|
718
|
+
"uuid": "8b2a3230-9b09-4eb9-aca3-fb89fa7e9cdd",
|
|
719
|
+
"parentUUID": "2853ae14-9c17-4c66-91e1-bd8892d54621",
|
|
720
720
|
"isHook": false,
|
|
721
721
|
"skipped": false
|
|
722
722
|
}
|
|
723
723
|
],
|
|
724
724
|
"suites": [],
|
|
725
725
|
"passes": [
|
|
726
|
-
"
|
|
726
|
+
"8b2a3230-9b09-4eb9-aca3-fb89fa7e9cdd"
|
|
727
727
|
],
|
|
728
728
|
"failures": [],
|
|
729
729
|
"pending": [],
|
|
@@ -734,7 +734,7 @@
|
|
|
734
734
|
"_timeout": 2000
|
|
735
735
|
},
|
|
736
736
|
{
|
|
737
|
-
"uuid": "
|
|
737
|
+
"uuid": "b6c4990f-5394-4acd-aff1-bd68c1116c52",
|
|
738
738
|
"title": "prependListener()",
|
|
739
739
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
740
740
|
"file": "/test/device-events.ts",
|
|
@@ -754,15 +754,15 @@
|
|
|
754
754
|
"context": null,
|
|
755
755
|
"code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.onStdIn(() => cp.end());\n cp.stdout({\n result: 'success',\n title: 'My Movie'\n });\n })\n});\nconst listener = () => {\n device.removeAllListeners('update');\n done();\n};\ndevice.prependListener('update', listener);",
|
|
756
756
|
"err": {},
|
|
757
|
-
"uuid": "
|
|
758
|
-
"parentUUID": "
|
|
757
|
+
"uuid": "1dcc3d8d-2ba7-4f71-a43f-6e325e05b358",
|
|
758
|
+
"parentUUID": "b6c4990f-5394-4acd-aff1-bd68c1116c52",
|
|
759
759
|
"isHook": false,
|
|
760
760
|
"skipped": false
|
|
761
761
|
}
|
|
762
762
|
],
|
|
763
763
|
"suites": [],
|
|
764
764
|
"passes": [
|
|
765
|
-
"
|
|
765
|
+
"1dcc3d8d-2ba7-4f71-a43f-6e325e05b358"
|
|
766
766
|
],
|
|
767
767
|
"failures": [],
|
|
768
768
|
"pending": [],
|
|
@@ -773,7 +773,7 @@
|
|
|
773
773
|
"_timeout": 2000
|
|
774
774
|
},
|
|
775
775
|
{
|
|
776
|
-
"uuid": "
|
|
776
|
+
"uuid": "2bb88472-917f-457b-af79-00db9de2766b",
|
|
777
777
|
"title": "prependOnceListener()",
|
|
778
778
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
779
779
|
"file": "/test/device-events.ts",
|
|
@@ -784,7 +784,7 @@
|
|
|
784
784
|
"title": "should work",
|
|
785
785
|
"fullTitle": "NodePyATVDeviceEvents prependOnceListener() should work",
|
|
786
786
|
"timedOut": false,
|
|
787
|
-
"duration":
|
|
787
|
+
"duration": 1,
|
|
788
788
|
"state": "passed",
|
|
789
789
|
"speed": "fast",
|
|
790
790
|
"pass": true,
|
|
@@ -793,26 +793,26 @@
|
|
|
793
793
|
"context": null,
|
|
794
794
|
"code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.onStdIn(() => cp.end());\n cp.stdout({\n result: 'success',\n title: 'My Movie'\n });\n })\n});\ndevice.prependOnceListener('update', () => done());",
|
|
795
795
|
"err": {},
|
|
796
|
-
"uuid": "
|
|
797
|
-
"parentUUID": "
|
|
796
|
+
"uuid": "7997cad5-828c-41a8-b440-eccfa8433983",
|
|
797
|
+
"parentUUID": "2bb88472-917f-457b-af79-00db9de2766b",
|
|
798
798
|
"isHook": false,
|
|
799
799
|
"skipped": false
|
|
800
800
|
}
|
|
801
801
|
],
|
|
802
802
|
"suites": [],
|
|
803
803
|
"passes": [
|
|
804
|
-
"
|
|
804
|
+
"7997cad5-828c-41a8-b440-eccfa8433983"
|
|
805
805
|
],
|
|
806
806
|
"failures": [],
|
|
807
807
|
"pending": [],
|
|
808
808
|
"skipped": [],
|
|
809
|
-
"duration":
|
|
809
|
+
"duration": 1,
|
|
810
810
|
"root": false,
|
|
811
811
|
"rootEmpty": false,
|
|
812
812
|
"_timeout": 2000
|
|
813
813
|
},
|
|
814
814
|
{
|
|
815
|
-
"uuid": "
|
|
815
|
+
"uuid": "5901cc70-e555-4cd0-8878-4c0a3d00ad02",
|
|
816
816
|
"title": "rawListeners()",
|
|
817
817
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
818
818
|
"file": "/test/device-events.ts",
|
|
@@ -823,7 +823,7 @@
|
|
|
823
823
|
"title": "should work",
|
|
824
824
|
"fullTitle": "NodePyATVDeviceEvents rawListeners() should work",
|
|
825
825
|
"timedOut": false,
|
|
826
|
-
"duration":
|
|
826
|
+
"duration": 0,
|
|
827
827
|
"state": "passed",
|
|
828
828
|
"speed": "fast",
|
|
829
829
|
"pass": true,
|
|
@@ -832,26 +832,26 @@
|
|
|
832
832
|
"context": null,
|
|
833
833
|
"code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.onStdIn(() => cp.end());\n })\n});\nconst listener = () => {\n // ignore\n};\nassert.deepStrictEqual(device.rawListeners('test').length, 0);\ndevice.on('test', listener);\nassert.deepStrictEqual(device.rawListeners('test').length, 1);\nassert.deepStrictEqual(device.rawListeners('test')[0], listener);\ndevice.off('test', listener);",
|
|
834
834
|
"err": {},
|
|
835
|
-
"uuid": "
|
|
836
|
-
"parentUUID": "
|
|
835
|
+
"uuid": "503dc463-f2b3-4494-9daa-29302cb641d5",
|
|
836
|
+
"parentUUID": "5901cc70-e555-4cd0-8878-4c0a3d00ad02",
|
|
837
837
|
"isHook": false,
|
|
838
838
|
"skipped": false
|
|
839
839
|
}
|
|
840
840
|
],
|
|
841
841
|
"suites": [],
|
|
842
842
|
"passes": [
|
|
843
|
-
"
|
|
843
|
+
"503dc463-f2b3-4494-9daa-29302cb641d5"
|
|
844
844
|
],
|
|
845
845
|
"failures": [],
|
|
846
846
|
"pending": [],
|
|
847
847
|
"skipped": [],
|
|
848
|
-
"duration":
|
|
848
|
+
"duration": 0,
|
|
849
849
|
"root": false,
|
|
850
850
|
"rootEmpty": false,
|
|
851
851
|
"_timeout": 2000
|
|
852
852
|
},
|
|
853
853
|
{
|
|
854
|
-
"uuid": "
|
|
854
|
+
"uuid": "92a978de-b936-4324-afa0-2e98cd29ea77",
|
|
855
855
|
"title": "removeListener()",
|
|
856
856
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
857
857
|
"file": "/test/device-events.ts",
|
|
@@ -871,15 +871,15 @@
|
|
|
871
871
|
"context": null,
|
|
872
872
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.onStdIn(() => cp.end());\n cp.stdout({\n result: 'success',\n title: 'My Movie'\n });\n })\n });\n const listener = () => {\n // empty listener\n };\n device.addListener('update', listener);\n assert.deepStrictEqual(device.listenerCount('update'), 1);\n device.removeListener('update', listener);\n assert.deepStrictEqual(device.listenerCount('update'), 0);\n});",
|
|
873
873
|
"err": {},
|
|
874
|
-
"uuid": "
|
|
875
|
-
"parentUUID": "
|
|
874
|
+
"uuid": "16c2d513-1020-4eb8-bf3a-b5463550ff2d",
|
|
875
|
+
"parentUUID": "92a978de-b936-4324-afa0-2e98cd29ea77",
|
|
876
876
|
"isHook": false,
|
|
877
877
|
"skipped": false
|
|
878
878
|
}
|
|
879
879
|
],
|
|
880
880
|
"suites": [],
|
|
881
881
|
"passes": [
|
|
882
|
-
"
|
|
882
|
+
"16c2d513-1020-4eb8-bf3a-b5463550ff2d"
|
|
883
883
|
],
|
|
884
884
|
"failures": [],
|
|
885
885
|
"pending": [],
|
|
@@ -900,7 +900,7 @@
|
|
|
900
900
|
"_timeout": 2000
|
|
901
901
|
},
|
|
902
902
|
{
|
|
903
|
-
"uuid": "
|
|
903
|
+
"uuid": "836533ae-1988-4823-8a73-a7a56ecf79f9",
|
|
904
904
|
"title": "NodePyATVDevice",
|
|
905
905
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
906
906
|
"file": "/test/device.ts",
|
|
@@ -909,7 +909,7 @@
|
|
|
909
909
|
"tests": [],
|
|
910
910
|
"suites": [
|
|
911
911
|
{
|
|
912
|
-
"uuid": "
|
|
912
|
+
"uuid": "a87fb88e-f1b9-4316-9541-355ca7129bf1",
|
|
913
913
|
"title": "get name()",
|
|
914
914
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
915
915
|
"file": "/test/device.ts",
|
|
@@ -929,15 +929,15 @@
|
|
|
929
929
|
"context": null,
|
|
930
930
|
"code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2'\n});\nassert.strictEqual(device.name, 'My Testdevice');",
|
|
931
931
|
"err": {},
|
|
932
|
-
"uuid": "
|
|
933
|
-
"parentUUID": "
|
|
932
|
+
"uuid": "c22e60fa-020e-4eeb-8a9e-67a8089ae961",
|
|
933
|
+
"parentUUID": "a87fb88e-f1b9-4316-9541-355ca7129bf1",
|
|
934
934
|
"isHook": false,
|
|
935
935
|
"skipped": false
|
|
936
936
|
}
|
|
937
937
|
],
|
|
938
938
|
"suites": [],
|
|
939
939
|
"passes": [
|
|
940
|
-
"
|
|
940
|
+
"c22e60fa-020e-4eeb-8a9e-67a8089ae961"
|
|
941
941
|
],
|
|
942
942
|
"failures": [],
|
|
943
943
|
"pending": [],
|
|
@@ -948,7 +948,7 @@
|
|
|
948
948
|
"_timeout": 2000
|
|
949
949
|
},
|
|
950
950
|
{
|
|
951
|
-
"uuid": "
|
|
951
|
+
"uuid": "2a6a4b4c-d32f-434f-9341-31c271c936a0",
|
|
952
952
|
"title": "get host()",
|
|
953
953
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
954
954
|
"file": "/test/device.ts",
|
|
@@ -968,15 +968,15 @@
|
|
|
968
968
|
"context": null,
|
|
969
969
|
"code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2'\n});\nassert.strictEqual(device.host, '192.168.178.2');",
|
|
970
970
|
"err": {},
|
|
971
|
-
"uuid": "
|
|
972
|
-
"parentUUID": "
|
|
971
|
+
"uuid": "c8046d5d-27fc-42fa-92da-ec4c218907e5",
|
|
972
|
+
"parentUUID": "2a6a4b4c-d32f-434f-9341-31c271c936a0",
|
|
973
973
|
"isHook": false,
|
|
974
974
|
"skipped": false
|
|
975
975
|
}
|
|
976
976
|
],
|
|
977
977
|
"suites": [],
|
|
978
978
|
"passes": [
|
|
979
|
-
"
|
|
979
|
+
"c8046d5d-27fc-42fa-92da-ec4c218907e5"
|
|
980
980
|
],
|
|
981
981
|
"failures": [],
|
|
982
982
|
"pending": [],
|
|
@@ -987,7 +987,7 @@
|
|
|
987
987
|
"_timeout": 2000
|
|
988
988
|
},
|
|
989
989
|
{
|
|
990
|
-
"uuid": "
|
|
990
|
+
"uuid": "fa8911dc-573c-4366-84e0-6fe11ec677bb",
|
|
991
991
|
"title": "get id()",
|
|
992
992
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
993
993
|
"file": "/test/device.ts",
|
|
@@ -1007,15 +1007,15 @@
|
|
|
1007
1007
|
"context": null,
|
|
1008
1008
|
"code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n id: '*****'\n});\nassert.strictEqual(device.id, '*****');",
|
|
1009
1009
|
"err": {},
|
|
1010
|
-
"uuid": "
|
|
1011
|
-
"parentUUID": "
|
|
1010
|
+
"uuid": "8fb5c723-f919-4582-84f3-22d4a15f0137",
|
|
1011
|
+
"parentUUID": "fa8911dc-573c-4366-84e0-6fe11ec677bb",
|
|
1012
1012
|
"isHook": false,
|
|
1013
1013
|
"skipped": false
|
|
1014
1014
|
}
|
|
1015
1015
|
],
|
|
1016
1016
|
"suites": [],
|
|
1017
1017
|
"passes": [
|
|
1018
|
-
"
|
|
1018
|
+
"8fb5c723-f919-4582-84f3-22d4a15f0137"
|
|
1019
1019
|
],
|
|
1020
1020
|
"failures": [],
|
|
1021
1021
|
"pending": [],
|
|
@@ -1026,7 +1026,7 @@
|
|
|
1026
1026
|
"_timeout": 2000
|
|
1027
1027
|
},
|
|
1028
1028
|
{
|
|
1029
|
-
"uuid": "
|
|
1029
|
+
"uuid": "d42b269b-5355-4890-af8c-88b9c7ea5f29",
|
|
1030
1030
|
"title": "get protocol()",
|
|
1031
1031
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1032
1032
|
"file": "/test/device.ts",
|
|
@@ -1037,7 +1037,7 @@
|
|
|
1037
1037
|
"title": "should return the protocol",
|
|
1038
1038
|
"fullTitle": "NodePyATVDevice get protocol() should return the protocol",
|
|
1039
1039
|
"timedOut": false,
|
|
1040
|
-
"duration":
|
|
1040
|
+
"duration": 1,
|
|
1041
1041
|
"state": "passed",
|
|
1042
1042
|
"speed": "fast",
|
|
1043
1043
|
"pass": true,
|
|
@@ -1046,26 +1046,26 @@
|
|
|
1046
1046
|
"context": null,
|
|
1047
1047
|
"code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n protocol: NodePyATVProtocol.airplay\n});\nassert.strictEqual(device.protocol, NodePyATVProtocol.airplay);",
|
|
1048
1048
|
"err": {},
|
|
1049
|
-
"uuid": "
|
|
1050
|
-
"parentUUID": "
|
|
1049
|
+
"uuid": "6463bbfa-ba21-4f9d-8e80-5996cda9e1d5",
|
|
1050
|
+
"parentUUID": "d42b269b-5355-4890-af8c-88b9c7ea5f29",
|
|
1051
1051
|
"isHook": false,
|
|
1052
1052
|
"skipped": false
|
|
1053
1053
|
}
|
|
1054
1054
|
],
|
|
1055
1055
|
"suites": [],
|
|
1056
1056
|
"passes": [
|
|
1057
|
-
"
|
|
1057
|
+
"6463bbfa-ba21-4f9d-8e80-5996cda9e1d5"
|
|
1058
1058
|
],
|
|
1059
1059
|
"failures": [],
|
|
1060
1060
|
"pending": [],
|
|
1061
1061
|
"skipped": [],
|
|
1062
|
-
"duration":
|
|
1062
|
+
"duration": 1,
|
|
1063
1063
|
"root": false,
|
|
1064
1064
|
"rootEmpty": false,
|
|
1065
1065
|
"_timeout": 2000
|
|
1066
1066
|
},
|
|
1067
1067
|
{
|
|
1068
|
-
"uuid": "
|
|
1068
|
+
"uuid": "e6498f99-2eb5-4629-a2f5-b12d0854d3a9",
|
|
1069
1069
|
"title": "get model()",
|
|
1070
1070
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1071
1071
|
"file": "/test/device.ts",
|
|
@@ -1076,7 +1076,7 @@
|
|
|
1076
1076
|
"title": "should return the model if set by scan",
|
|
1077
1077
|
"fullTitle": "NodePyATVDevice get model() should return the model if set by scan",
|
|
1078
1078
|
"timedOut": false,
|
|
1079
|
-
"duration":
|
|
1079
|
+
"duration": 0,
|
|
1080
1080
|
"state": "passed",
|
|
1081
1081
|
"speed": "fast",
|
|
1082
1082
|
"pass": true,
|
|
@@ -1085,8 +1085,8 @@
|
|
|
1085
1085
|
"context": null,
|
|
1086
1086
|
"code": "const device = new NodePyATVDevice({\n name: 'Vardagsrum',\n host: '10.0.10.81',\n id: 'xxx',\n model: 'Gen4K'\n});\nassert.strictEqual(device.model, 'Gen4K');",
|
|
1087
1087
|
"err": {},
|
|
1088
|
-
"uuid": "
|
|
1089
|
-
"parentUUID": "
|
|
1088
|
+
"uuid": "6eddb22f-34da-4f7c-b6e0-303f9d341b1f",
|
|
1089
|
+
"parentUUID": "e6498f99-2eb5-4629-a2f5-b12d0854d3a9",
|
|
1090
1090
|
"isHook": false,
|
|
1091
1091
|
"skipped": false
|
|
1092
1092
|
},
|
|
@@ -1103,27 +1103,27 @@
|
|
|
1103
1103
|
"context": null,
|
|
1104
1104
|
"code": "const device = new NodePyATVDevice({\n name: 'Vardagsrum',\n host: '10.0.10.81'\n});\nassert.strictEqual(device.model, undefined);",
|
|
1105
1105
|
"err": {},
|
|
1106
|
-
"uuid": "
|
|
1107
|
-
"parentUUID": "
|
|
1106
|
+
"uuid": "f67693ed-ee6e-4912-8a70-6b0eab3f707a",
|
|
1107
|
+
"parentUUID": "e6498f99-2eb5-4629-a2f5-b12d0854d3a9",
|
|
1108
1108
|
"isHook": false,
|
|
1109
1109
|
"skipped": false
|
|
1110
1110
|
}
|
|
1111
1111
|
],
|
|
1112
1112
|
"suites": [],
|
|
1113
1113
|
"passes": [
|
|
1114
|
-
"
|
|
1115
|
-
"
|
|
1114
|
+
"6eddb22f-34da-4f7c-b6e0-303f9d341b1f",
|
|
1115
|
+
"f67693ed-ee6e-4912-8a70-6b0eab3f707a"
|
|
1116
1116
|
],
|
|
1117
1117
|
"failures": [],
|
|
1118
1118
|
"pending": [],
|
|
1119
1119
|
"skipped": [],
|
|
1120
|
-
"duration":
|
|
1120
|
+
"duration": 0,
|
|
1121
1121
|
"root": false,
|
|
1122
1122
|
"rootEmpty": false,
|
|
1123
1123
|
"_timeout": 2000
|
|
1124
1124
|
},
|
|
1125
1125
|
{
|
|
1126
|
-
"uuid": "
|
|
1126
|
+
"uuid": "eb5713c1-309b-4cc4-a358-6dfae3398e54",
|
|
1127
1127
|
"title": "get modelName()",
|
|
1128
1128
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1129
1129
|
"file": "/test/device.ts",
|
|
@@ -1143,8 +1143,8 @@
|
|
|
1143
1143
|
"context": null,
|
|
1144
1144
|
"code": "const device = new NodePyATVDevice({\n name: 'Vardagsrum',\n host: '10.0.10.81',\n id: 'xxx',\n modelName: 'Apple TV 4K'\n});\nassert.strictEqual(device.modelName, 'Apple TV 4K');",
|
|
1145
1145
|
"err": {},
|
|
1146
|
-
"uuid": "
|
|
1147
|
-
"parentUUID": "
|
|
1146
|
+
"uuid": "5f3f3260-1ed3-4126-9ac6-1297ad1d74eb",
|
|
1147
|
+
"parentUUID": "eb5713c1-309b-4cc4-a358-6dfae3398e54",
|
|
1148
1148
|
"isHook": false,
|
|
1149
1149
|
"skipped": false
|
|
1150
1150
|
},
|
|
@@ -1161,16 +1161,16 @@
|
|
|
1161
1161
|
"context": null,
|
|
1162
1162
|
"code": "const device = new NodePyATVDevice({\n name: 'Vardagsrum',\n host: '10.0.10.81'\n});\nassert.strictEqual(device.modelName, undefined);",
|
|
1163
1163
|
"err": {},
|
|
1164
|
-
"uuid": "
|
|
1165
|
-
"parentUUID": "
|
|
1164
|
+
"uuid": "2a444b3d-47e3-40f2-8867-ad8965dcc35c",
|
|
1165
|
+
"parentUUID": "eb5713c1-309b-4cc4-a358-6dfae3398e54",
|
|
1166
1166
|
"isHook": false,
|
|
1167
1167
|
"skipped": false
|
|
1168
1168
|
}
|
|
1169
1169
|
],
|
|
1170
1170
|
"suites": [],
|
|
1171
1171
|
"passes": [
|
|
1172
|
-
"
|
|
1173
|
-
"
|
|
1172
|
+
"5f3f3260-1ed3-4126-9ac6-1297ad1d74eb",
|
|
1173
|
+
"2a444b3d-47e3-40f2-8867-ad8965dcc35c"
|
|
1174
1174
|
],
|
|
1175
1175
|
"failures": [],
|
|
1176
1176
|
"pending": [],
|
|
@@ -1181,7 +1181,7 @@
|
|
|
1181
1181
|
"_timeout": 2000
|
|
1182
1182
|
},
|
|
1183
1183
|
{
|
|
1184
|
-
"uuid": "
|
|
1184
|
+
"uuid": "21c59f49-4570-453b-aa01-12f8dc3c41ac",
|
|
1185
1185
|
"title": "get os()",
|
|
1186
1186
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1187
1187
|
"file": "/test/device.ts",
|
|
@@ -1201,8 +1201,8 @@
|
|
|
1201
1201
|
"context": null,
|
|
1202
1202
|
"code": "const device = new NodePyATVDevice({\n name: 'Vardagsrum',\n host: '10.0.10.81',\n id: 'xxx',\n os: 'TvOS'\n});\nassert.strictEqual(device.os, 'TvOS');",
|
|
1203
1203
|
"err": {},
|
|
1204
|
-
"uuid": "
|
|
1205
|
-
"parentUUID": "
|
|
1204
|
+
"uuid": "f7138ec5-d324-4c81-9ec2-91e8d70b517a",
|
|
1205
|
+
"parentUUID": "21c59f49-4570-453b-aa01-12f8dc3c41ac",
|
|
1206
1206
|
"isHook": false,
|
|
1207
1207
|
"skipped": false
|
|
1208
1208
|
},
|
|
@@ -1219,16 +1219,16 @@
|
|
|
1219
1219
|
"context": null,
|
|
1220
1220
|
"code": "const device = new NodePyATVDevice({\n name: 'Vardagsrum',\n host: '10.0.10.81'\n});\nassert.strictEqual(device.os, undefined);",
|
|
1221
1221
|
"err": {},
|
|
1222
|
-
"uuid": "
|
|
1223
|
-
"parentUUID": "
|
|
1222
|
+
"uuid": "1034d80d-5d37-444b-9ac1-ea8c9256194f",
|
|
1223
|
+
"parentUUID": "21c59f49-4570-453b-aa01-12f8dc3c41ac",
|
|
1224
1224
|
"isHook": false,
|
|
1225
1225
|
"skipped": false
|
|
1226
1226
|
}
|
|
1227
1227
|
],
|
|
1228
1228
|
"suites": [],
|
|
1229
1229
|
"passes": [
|
|
1230
|
-
"
|
|
1231
|
-
"
|
|
1230
|
+
"f7138ec5-d324-4c81-9ec2-91e8d70b517a",
|
|
1231
|
+
"1034d80d-5d37-444b-9ac1-ea8c9256194f"
|
|
1232
1232
|
],
|
|
1233
1233
|
"failures": [],
|
|
1234
1234
|
"pending": [],
|
|
@@ -1239,7 +1239,7 @@
|
|
|
1239
1239
|
"_timeout": 2000
|
|
1240
1240
|
},
|
|
1241
1241
|
{
|
|
1242
|
-
"uuid": "
|
|
1242
|
+
"uuid": "e06dbf0d-2399-4da0-bf6e-2d50c2b94bc0",
|
|
1243
1243
|
"title": "get version()",
|
|
1244
1244
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1245
1245
|
"file": "/test/device.ts",
|
|
@@ -1259,8 +1259,8 @@
|
|
|
1259
1259
|
"context": null,
|
|
1260
1260
|
"code": "const device = new NodePyATVDevice({\n name: 'Vardagsrum',\n host: '10.0.10.81',\n id: 'xxx',\n version: '15.5.1'\n});\nassert.strictEqual(device.version, '15.5.1');",
|
|
1261
1261
|
"err": {},
|
|
1262
|
-
"uuid": "
|
|
1263
|
-
"parentUUID": "
|
|
1262
|
+
"uuid": "5f3bc300-99ba-4c2c-8dcd-30c9d7b18e9d",
|
|
1263
|
+
"parentUUID": "e06dbf0d-2399-4da0-bf6e-2d50c2b94bc0",
|
|
1264
1264
|
"isHook": false,
|
|
1265
1265
|
"skipped": false
|
|
1266
1266
|
},
|
|
@@ -1268,7 +1268,7 @@
|
|
|
1268
1268
|
"title": "should return undefined otherwise",
|
|
1269
1269
|
"fullTitle": "NodePyATVDevice get version() should return undefined otherwise",
|
|
1270
1270
|
"timedOut": false,
|
|
1271
|
-
"duration":
|
|
1271
|
+
"duration": 0,
|
|
1272
1272
|
"state": "passed",
|
|
1273
1273
|
"speed": "fast",
|
|
1274
1274
|
"pass": true,
|
|
@@ -1277,27 +1277,27 @@
|
|
|
1277
1277
|
"context": null,
|
|
1278
1278
|
"code": "const device = new NodePyATVDevice({\n name: 'Vardagsrum',\n host: '10.0.10.81'\n});\nassert.strictEqual(device.version, undefined);",
|
|
1279
1279
|
"err": {},
|
|
1280
|
-
"uuid": "
|
|
1281
|
-
"parentUUID": "
|
|
1280
|
+
"uuid": "784b1c46-a7c0-44e2-a157-8292199ae9ad",
|
|
1281
|
+
"parentUUID": "e06dbf0d-2399-4da0-bf6e-2d50c2b94bc0",
|
|
1282
1282
|
"isHook": false,
|
|
1283
1283
|
"skipped": false
|
|
1284
1284
|
}
|
|
1285
1285
|
],
|
|
1286
1286
|
"suites": [],
|
|
1287
1287
|
"passes": [
|
|
1288
|
-
"
|
|
1289
|
-
"
|
|
1288
|
+
"5f3bc300-99ba-4c2c-8dcd-30c9d7b18e9d",
|
|
1289
|
+
"784b1c46-a7c0-44e2-a157-8292199ae9ad"
|
|
1290
1290
|
],
|
|
1291
1291
|
"failures": [],
|
|
1292
1292
|
"pending": [],
|
|
1293
1293
|
"skipped": [],
|
|
1294
|
-
"duration":
|
|
1294
|
+
"duration": 0,
|
|
1295
1295
|
"root": false,
|
|
1296
1296
|
"rootEmpty": false,
|
|
1297
1297
|
"_timeout": 2000
|
|
1298
1298
|
},
|
|
1299
1299
|
{
|
|
1300
|
-
"uuid": "
|
|
1300
|
+
"uuid": "7b098050-ea05-4f8b-8322-fb84fb20f49f",
|
|
1301
1301
|
"title": "get services()",
|
|
1302
1302
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1303
1303
|
"file": "/test/device.ts",
|
|
@@ -1317,8 +1317,8 @@
|
|
|
1317
1317
|
"context": null,
|
|
1318
1318
|
"code": "const device = new NodePyATVDevice({\n name: 'Vardagsrum',\n host: '10.0.10.81',\n id: 'xxx',\n services: [\n {\n protocol: NodePyATVProtocol.mrp,\n port: 49152\n },\n {\n protocol: NodePyATVProtocol.airplay,\n port: 7000\n }\n ]\n});\nassert.deepStrictEqual(device.services, [\n {\n protocol: 'mrp',\n port: 49152\n },\n {\n protocol: 'airplay',\n port: 7000\n }\n]);",
|
|
1319
1319
|
"err": {},
|
|
1320
|
-
"uuid": "
|
|
1321
|
-
"parentUUID": "
|
|
1320
|
+
"uuid": "98adbb7f-e450-471d-bc38-e67cf8962213",
|
|
1321
|
+
"parentUUID": "7b098050-ea05-4f8b-8322-fb84fb20f49f",
|
|
1322
1322
|
"isHook": false,
|
|
1323
1323
|
"skipped": false
|
|
1324
1324
|
},
|
|
@@ -1335,16 +1335,16 @@
|
|
|
1335
1335
|
"context": null,
|
|
1336
1336
|
"code": "const device = new NodePyATVDevice({\n name: 'Vardagsrum',\n host: '10.0.10.81'\n});\nassert.strictEqual(device.services, undefined);",
|
|
1337
1337
|
"err": {},
|
|
1338
|
-
"uuid": "
|
|
1339
|
-
"parentUUID": "
|
|
1338
|
+
"uuid": "714ca225-b719-49a0-aa38-712a68fbfe52",
|
|
1339
|
+
"parentUUID": "7b098050-ea05-4f8b-8322-fb84fb20f49f",
|
|
1340
1340
|
"isHook": false,
|
|
1341
1341
|
"skipped": false
|
|
1342
1342
|
}
|
|
1343
1343
|
],
|
|
1344
1344
|
"suites": [],
|
|
1345
1345
|
"passes": [
|
|
1346
|
-
"
|
|
1347
|
-
"
|
|
1346
|
+
"98adbb7f-e450-471d-bc38-e67cf8962213",
|
|
1347
|
+
"714ca225-b719-49a0-aa38-712a68fbfe52"
|
|
1348
1348
|
],
|
|
1349
1349
|
"failures": [],
|
|
1350
1350
|
"pending": [],
|
|
@@ -1355,7 +1355,7 @@
|
|
|
1355
1355
|
"_timeout": 2000
|
|
1356
1356
|
},
|
|
1357
1357
|
{
|
|
1358
|
-
"uuid": "
|
|
1358
|
+
"uuid": "8f3b0506-708b-4893-8b95-8ff0e9cbbe97",
|
|
1359
1359
|
"title": "get debug()",
|
|
1360
1360
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1361
1361
|
"file": "/test/device.ts",
|
|
@@ -1375,8 +1375,8 @@
|
|
|
1375
1375
|
"context": null,
|
|
1376
1376
|
"code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n debug: true\n});\nassert.strictEqual(device.debug, true);",
|
|
1377
1377
|
"err": {},
|
|
1378
|
-
"uuid": "
|
|
1379
|
-
"parentUUID": "
|
|
1378
|
+
"uuid": "ae4dd216-6612-4608-9c3f-7a69b89982f3",
|
|
1379
|
+
"parentUUID": "8f3b0506-708b-4893-8b95-8ff0e9cbbe97",
|
|
1380
1380
|
"isHook": false,
|
|
1381
1381
|
"skipped": false
|
|
1382
1382
|
},
|
|
@@ -1393,8 +1393,8 @@
|
|
|
1393
1393
|
"context": null,
|
|
1394
1394
|
"code": "// eslint-disable-next-line @typescript-eslint/no-empty-function\nconst fn = () => {\n};\nconst device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n debug: fn\n});\nassert.strictEqual(device.debug, fn);",
|
|
1395
1395
|
"err": {},
|
|
1396
|
-
"uuid": "
|
|
1397
|
-
"parentUUID": "
|
|
1396
|
+
"uuid": "8ea0ca6b-0a9d-435e-83b5-33a4f9fd8633",
|
|
1397
|
+
"parentUUID": "8f3b0506-708b-4893-8b95-8ff0e9cbbe97",
|
|
1398
1398
|
"isHook": false,
|
|
1399
1399
|
"skipped": false
|
|
1400
1400
|
},
|
|
@@ -1402,7 +1402,7 @@
|
|
|
1402
1402
|
"title": "should return false if unset",
|
|
1403
1403
|
"fullTitle": "NodePyATVDevice get debug() should return false if unset",
|
|
1404
1404
|
"timedOut": false,
|
|
1405
|
-
"duration":
|
|
1405
|
+
"duration": 0,
|
|
1406
1406
|
"state": "passed",
|
|
1407
1407
|
"speed": "fast",
|
|
1408
1408
|
"pass": true,
|
|
@@ -1411,28 +1411,28 @@
|
|
|
1411
1411
|
"context": null,
|
|
1412
1412
|
"code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2'\n});\nassert.strictEqual(device.debug, undefined);",
|
|
1413
1413
|
"err": {},
|
|
1414
|
-
"uuid": "
|
|
1415
|
-
"parentUUID": "
|
|
1414
|
+
"uuid": "62bbbe56-1a57-4bf9-90db-a1d8da7ce13a",
|
|
1415
|
+
"parentUUID": "8f3b0506-708b-4893-8b95-8ff0e9cbbe97",
|
|
1416
1416
|
"isHook": false,
|
|
1417
1417
|
"skipped": false
|
|
1418
1418
|
}
|
|
1419
1419
|
],
|
|
1420
1420
|
"suites": [],
|
|
1421
1421
|
"passes": [
|
|
1422
|
-
"
|
|
1423
|
-
"
|
|
1424
|
-
"
|
|
1422
|
+
"ae4dd216-6612-4608-9c3f-7a69b89982f3",
|
|
1423
|
+
"8ea0ca6b-0a9d-435e-83b5-33a4f9fd8633",
|
|
1424
|
+
"62bbbe56-1a57-4bf9-90db-a1d8da7ce13a"
|
|
1425
1425
|
],
|
|
1426
1426
|
"failures": [],
|
|
1427
1427
|
"pending": [],
|
|
1428
1428
|
"skipped": [],
|
|
1429
|
-
"duration":
|
|
1429
|
+
"duration": 0,
|
|
1430
1430
|
"root": false,
|
|
1431
1431
|
"rootEmpty": false,
|
|
1432
1432
|
"_timeout": 2000
|
|
1433
1433
|
},
|
|
1434
1434
|
{
|
|
1435
|
-
"uuid": "
|
|
1435
|
+
"uuid": "9c060e75-9954-4f57-9cf6-e390bc12d3e9",
|
|
1436
1436
|
"title": "set debug()",
|
|
1437
1437
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1438
1438
|
"file": "/test/device.ts",
|
|
@@ -1452,8 +1452,8 @@
|
|
|
1452
1452
|
"context": null,
|
|
1453
1453
|
"code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2'\n});\nassert.strictEqual(device.debug, undefined);\ndevice.debug = true;\nassert.strictEqual(device.debug, true);",
|
|
1454
1454
|
"err": {},
|
|
1455
|
-
"uuid": "
|
|
1456
|
-
"parentUUID": "
|
|
1455
|
+
"uuid": "c6f0fb8d-a459-4305-863d-819251d29f3d",
|
|
1456
|
+
"parentUUID": "9c060e75-9954-4f57-9cf6-e390bc12d3e9",
|
|
1457
1457
|
"isHook": false,
|
|
1458
1458
|
"skipped": false
|
|
1459
1459
|
},
|
|
@@ -1470,8 +1470,8 @@
|
|
|
1470
1470
|
"context": null,
|
|
1471
1471
|
"code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n debug: true\n});\nassert.strictEqual(device.debug, true);\ndevice.debug = undefined;\nassert.strictEqual(device.debug, undefined);",
|
|
1472
1472
|
"err": {},
|
|
1473
|
-
"uuid": "
|
|
1474
|
-
"parentUUID": "
|
|
1473
|
+
"uuid": "f04d9743-8877-4f3c-9daa-82f3bf536312",
|
|
1474
|
+
"parentUUID": "9c060e75-9954-4f57-9cf6-e390bc12d3e9",
|
|
1475
1475
|
"isHook": false,
|
|
1476
1476
|
"skipped": false
|
|
1477
1477
|
},
|
|
@@ -1488,8 +1488,8 @@
|
|
|
1488
1488
|
"context": null,
|
|
1489
1489
|
"code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n debug: true\n});\nassert.strictEqual(device.debug, true);\ndevice.debug = undefined;\nassert.strictEqual(device.debug, undefined);",
|
|
1490
1490
|
"err": {},
|
|
1491
|
-
"uuid": "
|
|
1492
|
-
"parentUUID": "
|
|
1491
|
+
"uuid": "1aa1f999-93d7-4ae4-b2f6-df4fc6c758b4",
|
|
1492
|
+
"parentUUID": "9c060e75-9954-4f57-9cf6-e390bc12d3e9",
|
|
1493
1493
|
"isHook": false,
|
|
1494
1494
|
"skipped": false
|
|
1495
1495
|
},
|
|
@@ -1497,7 +1497,7 @@
|
|
|
1497
1497
|
"title": "should work for debug = fn",
|
|
1498
1498
|
"fullTitle": "NodePyATVDevice set debug() should work for debug = fn",
|
|
1499
1499
|
"timedOut": false,
|
|
1500
|
-
"duration":
|
|
1500
|
+
"duration": 1,
|
|
1501
1501
|
"state": "passed",
|
|
1502
1502
|
"speed": "fast",
|
|
1503
1503
|
"pass": true,
|
|
@@ -1506,29 +1506,29 @@
|
|
|
1506
1506
|
"context": null,
|
|
1507
1507
|
"code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2'\n});\n// eslint-disable-next-line @typescript-eslint/no-empty-function\nconst fn = () => {\n};\nassert.strictEqual(device.debug, undefined);\ndevice.debug = fn;\nassert.strictEqual(device.debug, fn);",
|
|
1508
1508
|
"err": {},
|
|
1509
|
-
"uuid": "
|
|
1510
|
-
"parentUUID": "
|
|
1509
|
+
"uuid": "3a97c40d-b2c1-4ebc-a0c8-0e44010d8d05",
|
|
1510
|
+
"parentUUID": "9c060e75-9954-4f57-9cf6-e390bc12d3e9",
|
|
1511
1511
|
"isHook": false,
|
|
1512
1512
|
"skipped": false
|
|
1513
1513
|
}
|
|
1514
1514
|
],
|
|
1515
1515
|
"suites": [],
|
|
1516
1516
|
"passes": [
|
|
1517
|
-
"
|
|
1518
|
-
"
|
|
1519
|
-
"
|
|
1520
|
-
"
|
|
1517
|
+
"c6f0fb8d-a459-4305-863d-819251d29f3d",
|
|
1518
|
+
"f04d9743-8877-4f3c-9daa-82f3bf536312",
|
|
1519
|
+
"1aa1f999-93d7-4ae4-b2f6-df4fc6c758b4",
|
|
1520
|
+
"3a97c40d-b2c1-4ebc-a0c8-0e44010d8d05"
|
|
1521
1521
|
],
|
|
1522
1522
|
"failures": [],
|
|
1523
1523
|
"pending": [],
|
|
1524
1524
|
"skipped": [],
|
|
1525
|
-
"duration":
|
|
1525
|
+
"duration": 1,
|
|
1526
1526
|
"root": false,
|
|
1527
1527
|
"rootEmpty": false,
|
|
1528
1528
|
"_timeout": 2000
|
|
1529
1529
|
},
|
|
1530
1530
|
{
|
|
1531
|
-
"uuid": "
|
|
1531
|
+
"uuid": "88fdae22-2e47-4491-a297-aa8e0f661e99",
|
|
1532
1532
|
"title": "toJSON()",
|
|
1533
1533
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1534
1534
|
"file": "/test/device.ts",
|
|
@@ -1548,8 +1548,8 @@
|
|
|
1548
1548
|
"context": null,
|
|
1549
1549
|
"code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n id: '*****',\n protocol: NodePyATVProtocol.airplay\n});\nassert.deepEqual(device.toJSON(), {\n name: 'My Testdevice',\n host: '192.168.178.2',\n id: '*****',\n protocol: NodePyATVProtocol.airplay\n});",
|
|
1550
1550
|
"err": {},
|
|
1551
|
-
"uuid": "
|
|
1552
|
-
"parentUUID": "
|
|
1551
|
+
"uuid": "a183360b-ec9c-41ff-9743-5191e691119d",
|
|
1552
|
+
"parentUUID": "88fdae22-2e47-4491-a297-aa8e0f661e99",
|
|
1553
1553
|
"isHook": false,
|
|
1554
1554
|
"skipped": false
|
|
1555
1555
|
},
|
|
@@ -1566,16 +1566,16 @@
|
|
|
1566
1566
|
"context": null,
|
|
1567
1567
|
"code": "const config = {\n name: 'My Testdevice',\n host: '192.168.178.2',\n id: '*****',\n protocol: NodePyATVProtocol.airplay\n};\nconst deviceA = new NodePyATVDevice(config);\nconst deviceB = new NodePyATVDevice(deviceA.toJSON());\nassert.deepEqual(deviceB.toJSON(), config);",
|
|
1568
1568
|
"err": {},
|
|
1569
|
-
"uuid": "
|
|
1570
|
-
"parentUUID": "
|
|
1569
|
+
"uuid": "69e2a5c7-e08c-46e2-884e-74d9600fdbae",
|
|
1570
|
+
"parentUUID": "88fdae22-2e47-4491-a297-aa8e0f661e99",
|
|
1571
1571
|
"isHook": false,
|
|
1572
1572
|
"skipped": false
|
|
1573
1573
|
}
|
|
1574
1574
|
],
|
|
1575
1575
|
"suites": [],
|
|
1576
1576
|
"passes": [
|
|
1577
|
-
"
|
|
1578
|
-
"
|
|
1577
|
+
"a183360b-ec9c-41ff-9743-5191e691119d",
|
|
1578
|
+
"69e2a5c7-e08c-46e2-884e-74d9600fdbae"
|
|
1579
1579
|
],
|
|
1580
1580
|
"failures": [],
|
|
1581
1581
|
"pending": [],
|
|
@@ -1586,7 +1586,7 @@
|
|
|
1586
1586
|
"_timeout": 2000
|
|
1587
1587
|
},
|
|
1588
1588
|
{
|
|
1589
|
-
"uuid": "
|
|
1589
|
+
"uuid": "7a171968-c4e2-4a83-85d2-f94cb880dbe4",
|
|
1590
1590
|
"title": "toString()",
|
|
1591
1591
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1592
1592
|
"file": "/test/device.ts",
|
|
@@ -1597,7 +1597,7 @@
|
|
|
1597
1597
|
"title": "should work",
|
|
1598
1598
|
"fullTitle": "NodePyATVDevice toString() should work",
|
|
1599
1599
|
"timedOut": false,
|
|
1600
|
-
"duration":
|
|
1600
|
+
"duration": 1,
|
|
1601
1601
|
"state": "passed",
|
|
1602
1602
|
"speed": "fast",
|
|
1603
1603
|
"pass": true,
|
|
@@ -1606,26 +1606,26 @@
|
|
|
1606
1606
|
"context": null,
|
|
1607
1607
|
"code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2'\n});\nassert.strictEqual(device.toString(), 'NodePyATVDevice(My Testdevice, 192.168.178.2)');",
|
|
1608
1608
|
"err": {},
|
|
1609
|
-
"uuid": "
|
|
1610
|
-
"parentUUID": "
|
|
1609
|
+
"uuid": "69242bc6-7d6a-47d5-8ba7-377215c62bd6",
|
|
1610
|
+
"parentUUID": "7a171968-c4e2-4a83-85d2-f94cb880dbe4",
|
|
1611
1611
|
"isHook": false,
|
|
1612
1612
|
"skipped": false
|
|
1613
1613
|
}
|
|
1614
1614
|
],
|
|
1615
1615
|
"suites": [],
|
|
1616
1616
|
"passes": [
|
|
1617
|
-
"
|
|
1617
|
+
"69242bc6-7d6a-47d5-8ba7-377215c62bd6"
|
|
1618
1618
|
],
|
|
1619
1619
|
"failures": [],
|
|
1620
1620
|
"pending": [],
|
|
1621
1621
|
"skipped": [],
|
|
1622
|
-
"duration":
|
|
1622
|
+
"duration": 1,
|
|
1623
1623
|
"root": false,
|
|
1624
1624
|
"rootEmpty": false,
|
|
1625
1625
|
"_timeout": 2000
|
|
1626
1626
|
},
|
|
1627
1627
|
{
|
|
1628
|
-
"uuid": "
|
|
1628
|
+
"uuid": "40ef3f02-56e9-4d03-ac1d-ebc8211c4432",
|
|
1629
1629
|
"title": "getState()",
|
|
1630
1630
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1631
1631
|
"file": "/test/device.ts",
|
|
@@ -1645,8 +1645,8 @@
|
|
|
1645
1645
|
"context": null,
|
|
1646
1646
|
"code": "",
|
|
1647
1647
|
"err": {},
|
|
1648
|
-
"uuid": "
|
|
1649
|
-
"parentUUID": "
|
|
1648
|
+
"uuid": "ebae24fc-62b9-45e8-a73a-31753cbb8ee0",
|
|
1649
|
+
"parentUUID": "40ef3f02-56e9-4d03-ac1d-ebc8211c4432",
|
|
1650
1650
|
"isHook": false,
|
|
1651
1651
|
"skipped": false
|
|
1652
1652
|
},
|
|
@@ -1654,7 +1654,7 @@
|
|
|
1654
1654
|
"title": "should work",
|
|
1655
1655
|
"fullTitle": "NodePyATVDevice getState() should work",
|
|
1656
1656
|
"timedOut": false,
|
|
1657
|
-
"duration":
|
|
1657
|
+
"duration": 2,
|
|
1658
1658
|
"state": "passed",
|
|
1659
1659
|
"speed": "fast",
|
|
1660
1660
|
"pass": true,
|
|
@@ -1663,8 +1663,8 @@
|
|
|
1663
1663
|
"context": null,
|
|
1664
1664
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'success',\n datetime: '2020-11-07T22:38:43.608030+01:00',\n hash: '100e0ab6-6ff5-4199-9c04-a7107ff78712',\n media_type: 'video',\n device_state: 'playing',\n title: 'Solo: A Star Wars Story',\n artist: null,\n album: null,\n genre: null,\n total_time: 8097,\n position: 27,\n shuffle: 'off',\n repeat: 'off',\n app: 'Disney+',\n app_id: 'com.disney.disneyplus'\n });\n })\n });\n const result = yield device.getState();\n assert.deepStrictEqual(result, {\n dateTime: new Date('2020-11-07T22:38:43.608030+01:00'),\n hash: '100e0ab6-6ff5-4199-9c04-a7107ff78712',\n mediaType: NodePyATVMediaType.video,\n deviceState: NodePyATVDeviceState.playing,\n title: 'Solo: A Star Wars Story',\n artist: null,\n album: null,\n genre: null,\n totalTime: 8097,\n position: 27,\n shuffle: NodePyATVShuffleState.off,\n repeat: NodePyATVRepeatState.off,\n app: 'Disney+',\n appId: 'com.disney.disneyplus',\n powerState: null\n });\n});",
|
|
1665
1665
|
"err": {},
|
|
1666
|
-
"uuid": "
|
|
1667
|
-
"parentUUID": "
|
|
1666
|
+
"uuid": "e9999976-2b9f-4921-9ba0-51bcf5d7fe36",
|
|
1667
|
+
"parentUUID": "40ef3f02-56e9-4d03-ac1d-ebc8211c4432",
|
|
1668
1668
|
"isHook": false,
|
|
1669
1669
|
"skipped": false
|
|
1670
1670
|
},
|
|
@@ -1681,8 +1681,8 @@
|
|
|
1681
1681
|
"context": null,
|
|
1682
1682
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'failure',\n datetime: '2021-11-24T21:13:36.424576+03:00',\n exception: 'invalid credentials: 321',\n stacktrace: 'Traceback (most recent call last):\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/scripts/atvscript.py\\\", line 302, in appstart\\n print(args.output(await _handle_command(args, abort_sem, loop)), flush=True)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/scripts/atvscript.py\\\", line 196, in _handle_command\\n atv = await connect(config, loop, protocol=Protocol.MRP)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/__init__.py\\\", line 96, in connect\\n for setup_data in proto_methods.setup(\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/protocols/airplay/__init__.py\\\", line 192, in setup\\n stream = AirPlayStream(config, service)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/protocols/airplay/__init__.py\\\", line 79, in __init__\\n self._credentials: HapCredentials = parse_credentials(self.service.credentials)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/auth/hap_pairing.py\\\", line 139, in parse_credentials\\n raise exceptions.InvalidCredentialsError(\\\"invalid credentials: \\\" + detail_string)\\npyatv.exceptions.InvalidCredentialsError: invalid credentials: 321\\n'\n });\n })\n });\n assert.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield device.getState();\n }), /Got pyatv Error: invalid credentials: 321/);\n});",
|
|
1683
1683
|
"err": {},
|
|
1684
|
-
"uuid": "
|
|
1685
|
-
"parentUUID": "
|
|
1684
|
+
"uuid": "3f443421-180a-42a3-b03a-961b9cd2b472",
|
|
1685
|
+
"parentUUID": "40ef3f02-56e9-4d03-ac1d-ebc8211c4432",
|
|
1686
1686
|
"isHook": false,
|
|
1687
1687
|
"skipped": false
|
|
1688
1688
|
},
|
|
@@ -1699,8 +1699,8 @@
|
|
|
1699
1699
|
"context": null,
|
|
1700
1700
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n let executions = 0;\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n executions++;\n cp.end({\n result: 'success',\n datetime: new Date().toJSON(),\n hash: '100e0ab6-6ff5-4199-9c04-a7107ff78712',\n media_type: 'video',\n device_state: 'playing',\n title: 'Solo: A Star Wars Story',\n artist: null,\n album: null,\n genre: null,\n total_time: 8097,\n position: 27,\n shuffle: 'off',\n repeat: 'off',\n app: 'Disney+',\n app_id: 'com.disney.disneyplus'\n });\n })\n });\n const firstResult = yield device.getState();\n const secondResult = yield device.getState();\n assert.strictEqual(firstResult.dateTime, secondResult.dateTime);\n assert.strictEqual(executions, 1);\n});",
|
|
1701
1701
|
"err": {},
|
|
1702
|
-
"uuid": "
|
|
1703
|
-
"parentUUID": "
|
|
1702
|
+
"uuid": "74afba0a-3c48-4b76-8b6f-4b8bea6232d9",
|
|
1703
|
+
"parentUUID": "40ef3f02-56e9-4d03-ac1d-ebc8211c4432",
|
|
1704
1704
|
"isHook": false,
|
|
1705
1705
|
"skipped": false
|
|
1706
1706
|
},
|
|
@@ -1708,7 +1708,7 @@
|
|
|
1708
1708
|
"title": "should update the position if cache was used",
|
|
1709
1709
|
"fullTitle": "NodePyATVDevice getState() should update the position if cache was used",
|
|
1710
1710
|
"timedOut": false,
|
|
1711
|
-
"duration":
|
|
1711
|
+
"duration": 2,
|
|
1712
1712
|
"state": "passed",
|
|
1713
1713
|
"speed": "fast",
|
|
1714
1714
|
"pass": true,
|
|
@@ -1717,31 +1717,31 @@
|
|
|
1717
1717
|
"context": null,
|
|
1718
1718
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'success',\n datetime: new Date(new Date().getTime() - 1000).toJSON(),\n hash: '100e0ab6-6ff5-4199-9c04-a7107ff78712',\n media_type: 'video',\n device_state: 'playing',\n title: 'Solo: A Star Wars Story',\n artist: null,\n album: null,\n genre: null,\n total_time: 8097,\n position: 27,\n shuffle: 'off',\n repeat: 'off',\n app: 'Disney+',\n app_id: 'com.disney.disneyplus'\n });\n })\n });\n const firstResult = yield device.getState();\n assert.strictEqual(firstResult.position, 27);\n const secondResult = yield device.getState();\n assert.ok(secondResult.position);\n assert.ok(secondResult.position > 27, `Position should be > 27, was ${secondResult.position}`);\n assert.ok(secondResult.position < 30, `Position should be > 27, was ${secondResult.position}`);\n});",
|
|
1719
1719
|
"err": {},
|
|
1720
|
-
"uuid": "
|
|
1721
|
-
"parentUUID": "
|
|
1720
|
+
"uuid": "4666033f-7713-45bd-a23b-45a381eb4e6e",
|
|
1721
|
+
"parentUUID": "40ef3f02-56e9-4d03-ac1d-ebc8211c4432",
|
|
1722
1722
|
"isHook": false,
|
|
1723
1723
|
"skipped": false
|
|
1724
1724
|
}
|
|
1725
1725
|
],
|
|
1726
1726
|
"suites": [],
|
|
1727
1727
|
"passes": [
|
|
1728
|
-
"
|
|
1729
|
-
"
|
|
1730
|
-
"
|
|
1731
|
-
"
|
|
1728
|
+
"e9999976-2b9f-4921-9ba0-51bcf5d7fe36",
|
|
1729
|
+
"3f443421-180a-42a3-b03a-961b9cd2b472",
|
|
1730
|
+
"74afba0a-3c48-4b76-8b6f-4b8bea6232d9",
|
|
1731
|
+
"4666033f-7713-45bd-a23b-45a381eb4e6e"
|
|
1732
1732
|
],
|
|
1733
1733
|
"failures": [],
|
|
1734
1734
|
"pending": [
|
|
1735
|
-
"
|
|
1735
|
+
"ebae24fc-62b9-45e8-a73a-31753cbb8ee0"
|
|
1736
1736
|
],
|
|
1737
1737
|
"skipped": [],
|
|
1738
|
-
"duration":
|
|
1738
|
+
"duration": 6,
|
|
1739
1739
|
"root": false,
|
|
1740
1740
|
"rootEmpty": false,
|
|
1741
1741
|
"_timeout": 2000
|
|
1742
1742
|
},
|
|
1743
1743
|
{
|
|
1744
|
-
"uuid": "
|
|
1744
|
+
"uuid": "0dd3b3dd-c4c4-415e-92de-d9d3456e106e",
|
|
1745
1745
|
"title": "clearState()",
|
|
1746
1746
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1747
1747
|
"file": "/test/device.ts",
|
|
@@ -1761,15 +1761,15 @@
|
|
|
1761
1761
|
"context": null,
|
|
1762
1762
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n let executions = 0;\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n executions++;\n cp.end({\n result: 'success',\n datetime: '2020-11-07T22:38:43.608030+01:00',\n title: 'Solo: A Star Wars Story'\n });\n })\n });\n assert.deepStrictEqual(yield device.getTitle(), 'Solo: A Star Wars Story');\n device.clearState();\n assert.deepStrictEqual(yield device.getTitle(), 'Solo: A Star Wars Story');\n assert.strictEqual(executions, 2);\n});",
|
|
1763
1763
|
"err": {},
|
|
1764
|
-
"uuid": "
|
|
1765
|
-
"parentUUID": "
|
|
1764
|
+
"uuid": "36d1038e-ddc0-41fc-85c8-4f733090dd90",
|
|
1765
|
+
"parentUUID": "0dd3b3dd-c4c4-415e-92de-d9d3456e106e",
|
|
1766
1766
|
"isHook": false,
|
|
1767
1767
|
"skipped": false
|
|
1768
1768
|
}
|
|
1769
1769
|
],
|
|
1770
1770
|
"suites": [],
|
|
1771
1771
|
"passes": [
|
|
1772
|
-
"
|
|
1772
|
+
"36d1038e-ddc0-41fc-85c8-4f733090dd90"
|
|
1773
1773
|
],
|
|
1774
1774
|
"failures": [],
|
|
1775
1775
|
"pending": [],
|
|
@@ -1780,7 +1780,7 @@
|
|
|
1780
1780
|
"_timeout": 2000
|
|
1781
1781
|
},
|
|
1782
1782
|
{
|
|
1783
|
-
"uuid": "
|
|
1783
|
+
"uuid": "844b3bcb-51ea-4820-b81d-978b5bf30bc1",
|
|
1784
1784
|
"title": "getDateTime()",
|
|
1785
1785
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1786
1786
|
"file": "/test/device.ts",
|
|
@@ -1800,15 +1800,15 @@
|
|
|
1800
1800
|
"context": null,
|
|
1801
1801
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'success',\n datetime: new Date().toJSON()\n });\n })\n });\n const result = yield device.getDateTime();\n assert.ok(result instanceof Date);\n});",
|
|
1802
1802
|
"err": {},
|
|
1803
|
-
"uuid": "
|
|
1804
|
-
"parentUUID": "
|
|
1803
|
+
"uuid": "6ad302a4-7a03-4da7-b95e-49f4a42fcb2c",
|
|
1804
|
+
"parentUUID": "844b3bcb-51ea-4820-b81d-978b5bf30bc1",
|
|
1805
1805
|
"isHook": false,
|
|
1806
1806
|
"skipped": false
|
|
1807
1807
|
}
|
|
1808
1808
|
],
|
|
1809
1809
|
"suites": [],
|
|
1810
1810
|
"passes": [
|
|
1811
|
-
"
|
|
1811
|
+
"6ad302a4-7a03-4da7-b95e-49f4a42fcb2c"
|
|
1812
1812
|
],
|
|
1813
1813
|
"failures": [],
|
|
1814
1814
|
"pending": [],
|
|
@@ -1819,7 +1819,7 @@
|
|
|
1819
1819
|
"_timeout": 2000
|
|
1820
1820
|
},
|
|
1821
1821
|
{
|
|
1822
|
-
"uuid": "
|
|
1822
|
+
"uuid": "810386ea-3763-4e8a-8bbe-747231a18ad5",
|
|
1823
1823
|
"title": "getHash()",
|
|
1824
1824
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1825
1825
|
"file": "/test/device.ts",
|
|
@@ -1839,15 +1839,15 @@
|
|
|
1839
1839
|
"context": null,
|
|
1840
1840
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'success',\n hash: '12345'\n });\n })\n });\n const result = yield device.getHash();\n assert.strictEqual(result, '12345');\n});",
|
|
1841
1841
|
"err": {},
|
|
1842
|
-
"uuid": "
|
|
1843
|
-
"parentUUID": "
|
|
1842
|
+
"uuid": "9c9ce2fc-68c0-4543-a911-374dae42bb85",
|
|
1843
|
+
"parentUUID": "810386ea-3763-4e8a-8bbe-747231a18ad5",
|
|
1844
1844
|
"isHook": false,
|
|
1845
1845
|
"skipped": false
|
|
1846
1846
|
}
|
|
1847
1847
|
],
|
|
1848
1848
|
"suites": [],
|
|
1849
1849
|
"passes": [
|
|
1850
|
-
"
|
|
1850
|
+
"9c9ce2fc-68c0-4543-a911-374dae42bb85"
|
|
1851
1851
|
],
|
|
1852
1852
|
"failures": [],
|
|
1853
1853
|
"pending": [],
|
|
@@ -1858,7 +1858,7 @@
|
|
|
1858
1858
|
"_timeout": 2000
|
|
1859
1859
|
},
|
|
1860
1860
|
{
|
|
1861
|
-
"uuid": "
|
|
1861
|
+
"uuid": "a2b55691-3c08-4707-8738-883890d58361",
|
|
1862
1862
|
"title": "getMediaType()",
|
|
1863
1863
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1864
1864
|
"file": "/test/device.ts",
|
|
@@ -1878,15 +1878,15 @@
|
|
|
1878
1878
|
"context": null,
|
|
1879
1879
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'success',\n media_type: 'video'\n });\n })\n });\n const result = yield device.getMediaType();\n assert.deepStrictEqual(result, NodePyATVMediaType.video);\n assert.deepStrictEqual(result, 'video');\n});",
|
|
1880
1880
|
"err": {},
|
|
1881
|
-
"uuid": "
|
|
1882
|
-
"parentUUID": "
|
|
1881
|
+
"uuid": "ec938218-c105-4fdc-a910-163ebfb112fe",
|
|
1882
|
+
"parentUUID": "a2b55691-3c08-4707-8738-883890d58361",
|
|
1883
1883
|
"isHook": false,
|
|
1884
1884
|
"skipped": false
|
|
1885
1885
|
}
|
|
1886
1886
|
],
|
|
1887
1887
|
"suites": [],
|
|
1888
1888
|
"passes": [
|
|
1889
|
-
"
|
|
1889
|
+
"ec938218-c105-4fdc-a910-163ebfb112fe"
|
|
1890
1890
|
],
|
|
1891
1891
|
"failures": [],
|
|
1892
1892
|
"pending": [],
|
|
@@ -1897,7 +1897,7 @@
|
|
|
1897
1897
|
"_timeout": 2000
|
|
1898
1898
|
},
|
|
1899
1899
|
{
|
|
1900
|
-
"uuid": "
|
|
1900
|
+
"uuid": "5b8c9ae7-74ee-4b77-9d52-4d0de77f0537",
|
|
1901
1901
|
"title": "getDeviceState()",
|
|
1902
1902
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1903
1903
|
"file": "/test/device.ts",
|
|
@@ -1917,15 +1917,15 @@
|
|
|
1917
1917
|
"context": null,
|
|
1918
1918
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'success',\n device_state: 'seeking'\n });\n })\n });\n const result = yield device.getDeviceState();\n assert.deepStrictEqual(result, NodePyATVDeviceState.seeking);\n assert.deepStrictEqual(result, 'seeking');\n});",
|
|
1919
1919
|
"err": {},
|
|
1920
|
-
"uuid": "
|
|
1921
|
-
"parentUUID": "
|
|
1920
|
+
"uuid": "b94b40dc-5304-4d59-ac72-e9efc9e445df",
|
|
1921
|
+
"parentUUID": "5b8c9ae7-74ee-4b77-9d52-4d0de77f0537",
|
|
1922
1922
|
"isHook": false,
|
|
1923
1923
|
"skipped": false
|
|
1924
1924
|
}
|
|
1925
1925
|
],
|
|
1926
1926
|
"suites": [],
|
|
1927
1927
|
"passes": [
|
|
1928
|
-
"
|
|
1928
|
+
"b94b40dc-5304-4d59-ac72-e9efc9e445df"
|
|
1929
1929
|
],
|
|
1930
1930
|
"failures": [],
|
|
1931
1931
|
"pending": [],
|
|
@@ -1936,7 +1936,7 @@
|
|
|
1936
1936
|
"_timeout": 2000
|
|
1937
1937
|
},
|
|
1938
1938
|
{
|
|
1939
|
-
"uuid": "
|
|
1939
|
+
"uuid": "80364a26-72ac-4609-bf8a-1ed886efab01",
|
|
1940
1940
|
"title": "getTitle()",
|
|
1941
1941
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1942
1942
|
"file": "/test/device.ts",
|
|
@@ -1947,7 +1947,7 @@
|
|
|
1947
1947
|
"title": "should work",
|
|
1948
1948
|
"fullTitle": "NodePyATVDevice getTitle() should work",
|
|
1949
1949
|
"timedOut": false,
|
|
1950
|
-
"duration":
|
|
1950
|
+
"duration": 1,
|
|
1951
1951
|
"state": "passed",
|
|
1952
1952
|
"speed": "fast",
|
|
1953
1953
|
"pass": true,
|
|
@@ -1956,26 +1956,26 @@
|
|
|
1956
1956
|
"context": null,
|
|
1957
1957
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'success',\n title: 'My Movie'\n });\n })\n });\n const result = yield device.getTitle();\n assert.strictEqual(result, 'My Movie');\n});",
|
|
1958
1958
|
"err": {},
|
|
1959
|
-
"uuid": "
|
|
1960
|
-
"parentUUID": "
|
|
1959
|
+
"uuid": "2d53e457-a437-4cf0-a833-bfeae7198299",
|
|
1960
|
+
"parentUUID": "80364a26-72ac-4609-bf8a-1ed886efab01",
|
|
1961
1961
|
"isHook": false,
|
|
1962
1962
|
"skipped": false
|
|
1963
1963
|
}
|
|
1964
1964
|
],
|
|
1965
1965
|
"suites": [],
|
|
1966
1966
|
"passes": [
|
|
1967
|
-
"
|
|
1967
|
+
"2d53e457-a437-4cf0-a833-bfeae7198299"
|
|
1968
1968
|
],
|
|
1969
1969
|
"failures": [],
|
|
1970
1970
|
"pending": [],
|
|
1971
1971
|
"skipped": [],
|
|
1972
|
-
"duration":
|
|
1972
|
+
"duration": 1,
|
|
1973
1973
|
"root": false,
|
|
1974
1974
|
"rootEmpty": false,
|
|
1975
1975
|
"_timeout": 2000
|
|
1976
1976
|
},
|
|
1977
1977
|
{
|
|
1978
|
-
"uuid": "
|
|
1978
|
+
"uuid": "a3796214-40d6-46f7-9a0c-af797a776060",
|
|
1979
1979
|
"title": "getArtist()",
|
|
1980
1980
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1981
1981
|
"file": "/test/device.ts",
|
|
@@ -1986,7 +1986,7 @@
|
|
|
1986
1986
|
"title": "should work",
|
|
1987
1987
|
"fullTitle": "NodePyATVDevice getArtist() should work",
|
|
1988
1988
|
"timedOut": false,
|
|
1989
|
-
"duration":
|
|
1989
|
+
"duration": 1,
|
|
1990
1990
|
"state": "passed",
|
|
1991
1991
|
"speed": "fast",
|
|
1992
1992
|
"pass": true,
|
|
@@ -1995,26 +1995,26 @@
|
|
|
1995
1995
|
"context": null,
|
|
1996
1996
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'success',\n artist: 'My Artist'\n });\n })\n });\n const result = yield device.getArtist();\n assert.strictEqual(result, 'My Artist');\n});",
|
|
1997
1997
|
"err": {},
|
|
1998
|
-
"uuid": "
|
|
1999
|
-
"parentUUID": "
|
|
1998
|
+
"uuid": "35bcbcd6-9275-4c9c-aca2-a822331e63a3",
|
|
1999
|
+
"parentUUID": "a3796214-40d6-46f7-9a0c-af797a776060",
|
|
2000
2000
|
"isHook": false,
|
|
2001
2001
|
"skipped": false
|
|
2002
2002
|
}
|
|
2003
2003
|
],
|
|
2004
2004
|
"suites": [],
|
|
2005
2005
|
"passes": [
|
|
2006
|
-
"
|
|
2006
|
+
"35bcbcd6-9275-4c9c-aca2-a822331e63a3"
|
|
2007
2007
|
],
|
|
2008
2008
|
"failures": [],
|
|
2009
2009
|
"pending": [],
|
|
2010
2010
|
"skipped": [],
|
|
2011
|
-
"duration":
|
|
2011
|
+
"duration": 1,
|
|
2012
2012
|
"root": false,
|
|
2013
2013
|
"rootEmpty": false,
|
|
2014
2014
|
"_timeout": 2000
|
|
2015
2015
|
},
|
|
2016
2016
|
{
|
|
2017
|
-
"uuid": "
|
|
2017
|
+
"uuid": "10d16758-0aad-449d-9d78-8e00eaf9b88a",
|
|
2018
2018
|
"title": "getAlbum()",
|
|
2019
2019
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2020
2020
|
"file": "/test/device.ts",
|
|
@@ -2034,15 +2034,15 @@
|
|
|
2034
2034
|
"context": null,
|
|
2035
2035
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'success',\n album: 'My ALbum'\n });\n })\n });\n const result = yield device.getAlbum();\n assert.strictEqual(result, 'My ALbum');\n});",
|
|
2036
2036
|
"err": {},
|
|
2037
|
-
"uuid": "
|
|
2038
|
-
"parentUUID": "
|
|
2037
|
+
"uuid": "2b4f2060-ad39-4aa9-948c-bf54201c6e31",
|
|
2038
|
+
"parentUUID": "10d16758-0aad-449d-9d78-8e00eaf9b88a",
|
|
2039
2039
|
"isHook": false,
|
|
2040
2040
|
"skipped": false
|
|
2041
2041
|
}
|
|
2042
2042
|
],
|
|
2043
2043
|
"suites": [],
|
|
2044
2044
|
"passes": [
|
|
2045
|
-
"
|
|
2045
|
+
"2b4f2060-ad39-4aa9-948c-bf54201c6e31"
|
|
2046
2046
|
],
|
|
2047
2047
|
"failures": [],
|
|
2048
2048
|
"pending": [],
|
|
@@ -2053,7 +2053,7 @@
|
|
|
2053
2053
|
"_timeout": 2000
|
|
2054
2054
|
},
|
|
2055
2055
|
{
|
|
2056
|
-
"uuid": "
|
|
2056
|
+
"uuid": "f215740b-456b-499d-b914-a5ed2284930f",
|
|
2057
2057
|
"title": "getGenre()",
|
|
2058
2058
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2059
2059
|
"file": "/test/device.ts",
|
|
@@ -2064,7 +2064,7 @@
|
|
|
2064
2064
|
"title": "should work",
|
|
2065
2065
|
"fullTitle": "NodePyATVDevice getGenre() should work",
|
|
2066
2066
|
"timedOut": false,
|
|
2067
|
-
"duration":
|
|
2067
|
+
"duration": 2,
|
|
2068
2068
|
"state": "passed",
|
|
2069
2069
|
"speed": "fast",
|
|
2070
2070
|
"pass": true,
|
|
@@ -2073,26 +2073,26 @@
|
|
|
2073
2073
|
"context": null,
|
|
2074
2074
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'success',\n genre: 'My Genre'\n });\n })\n });\n const result = yield device.getGenre();\n assert.strictEqual(result, 'My Genre');\n});",
|
|
2075
2075
|
"err": {},
|
|
2076
|
-
"uuid": "
|
|
2077
|
-
"parentUUID": "
|
|
2076
|
+
"uuid": "685e735c-87c1-43d1-b734-14b436ba2844",
|
|
2077
|
+
"parentUUID": "f215740b-456b-499d-b914-a5ed2284930f",
|
|
2078
2078
|
"isHook": false,
|
|
2079
2079
|
"skipped": false
|
|
2080
2080
|
}
|
|
2081
2081
|
],
|
|
2082
2082
|
"suites": [],
|
|
2083
2083
|
"passes": [
|
|
2084
|
-
"
|
|
2084
|
+
"685e735c-87c1-43d1-b734-14b436ba2844"
|
|
2085
2085
|
],
|
|
2086
2086
|
"failures": [],
|
|
2087
2087
|
"pending": [],
|
|
2088
2088
|
"skipped": [],
|
|
2089
|
-
"duration":
|
|
2089
|
+
"duration": 2,
|
|
2090
2090
|
"root": false,
|
|
2091
2091
|
"rootEmpty": false,
|
|
2092
2092
|
"_timeout": 2000
|
|
2093
2093
|
},
|
|
2094
2094
|
{
|
|
2095
|
-
"uuid": "
|
|
2095
|
+
"uuid": "76d77690-ec5d-41cf-b7fe-9cb880f23e82",
|
|
2096
2096
|
"title": "getTotalTime()",
|
|
2097
2097
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2098
2098
|
"file": "/test/device.ts",
|
|
@@ -2112,15 +2112,15 @@
|
|
|
2112
2112
|
"context": null,
|
|
2113
2113
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'success',\n total_time: 45\n });\n })\n });\n const result = yield device.getTotalTime();\n assert.strictEqual(result, 45);\n});",
|
|
2114
2114
|
"err": {},
|
|
2115
|
-
"uuid": "
|
|
2116
|
-
"parentUUID": "
|
|
2115
|
+
"uuid": "1dc9f759-4ef5-40fb-8185-05c594c2f027",
|
|
2116
|
+
"parentUUID": "76d77690-ec5d-41cf-b7fe-9cb880f23e82",
|
|
2117
2117
|
"isHook": false,
|
|
2118
2118
|
"skipped": false
|
|
2119
2119
|
}
|
|
2120
2120
|
],
|
|
2121
2121
|
"suites": [],
|
|
2122
2122
|
"passes": [
|
|
2123
|
-
"
|
|
2123
|
+
"1dc9f759-4ef5-40fb-8185-05c594c2f027"
|
|
2124
2124
|
],
|
|
2125
2125
|
"failures": [],
|
|
2126
2126
|
"pending": [],
|
|
@@ -2131,7 +2131,7 @@
|
|
|
2131
2131
|
"_timeout": 2000
|
|
2132
2132
|
},
|
|
2133
2133
|
{
|
|
2134
|
-
"uuid": "
|
|
2134
|
+
"uuid": "82044487-6b2d-4922-9675-06f5aa1a4e7a",
|
|
2135
2135
|
"title": "getPosition()",
|
|
2136
2136
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2137
2137
|
"file": "/test/device.ts",
|
|
@@ -2142,7 +2142,7 @@
|
|
|
2142
2142
|
"title": "should work",
|
|
2143
2143
|
"fullTitle": "NodePyATVDevice getPosition() should work",
|
|
2144
2144
|
"timedOut": false,
|
|
2145
|
-
"duration":
|
|
2145
|
+
"duration": 2,
|
|
2146
2146
|
"state": "passed",
|
|
2147
2147
|
"speed": "fast",
|
|
2148
2148
|
"pass": true,
|
|
@@ -2151,26 +2151,26 @@
|
|
|
2151
2151
|
"context": null,
|
|
2152
2152
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'success',\n position: 30\n });\n })\n });\n const result = yield device.getPosition();\n assert.strictEqual(result, 30);\n});",
|
|
2153
2153
|
"err": {},
|
|
2154
|
-
"uuid": "
|
|
2155
|
-
"parentUUID": "
|
|
2154
|
+
"uuid": "96641967-b444-430b-8227-3e002a143c16",
|
|
2155
|
+
"parentUUID": "82044487-6b2d-4922-9675-06f5aa1a4e7a",
|
|
2156
2156
|
"isHook": false,
|
|
2157
2157
|
"skipped": false
|
|
2158
2158
|
}
|
|
2159
2159
|
],
|
|
2160
2160
|
"suites": [],
|
|
2161
2161
|
"passes": [
|
|
2162
|
-
"
|
|
2162
|
+
"96641967-b444-430b-8227-3e002a143c16"
|
|
2163
2163
|
],
|
|
2164
2164
|
"failures": [],
|
|
2165
2165
|
"pending": [],
|
|
2166
2166
|
"skipped": [],
|
|
2167
|
-
"duration":
|
|
2167
|
+
"duration": 2,
|
|
2168
2168
|
"root": false,
|
|
2169
2169
|
"rootEmpty": false,
|
|
2170
2170
|
"_timeout": 2000
|
|
2171
2171
|
},
|
|
2172
2172
|
{
|
|
2173
|
-
"uuid": "
|
|
2173
|
+
"uuid": "663e64d6-58bb-40b3-97fe-13e4e32a3e62",
|
|
2174
2174
|
"title": "getShuffle()",
|
|
2175
2175
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2176
2176
|
"file": "/test/device.ts",
|
|
@@ -2181,7 +2181,7 @@
|
|
|
2181
2181
|
"title": "should work",
|
|
2182
2182
|
"fullTitle": "NodePyATVDevice getShuffle() should work",
|
|
2183
2183
|
"timedOut": false,
|
|
2184
|
-
"duration":
|
|
2184
|
+
"duration": 1,
|
|
2185
2185
|
"state": "passed",
|
|
2186
2186
|
"speed": "fast",
|
|
2187
2187
|
"pass": true,
|
|
@@ -2190,26 +2190,26 @@
|
|
|
2190
2190
|
"context": null,
|
|
2191
2191
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'success',\n shuffle: 'songs'\n });\n })\n });\n const result = yield device.getShuffle();\n assert.deepStrictEqual(result, NodePyATVShuffleState.songs);\n assert.deepStrictEqual(result, 'songs');\n});",
|
|
2192
2192
|
"err": {},
|
|
2193
|
-
"uuid": "
|
|
2194
|
-
"parentUUID": "
|
|
2193
|
+
"uuid": "22972b7b-1b2f-4348-ba9d-1ad99e1cdf14",
|
|
2194
|
+
"parentUUID": "663e64d6-58bb-40b3-97fe-13e4e32a3e62",
|
|
2195
2195
|
"isHook": false,
|
|
2196
2196
|
"skipped": false
|
|
2197
2197
|
}
|
|
2198
2198
|
],
|
|
2199
2199
|
"suites": [],
|
|
2200
2200
|
"passes": [
|
|
2201
|
-
"
|
|
2201
|
+
"22972b7b-1b2f-4348-ba9d-1ad99e1cdf14"
|
|
2202
2202
|
],
|
|
2203
2203
|
"failures": [],
|
|
2204
2204
|
"pending": [],
|
|
2205
2205
|
"skipped": [],
|
|
2206
|
-
"duration":
|
|
2206
|
+
"duration": 1,
|
|
2207
2207
|
"root": false,
|
|
2208
2208
|
"rootEmpty": false,
|
|
2209
2209
|
"_timeout": 2000
|
|
2210
2210
|
},
|
|
2211
2211
|
{
|
|
2212
|
-
"uuid": "
|
|
2212
|
+
"uuid": "ff40de55-cc4f-4223-a4e1-09a743276b1a",
|
|
2213
2213
|
"title": "getRepeat()",
|
|
2214
2214
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2215
2215
|
"file": "/test/device.ts",
|
|
@@ -2220,7 +2220,7 @@
|
|
|
2220
2220
|
"title": "should work",
|
|
2221
2221
|
"fullTitle": "NodePyATVDevice getRepeat() should work",
|
|
2222
2222
|
"timedOut": false,
|
|
2223
|
-
"duration":
|
|
2223
|
+
"duration": 1,
|
|
2224
2224
|
"state": "passed",
|
|
2225
2225
|
"speed": "fast",
|
|
2226
2226
|
"pass": true,
|
|
@@ -2229,26 +2229,26 @@
|
|
|
2229
2229
|
"context": null,
|
|
2230
2230
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'success',\n repeat: 'all'\n });\n })\n });\n const result = yield device.getRepeat();\n assert.deepStrictEqual(result, NodePyATVRepeatState.all);\n assert.deepStrictEqual(result, 'all');\n});",
|
|
2231
2231
|
"err": {},
|
|
2232
|
-
"uuid": "
|
|
2233
|
-
"parentUUID": "
|
|
2232
|
+
"uuid": "7bcd1d07-bedb-478a-8a59-86970c38cfc3",
|
|
2233
|
+
"parentUUID": "ff40de55-cc4f-4223-a4e1-09a743276b1a",
|
|
2234
2234
|
"isHook": false,
|
|
2235
2235
|
"skipped": false
|
|
2236
2236
|
}
|
|
2237
2237
|
],
|
|
2238
2238
|
"suites": [],
|
|
2239
2239
|
"passes": [
|
|
2240
|
-
"
|
|
2240
|
+
"7bcd1d07-bedb-478a-8a59-86970c38cfc3"
|
|
2241
2241
|
],
|
|
2242
2242
|
"failures": [],
|
|
2243
2243
|
"pending": [],
|
|
2244
2244
|
"skipped": [],
|
|
2245
|
-
"duration":
|
|
2245
|
+
"duration": 1,
|
|
2246
2246
|
"root": false,
|
|
2247
2247
|
"rootEmpty": false,
|
|
2248
2248
|
"_timeout": 2000
|
|
2249
2249
|
},
|
|
2250
2250
|
{
|
|
2251
|
-
"uuid": "
|
|
2251
|
+
"uuid": "ab23dede-5c6e-4b80-a88a-10ab877c7727",
|
|
2252
2252
|
"title": "getApp()",
|
|
2253
2253
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2254
2254
|
"file": "/test/device.ts",
|
|
@@ -2259,7 +2259,7 @@
|
|
|
2259
2259
|
"title": "should work",
|
|
2260
2260
|
"fullTitle": "NodePyATVDevice getApp() should work",
|
|
2261
2261
|
"timedOut": false,
|
|
2262
|
-
"duration":
|
|
2262
|
+
"duration": 1,
|
|
2263
2263
|
"state": "passed",
|
|
2264
2264
|
"speed": "fast",
|
|
2265
2265
|
"pass": true,
|
|
@@ -2268,26 +2268,26 @@
|
|
|
2268
2268
|
"context": null,
|
|
2269
2269
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'success',\n app: 'My App'\n });\n })\n });\n const result = yield device.getApp();\n assert.strictEqual(result, 'My App');\n});",
|
|
2270
2270
|
"err": {},
|
|
2271
|
-
"uuid": "
|
|
2272
|
-
"parentUUID": "
|
|
2271
|
+
"uuid": "8eae7fd8-2d9c-4d98-b5b5-682c7226c925",
|
|
2272
|
+
"parentUUID": "ab23dede-5c6e-4b80-a88a-10ab877c7727",
|
|
2273
2273
|
"isHook": false,
|
|
2274
2274
|
"skipped": false
|
|
2275
2275
|
}
|
|
2276
2276
|
],
|
|
2277
2277
|
"suites": [],
|
|
2278
2278
|
"passes": [
|
|
2279
|
-
"
|
|
2279
|
+
"8eae7fd8-2d9c-4d98-b5b5-682c7226c925"
|
|
2280
2280
|
],
|
|
2281
2281
|
"failures": [],
|
|
2282
2282
|
"pending": [],
|
|
2283
2283
|
"skipped": [],
|
|
2284
|
-
"duration":
|
|
2284
|
+
"duration": 1,
|
|
2285
2285
|
"root": false,
|
|
2286
2286
|
"rootEmpty": false,
|
|
2287
2287
|
"_timeout": 2000
|
|
2288
2288
|
},
|
|
2289
2289
|
{
|
|
2290
|
-
"uuid": "
|
|
2290
|
+
"uuid": "36b42f84-47d3-4b60-93fb-942e705f00ab",
|
|
2291
2291
|
"title": "getAppId()",
|
|
2292
2292
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2293
2293
|
"file": "/test/device.ts",
|
|
@@ -2298,7 +2298,7 @@
|
|
|
2298
2298
|
"title": "should work",
|
|
2299
2299
|
"fullTitle": "NodePyATVDevice getAppId() should work",
|
|
2300
2300
|
"timedOut": false,
|
|
2301
|
-
"duration":
|
|
2301
|
+
"duration": 1,
|
|
2302
2302
|
"state": "passed",
|
|
2303
2303
|
"speed": "fast",
|
|
2304
2304
|
"pass": true,
|
|
@@ -2307,26 +2307,65 @@
|
|
|
2307
2307
|
"context": null,
|
|
2308
2308
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'success',\n app_id: 'app.example.com'\n });\n })\n });\n const result = yield device.getAppId();\n assert.strictEqual(result, 'app.example.com');\n});",
|
|
2309
2309
|
"err": {},
|
|
2310
|
-
"uuid": "
|
|
2311
|
-
"parentUUID": "
|
|
2310
|
+
"uuid": "8da9a064-e563-4007-b1a0-79f063377bb5",
|
|
2311
|
+
"parentUUID": "36b42f84-47d3-4b60-93fb-942e705f00ab",
|
|
2312
2312
|
"isHook": false,
|
|
2313
2313
|
"skipped": false
|
|
2314
2314
|
}
|
|
2315
2315
|
],
|
|
2316
2316
|
"suites": [],
|
|
2317
2317
|
"passes": [
|
|
2318
|
-
"
|
|
2318
|
+
"8da9a064-e563-4007-b1a0-79f063377bb5"
|
|
2319
2319
|
],
|
|
2320
2320
|
"failures": [],
|
|
2321
2321
|
"pending": [],
|
|
2322
2322
|
"skipped": [],
|
|
2323
|
-
"duration":
|
|
2323
|
+
"duration": 1,
|
|
2324
2324
|
"root": false,
|
|
2325
2325
|
"rootEmpty": false,
|
|
2326
2326
|
"_timeout": 2000
|
|
2327
2327
|
},
|
|
2328
2328
|
{
|
|
2329
|
-
"uuid": "
|
|
2329
|
+
"uuid": "77a63472-cf2b-4137-81e1-3a5781b148b1",
|
|
2330
|
+
"title": "listApps()",
|
|
2331
|
+
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2332
|
+
"file": "/test/device.ts",
|
|
2333
|
+
"beforeHooks": [],
|
|
2334
|
+
"afterHooks": [],
|
|
2335
|
+
"tests": [
|
|
2336
|
+
{
|
|
2337
|
+
"title": "should work",
|
|
2338
|
+
"fullTitle": "NodePyATVDevice listApps() should work",
|
|
2339
|
+
"timedOut": false,
|
|
2340
|
+
"duration": 0,
|
|
2341
|
+
"state": "passed",
|
|
2342
|
+
"speed": "fast",
|
|
2343
|
+
"pass": true,
|
|
2344
|
+
"fail": false,
|
|
2345
|
+
"pending": false,
|
|
2346
|
+
"context": null,
|
|
2347
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('App: Fitness (com.apple.Fitness), App: Podcasts (com.apple.podcasts), ' +\n 'App: Filme (com.apple.TVMovies), App: Prime Video (com.amazon.aiv.AIVApp), ' +\n 'App: TV (com.apple.TVWatchList), App: Fotos (com.apple.TVPhotos), App: App Store ' +\n '(com.apple.TVAppStore), App: Arcade (com.apple.Arcade), App: TV-Sendungen (com.apple.TVShows), ' +\n 'App: Suchen (com.apple.TVSearch), App: Live TV (de.couchfunk.WM2014), App: RTL+ ' +\n '(com.rtlinteractive.tvnow), App: Computer (com.apple.TVHomeSharing), App: ARTE ' +\n '(tv.arte.plus7), App: YouTube (com.google.ios.youtube), App: ARD Mediathek ' +\n '(de.swr.avp.ard.tablet), App: Disney+ (com.disney.disneyplus), App: Plex (com.plexapp.plex), ' +\n 'App: Joyn (de.prosiebensat1digital.seventv), App: Einstellungen (com.apple.TVSettings), ' +\n 'App: ZDFmediathek (de.zdf.mediathek.universal), App: Crossy Road (com.hipsterwhale.crossy), ' +\n 'App: Netflix (com.netflix.Netflix), App: Infuse (com.firecore.infuse), ' +\n 'App: Musik (com.apple.TVMusic)');\n })\n });\n const result = yield device.listApps();\n assert.strictEqual(result.length, 25);\n assert.strictEqual(result[0].id, 'com.apple.Fitness');\n assert.strictEqual(result[0].name, 'Fitness');\n});",
|
|
2348
|
+
"err": {},
|
|
2349
|
+
"uuid": "d4a70ac6-cb61-460a-93a7-0afcab2ebe6f",
|
|
2350
|
+
"parentUUID": "77a63472-cf2b-4137-81e1-3a5781b148b1",
|
|
2351
|
+
"isHook": false,
|
|
2352
|
+
"skipped": false
|
|
2353
|
+
}
|
|
2354
|
+
],
|
|
2355
|
+
"suites": [],
|
|
2356
|
+
"passes": [
|
|
2357
|
+
"d4a70ac6-cb61-460a-93a7-0afcab2ebe6f"
|
|
2358
|
+
],
|
|
2359
|
+
"failures": [],
|
|
2360
|
+
"pending": [],
|
|
2361
|
+
"skipped": [],
|
|
2362
|
+
"duration": 0,
|
|
2363
|
+
"root": false,
|
|
2364
|
+
"rootEmpty": false,
|
|
2365
|
+
"_timeout": 2000
|
|
2366
|
+
},
|
|
2367
|
+
{
|
|
2368
|
+
"uuid": "26d9ef6b-71a4-47a5-9721-ee76740df50d",
|
|
2330
2369
|
"title": "pressKey()",
|
|
2331
2370
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2332
2371
|
"file": "/test/device.ts",
|
|
@@ -2346,8 +2385,8 @@
|
|
|
2346
2385
|
"context": null,
|
|
2347
2386
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n yield device.pressKey(NodePyATVKeys.home);\n});",
|
|
2348
2387
|
"err": {},
|
|
2349
|
-
"uuid": "
|
|
2350
|
-
"parentUUID": "
|
|
2388
|
+
"uuid": "cf32cd4e-7f02-4cc1-b1b8-4e16313197e3",
|
|
2389
|
+
"parentUUID": "26d9ef6b-71a4-47a5-9721-ee76740df50d",
|
|
2351
2390
|
"isHook": false,
|
|
2352
2391
|
"skipped": false
|
|
2353
2392
|
},
|
|
@@ -2364,8 +2403,8 @@
|
|
|
2364
2403
|
"context": null,
|
|
2365
2404
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2'\n });\n yield assert.rejects(() => __awaiter(this, void 0, void 0, function* () {\n // @ts-ignore\n yield device.pressKey('foo');\n }), /Unsupported key value foo/);\n});",
|
|
2366
2405
|
"err": {},
|
|
2367
|
-
"uuid": "
|
|
2368
|
-
"parentUUID": "
|
|
2406
|
+
"uuid": "ea691134-7c7e-45f7-a6a5-64a8b50bfb2a",
|
|
2407
|
+
"parentUUID": "26d9ef6b-71a4-47a5-9721-ee76740df50d",
|
|
2369
2408
|
"isHook": false,
|
|
2370
2409
|
"skipped": false
|
|
2371
2410
|
},
|
|
@@ -2382,17 +2421,17 @@
|
|
|
2382
2421
|
"context": null,
|
|
2383
2422
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"failure\"}');\n })\n });\n yield assert.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield device.pressKey(NodePyATVKeys.home);\n }), /Unable to parse pyatv response/);\n});",
|
|
2384
2423
|
"err": {},
|
|
2385
|
-
"uuid": "
|
|
2386
|
-
"parentUUID": "
|
|
2424
|
+
"uuid": "4ee5682d-ecd6-428d-b494-a5a47ba011e8",
|
|
2425
|
+
"parentUUID": "26d9ef6b-71a4-47a5-9721-ee76740df50d",
|
|
2387
2426
|
"isHook": false,
|
|
2388
2427
|
"skipped": false
|
|
2389
2428
|
}
|
|
2390
2429
|
],
|
|
2391
2430
|
"suites": [],
|
|
2392
2431
|
"passes": [
|
|
2393
|
-
"
|
|
2394
|
-
"
|
|
2395
|
-
"
|
|
2432
|
+
"cf32cd4e-7f02-4cc1-b1b8-4e16313197e3",
|
|
2433
|
+
"ea691134-7c7e-45f7-a6a5-64a8b50bfb2a",
|
|
2434
|
+
"4ee5682d-ecd6-428d-b494-a5a47ba011e8"
|
|
2396
2435
|
],
|
|
2397
2436
|
"failures": [],
|
|
2398
2437
|
"pending": [],
|
|
@@ -2403,7 +2442,7 @@
|
|
|
2403
2442
|
"_timeout": 2000
|
|
2404
2443
|
},
|
|
2405
2444
|
{
|
|
2406
|
-
"uuid": "
|
|
2445
|
+
"uuid": "8130a82a-f8d2-48db-af02-b1c7b67e41a9",
|
|
2407
2446
|
"title": "down()",
|
|
2408
2447
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2409
2448
|
"file": "/test/device.ts",
|
|
@@ -2414,7 +2453,7 @@
|
|
|
2414
2453
|
"title": "should work",
|
|
2415
2454
|
"fullTitle": "NodePyATVDevice down() should work",
|
|
2416
2455
|
"timedOut": false,
|
|
2417
|
-
"duration":
|
|
2456
|
+
"duration": 1,
|
|
2418
2457
|
"state": "passed",
|
|
2419
2458
|
"speed": "fast",
|
|
2420
2459
|
"pass": true,
|
|
@@ -2423,26 +2462,26 @@
|
|
|
2423
2462
|
"context": null,
|
|
2424
2463
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2425
2464
|
"err": {},
|
|
2426
|
-
"uuid": "
|
|
2427
|
-
"parentUUID": "
|
|
2465
|
+
"uuid": "4ee2bc3b-bf4d-4b4a-9b6b-98e9eb6a1491",
|
|
2466
|
+
"parentUUID": "8130a82a-f8d2-48db-af02-b1c7b67e41a9",
|
|
2428
2467
|
"isHook": false,
|
|
2429
2468
|
"skipped": false
|
|
2430
2469
|
}
|
|
2431
2470
|
],
|
|
2432
2471
|
"suites": [],
|
|
2433
2472
|
"passes": [
|
|
2434
|
-
"
|
|
2473
|
+
"4ee2bc3b-bf4d-4b4a-9b6b-98e9eb6a1491"
|
|
2435
2474
|
],
|
|
2436
2475
|
"failures": [],
|
|
2437
2476
|
"pending": [],
|
|
2438
2477
|
"skipped": [],
|
|
2439
|
-
"duration":
|
|
2478
|
+
"duration": 1,
|
|
2440
2479
|
"root": false,
|
|
2441
2480
|
"rootEmpty": false,
|
|
2442
2481
|
"_timeout": 2000
|
|
2443
2482
|
},
|
|
2444
2483
|
{
|
|
2445
|
-
"uuid": "
|
|
2484
|
+
"uuid": "a394aa85-6c17-41db-bb6a-08ca7e09e68c",
|
|
2446
2485
|
"title": "home()",
|
|
2447
2486
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2448
2487
|
"file": "/test/device.ts",
|
|
@@ -2453,7 +2492,7 @@
|
|
|
2453
2492
|
"title": "should work",
|
|
2454
2493
|
"fullTitle": "NodePyATVDevice home() should work",
|
|
2455
2494
|
"timedOut": false,
|
|
2456
|
-
"duration":
|
|
2495
|
+
"duration": 2,
|
|
2457
2496
|
"state": "passed",
|
|
2458
2497
|
"speed": "fast",
|
|
2459
2498
|
"pass": true,
|
|
@@ -2462,26 +2501,26 @@
|
|
|
2462
2501
|
"context": null,
|
|
2463
2502
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2464
2503
|
"err": {},
|
|
2465
|
-
"uuid": "
|
|
2466
|
-
"parentUUID": "
|
|
2504
|
+
"uuid": "2ff8214f-6202-4360-924d-7969f5db685f",
|
|
2505
|
+
"parentUUID": "a394aa85-6c17-41db-bb6a-08ca7e09e68c",
|
|
2467
2506
|
"isHook": false,
|
|
2468
2507
|
"skipped": false
|
|
2469
2508
|
}
|
|
2470
2509
|
],
|
|
2471
2510
|
"suites": [],
|
|
2472
2511
|
"passes": [
|
|
2473
|
-
"
|
|
2512
|
+
"2ff8214f-6202-4360-924d-7969f5db685f"
|
|
2474
2513
|
],
|
|
2475
2514
|
"failures": [],
|
|
2476
2515
|
"pending": [],
|
|
2477
2516
|
"skipped": [],
|
|
2478
|
-
"duration":
|
|
2517
|
+
"duration": 2,
|
|
2479
2518
|
"root": false,
|
|
2480
2519
|
"rootEmpty": false,
|
|
2481
2520
|
"_timeout": 2000
|
|
2482
2521
|
},
|
|
2483
2522
|
{
|
|
2484
|
-
"uuid": "
|
|
2523
|
+
"uuid": "400c2b0d-7471-4607-85d8-faaa1c2c51a7",
|
|
2485
2524
|
"title": "homeHold()",
|
|
2486
2525
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2487
2526
|
"file": "/test/device.ts",
|
|
@@ -2501,15 +2540,15 @@
|
|
|
2501
2540
|
"context": null,
|
|
2502
2541
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2503
2542
|
"err": {},
|
|
2504
|
-
"uuid": "
|
|
2505
|
-
"parentUUID": "
|
|
2543
|
+
"uuid": "722e663a-33a6-4974-808a-74b549963a72",
|
|
2544
|
+
"parentUUID": "400c2b0d-7471-4607-85d8-faaa1c2c51a7",
|
|
2506
2545
|
"isHook": false,
|
|
2507
2546
|
"skipped": false
|
|
2508
2547
|
}
|
|
2509
2548
|
],
|
|
2510
2549
|
"suites": [],
|
|
2511
2550
|
"passes": [
|
|
2512
|
-
"
|
|
2551
|
+
"722e663a-33a6-4974-808a-74b549963a72"
|
|
2513
2552
|
],
|
|
2514
2553
|
"failures": [],
|
|
2515
2554
|
"pending": [],
|
|
@@ -2520,7 +2559,7 @@
|
|
|
2520
2559
|
"_timeout": 2000
|
|
2521
2560
|
},
|
|
2522
2561
|
{
|
|
2523
|
-
"uuid": "
|
|
2562
|
+
"uuid": "2f552f8e-2a2b-45e4-8c0e-80ccdc846ba3",
|
|
2524
2563
|
"title": "left()",
|
|
2525
2564
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2526
2565
|
"file": "/test/device.ts",
|
|
@@ -2540,15 +2579,15 @@
|
|
|
2540
2579
|
"context": null,
|
|
2541
2580
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2542
2581
|
"err": {},
|
|
2543
|
-
"uuid": "
|
|
2544
|
-
"parentUUID": "
|
|
2582
|
+
"uuid": "97b85bc1-964d-4b49-92f1-daa8f18ae15c",
|
|
2583
|
+
"parentUUID": "2f552f8e-2a2b-45e4-8c0e-80ccdc846ba3",
|
|
2545
2584
|
"isHook": false,
|
|
2546
2585
|
"skipped": false
|
|
2547
2586
|
}
|
|
2548
2587
|
],
|
|
2549
2588
|
"suites": [],
|
|
2550
2589
|
"passes": [
|
|
2551
|
-
"
|
|
2590
|
+
"97b85bc1-964d-4b49-92f1-daa8f18ae15c"
|
|
2552
2591
|
],
|
|
2553
2592
|
"failures": [],
|
|
2554
2593
|
"pending": [],
|
|
@@ -2559,7 +2598,7 @@
|
|
|
2559
2598
|
"_timeout": 2000
|
|
2560
2599
|
},
|
|
2561
2600
|
{
|
|
2562
|
-
"uuid": "
|
|
2601
|
+
"uuid": "1737fb18-4fae-41bf-96c5-3d3c1da41fb6",
|
|
2563
2602
|
"title": "menu()",
|
|
2564
2603
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2565
2604
|
"file": "/test/device.ts",
|
|
@@ -2570,7 +2609,7 @@
|
|
|
2570
2609
|
"title": "should work",
|
|
2571
2610
|
"fullTitle": "NodePyATVDevice menu() should work",
|
|
2572
2611
|
"timedOut": false,
|
|
2573
|
-
"duration":
|
|
2612
|
+
"duration": 1,
|
|
2574
2613
|
"state": "passed",
|
|
2575
2614
|
"speed": "fast",
|
|
2576
2615
|
"pass": true,
|
|
@@ -2579,26 +2618,26 @@
|
|
|
2579
2618
|
"context": null,
|
|
2580
2619
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2581
2620
|
"err": {},
|
|
2582
|
-
"uuid": "
|
|
2583
|
-
"parentUUID": "
|
|
2621
|
+
"uuid": "1ded3d63-ff54-48e9-9767-342df037c88c",
|
|
2622
|
+
"parentUUID": "1737fb18-4fae-41bf-96c5-3d3c1da41fb6",
|
|
2584
2623
|
"isHook": false,
|
|
2585
2624
|
"skipped": false
|
|
2586
2625
|
}
|
|
2587
2626
|
],
|
|
2588
2627
|
"suites": [],
|
|
2589
2628
|
"passes": [
|
|
2590
|
-
"
|
|
2629
|
+
"1ded3d63-ff54-48e9-9767-342df037c88c"
|
|
2591
2630
|
],
|
|
2592
2631
|
"failures": [],
|
|
2593
2632
|
"pending": [],
|
|
2594
2633
|
"skipped": [],
|
|
2595
|
-
"duration":
|
|
2634
|
+
"duration": 1,
|
|
2596
2635
|
"root": false,
|
|
2597
2636
|
"rootEmpty": false,
|
|
2598
2637
|
"_timeout": 2000
|
|
2599
2638
|
},
|
|
2600
2639
|
{
|
|
2601
|
-
"uuid": "
|
|
2640
|
+
"uuid": "22bf55ca-be90-45fa-8be3-27f7a353f7c3",
|
|
2602
2641
|
"title": "next()",
|
|
2603
2642
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2604
2643
|
"file": "/test/device.ts",
|
|
@@ -2609,7 +2648,7 @@
|
|
|
2609
2648
|
"title": "should work",
|
|
2610
2649
|
"fullTitle": "NodePyATVDevice next() should work",
|
|
2611
2650
|
"timedOut": false,
|
|
2612
|
-
"duration":
|
|
2651
|
+
"duration": 1,
|
|
2613
2652
|
"state": "passed",
|
|
2614
2653
|
"speed": "fast",
|
|
2615
2654
|
"pass": true,
|
|
@@ -2618,26 +2657,26 @@
|
|
|
2618
2657
|
"context": null,
|
|
2619
2658
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2620
2659
|
"err": {},
|
|
2621
|
-
"uuid": "
|
|
2622
|
-
"parentUUID": "
|
|
2660
|
+
"uuid": "1e6b3943-ce13-4d50-97a8-c4c1f9b66a51",
|
|
2661
|
+
"parentUUID": "22bf55ca-be90-45fa-8be3-27f7a353f7c3",
|
|
2623
2662
|
"isHook": false,
|
|
2624
2663
|
"skipped": false
|
|
2625
2664
|
}
|
|
2626
2665
|
],
|
|
2627
2666
|
"suites": [],
|
|
2628
2667
|
"passes": [
|
|
2629
|
-
"
|
|
2668
|
+
"1e6b3943-ce13-4d50-97a8-c4c1f9b66a51"
|
|
2630
2669
|
],
|
|
2631
2670
|
"failures": [],
|
|
2632
2671
|
"pending": [],
|
|
2633
2672
|
"skipped": [],
|
|
2634
|
-
"duration":
|
|
2673
|
+
"duration": 1,
|
|
2635
2674
|
"root": false,
|
|
2636
2675
|
"rootEmpty": false,
|
|
2637
2676
|
"_timeout": 2000
|
|
2638
2677
|
},
|
|
2639
2678
|
{
|
|
2640
|
-
"uuid": "
|
|
2679
|
+
"uuid": "d429dd42-fd21-4fe3-9296-ef955ab8a076",
|
|
2641
2680
|
"title": "pause()",
|
|
2642
2681
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2643
2682
|
"file": "/test/device.ts",
|
|
@@ -2657,15 +2696,15 @@
|
|
|
2657
2696
|
"context": null,
|
|
2658
2697
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2659
2698
|
"err": {},
|
|
2660
|
-
"uuid": "
|
|
2661
|
-
"parentUUID": "
|
|
2699
|
+
"uuid": "1ec61d4f-5c21-4b66-a142-ee16cdcf2fe3",
|
|
2700
|
+
"parentUUID": "d429dd42-fd21-4fe3-9296-ef955ab8a076",
|
|
2662
2701
|
"isHook": false,
|
|
2663
2702
|
"skipped": false
|
|
2664
2703
|
}
|
|
2665
2704
|
],
|
|
2666
2705
|
"suites": [],
|
|
2667
2706
|
"passes": [
|
|
2668
|
-
"
|
|
2707
|
+
"1ec61d4f-5c21-4b66-a142-ee16cdcf2fe3"
|
|
2669
2708
|
],
|
|
2670
2709
|
"failures": [],
|
|
2671
2710
|
"pending": [],
|
|
@@ -2676,7 +2715,7 @@
|
|
|
2676
2715
|
"_timeout": 2000
|
|
2677
2716
|
},
|
|
2678
2717
|
{
|
|
2679
|
-
"uuid": "
|
|
2718
|
+
"uuid": "daf52f11-fff0-4574-b3fa-d992ff50fb2e",
|
|
2680
2719
|
"title": "play()",
|
|
2681
2720
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2682
2721
|
"file": "/test/device.ts",
|
|
@@ -2687,7 +2726,7 @@
|
|
|
2687
2726
|
"title": "should work",
|
|
2688
2727
|
"fullTitle": "NodePyATVDevice play() should work",
|
|
2689
2728
|
"timedOut": false,
|
|
2690
|
-
"duration":
|
|
2729
|
+
"duration": 1,
|
|
2691
2730
|
"state": "passed",
|
|
2692
2731
|
"speed": "fast",
|
|
2693
2732
|
"pass": true,
|
|
@@ -2696,26 +2735,26 @@
|
|
|
2696
2735
|
"context": null,
|
|
2697
2736
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2698
2737
|
"err": {},
|
|
2699
|
-
"uuid": "
|
|
2700
|
-
"parentUUID": "
|
|
2738
|
+
"uuid": "0a3aaaf7-4538-4eb9-925e-08a3e1d5e97b",
|
|
2739
|
+
"parentUUID": "daf52f11-fff0-4574-b3fa-d992ff50fb2e",
|
|
2701
2740
|
"isHook": false,
|
|
2702
2741
|
"skipped": false
|
|
2703
2742
|
}
|
|
2704
2743
|
],
|
|
2705
2744
|
"suites": [],
|
|
2706
2745
|
"passes": [
|
|
2707
|
-
"
|
|
2746
|
+
"0a3aaaf7-4538-4eb9-925e-08a3e1d5e97b"
|
|
2708
2747
|
],
|
|
2709
2748
|
"failures": [],
|
|
2710
2749
|
"pending": [],
|
|
2711
2750
|
"skipped": [],
|
|
2712
|
-
"duration":
|
|
2751
|
+
"duration": 1,
|
|
2713
2752
|
"root": false,
|
|
2714
2753
|
"rootEmpty": false,
|
|
2715
2754
|
"_timeout": 2000
|
|
2716
2755
|
},
|
|
2717
2756
|
{
|
|
2718
|
-
"uuid": "
|
|
2757
|
+
"uuid": "b7b5afbb-2235-42d2-8485-b72f7314be7f",
|
|
2719
2758
|
"title": "playPause()",
|
|
2720
2759
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2721
2760
|
"file": "/test/device.ts",
|
|
@@ -2726,7 +2765,7 @@
|
|
|
2726
2765
|
"title": "should work",
|
|
2727
2766
|
"fullTitle": "NodePyATVDevice playPause() should work",
|
|
2728
2767
|
"timedOut": false,
|
|
2729
|
-
"duration":
|
|
2768
|
+
"duration": 1,
|
|
2730
2769
|
"state": "passed",
|
|
2731
2770
|
"speed": "fast",
|
|
2732
2771
|
"pass": true,
|
|
@@ -2735,26 +2774,26 @@
|
|
|
2735
2774
|
"context": null,
|
|
2736
2775
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2737
2776
|
"err": {},
|
|
2738
|
-
"uuid": "
|
|
2739
|
-
"parentUUID": "
|
|
2777
|
+
"uuid": "6916e08f-3626-4fa4-ad74-dc433dce20e0",
|
|
2778
|
+
"parentUUID": "b7b5afbb-2235-42d2-8485-b72f7314be7f",
|
|
2740
2779
|
"isHook": false,
|
|
2741
2780
|
"skipped": false
|
|
2742
2781
|
}
|
|
2743
2782
|
],
|
|
2744
2783
|
"suites": [],
|
|
2745
2784
|
"passes": [
|
|
2746
|
-
"
|
|
2785
|
+
"6916e08f-3626-4fa4-ad74-dc433dce20e0"
|
|
2747
2786
|
],
|
|
2748
2787
|
"failures": [],
|
|
2749
2788
|
"pending": [],
|
|
2750
2789
|
"skipped": [],
|
|
2751
|
-
"duration":
|
|
2790
|
+
"duration": 1,
|
|
2752
2791
|
"root": false,
|
|
2753
2792
|
"rootEmpty": false,
|
|
2754
2793
|
"_timeout": 2000
|
|
2755
2794
|
},
|
|
2756
2795
|
{
|
|
2757
|
-
"uuid": "
|
|
2796
|
+
"uuid": "b1ed2922-670a-4231-bfca-fd204dca7794",
|
|
2758
2797
|
"title": "previous()",
|
|
2759
2798
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2760
2799
|
"file": "/test/device.ts",
|
|
@@ -2765,7 +2804,7 @@
|
|
|
2765
2804
|
"title": "should work",
|
|
2766
2805
|
"fullTitle": "NodePyATVDevice previous() should work",
|
|
2767
2806
|
"timedOut": false,
|
|
2768
|
-
"duration":
|
|
2807
|
+
"duration": 2,
|
|
2769
2808
|
"state": "passed",
|
|
2770
2809
|
"speed": "fast",
|
|
2771
2810
|
"pass": true,
|
|
@@ -2774,26 +2813,26 @@
|
|
|
2774
2813
|
"context": null,
|
|
2775
2814
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2776
2815
|
"err": {},
|
|
2777
|
-
"uuid": "
|
|
2778
|
-
"parentUUID": "
|
|
2816
|
+
"uuid": "efc3f43c-05a4-48a7-9c34-45b56af57529",
|
|
2817
|
+
"parentUUID": "b1ed2922-670a-4231-bfca-fd204dca7794",
|
|
2779
2818
|
"isHook": false,
|
|
2780
2819
|
"skipped": false
|
|
2781
2820
|
}
|
|
2782
2821
|
],
|
|
2783
2822
|
"suites": [],
|
|
2784
2823
|
"passes": [
|
|
2785
|
-
"
|
|
2824
|
+
"efc3f43c-05a4-48a7-9c34-45b56af57529"
|
|
2786
2825
|
],
|
|
2787
2826
|
"failures": [],
|
|
2788
2827
|
"pending": [],
|
|
2789
2828
|
"skipped": [],
|
|
2790
|
-
"duration":
|
|
2829
|
+
"duration": 2,
|
|
2791
2830
|
"root": false,
|
|
2792
2831
|
"rootEmpty": false,
|
|
2793
2832
|
"_timeout": 2000
|
|
2794
2833
|
},
|
|
2795
2834
|
{
|
|
2796
|
-
"uuid": "
|
|
2835
|
+
"uuid": "679eb54d-11c8-41a5-86e6-4a78d8e1df1e",
|
|
2797
2836
|
"title": "right()",
|
|
2798
2837
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2799
2838
|
"file": "/test/device.ts",
|
|
@@ -2804,7 +2843,7 @@
|
|
|
2804
2843
|
"title": "should work",
|
|
2805
2844
|
"fullTitle": "NodePyATVDevice right() should work",
|
|
2806
2845
|
"timedOut": false,
|
|
2807
|
-
"duration":
|
|
2846
|
+
"duration": 1,
|
|
2808
2847
|
"state": "passed",
|
|
2809
2848
|
"speed": "fast",
|
|
2810
2849
|
"pass": true,
|
|
@@ -2813,26 +2852,26 @@
|
|
|
2813
2852
|
"context": null,
|
|
2814
2853
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2815
2854
|
"err": {},
|
|
2816
|
-
"uuid": "
|
|
2817
|
-
"parentUUID": "
|
|
2855
|
+
"uuid": "8344e398-de9c-42c0-a609-f9417ae86ef3",
|
|
2856
|
+
"parentUUID": "679eb54d-11c8-41a5-86e6-4a78d8e1df1e",
|
|
2818
2857
|
"isHook": false,
|
|
2819
2858
|
"skipped": false
|
|
2820
2859
|
}
|
|
2821
2860
|
],
|
|
2822
2861
|
"suites": [],
|
|
2823
2862
|
"passes": [
|
|
2824
|
-
"
|
|
2863
|
+
"8344e398-de9c-42c0-a609-f9417ae86ef3"
|
|
2825
2864
|
],
|
|
2826
2865
|
"failures": [],
|
|
2827
2866
|
"pending": [],
|
|
2828
2867
|
"skipped": [],
|
|
2829
|
-
"duration":
|
|
2868
|
+
"duration": 1,
|
|
2830
2869
|
"root": false,
|
|
2831
2870
|
"rootEmpty": false,
|
|
2832
2871
|
"_timeout": 2000
|
|
2833
2872
|
},
|
|
2834
2873
|
{
|
|
2835
|
-
"uuid": "
|
|
2874
|
+
"uuid": "ae983f5c-6eeb-4a41-be88-3c63c305ceb3",
|
|
2836
2875
|
"title": "select()",
|
|
2837
2876
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2838
2877
|
"file": "/test/device.ts",
|
|
@@ -2852,15 +2891,15 @@
|
|
|
2852
2891
|
"context": null,
|
|
2853
2892
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2854
2893
|
"err": {},
|
|
2855
|
-
"uuid": "
|
|
2856
|
-
"parentUUID": "
|
|
2894
|
+
"uuid": "539ba48e-93f1-49aa-b66e-97f2a7e33f28",
|
|
2895
|
+
"parentUUID": "ae983f5c-6eeb-4a41-be88-3c63c305ceb3",
|
|
2857
2896
|
"isHook": false,
|
|
2858
2897
|
"skipped": false
|
|
2859
2898
|
}
|
|
2860
2899
|
],
|
|
2861
2900
|
"suites": [],
|
|
2862
2901
|
"passes": [
|
|
2863
|
-
"
|
|
2902
|
+
"539ba48e-93f1-49aa-b66e-97f2a7e33f28"
|
|
2864
2903
|
],
|
|
2865
2904
|
"failures": [],
|
|
2866
2905
|
"pending": [],
|
|
@@ -2871,7 +2910,7 @@
|
|
|
2871
2910
|
"_timeout": 2000
|
|
2872
2911
|
},
|
|
2873
2912
|
{
|
|
2874
|
-
"uuid": "
|
|
2913
|
+
"uuid": "9efd553b-8ecb-4839-85b4-ed278bf442f5",
|
|
2875
2914
|
"title": "skipBackward()",
|
|
2876
2915
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2877
2916
|
"file": "/test/device.ts",
|
|
@@ -2891,15 +2930,15 @@
|
|
|
2891
2930
|
"context": null,
|
|
2892
2931
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2893
2932
|
"err": {},
|
|
2894
|
-
"uuid": "
|
|
2895
|
-
"parentUUID": "
|
|
2933
|
+
"uuid": "fc2c6bbe-f61b-4ab3-bd28-e0fd4930058b",
|
|
2934
|
+
"parentUUID": "9efd553b-8ecb-4839-85b4-ed278bf442f5",
|
|
2896
2935
|
"isHook": false,
|
|
2897
2936
|
"skipped": false
|
|
2898
2937
|
}
|
|
2899
2938
|
],
|
|
2900
2939
|
"suites": [],
|
|
2901
2940
|
"passes": [
|
|
2902
|
-
"
|
|
2941
|
+
"fc2c6bbe-f61b-4ab3-bd28-e0fd4930058b"
|
|
2903
2942
|
],
|
|
2904
2943
|
"failures": [],
|
|
2905
2944
|
"pending": [],
|
|
@@ -2910,7 +2949,7 @@
|
|
|
2910
2949
|
"_timeout": 2000
|
|
2911
2950
|
},
|
|
2912
2951
|
{
|
|
2913
|
-
"uuid": "
|
|
2952
|
+
"uuid": "5c77380b-7e73-47a1-96ab-3713a61a6cfd",
|
|
2914
2953
|
"title": "skipForward()",
|
|
2915
2954
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2916
2955
|
"file": "/test/device.ts",
|
|
@@ -2921,7 +2960,7 @@
|
|
|
2921
2960
|
"title": "should work",
|
|
2922
2961
|
"fullTitle": "NodePyATVDevice skipForward() should work",
|
|
2923
2962
|
"timedOut": false,
|
|
2924
|
-
"duration":
|
|
2963
|
+
"duration": 1,
|
|
2925
2964
|
"state": "passed",
|
|
2926
2965
|
"speed": "fast",
|
|
2927
2966
|
"pass": true,
|
|
@@ -2930,26 +2969,26 @@
|
|
|
2930
2969
|
"context": null,
|
|
2931
2970
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2932
2971
|
"err": {},
|
|
2933
|
-
"uuid": "
|
|
2934
|
-
"parentUUID": "
|
|
2972
|
+
"uuid": "8e9149c6-443b-4104-bc63-1d9fd555f21f",
|
|
2973
|
+
"parentUUID": "5c77380b-7e73-47a1-96ab-3713a61a6cfd",
|
|
2935
2974
|
"isHook": false,
|
|
2936
2975
|
"skipped": false
|
|
2937
2976
|
}
|
|
2938
2977
|
],
|
|
2939
2978
|
"suites": [],
|
|
2940
2979
|
"passes": [
|
|
2941
|
-
"
|
|
2980
|
+
"8e9149c6-443b-4104-bc63-1d9fd555f21f"
|
|
2942
2981
|
],
|
|
2943
2982
|
"failures": [],
|
|
2944
2983
|
"pending": [],
|
|
2945
2984
|
"skipped": [],
|
|
2946
|
-
"duration":
|
|
2985
|
+
"duration": 1,
|
|
2947
2986
|
"root": false,
|
|
2948
2987
|
"rootEmpty": false,
|
|
2949
2988
|
"_timeout": 2000
|
|
2950
2989
|
},
|
|
2951
2990
|
{
|
|
2952
|
-
"uuid": "
|
|
2991
|
+
"uuid": "bb41387f-294b-40f7-87e2-c8fccb808d96",
|
|
2953
2992
|
"title": "stop()",
|
|
2954
2993
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2955
2994
|
"file": "/test/device.ts",
|
|
@@ -2969,15 +3008,15 @@
|
|
|
2969
3008
|
"context": null,
|
|
2970
3009
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2971
3010
|
"err": {},
|
|
2972
|
-
"uuid": "
|
|
2973
|
-
"parentUUID": "
|
|
3011
|
+
"uuid": "c0284fbe-2381-41eb-8332-cf2c8d3f5ba5",
|
|
3012
|
+
"parentUUID": "bb41387f-294b-40f7-87e2-c8fccb808d96",
|
|
2974
3013
|
"isHook": false,
|
|
2975
3014
|
"skipped": false
|
|
2976
3015
|
}
|
|
2977
3016
|
],
|
|
2978
3017
|
"suites": [],
|
|
2979
3018
|
"passes": [
|
|
2980
|
-
"
|
|
3019
|
+
"c0284fbe-2381-41eb-8332-cf2c8d3f5ba5"
|
|
2981
3020
|
],
|
|
2982
3021
|
"failures": [],
|
|
2983
3022
|
"pending": [],
|
|
@@ -2988,7 +3027,7 @@
|
|
|
2988
3027
|
"_timeout": 2000
|
|
2989
3028
|
},
|
|
2990
3029
|
{
|
|
2991
|
-
"uuid": "
|
|
3030
|
+
"uuid": "fa349cbc-e0b5-4c06-9a99-a6c506b55e65",
|
|
2992
3031
|
"title": "suspend()",
|
|
2993
3032
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2994
3033
|
"file": "/test/device.ts",
|
|
@@ -3008,15 +3047,15 @@
|
|
|
3008
3047
|
"context": null,
|
|
3009
3048
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
3010
3049
|
"err": {},
|
|
3011
|
-
"uuid": "
|
|
3012
|
-
"parentUUID": "
|
|
3050
|
+
"uuid": "37bffdc3-78a8-4cab-ae20-ea310b9ed0c0",
|
|
3051
|
+
"parentUUID": "fa349cbc-e0b5-4c06-9a99-a6c506b55e65",
|
|
3013
3052
|
"isHook": false,
|
|
3014
3053
|
"skipped": false
|
|
3015
3054
|
}
|
|
3016
3055
|
],
|
|
3017
3056
|
"suites": [],
|
|
3018
3057
|
"passes": [
|
|
3019
|
-
"
|
|
3058
|
+
"37bffdc3-78a8-4cab-ae20-ea310b9ed0c0"
|
|
3020
3059
|
],
|
|
3021
3060
|
"failures": [],
|
|
3022
3061
|
"pending": [],
|
|
@@ -3027,7 +3066,7 @@
|
|
|
3027
3066
|
"_timeout": 2000
|
|
3028
3067
|
},
|
|
3029
3068
|
{
|
|
3030
|
-
"uuid": "
|
|
3069
|
+
"uuid": "9f5e5466-2055-45fe-bba1-d4d5d9af02ef",
|
|
3031
3070
|
"title": "topMenu()",
|
|
3032
3071
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
3033
3072
|
"file": "/test/device.ts",
|
|
@@ -3038,7 +3077,7 @@
|
|
|
3038
3077
|
"title": "should work",
|
|
3039
3078
|
"fullTitle": "NodePyATVDevice topMenu() should work",
|
|
3040
3079
|
"timedOut": false,
|
|
3041
|
-
"duration":
|
|
3080
|
+
"duration": 2,
|
|
3042
3081
|
"state": "passed",
|
|
3043
3082
|
"speed": "fast",
|
|
3044
3083
|
"pass": true,
|
|
@@ -3047,26 +3086,26 @@
|
|
|
3047
3086
|
"context": null,
|
|
3048
3087
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
3049
3088
|
"err": {},
|
|
3050
|
-
"uuid": "
|
|
3051
|
-
"parentUUID": "
|
|
3089
|
+
"uuid": "8c63117f-ce08-4f5d-a85e-4720af3911c3",
|
|
3090
|
+
"parentUUID": "9f5e5466-2055-45fe-bba1-d4d5d9af02ef",
|
|
3052
3091
|
"isHook": false,
|
|
3053
3092
|
"skipped": false
|
|
3054
3093
|
}
|
|
3055
3094
|
],
|
|
3056
3095
|
"suites": [],
|
|
3057
3096
|
"passes": [
|
|
3058
|
-
"
|
|
3097
|
+
"8c63117f-ce08-4f5d-a85e-4720af3911c3"
|
|
3059
3098
|
],
|
|
3060
3099
|
"failures": [],
|
|
3061
3100
|
"pending": [],
|
|
3062
3101
|
"skipped": [],
|
|
3063
|
-
"duration":
|
|
3102
|
+
"duration": 2,
|
|
3064
3103
|
"root": false,
|
|
3065
3104
|
"rootEmpty": false,
|
|
3066
3105
|
"_timeout": 2000
|
|
3067
3106
|
},
|
|
3068
3107
|
{
|
|
3069
|
-
"uuid": "
|
|
3108
|
+
"uuid": "d0121024-be45-4a40-bef0-f49fcbfc3b1a",
|
|
3070
3109
|
"title": "up()",
|
|
3071
3110
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
3072
3111
|
"file": "/test/device.ts",
|
|
@@ -3077,7 +3116,7 @@
|
|
|
3077
3116
|
"title": "should work",
|
|
3078
3117
|
"fullTitle": "NodePyATVDevice up() should work",
|
|
3079
3118
|
"timedOut": false,
|
|
3080
|
-
"duration":
|
|
3119
|
+
"duration": 1,
|
|
3081
3120
|
"state": "passed",
|
|
3082
3121
|
"speed": "fast",
|
|
3083
3122
|
"pass": true,
|
|
@@ -3086,26 +3125,26 @@
|
|
|
3086
3125
|
"context": null,
|
|
3087
3126
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
3088
3127
|
"err": {},
|
|
3089
|
-
"uuid": "
|
|
3090
|
-
"parentUUID": "
|
|
3128
|
+
"uuid": "dd1859c2-603f-4284-933b-5436a91c839e",
|
|
3129
|
+
"parentUUID": "d0121024-be45-4a40-bef0-f49fcbfc3b1a",
|
|
3091
3130
|
"isHook": false,
|
|
3092
3131
|
"skipped": false
|
|
3093
3132
|
}
|
|
3094
3133
|
],
|
|
3095
3134
|
"suites": [],
|
|
3096
3135
|
"passes": [
|
|
3097
|
-
"
|
|
3136
|
+
"dd1859c2-603f-4284-933b-5436a91c839e"
|
|
3098
3137
|
],
|
|
3099
3138
|
"failures": [],
|
|
3100
3139
|
"pending": [],
|
|
3101
3140
|
"skipped": [],
|
|
3102
|
-
"duration":
|
|
3141
|
+
"duration": 1,
|
|
3103
3142
|
"root": false,
|
|
3104
3143
|
"rootEmpty": false,
|
|
3105
3144
|
"_timeout": 2000
|
|
3106
3145
|
},
|
|
3107
3146
|
{
|
|
3108
|
-
"uuid": "
|
|
3147
|
+
"uuid": "3a039f35-85d1-4e90-a152-0bb912bc2e23",
|
|
3109
3148
|
"title": "volumeDown()",
|
|
3110
3149
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
3111
3150
|
"file": "/test/device.ts",
|
|
@@ -3125,15 +3164,15 @@
|
|
|
3125
3164
|
"context": null,
|
|
3126
3165
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
3127
3166
|
"err": {},
|
|
3128
|
-
"uuid": "
|
|
3129
|
-
"parentUUID": "
|
|
3167
|
+
"uuid": "c535177e-7ed8-45a6-aa8e-31fc4b515d36",
|
|
3168
|
+
"parentUUID": "3a039f35-85d1-4e90-a152-0bb912bc2e23",
|
|
3130
3169
|
"isHook": false,
|
|
3131
3170
|
"skipped": false
|
|
3132
3171
|
}
|
|
3133
3172
|
],
|
|
3134
3173
|
"suites": [],
|
|
3135
3174
|
"passes": [
|
|
3136
|
-
"
|
|
3175
|
+
"c535177e-7ed8-45a6-aa8e-31fc4b515d36"
|
|
3137
3176
|
],
|
|
3138
3177
|
"failures": [],
|
|
3139
3178
|
"pending": [],
|
|
@@ -3144,7 +3183,7 @@
|
|
|
3144
3183
|
"_timeout": 2000
|
|
3145
3184
|
},
|
|
3146
3185
|
{
|
|
3147
|
-
"uuid": "
|
|
3186
|
+
"uuid": "062733f0-61b8-48b9-aa5d-5320c9bbbfc0",
|
|
3148
3187
|
"title": "volumeUp()",
|
|
3149
3188
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
3150
3189
|
"file": "/test/device.ts",
|
|
@@ -3155,7 +3194,7 @@
|
|
|
3155
3194
|
"title": "should work",
|
|
3156
3195
|
"fullTitle": "NodePyATVDevice volumeUp() should work",
|
|
3157
3196
|
"timedOut": false,
|
|
3158
|
-
"duration":
|
|
3197
|
+
"duration": 1,
|
|
3159
3198
|
"state": "passed",
|
|
3160
3199
|
"speed": "fast",
|
|
3161
3200
|
"pass": true,
|
|
@@ -3164,26 +3203,26 @@
|
|
|
3164
3203
|
"context": null,
|
|
3165
3204
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
3166
3205
|
"err": {},
|
|
3167
|
-
"uuid": "
|
|
3168
|
-
"parentUUID": "
|
|
3206
|
+
"uuid": "ca6e7873-0889-4b2c-8cd4-823bbeb600e6",
|
|
3207
|
+
"parentUUID": "062733f0-61b8-48b9-aa5d-5320c9bbbfc0",
|
|
3169
3208
|
"isHook": false,
|
|
3170
3209
|
"skipped": false
|
|
3171
3210
|
}
|
|
3172
3211
|
],
|
|
3173
3212
|
"suites": [],
|
|
3174
3213
|
"passes": [
|
|
3175
|
-
"
|
|
3214
|
+
"ca6e7873-0889-4b2c-8cd4-823bbeb600e6"
|
|
3176
3215
|
],
|
|
3177
3216
|
"failures": [],
|
|
3178
3217
|
"pending": [],
|
|
3179
3218
|
"skipped": [],
|
|
3180
|
-
"duration":
|
|
3219
|
+
"duration": 1,
|
|
3181
3220
|
"root": false,
|
|
3182
3221
|
"rootEmpty": false,
|
|
3183
3222
|
"_timeout": 2000
|
|
3184
3223
|
},
|
|
3185
3224
|
{
|
|
3186
|
-
"uuid": "
|
|
3225
|
+
"uuid": "0cc9223a-4fe1-4ae2-9cfb-6d42ad67ffa2",
|
|
3187
3226
|
"title": "wakeup()",
|
|
3188
3227
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
3189
3228
|
"file": "/test/device.ts",
|
|
@@ -3203,15 +3242,15 @@
|
|
|
3203
3242
|
"context": null,
|
|
3204
3243
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
3205
3244
|
"err": {},
|
|
3206
|
-
"uuid": "
|
|
3207
|
-
"parentUUID": "
|
|
3245
|
+
"uuid": "8d1123f0-1dad-4045-9216-5ffe28756725",
|
|
3246
|
+
"parentUUID": "0cc9223a-4fe1-4ae2-9cfb-6d42ad67ffa2",
|
|
3208
3247
|
"isHook": false,
|
|
3209
3248
|
"skipped": false
|
|
3210
3249
|
}
|
|
3211
3250
|
],
|
|
3212
3251
|
"suites": [],
|
|
3213
3252
|
"passes": [
|
|
3214
|
-
"
|
|
3253
|
+
"8d1123f0-1dad-4045-9216-5ffe28756725"
|
|
3215
3254
|
],
|
|
3216
3255
|
"failures": [],
|
|
3217
3256
|
"pending": [],
|
|
@@ -3222,7 +3261,7 @@
|
|
|
3222
3261
|
"_timeout": 2000
|
|
3223
3262
|
},
|
|
3224
3263
|
{
|
|
3225
|
-
"uuid": "
|
|
3264
|
+
"uuid": "2f0af716-533a-4209-baf0-c2990c5953e1",
|
|
3226
3265
|
"title": "turnOff()",
|
|
3227
3266
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
3228
3267
|
"file": "/test/device.ts",
|
|
@@ -3233,7 +3272,7 @@
|
|
|
3233
3272
|
"title": "should work",
|
|
3234
3273
|
"fullTitle": "NodePyATVDevice turnOff() should work",
|
|
3235
3274
|
"timedOut": false,
|
|
3236
|
-
"duration":
|
|
3275
|
+
"duration": 2,
|
|
3237
3276
|
"state": "passed",
|
|
3238
3277
|
"speed": "fast",
|
|
3239
3278
|
"pass": true,
|
|
@@ -3242,26 +3281,26 @@
|
|
|
3242
3281
|
"context": null,
|
|
3243
3282
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
3244
3283
|
"err": {},
|
|
3245
|
-
"uuid": "
|
|
3246
|
-
"parentUUID": "
|
|
3284
|
+
"uuid": "2ed54c40-8369-46d6-be67-b1d80b275f86",
|
|
3285
|
+
"parentUUID": "2f0af716-533a-4209-baf0-c2990c5953e1",
|
|
3247
3286
|
"isHook": false,
|
|
3248
3287
|
"skipped": false
|
|
3249
3288
|
}
|
|
3250
3289
|
],
|
|
3251
3290
|
"suites": [],
|
|
3252
3291
|
"passes": [
|
|
3253
|
-
"
|
|
3292
|
+
"2ed54c40-8369-46d6-be67-b1d80b275f86"
|
|
3254
3293
|
],
|
|
3255
3294
|
"failures": [],
|
|
3256
3295
|
"pending": [],
|
|
3257
3296
|
"skipped": [],
|
|
3258
|
-
"duration":
|
|
3297
|
+
"duration": 2,
|
|
3259
3298
|
"root": false,
|
|
3260
3299
|
"rootEmpty": false,
|
|
3261
3300
|
"_timeout": 2000
|
|
3262
3301
|
},
|
|
3263
3302
|
{
|
|
3264
|
-
"uuid": "
|
|
3303
|
+
"uuid": "27e18c56-b054-4ea0-a5ee-c67be5e3f34a",
|
|
3265
3304
|
"title": "turnOn()",
|
|
3266
3305
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
3267
3306
|
"file": "/test/device.ts",
|
|
@@ -3281,15 +3320,54 @@
|
|
|
3281
3320
|
"context": null,
|
|
3282
3321
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
3283
3322
|
"err": {},
|
|
3284
|
-
"uuid": "
|
|
3285
|
-
"parentUUID": "
|
|
3323
|
+
"uuid": "6aa519fc-36f7-4b59-92b3-38995f000f78",
|
|
3324
|
+
"parentUUID": "27e18c56-b054-4ea0-a5ee-c67be5e3f34a",
|
|
3325
|
+
"isHook": false,
|
|
3326
|
+
"skipped": false
|
|
3327
|
+
}
|
|
3328
|
+
],
|
|
3329
|
+
"suites": [],
|
|
3330
|
+
"passes": [
|
|
3331
|
+
"6aa519fc-36f7-4b59-92b3-38995f000f78"
|
|
3332
|
+
],
|
|
3333
|
+
"failures": [],
|
|
3334
|
+
"pending": [],
|
|
3335
|
+
"skipped": [],
|
|
3336
|
+
"duration": 1,
|
|
3337
|
+
"root": false,
|
|
3338
|
+
"rootEmpty": false,
|
|
3339
|
+
"_timeout": 2000
|
|
3340
|
+
},
|
|
3341
|
+
{
|
|
3342
|
+
"uuid": "afa18b41-8e41-45e8-bede-2c9cbc24bb14",
|
|
3343
|
+
"title": "launchApp()",
|
|
3344
|
+
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
3345
|
+
"file": "/test/device.ts",
|
|
3346
|
+
"beforeHooks": [],
|
|
3347
|
+
"afterHooks": [],
|
|
3348
|
+
"tests": [
|
|
3349
|
+
{
|
|
3350
|
+
"title": "should work",
|
|
3351
|
+
"fullTitle": "NodePyATVDevice launchApp() should work",
|
|
3352
|
+
"timedOut": false,
|
|
3353
|
+
"duration": 1,
|
|
3354
|
+
"state": "passed",
|
|
3355
|
+
"speed": "fast",
|
|
3356
|
+
"pass": true,
|
|
3357
|
+
"fail": false,
|
|
3358
|
+
"pending": false,
|
|
3359
|
+
"context": null,
|
|
3360
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('');\n })\n });\n yield device.launchApp('com.apple.TVShows');\n});",
|
|
3361
|
+
"err": {},
|
|
3362
|
+
"uuid": "cd660322-a73c-42a1-8e0e-21f97c71a19e",
|
|
3363
|
+
"parentUUID": "afa18b41-8e41-45e8-bede-2c9cbc24bb14",
|
|
3286
3364
|
"isHook": false,
|
|
3287
3365
|
"skipped": false
|
|
3288
3366
|
}
|
|
3289
3367
|
],
|
|
3290
3368
|
"suites": [],
|
|
3291
3369
|
"passes": [
|
|
3292
|
-
"
|
|
3370
|
+
"cd660322-a73c-42a1-8e0e-21f97c71a19e"
|
|
3293
3371
|
],
|
|
3294
3372
|
"failures": [],
|
|
3295
3373
|
"pending": [],
|
|
@@ -3310,7 +3388,7 @@
|
|
|
3310
3388
|
"_timeout": 2000
|
|
3311
3389
|
},
|
|
3312
3390
|
{
|
|
3313
|
-
"uuid": "
|
|
3391
|
+
"uuid": "88aced76-6f77-4e9d-91e2-3ebf7977dc39",
|
|
3314
3392
|
"title": "NodePyATVInstance",
|
|
3315
3393
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3316
3394
|
"file": "/test/instance.ts",
|
|
@@ -3319,7 +3397,7 @@
|
|
|
3319
3397
|
"tests": [],
|
|
3320
3398
|
"suites": [
|
|
3321
3399
|
{
|
|
3322
|
-
"uuid": "
|
|
3400
|
+
"uuid": "de2421b8-e472-420e-b761-310ce4d178d3",
|
|
3323
3401
|
"title": "static version()",
|
|
3324
3402
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3325
3403
|
"file": "/test/instance.ts",
|
|
@@ -3330,7 +3408,7 @@
|
|
|
3330
3408
|
"title": "should work with pyatv [L]",
|
|
3331
3409
|
"fullTitle": "NodePyATVInstance static version() should work with pyatv [L]",
|
|
3332
3410
|
"timedOut": false,
|
|
3333
|
-
"duration":
|
|
3411
|
+
"duration": 735,
|
|
3334
3412
|
"state": "passed",
|
|
3335
3413
|
"speed": "slow",
|
|
3336
3414
|
"pass": true,
|
|
@@ -3339,8 +3417,8 @@
|
|
|
3339
3417
|
"context": null,
|
|
3340
3418
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n this.timeout(4000);\n const result = yield NodePyATVInstance.version();\n if (result.pyatv === null) {\n throw new Error('No version found for pyatv. Is it installed in test environment?');\n }\n assert.equal(typeof result.pyatv, 'string', 'result.pyatv is a string');\n assert.ok(result.pyatv.length >= 5, 'result.pyatv has content');\n assert.strictEqual(result.module, version);\n});",
|
|
3341
3419
|
"err": {},
|
|
3342
|
-
"uuid": "
|
|
3343
|
-
"parentUUID": "
|
|
3420
|
+
"uuid": "ec2c1054-3371-415d-b5ff-fc84ff54da8e",
|
|
3421
|
+
"parentUUID": "de2421b8-e472-420e-b761-310ce4d178d3",
|
|
3344
3422
|
"isHook": false,
|
|
3345
3423
|
"skipped": false
|
|
3346
3424
|
},
|
|
@@ -3357,8 +3435,8 @@
|
|
|
3357
3435
|
"context": null,
|
|
3358
3436
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield NodePyATVInstance.version({\n spawn: createFakeSpawn(cp => {\n cp.code(1);\n cp.end('atvremote 0.7.4');\n })\n });\n assert.ok(result.pyatv);\n assert.strictEqual(result.pyatv, '0.7.4');\n});",
|
|
3359
3437
|
"err": {},
|
|
3360
|
-
"uuid": "
|
|
3361
|
-
"parentUUID": "
|
|
3438
|
+
"uuid": "25b2deea-5fbd-4f8f-9c76-141a731dbede",
|
|
3439
|
+
"parentUUID": "de2421b8-e472-420e-b761-310ce4d178d3",
|
|
3362
3440
|
"isHook": false,
|
|
3363
3441
|
"skipped": false
|
|
3364
3442
|
},
|
|
@@ -3366,7 +3444,7 @@
|
|
|
3366
3444
|
"title": "should return the module version",
|
|
3367
3445
|
"fullTitle": "NodePyATVInstance static version() should return the module version",
|
|
3368
3446
|
"timedOut": false,
|
|
3369
|
-
"duration":
|
|
3447
|
+
"duration": 1,
|
|
3370
3448
|
"state": "passed",
|
|
3371
3449
|
"speed": "fast",
|
|
3372
3450
|
"pass": true,
|
|
@@ -3375,8 +3453,8 @@
|
|
|
3375
3453
|
"context": null,
|
|
3376
3454
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield NodePyATVInstance.version({\n noColors: true,\n spawn: createFakeSpawn(cp => cp.code(1).end())\n });\n assert.strictEqual(result.module, version);\n});",
|
|
3377
3455
|
"err": {},
|
|
3378
|
-
"uuid": "
|
|
3379
|
-
"parentUUID": "
|
|
3456
|
+
"uuid": "80c9e7fc-2c72-4fd6-88b8-a7e5725de6c2",
|
|
3457
|
+
"parentUUID": "de2421b8-e472-420e-b761-310ce4d178d3",
|
|
3380
3458
|
"isHook": false,
|
|
3381
3459
|
"skipped": false
|
|
3382
3460
|
},
|
|
@@ -3393,8 +3471,8 @@
|
|
|
3393
3471
|
"context": null,
|
|
3394
3472
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield NodePyATVInstance.version({\n atvremotePath: '/foo/bar',\n spawn: createFakeSpawn(cp => {\n assert.strictEqual(cp.cmd(), '/foo/bar');\n cp.code(1).end();\n })\n });\n});",
|
|
3395
3473
|
"err": {},
|
|
3396
|
-
"uuid": "
|
|
3397
|
-
"parentUUID": "
|
|
3474
|
+
"uuid": "a1985053-b1d2-4aee-8dca-22ab0ad04e9e",
|
|
3475
|
+
"parentUUID": "de2421b8-e472-420e-b761-310ce4d178d3",
|
|
3398
3476
|
"isHook": false,
|
|
3399
3477
|
"skipped": false
|
|
3400
3478
|
},
|
|
@@ -3402,7 +3480,7 @@
|
|
|
3402
3480
|
"title": "should work with option.debug = true",
|
|
3403
3481
|
"fullTitle": "NodePyATVInstance static version() should work with option.debug = true",
|
|
3404
3482
|
"timedOut": false,
|
|
3405
|
-
"duration":
|
|
3483
|
+
"duration": 2,
|
|
3406
3484
|
"state": "passed",
|
|
3407
3485
|
"speed": "fast",
|
|
3408
3486
|
"pass": true,
|
|
@@ -3411,8 +3489,8 @@
|
|
|
3411
3489
|
"context": null,
|
|
3412
3490
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield NodePyATVInstance.version({\n debug: true,\n spawn: createFakeSpawn(cp => cp.code(1).end())\n });\n});",
|
|
3413
3491
|
"err": {},
|
|
3414
|
-
"uuid": "
|
|
3415
|
-
"parentUUID": "
|
|
3492
|
+
"uuid": "19466bad-58ca-4d06-a31d-b4b004edaf4b",
|
|
3493
|
+
"parentUUID": "de2421b8-e472-420e-b761-310ce4d178d3",
|
|
3416
3494
|
"isHook": false,
|
|
3417
3495
|
"skipped": false
|
|
3418
3496
|
},
|
|
@@ -3429,8 +3507,8 @@
|
|
|
3429
3507
|
"context": null,
|
|
3430
3508
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield NodePyATVInstance.version({\n debug: () => {\n // no debug log\n },\n noColors: true,\n spawn: createFakeSpawn(cp => cp.code(1).end())\n });\n});",
|
|
3431
3509
|
"err": {},
|
|
3432
|
-
"uuid": "
|
|
3433
|
-
"parentUUID": "
|
|
3510
|
+
"uuid": "0b51ce09-52a2-4b70-8fcb-e496089ca56d",
|
|
3511
|
+
"parentUUID": "de2421b8-e472-420e-b761-310ce4d178d3",
|
|
3434
3512
|
"isHook": false,
|
|
3435
3513
|
"skipped": false
|
|
3436
3514
|
},
|
|
@@ -3447,8 +3525,8 @@
|
|
|
3447
3525
|
"context": null,
|
|
3448
3526
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield NodePyATVInstance.version({\n spawn: createFakeSpawn(cp => cp.stderr('Hello World!').code(123).end())\n });\n assert.strictEqual(result.pyatv, null);\n});",
|
|
3449
3527
|
"err": {},
|
|
3450
|
-
"uuid": "
|
|
3451
|
-
"parentUUID": "
|
|
3528
|
+
"uuid": "6ef2851e-7f8b-416e-907f-02d839f89297",
|
|
3529
|
+
"parentUUID": "de2421b8-e472-420e-b761-310ce4d178d3",
|
|
3452
3530
|
"isHook": false,
|
|
3453
3531
|
"skipped": false
|
|
3454
3532
|
},
|
|
@@ -3465,8 +3543,8 @@
|
|
|
3465
3543
|
"context": null,
|
|
3466
3544
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield NodePyATVInstance.version({\n spawn: createFakeSpawn(cp => {\n cp.error(new Error('Hello world!')).end();\n })\n });\n assert.strictEqual(result.pyatv, null);\n});",
|
|
3467
3545
|
"err": {},
|
|
3468
|
-
"uuid": "
|
|
3469
|
-
"parentUUID": "
|
|
3546
|
+
"uuid": "6fe5eac7-1e81-4633-a063-40f7037bd8e8",
|
|
3547
|
+
"parentUUID": "de2421b8-e472-420e-b761-310ce4d178d3",
|
|
3470
3548
|
"isHook": false,
|
|
3471
3549
|
"skipped": false
|
|
3472
3550
|
},
|
|
@@ -3474,7 +3552,7 @@
|
|
|
3474
3552
|
"title": "should return null on invalid pyatv version",
|
|
3475
3553
|
"fullTitle": "NodePyATVInstance static version() should return null on invalid pyatv version",
|
|
3476
3554
|
"timedOut": false,
|
|
3477
|
-
"duration":
|
|
3555
|
+
"duration": 0,
|
|
3478
3556
|
"state": "passed",
|
|
3479
3557
|
"speed": "fast",
|
|
3480
3558
|
"pass": true,
|
|
@@ -3483,34 +3561,34 @@
|
|
|
3483
3561
|
"context": null,
|
|
3484
3562
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield NodePyATVInstance.version({\n spawn: createFakeSpawn(cp => {\n cp.stdout('atvremote 42').code(1).end();\n })\n });\n assert.strictEqual(result.pyatv, null);\n});",
|
|
3485
3563
|
"err": {},
|
|
3486
|
-
"uuid": "
|
|
3487
|
-
"parentUUID": "
|
|
3564
|
+
"uuid": "8d0685ef-c858-49a7-bc46-9111200068e7",
|
|
3565
|
+
"parentUUID": "de2421b8-e472-420e-b761-310ce4d178d3",
|
|
3488
3566
|
"isHook": false,
|
|
3489
3567
|
"skipped": false
|
|
3490
3568
|
}
|
|
3491
3569
|
],
|
|
3492
3570
|
"suites": [],
|
|
3493
3571
|
"passes": [
|
|
3494
|
-
"
|
|
3495
|
-
"
|
|
3496
|
-
"
|
|
3497
|
-
"
|
|
3498
|
-
"
|
|
3499
|
-
"
|
|
3500
|
-
"
|
|
3501
|
-
"
|
|
3502
|
-
"
|
|
3572
|
+
"ec2c1054-3371-415d-b5ff-fc84ff54da8e",
|
|
3573
|
+
"25b2deea-5fbd-4f8f-9c76-141a731dbede",
|
|
3574
|
+
"80c9e7fc-2c72-4fd6-88b8-a7e5725de6c2",
|
|
3575
|
+
"a1985053-b1d2-4aee-8dca-22ab0ad04e9e",
|
|
3576
|
+
"19466bad-58ca-4d06-a31d-b4b004edaf4b",
|
|
3577
|
+
"0b51ce09-52a2-4b70-8fcb-e496089ca56d",
|
|
3578
|
+
"6ef2851e-7f8b-416e-907f-02d839f89297",
|
|
3579
|
+
"6fe5eac7-1e81-4633-a063-40f7037bd8e8",
|
|
3580
|
+
"8d0685ef-c858-49a7-bc46-9111200068e7"
|
|
3503
3581
|
],
|
|
3504
3582
|
"failures": [],
|
|
3505
3583
|
"pending": [],
|
|
3506
3584
|
"skipped": [],
|
|
3507
|
-
"duration":
|
|
3585
|
+
"duration": 748,
|
|
3508
3586
|
"root": false,
|
|
3509
3587
|
"rootEmpty": false,
|
|
3510
3588
|
"_timeout": 2000
|
|
3511
3589
|
},
|
|
3512
3590
|
{
|
|
3513
|
-
"uuid": "
|
|
3591
|
+
"uuid": "093f8d58-9c11-42f5-b819-639a3b5f7826",
|
|
3514
3592
|
"title": "static check()",
|
|
3515
3593
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3516
3594
|
"file": "/test/instance.ts",
|
|
@@ -3521,7 +3599,7 @@
|
|
|
3521
3599
|
"title": "should resolve in test environment [L]",
|
|
3522
3600
|
"fullTitle": "NodePyATVInstance static check() should resolve in test environment [L]",
|
|
3523
3601
|
"timedOut": false,
|
|
3524
|
-
"duration":
|
|
3602
|
+
"duration": 5860,
|
|
3525
3603
|
"state": "passed",
|
|
3526
3604
|
"speed": "slow",
|
|
3527
3605
|
"pass": true,
|
|
@@ -3530,8 +3608,8 @@
|
|
|
3530
3608
|
"context": null,
|
|
3531
3609
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n this.timeout(12000);\n yield NodePyATVInstance.check();\n});",
|
|
3532
3610
|
"err": {},
|
|
3533
|
-
"uuid": "
|
|
3534
|
-
"parentUUID": "
|
|
3611
|
+
"uuid": "f76cb40d-b5d0-4ab1-9626-fff9b736dd0d",
|
|
3612
|
+
"parentUUID": "093f8d58-9c11-42f5-b819-639a3b5f7826",
|
|
3535
3613
|
"isHook": false,
|
|
3536
3614
|
"skipped": false
|
|
3537
3615
|
},
|
|
@@ -3539,7 +3617,7 @@
|
|
|
3539
3617
|
"title": "should return nice error message if pyatv was not found",
|
|
3540
3618
|
"fullTitle": "NodePyATVInstance static check() should return nice error message if pyatv was not found",
|
|
3541
3619
|
"timedOut": false,
|
|
3542
|
-
"duration":
|
|
3620
|
+
"duration": 2,
|
|
3543
3621
|
"state": "passed",
|
|
3544
3622
|
"speed": "fast",
|
|
3545
3623
|
"pass": true,
|
|
@@ -3548,8 +3626,8 @@
|
|
|
3548
3626
|
"context": null,
|
|
3549
3627
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield assert.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield NodePyATVInstance.check({\n spawn: createFakeSpawn(cp => {\n cp.error(new Error('spawn atvremote ENOENT')).code(1).end();\n })\n });\n }), /Unable to find pyatv. Is it installed?/);\n});",
|
|
3550
3628
|
"err": {},
|
|
3551
|
-
"uuid": "
|
|
3552
|
-
"parentUUID": "
|
|
3629
|
+
"uuid": "7e6adc7e-1690-460a-b619-9b9106b638ff",
|
|
3630
|
+
"parentUUID": "093f8d58-9c11-42f5-b819-639a3b5f7826",
|
|
3553
3631
|
"isHook": false,
|
|
3554
3632
|
"skipped": false
|
|
3555
3633
|
},
|
|
@@ -3566,8 +3644,8 @@
|
|
|
3566
3644
|
"context": null,
|
|
3567
3645
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield assert.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield NodePyATVInstance.check({\n spawn: createFakeSpawn(cp => {\n cp.stdout('atvremote 0.5.1').code(1).end();\n })\n });\n }), /Found pyatv, but unforunately it's too old. Please update pyatv./);\n});",
|
|
3568
3646
|
"err": {},
|
|
3569
|
-
"uuid": "
|
|
3570
|
-
"parentUUID": "
|
|
3647
|
+
"uuid": "34448d40-e49d-47b5-80d2-008b97e05a87",
|
|
3648
|
+
"parentUUID": "093f8d58-9c11-42f5-b819-639a3b5f7826",
|
|
3571
3649
|
"isHook": false,
|
|
3572
3650
|
"skipped": false
|
|
3573
3651
|
},
|
|
@@ -3584,29 +3662,29 @@
|
|
|
3584
3662
|
"context": null,
|
|
3585
3663
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n let i = 0;\n yield assert.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield NodePyATVInstance.check({\n spawn: createFakeSpawn(cp => {\n if (i === 0) {\n cp.stdout('atvremote 0.7.0').code(1).end();\n i++;\n }\n else {\n cp.error(new Error('spawn atvremote ENOENT')).code(1).end();\n }\n })\n });\n }), /Unable to scan for devices/);\n});",
|
|
3586
3664
|
"err": {},
|
|
3587
|
-
"uuid": "
|
|
3588
|
-
"parentUUID": "
|
|
3665
|
+
"uuid": "10e996ec-885b-4318-bd10-322b94302020",
|
|
3666
|
+
"parentUUID": "093f8d58-9c11-42f5-b819-639a3b5f7826",
|
|
3589
3667
|
"isHook": false,
|
|
3590
3668
|
"skipped": false
|
|
3591
3669
|
}
|
|
3592
3670
|
],
|
|
3593
3671
|
"suites": [],
|
|
3594
3672
|
"passes": [
|
|
3595
|
-
"
|
|
3596
|
-
"
|
|
3597
|
-
"
|
|
3598
|
-
"
|
|
3673
|
+
"f76cb40d-b5d0-4ab1-9626-fff9b736dd0d",
|
|
3674
|
+
"7e6adc7e-1690-460a-b619-9b9106b638ff",
|
|
3675
|
+
"34448d40-e49d-47b5-80d2-008b97e05a87",
|
|
3676
|
+
"10e996ec-885b-4318-bd10-322b94302020"
|
|
3599
3677
|
],
|
|
3600
3678
|
"failures": [],
|
|
3601
3679
|
"pending": [],
|
|
3602
3680
|
"skipped": [],
|
|
3603
|
-
"duration":
|
|
3681
|
+
"duration": 5867,
|
|
3604
3682
|
"root": false,
|
|
3605
3683
|
"rootEmpty": false,
|
|
3606
3684
|
"_timeout": 2000
|
|
3607
3685
|
},
|
|
3608
3686
|
{
|
|
3609
|
-
"uuid": "
|
|
3687
|
+
"uuid": "5703ef4f-da40-4bb1-acb8-788afe72336f",
|
|
3610
3688
|
"title": "static find()",
|
|
3611
3689
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3612
3690
|
"file": "/test/instance.ts",
|
|
@@ -3617,7 +3695,7 @@
|
|
|
3617
3695
|
"title": "should work [L]",
|
|
3618
3696
|
"fullTitle": "NodePyATVInstance static find() should work [L]",
|
|
3619
3697
|
"timedOut": false,
|
|
3620
|
-
"duration":
|
|
3698
|
+
"duration": 5431,
|
|
3621
3699
|
"state": "passed",
|
|
3622
3700
|
"speed": "slow",
|
|
3623
3701
|
"pass": true,
|
|
@@ -3626,8 +3704,8 @@
|
|
|
3626
3704
|
"context": null,
|
|
3627
3705
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n this.timeout(8000);\n const result = yield NodePyATVInstance.find();\n assert.ok(Array.isArray(result));\n});",
|
|
3628
3706
|
"err": {},
|
|
3629
|
-
"uuid": "
|
|
3630
|
-
"parentUUID": "
|
|
3707
|
+
"uuid": "0b41ab12-d2fe-4899-939b-7b8cf1096599",
|
|
3708
|
+
"parentUUID": "5703ef4f-da40-4bb1-acb8-788afe72336f",
|
|
3631
3709
|
"isHook": false,
|
|
3632
3710
|
"skipped": false
|
|
3633
3711
|
},
|
|
@@ -3644,8 +3722,8 @@
|
|
|
3644
3722
|
"context": null,
|
|
3645
3723
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield NodePyATVInstance.find({\n atvscriptPath: '/foo/bar',\n spawn: createFakeSpawn(cp => {\n assert.strictEqual(cp.cmd(), '/foo/bar');\n cp.stdout({\n 'result': 'success',\n 'datetime': '2020-11-06T20:47:30.840022+01:00',\n 'devices': []\n }).end();\n })\n });\n});",
|
|
3646
3724
|
"err": {},
|
|
3647
|
-
"uuid": "
|
|
3648
|
-
"parentUUID": "
|
|
3725
|
+
"uuid": "c550dc21-5be9-40fe-b968-e480d9e1cf09",
|
|
3726
|
+
"parentUUID": "5703ef4f-da40-4bb1-acb8-788afe72336f",
|
|
3649
3727
|
"isHook": false,
|
|
3650
3728
|
"skipped": false
|
|
3651
3729
|
},
|
|
@@ -3653,7 +3731,7 @@
|
|
|
3653
3731
|
"title": "should throw error on stderr output",
|
|
3654
3732
|
"fullTitle": "NodePyATVInstance static find() should throw error on stderr output",
|
|
3655
3733
|
"timedOut": false,
|
|
3656
|
-
"duration":
|
|
3734
|
+
"duration": 1,
|
|
3657
3735
|
"state": "passed",
|
|
3658
3736
|
"speed": "fast",
|
|
3659
3737
|
"pass": true,
|
|
@@ -3662,8 +3740,8 @@
|
|
|
3662
3740
|
"context": null,
|
|
3663
3741
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield assert.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield NodePyATVInstance.find({\n spawn: createFakeSpawn(cp => {\n cp.stderr('Hello World!').code(1).end();\n })\n });\n }), /Unable to execute request/);\n});",
|
|
3664
3742
|
"err": {},
|
|
3665
|
-
"uuid": "
|
|
3666
|
-
"parentUUID": "
|
|
3743
|
+
"uuid": "e09d785c-4b08-47c4-b13e-ef5b023d2a1d",
|
|
3744
|
+
"parentUUID": "5703ef4f-da40-4bb1-acb8-788afe72336f",
|
|
3667
3745
|
"isHook": false,
|
|
3668
3746
|
"skipped": false
|
|
3669
3747
|
},
|
|
@@ -3671,7 +3749,7 @@
|
|
|
3671
3749
|
"title": "should throw error on error",
|
|
3672
3750
|
"fullTitle": "NodePyATVInstance static find() should throw error on error",
|
|
3673
3751
|
"timedOut": false,
|
|
3674
|
-
"duration":
|
|
3752
|
+
"duration": 1,
|
|
3675
3753
|
"state": "passed",
|
|
3676
3754
|
"speed": "fast",
|
|
3677
3755
|
"pass": true,
|
|
@@ -3680,8 +3758,8 @@
|
|
|
3680
3758
|
"context": null,
|
|
3681
3759
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield assert.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield NodePyATVInstance.find({\n spawn: createFakeSpawn(cp => {\n cp.error(new Error('Hello world!')).code(1).end();\n })\n });\n }), /Hello world!/);\n});",
|
|
3682
3760
|
"err": {},
|
|
3683
|
-
"uuid": "
|
|
3684
|
-
"parentUUID": "
|
|
3761
|
+
"uuid": "71debcec-6679-4943-892b-d59a51e4fa12",
|
|
3762
|
+
"parentUUID": "5703ef4f-da40-4bb1-acb8-788afe72336f",
|
|
3685
3763
|
"isHook": false,
|
|
3686
3764
|
"skipped": false
|
|
3687
3765
|
},
|
|
@@ -3689,7 +3767,7 @@
|
|
|
3689
3767
|
"title": "should throw error if atvscript result is not valid json",
|
|
3690
3768
|
"fullTitle": "NodePyATVInstance static find() should throw error if atvscript result is not valid json",
|
|
3691
3769
|
"timedOut": false,
|
|
3692
|
-
"duration":
|
|
3770
|
+
"duration": 1,
|
|
3693
3771
|
"state": "passed",
|
|
3694
3772
|
"speed": "fast",
|
|
3695
3773
|
"pass": true,
|
|
@@ -3698,8 +3776,8 @@
|
|
|
3698
3776
|
"context": null,
|
|
3699
3777
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield assert.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield NodePyATVInstance.find({\n spawn: createFakeSpawn(cp => {\n cp.stdout(JSON.stringify({\n 'result': 'success',\n 'datetime': '2020-11-06T20:47:30.840022+01:00',\n 'devices': []\n }).substr(1)).end();\n })\n });\n }), /Unable to parse result/);\n});",
|
|
3700
3778
|
"err": {},
|
|
3701
|
-
"uuid": "
|
|
3702
|
-
"parentUUID": "
|
|
3779
|
+
"uuid": "0ba18fd9-5878-45bb-86a0-e018c53109bf",
|
|
3780
|
+
"parentUUID": "5703ef4f-da40-4bb1-acb8-788afe72336f",
|
|
3703
3781
|
"isHook": false,
|
|
3704
3782
|
"skipped": false
|
|
3705
3783
|
},
|
|
@@ -3707,7 +3785,7 @@
|
|
|
3707
3785
|
"title": "should throw error if atvscript result is not successfull",
|
|
3708
3786
|
"fullTitle": "NodePyATVInstance static find() should throw error if atvscript result is not successfull",
|
|
3709
3787
|
"timedOut": false,
|
|
3710
|
-
"duration":
|
|
3788
|
+
"duration": 1,
|
|
3711
3789
|
"state": "passed",
|
|
3712
3790
|
"speed": "fast",
|
|
3713
3791
|
"pass": true,
|
|
@@ -3716,8 +3794,8 @@
|
|
|
3716
3794
|
"context": null,
|
|
3717
3795
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield assert.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield NodePyATVInstance.find({\n spawn: createFakeSpawn(cp => {\n cp.stdout({\n result: 'error'\n }).code(1).end();\n })\n });\n }), /Unable to parse pyatv response: /);\n});",
|
|
3718
3796
|
"err": {},
|
|
3719
|
-
"uuid": "
|
|
3720
|
-
"parentUUID": "
|
|
3797
|
+
"uuid": "9433f54b-b7cf-4c12-b1fe-c72325b87335",
|
|
3798
|
+
"parentUUID": "5703ef4f-da40-4bb1-acb8-788afe72336f",
|
|
3721
3799
|
"isHook": false,
|
|
3722
3800
|
"skipped": false
|
|
3723
3801
|
},
|
|
@@ -3725,7 +3803,7 @@
|
|
|
3725
3803
|
"title": "should throw error if atvscript result is without device array",
|
|
3726
3804
|
"fullTitle": "NodePyATVInstance static find() should throw error if atvscript result is without device array",
|
|
3727
3805
|
"timedOut": false,
|
|
3728
|
-
"duration":
|
|
3806
|
+
"duration": 1,
|
|
3729
3807
|
"state": "passed",
|
|
3730
3808
|
"speed": "fast",
|
|
3731
3809
|
"pass": true,
|
|
@@ -3734,8 +3812,8 @@
|
|
|
3734
3812
|
"context": null,
|
|
3735
3813
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield assert.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield NodePyATVInstance.find({\n spawn: createFakeSpawn(cp => {\n cp.stdout({\n result: 'success'\n }).code(1).end();\n })\n });\n }), /Unable to parse pyatv response: /);\n});",
|
|
3736
3814
|
"err": {},
|
|
3737
|
-
"uuid": "
|
|
3738
|
-
"parentUUID": "
|
|
3815
|
+
"uuid": "ed2a3f48-ef22-42f4-b9ce-62e22e24815d",
|
|
3816
|
+
"parentUUID": "5703ef4f-da40-4bb1-acb8-788afe72336f",
|
|
3739
3817
|
"isHook": false,
|
|
3740
3818
|
"skipped": false
|
|
3741
3819
|
},
|
|
@@ -3752,8 +3830,8 @@
|
|
|
3752
3830
|
"context": null,
|
|
3753
3831
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const devices = yield NodePyATVInstance.find({\n spawn: createFakeSpawn(cp => {\n cp.stdout({\n result: 'success',\n datetime: '2020-11-06T20:47:30.840022+01:00',\n devices: [\n {\n name: 'Vardagsrum',\n address: '10.0.10.81',\n identifier: 'xxx'\n }\n ]\n }).code(1).end();\n })\n });\n assert.strictEqual(devices.length, 1);\n assert.strictEqual(devices[0].name, 'Vardagsrum');\n assert.strictEqual(devices[0].host, '10.0.10.81');\n assert.strictEqual(devices[0].id, 'xxx');\n assert.strictEqual(devices[0].model, undefined);\n assert.strictEqual(devices[0].modelName, undefined);\n assert.strictEqual(devices[0].os, undefined);\n assert.strictEqual(devices[0].version, undefined);\n assert.deepStrictEqual(devices[0].services, undefined);\n});",
|
|
3754
3832
|
"err": {},
|
|
3755
|
-
"uuid": "
|
|
3756
|
-
"parentUUID": "
|
|
3833
|
+
"uuid": "81f755c8-3c8f-43cc-942c-f2aefe29bf8c",
|
|
3834
|
+
"parentUUID": "5703ef4f-da40-4bb1-acb8-788afe72336f",
|
|
3757
3835
|
"isHook": false,
|
|
3758
3836
|
"skipped": false
|
|
3759
3837
|
},
|
|
@@ -3770,34 +3848,34 @@
|
|
|
3770
3848
|
"context": null,
|
|
3771
3849
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const devices = yield NodePyATVInstance.find({\n spawn: createFakeSpawn(cp => {\n cp.stdout({\n result: 'success',\n datetime: '2020-11-06T20:47:30.840022+01:00',\n devices: [\n {\n name: 'Vardagsrum',\n address: '10.0.10.81',\n identifier: 'xxx',\n device_info: {\n 'model': 'Gen4K',\n 'model_str': 'Apple TV 4K',\n 'operating_system': 'TvOS',\n 'version': '15.5.1'\n },\n services: [\n {\n protocol: 'mrp',\n port: 49152\n },\n {\n protocol: 'airplay',\n port: 7000\n }\n ]\n }\n ]\n }).code(1).end();\n })\n });\n assert.strictEqual(devices.length, 1);\n assert.strictEqual(devices[0].name, 'Vardagsrum');\n assert.strictEqual(devices[0].host, '10.0.10.81');\n assert.strictEqual(devices[0].id, 'xxx');\n assert.strictEqual(devices[0].model, 'Gen4K');\n assert.strictEqual(devices[0].modelName, 'Apple TV 4K');\n assert.strictEqual(devices[0].os, 'TvOS');\n assert.strictEqual(devices[0].version, '15.5.1');\n assert.deepStrictEqual(devices[0].services, [\n {\n protocol: NodePyATVProtocol.mrp,\n port: 49152\n },\n {\n protocol: NodePyATVProtocol.airplay,\n port: 7000\n }\n ]);\n});",
|
|
3772
3850
|
"err": {},
|
|
3773
|
-
"uuid": "
|
|
3774
|
-
"parentUUID": "
|
|
3851
|
+
"uuid": "ad4f7b51-c300-40b5-9290-76c2c5a18982",
|
|
3852
|
+
"parentUUID": "5703ef4f-da40-4bb1-acb8-788afe72336f",
|
|
3775
3853
|
"isHook": false,
|
|
3776
3854
|
"skipped": false
|
|
3777
3855
|
}
|
|
3778
3856
|
],
|
|
3779
3857
|
"suites": [],
|
|
3780
3858
|
"passes": [
|
|
3781
|
-
"
|
|
3782
|
-
"
|
|
3783
|
-
"
|
|
3784
|
-
"
|
|
3785
|
-
"
|
|
3786
|
-
"
|
|
3787
|
-
"
|
|
3788
|
-
"
|
|
3789
|
-
"
|
|
3859
|
+
"0b41ab12-d2fe-4899-939b-7b8cf1096599",
|
|
3860
|
+
"c550dc21-5be9-40fe-b968-e480d9e1cf09",
|
|
3861
|
+
"e09d785c-4b08-47c4-b13e-ef5b023d2a1d",
|
|
3862
|
+
"71debcec-6679-4943-892b-d59a51e4fa12",
|
|
3863
|
+
"0ba18fd9-5878-45bb-86a0-e018c53109bf",
|
|
3864
|
+
"9433f54b-b7cf-4c12-b1fe-c72325b87335",
|
|
3865
|
+
"ed2a3f48-ef22-42f4-b9ce-62e22e24815d",
|
|
3866
|
+
"81f755c8-3c8f-43cc-942c-f2aefe29bf8c",
|
|
3867
|
+
"ad4f7b51-c300-40b5-9290-76c2c5a18982"
|
|
3790
3868
|
],
|
|
3791
3869
|
"failures": [],
|
|
3792
3870
|
"pending": [],
|
|
3793
3871
|
"skipped": [],
|
|
3794
|
-
"duration":
|
|
3872
|
+
"duration": 5442,
|
|
3795
3873
|
"root": false,
|
|
3796
3874
|
"rootEmpty": false,
|
|
3797
3875
|
"_timeout": 2000
|
|
3798
3876
|
},
|
|
3799
3877
|
{
|
|
3800
|
-
"uuid": "
|
|
3878
|
+
"uuid": "8a605b09-cd84-432d-a1fe-3f37308a6989",
|
|
3801
3879
|
"title": "static device()",
|
|
3802
3880
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3803
3881
|
"file": "/test/instance.ts",
|
|
@@ -3817,15 +3895,15 @@
|
|
|
3817
3895
|
"context": null,
|
|
3818
3896
|
"code": "const device = NodePyATVInstance.device({ host: '192.168.178.6', name: 'My Testdevice' });\nassert.strictEqual(device.host, '192.168.178.6');\nassert.strictEqual(device.name, 'My Testdevice');",
|
|
3819
3897
|
"err": {},
|
|
3820
|
-
"uuid": "
|
|
3821
|
-
"parentUUID": "
|
|
3898
|
+
"uuid": "06bbe85b-199c-4633-b85f-299f6e89021c",
|
|
3899
|
+
"parentUUID": "8a605b09-cd84-432d-a1fe-3f37308a6989",
|
|
3822
3900
|
"isHook": false,
|
|
3823
3901
|
"skipped": false
|
|
3824
3902
|
}
|
|
3825
3903
|
],
|
|
3826
3904
|
"suites": [],
|
|
3827
3905
|
"passes": [
|
|
3828
|
-
"
|
|
3906
|
+
"06bbe85b-199c-4633-b85f-299f6e89021c"
|
|
3829
3907
|
],
|
|
3830
3908
|
"failures": [],
|
|
3831
3909
|
"pending": [],
|
|
@@ -3836,7 +3914,7 @@
|
|
|
3836
3914
|
"_timeout": 2000
|
|
3837
3915
|
},
|
|
3838
3916
|
{
|
|
3839
|
-
"uuid": "
|
|
3917
|
+
"uuid": "411a2966-f1e7-484f-92f4-fd5cd5e48a80",
|
|
3840
3918
|
"title": "version()",
|
|
3841
3919
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3842
3920
|
"file": "/test/instance.ts",
|
|
@@ -3847,7 +3925,7 @@
|
|
|
3847
3925
|
"title": "should merge options from constructor",
|
|
3848
3926
|
"fullTitle": "NodePyATVInstance version() should merge options from constructor",
|
|
3849
3927
|
"timedOut": false,
|
|
3850
|
-
"duration":
|
|
3928
|
+
"duration": 2,
|
|
3851
3929
|
"state": "passed",
|
|
3852
3930
|
"speed": "fast",
|
|
3853
3931
|
"pass": true,
|
|
@@ -3856,26 +3934,26 @@
|
|
|
3856
3934
|
"context": null,
|
|
3857
3935
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const i = new NodePyATVInstance({ atvremotePath: 'test' });\n yield i.version({\n spawn: createFakeSpawn(cp => {\n assert.strictEqual(cp.cmd(), 'test');\n cp.code(1).end();\n })\n });\n});",
|
|
3858
3936
|
"err": {},
|
|
3859
|
-
"uuid": "
|
|
3860
|
-
"parentUUID": "
|
|
3937
|
+
"uuid": "ac14037f-8ef6-4671-8624-c70caa4ee7b1",
|
|
3938
|
+
"parentUUID": "411a2966-f1e7-484f-92f4-fd5cd5e48a80",
|
|
3861
3939
|
"isHook": false,
|
|
3862
3940
|
"skipped": false
|
|
3863
3941
|
}
|
|
3864
3942
|
],
|
|
3865
3943
|
"suites": [],
|
|
3866
3944
|
"passes": [
|
|
3867
|
-
"
|
|
3945
|
+
"ac14037f-8ef6-4671-8624-c70caa4ee7b1"
|
|
3868
3946
|
],
|
|
3869
3947
|
"failures": [],
|
|
3870
3948
|
"pending": [],
|
|
3871
3949
|
"skipped": [],
|
|
3872
|
-
"duration":
|
|
3950
|
+
"duration": 2,
|
|
3873
3951
|
"root": false,
|
|
3874
3952
|
"rootEmpty": false,
|
|
3875
3953
|
"_timeout": 2000
|
|
3876
3954
|
},
|
|
3877
3955
|
{
|
|
3878
|
-
"uuid": "
|
|
3956
|
+
"uuid": "bef6d662-0d9a-466d-b56c-782c783fd7e6",
|
|
3879
3957
|
"title": "check()",
|
|
3880
3958
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3881
3959
|
"file": "/test/instance.ts",
|
|
@@ -3886,7 +3964,7 @@
|
|
|
3886
3964
|
"title": "should merge options from constructor",
|
|
3887
3965
|
"fullTitle": "NodePyATVInstance check() should merge options from constructor",
|
|
3888
3966
|
"timedOut": false,
|
|
3889
|
-
"duration":
|
|
3967
|
+
"duration": 2,
|
|
3890
3968
|
"state": "passed",
|
|
3891
3969
|
"speed": "fast",
|
|
3892
3970
|
"pass": true,
|
|
@@ -3895,26 +3973,26 @@
|
|
|
3895
3973
|
"context": null,
|
|
3896
3974
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const i = new NodePyATVInstance({ atvremotePath: 'test' });\n yield assert.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield i.check({\n spawn: createFakeSpawn(cp => {\n assert.strictEqual(cp.cmd(), 'test');\n cp.error(new Error('spawn atvremote ENOENT')).code(1).end();\n })\n });\n }), /Unable to find pyatv. Is it installed?/);\n});",
|
|
3897
3975
|
"err": {},
|
|
3898
|
-
"uuid": "
|
|
3899
|
-
"parentUUID": "
|
|
3976
|
+
"uuid": "59f4d955-7fe8-4617-8def-39c372949d62",
|
|
3977
|
+
"parentUUID": "bef6d662-0d9a-466d-b56c-782c783fd7e6",
|
|
3900
3978
|
"isHook": false,
|
|
3901
3979
|
"skipped": false
|
|
3902
3980
|
}
|
|
3903
3981
|
],
|
|
3904
3982
|
"suites": [],
|
|
3905
3983
|
"passes": [
|
|
3906
|
-
"
|
|
3984
|
+
"59f4d955-7fe8-4617-8def-39c372949d62"
|
|
3907
3985
|
],
|
|
3908
3986
|
"failures": [],
|
|
3909
3987
|
"pending": [],
|
|
3910
3988
|
"skipped": [],
|
|
3911
|
-
"duration":
|
|
3989
|
+
"duration": 2,
|
|
3912
3990
|
"root": false,
|
|
3913
3991
|
"rootEmpty": false,
|
|
3914
3992
|
"_timeout": 2000
|
|
3915
3993
|
},
|
|
3916
3994
|
{
|
|
3917
|
-
"uuid": "
|
|
3995
|
+
"uuid": "e2a6bd24-7b11-4daf-adba-c12628ba7ee7",
|
|
3918
3996
|
"title": "find()",
|
|
3919
3997
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3920
3998
|
"file": "/test/instance.ts",
|
|
@@ -3925,7 +4003,7 @@
|
|
|
3925
4003
|
"title": "should merge options from constructor",
|
|
3926
4004
|
"fullTitle": "NodePyATVInstance find() should merge options from constructor",
|
|
3927
4005
|
"timedOut": false,
|
|
3928
|
-
"duration":
|
|
4006
|
+
"duration": 1,
|
|
3929
4007
|
"state": "passed",
|
|
3930
4008
|
"speed": "fast",
|
|
3931
4009
|
"pass": true,
|
|
@@ -3934,26 +4012,26 @@
|
|
|
3934
4012
|
"context": null,
|
|
3935
4013
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const i = new NodePyATVInstance({ atvscriptPath: 'test' });\n yield i.find({\n spawn: createFakeSpawn(cp => {\n assert.strictEqual(cp.cmd(), 'test');\n cp.stdout({\n 'result': 'success',\n 'datetime': '2020-11-06T20:47:30.840022+01:00',\n 'devices': []\n }).end();\n })\n });\n});",
|
|
3936
4014
|
"err": {},
|
|
3937
|
-
"uuid": "
|
|
3938
|
-
"parentUUID": "
|
|
4015
|
+
"uuid": "4dfdd1e5-b935-49d4-bee4-43a2959dfd7e",
|
|
4016
|
+
"parentUUID": "e2a6bd24-7b11-4daf-adba-c12628ba7ee7",
|
|
3939
4017
|
"isHook": false,
|
|
3940
4018
|
"skipped": false
|
|
3941
4019
|
}
|
|
3942
4020
|
],
|
|
3943
4021
|
"suites": [],
|
|
3944
4022
|
"passes": [
|
|
3945
|
-
"
|
|
4023
|
+
"4dfdd1e5-b935-49d4-bee4-43a2959dfd7e"
|
|
3946
4024
|
],
|
|
3947
4025
|
"failures": [],
|
|
3948
4026
|
"pending": [],
|
|
3949
4027
|
"skipped": [],
|
|
3950
|
-
"duration":
|
|
4028
|
+
"duration": 1,
|
|
3951
4029
|
"root": false,
|
|
3952
4030
|
"rootEmpty": false,
|
|
3953
4031
|
"_timeout": 2000
|
|
3954
4032
|
},
|
|
3955
4033
|
{
|
|
3956
|
-
"uuid": "
|
|
4034
|
+
"uuid": "aa35a301-7580-4dac-914d-50c4470b4934",
|
|
3957
4035
|
"title": "device()",
|
|
3958
4036
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3959
4037
|
"file": "/test/instance.ts",
|
|
@@ -3973,15 +4051,15 @@
|
|
|
3973
4051
|
"context": null,
|
|
3974
4052
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const i = new NodePyATVInstance({ debug: true });\n const d = i.device({ name: 'My Testdevice', host: '192.168.178.2' });\n assert.deepStrictEqual(d.debug, true);\n});",
|
|
3975
4053
|
"err": {},
|
|
3976
|
-
"uuid": "
|
|
3977
|
-
"parentUUID": "
|
|
4054
|
+
"uuid": "d3242d71-4abe-45bf-89a1-c6f245c00835",
|
|
4055
|
+
"parentUUID": "aa35a301-7580-4dac-914d-50c4470b4934",
|
|
3978
4056
|
"isHook": false,
|
|
3979
4057
|
"skipped": false
|
|
3980
4058
|
}
|
|
3981
4059
|
],
|
|
3982
4060
|
"suites": [],
|
|
3983
4061
|
"passes": [
|
|
3984
|
-
"
|
|
4062
|
+
"d3242d71-4abe-45bf-89a1-c6f245c00835"
|
|
3985
4063
|
],
|
|
3986
4064
|
"failures": [],
|
|
3987
4065
|
"pending": [],
|
|
@@ -3992,7 +4070,7 @@
|
|
|
3992
4070
|
"_timeout": 2000
|
|
3993
4071
|
},
|
|
3994
4072
|
{
|
|
3995
|
-
"uuid": "
|
|
4073
|
+
"uuid": "a52dda42-c9c9-4958-91eb-5f5bf1a4b49b",
|
|
3996
4074
|
"title": "Type Exports",
|
|
3997
4075
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3998
4076
|
"file": "/test/instance.ts",
|
|
@@ -4012,8 +4090,8 @@
|
|
|
4012
4090
|
"context": null,
|
|
4013
4091
|
"code": "assert.ok(NodePyATVProtocol);",
|
|
4014
4092
|
"err": {},
|
|
4015
|
-
"uuid": "
|
|
4016
|
-
"parentUUID": "
|
|
4093
|
+
"uuid": "46d53f97-19eb-4c84-a74a-1ecadd3a7abd",
|
|
4094
|
+
"parentUUID": "a52dda42-c9c9-4958-91eb-5f5bf1a4b49b",
|
|
4017
4095
|
"isHook": false,
|
|
4018
4096
|
"skipped": false
|
|
4019
4097
|
},
|
|
@@ -4030,8 +4108,8 @@
|
|
|
4030
4108
|
"context": null,
|
|
4031
4109
|
"code": "assert.ok(NodePyATVMediaType);",
|
|
4032
4110
|
"err": {},
|
|
4033
|
-
"uuid": "
|
|
4034
|
-
"parentUUID": "
|
|
4111
|
+
"uuid": "faaf7c1c-ed42-4183-9fd3-912bd4bd874a",
|
|
4112
|
+
"parentUUID": "a52dda42-c9c9-4958-91eb-5f5bf1a4b49b",
|
|
4035
4113
|
"isHook": false,
|
|
4036
4114
|
"skipped": false
|
|
4037
4115
|
},
|
|
@@ -4048,8 +4126,8 @@
|
|
|
4048
4126
|
"context": null,
|
|
4049
4127
|
"code": "assert.ok(NodePyATVDeviceEvent);",
|
|
4050
4128
|
"err": {},
|
|
4051
|
-
"uuid": "
|
|
4052
|
-
"parentUUID": "
|
|
4129
|
+
"uuid": "cad8fca0-f53c-448f-863f-b686e344b53d",
|
|
4130
|
+
"parentUUID": "a52dda42-c9c9-4958-91eb-5f5bf1a4b49b",
|
|
4053
4131
|
"isHook": false,
|
|
4054
4132
|
"skipped": false
|
|
4055
4133
|
},
|
|
@@ -4066,8 +4144,8 @@
|
|
|
4066
4144
|
"context": null,
|
|
4067
4145
|
"code": "assert.ok(NodePyATVDeviceState);",
|
|
4068
4146
|
"err": {},
|
|
4069
|
-
"uuid": "
|
|
4070
|
-
"parentUUID": "
|
|
4147
|
+
"uuid": "f3dfd671-38e0-473a-b509-d110be4dcabd",
|
|
4148
|
+
"parentUUID": "a52dda42-c9c9-4958-91eb-5f5bf1a4b49b",
|
|
4071
4149
|
"isHook": false,
|
|
4072
4150
|
"skipped": false
|
|
4073
4151
|
},
|
|
@@ -4084,8 +4162,8 @@
|
|
|
4084
4162
|
"context": null,
|
|
4085
4163
|
"code": "assert.ok(NodePyATVRepeatState);",
|
|
4086
4164
|
"err": {},
|
|
4087
|
-
"uuid": "
|
|
4088
|
-
"parentUUID": "
|
|
4165
|
+
"uuid": "65b56aaf-6511-4a3f-90ea-b27030635025",
|
|
4166
|
+
"parentUUID": "a52dda42-c9c9-4958-91eb-5f5bf1a4b49b",
|
|
4089
4167
|
"isHook": false,
|
|
4090
4168
|
"skipped": false
|
|
4091
4169
|
},
|
|
@@ -4102,8 +4180,8 @@
|
|
|
4102
4180
|
"context": null,
|
|
4103
4181
|
"code": "assert.ok(NodePyATVShuffleState);",
|
|
4104
4182
|
"err": {},
|
|
4105
|
-
"uuid": "
|
|
4106
|
-
"parentUUID": "
|
|
4183
|
+
"uuid": "831fc229-68d0-4df9-bd4d-a33eb086b7cb",
|
|
4184
|
+
"parentUUID": "a52dda42-c9c9-4958-91eb-5f5bf1a4b49b",
|
|
4107
4185
|
"isHook": false,
|
|
4108
4186
|
"skipped": false
|
|
4109
4187
|
},
|
|
@@ -4120,8 +4198,8 @@
|
|
|
4120
4198
|
"context": null,
|
|
4121
4199
|
"code": "assert.ok(NodePyATVKeys);",
|
|
4122
4200
|
"err": {},
|
|
4123
|
-
"uuid": "
|
|
4124
|
-
"parentUUID": "
|
|
4201
|
+
"uuid": "0d62f42d-c934-4154-969e-5305454b2533",
|
|
4202
|
+
"parentUUID": "a52dda42-c9c9-4958-91eb-5f5bf1a4b49b",
|
|
4125
4203
|
"isHook": false,
|
|
4126
4204
|
"skipped": false
|
|
4127
4205
|
},
|
|
@@ -4138,8 +4216,8 @@
|
|
|
4138
4216
|
"context": null,
|
|
4139
4217
|
"code": "assert.ok(NodePyATVListenerState);",
|
|
4140
4218
|
"err": {},
|
|
4141
|
-
"uuid": "
|
|
4142
|
-
"parentUUID": "
|
|
4219
|
+
"uuid": "18f2d450-0005-4dae-b5a4-e8fef42def36",
|
|
4220
|
+
"parentUUID": "a52dda42-c9c9-4958-91eb-5f5bf1a4b49b",
|
|
4143
4221
|
"isHook": false,
|
|
4144
4222
|
"skipped": false
|
|
4145
4223
|
},
|
|
@@ -4156,23 +4234,23 @@
|
|
|
4156
4234
|
"context": null,
|
|
4157
4235
|
"code": "assert.ok(NodePyATVPowerState);",
|
|
4158
4236
|
"err": {},
|
|
4159
|
-
"uuid": "
|
|
4160
|
-
"parentUUID": "
|
|
4237
|
+
"uuid": "0253a86d-f529-4620-851e-28455b67e28f",
|
|
4238
|
+
"parentUUID": "a52dda42-c9c9-4958-91eb-5f5bf1a4b49b",
|
|
4161
4239
|
"isHook": false,
|
|
4162
4240
|
"skipped": false
|
|
4163
4241
|
}
|
|
4164
4242
|
],
|
|
4165
4243
|
"suites": [],
|
|
4166
4244
|
"passes": [
|
|
4167
|
-
"
|
|
4168
|
-
"
|
|
4169
|
-
"
|
|
4170
|
-
"
|
|
4171
|
-
"
|
|
4172
|
-
"
|
|
4173
|
-
"
|
|
4174
|
-
"
|
|
4175
|
-
"
|
|
4245
|
+
"46d53f97-19eb-4c84-a74a-1ecadd3a7abd",
|
|
4246
|
+
"faaf7c1c-ed42-4183-9fd3-912bd4bd874a",
|
|
4247
|
+
"cad8fca0-f53c-448f-863f-b686e344b53d",
|
|
4248
|
+
"f3dfd671-38e0-473a-b509-d110be4dcabd",
|
|
4249
|
+
"65b56aaf-6511-4a3f-90ea-b27030635025",
|
|
4250
|
+
"831fc229-68d0-4df9-bd4d-a33eb086b7cb",
|
|
4251
|
+
"0d62f42d-c934-4154-969e-5305454b2533",
|
|
4252
|
+
"18f2d450-0005-4dae-b5a4-e8fef42def36",
|
|
4253
|
+
"0253a86d-f529-4620-851e-28455b67e28f"
|
|
4176
4254
|
],
|
|
4177
4255
|
"failures": [],
|
|
4178
4256
|
"pending": [],
|
|
@@ -4193,7 +4271,7 @@
|
|
|
4193
4271
|
"_timeout": 2000
|
|
4194
4272
|
},
|
|
4195
4273
|
{
|
|
4196
|
-
"uuid": "
|
|
4274
|
+
"uuid": "358ecf86-0785-4f13-84b9-c527e6383350",
|
|
4197
4275
|
"title": "Tools",
|
|
4198
4276
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
|
|
4199
4277
|
"file": "/test/tools.ts",
|
|
@@ -4202,7 +4280,7 @@
|
|
|
4202
4280
|
"tests": [],
|
|
4203
4281
|
"suites": [
|
|
4204
4282
|
{
|
|
4205
|
-
"uuid": "
|
|
4283
|
+
"uuid": "61190e8e-cae8-472f-b898-88df8dbeb033",
|
|
4206
4284
|
"title": "addRequestId() / removeRequestId()",
|
|
4207
4285
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
|
|
4208
4286
|
"file": "/test/tools.ts",
|
|
@@ -4222,8 +4300,8 @@
|
|
|
4222
4300
|
"context": null,
|
|
4223
4301
|
"code": "const id = addRequestId();\nassert.strictEqual(typeof id, 'string');\nremoveRequestId(id);",
|
|
4224
4302
|
"err": {},
|
|
4225
|
-
"uuid": "
|
|
4226
|
-
"parentUUID": "
|
|
4303
|
+
"uuid": "5258c0ef-e705-43e0-b0c7-154d1a2abfc3",
|
|
4304
|
+
"parentUUID": "61190e8e-cae8-472f-b898-88df8dbeb033",
|
|
4227
4305
|
"isHook": false,
|
|
4228
4306
|
"skipped": false
|
|
4229
4307
|
},
|
|
@@ -4240,16 +4318,16 @@
|
|
|
4240
4318
|
"context": null,
|
|
4241
4319
|
"code": "removeRequestId('FOO');",
|
|
4242
4320
|
"err": {},
|
|
4243
|
-
"uuid": "
|
|
4244
|
-
"parentUUID": "
|
|
4321
|
+
"uuid": "aa8ba762-adb3-401c-8e54-a7bd291899c8",
|
|
4322
|
+
"parentUUID": "61190e8e-cae8-472f-b898-88df8dbeb033",
|
|
4245
4323
|
"isHook": false,
|
|
4246
4324
|
"skipped": false
|
|
4247
4325
|
}
|
|
4248
4326
|
],
|
|
4249
4327
|
"suites": [],
|
|
4250
4328
|
"passes": [
|
|
4251
|
-
"
|
|
4252
|
-
"
|
|
4329
|
+
"5258c0ef-e705-43e0-b0c7-154d1a2abfc3",
|
|
4330
|
+
"aa8ba762-adb3-401c-8e54-a7bd291899c8"
|
|
4253
4331
|
],
|
|
4254
4332
|
"failures": [],
|
|
4255
4333
|
"pending": [],
|
|
@@ -4260,7 +4338,7 @@
|
|
|
4260
4338
|
"_timeout": 2000
|
|
4261
4339
|
},
|
|
4262
4340
|
{
|
|
4263
|
-
"uuid": "
|
|
4341
|
+
"uuid": "d214f38d-34fe-44e1-9756-47424e5985a1",
|
|
4264
4342
|
"title": "debug()",
|
|
4265
4343
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
|
|
4266
4344
|
"file": "/test/tools.ts",
|
|
@@ -4280,8 +4358,8 @@
|
|
|
4280
4358
|
"context": null,
|
|
4281
4359
|
"code": "debug('TEST', 'Hello World.', {});",
|
|
4282
4360
|
"err": {},
|
|
4283
|
-
"uuid": "
|
|
4284
|
-
"parentUUID": "
|
|
4361
|
+
"uuid": "b062c1ee-b006-4c99-9737-b13b34e62167",
|
|
4362
|
+
"parentUUID": "d214f38d-34fe-44e1-9756-47424e5985a1",
|
|
4285
4363
|
"isHook": false,
|
|
4286
4364
|
"skipped": false
|
|
4287
4365
|
},
|
|
@@ -4298,8 +4376,8 @@
|
|
|
4298
4376
|
"context": null,
|
|
4299
4377
|
"code": "debug('TEST', 'Hello World.', { debug: true });",
|
|
4300
4378
|
"err": {},
|
|
4301
|
-
"uuid": "
|
|
4302
|
-
"parentUUID": "
|
|
4379
|
+
"uuid": "d9da87f3-e8bd-406c-8294-92fc048dd1b2",
|
|
4380
|
+
"parentUUID": "d214f38d-34fe-44e1-9756-47424e5985a1",
|
|
4303
4381
|
"isHook": false,
|
|
4304
4382
|
"skipped": false
|
|
4305
4383
|
},
|
|
@@ -4316,8 +4394,8 @@
|
|
|
4316
4394
|
"context": null,
|
|
4317
4395
|
"code": "debug('TEST', 'Hello World.', {\n debug: function (msg) {\n assert.strictEqual(this, null);\n assert.ok(msg.includes('Hello World'));\n }\n});",
|
|
4318
4396
|
"err": {},
|
|
4319
|
-
"uuid": "
|
|
4320
|
-
"parentUUID": "
|
|
4397
|
+
"uuid": "42757f0d-a544-4636-bc6f-7c3b1b0d2fe2",
|
|
4398
|
+
"parentUUID": "d214f38d-34fe-44e1-9756-47424e5985a1",
|
|
4321
4399
|
"isHook": false,
|
|
4322
4400
|
"skipped": false
|
|
4323
4401
|
},
|
|
@@ -4325,7 +4403,7 @@
|
|
|
4325
4403
|
"title": "should work with colors disabled",
|
|
4326
4404
|
"fullTitle": "Tools debug() should work with colors disabled",
|
|
4327
4405
|
"timedOut": false,
|
|
4328
|
-
"duration":
|
|
4406
|
+
"duration": 0,
|
|
4329
4407
|
"state": "passed",
|
|
4330
4408
|
"speed": "fast",
|
|
4331
4409
|
"pass": true,
|
|
@@ -4334,8 +4412,8 @@
|
|
|
4334
4412
|
"context": null,
|
|
4335
4413
|
"code": "debug('TEST', 'Hello World.', { noColors: true });",
|
|
4336
4414
|
"err": {},
|
|
4337
|
-
"uuid": "
|
|
4338
|
-
"parentUUID": "
|
|
4415
|
+
"uuid": "b47a3251-4df4-420d-a97d-45ecc38d0274",
|
|
4416
|
+
"parentUUID": "d214f38d-34fe-44e1-9756-47424e5985a1",
|
|
4339
4417
|
"isHook": false,
|
|
4340
4418
|
"skipped": false
|
|
4341
4419
|
},
|
|
@@ -4352,30 +4430,30 @@
|
|
|
4352
4430
|
"context": null,
|
|
4353
4431
|
"code": "debug('TEST', 'Hello World.', {\n noColors: true,\n debug: function (msg) {\n assert.strictEqual(this, null);\n assert.strictEqual(msg, '[node-pyatv][TEST] Hello World.');\n }\n});",
|
|
4354
4432
|
"err": {},
|
|
4355
|
-
"uuid": "
|
|
4356
|
-
"parentUUID": "
|
|
4433
|
+
"uuid": "497393de-5b58-4995-8858-5671e876955b",
|
|
4434
|
+
"parentUUID": "d214f38d-34fe-44e1-9756-47424e5985a1",
|
|
4357
4435
|
"isHook": false,
|
|
4358
4436
|
"skipped": false
|
|
4359
4437
|
}
|
|
4360
4438
|
],
|
|
4361
4439
|
"suites": [],
|
|
4362
4440
|
"passes": [
|
|
4363
|
-
"
|
|
4364
|
-
"
|
|
4365
|
-
"
|
|
4366
|
-
"
|
|
4367
|
-
"
|
|
4441
|
+
"b062c1ee-b006-4c99-9737-b13b34e62167",
|
|
4442
|
+
"d9da87f3-e8bd-406c-8294-92fc048dd1b2",
|
|
4443
|
+
"42757f0d-a544-4636-bc6f-7c3b1b0d2fe2",
|
|
4444
|
+
"b47a3251-4df4-420d-a97d-45ecc38d0274",
|
|
4445
|
+
"497393de-5b58-4995-8858-5671e876955b"
|
|
4368
4446
|
],
|
|
4369
4447
|
"failures": [],
|
|
4370
4448
|
"pending": [],
|
|
4371
4449
|
"skipped": [],
|
|
4372
|
-
"duration":
|
|
4450
|
+
"duration": 0,
|
|
4373
4451
|
"root": false,
|
|
4374
4452
|
"rootEmpty": false,
|
|
4375
4453
|
"_timeout": 2000
|
|
4376
4454
|
},
|
|
4377
4455
|
{
|
|
4378
|
-
"uuid": "
|
|
4456
|
+
"uuid": "308066ac-4631-44b6-984c-bb2b5d01f5f8",
|
|
4379
4457
|
"title": "getExecutable()",
|
|
4380
4458
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
|
|
4381
4459
|
"file": "/test/tools.ts",
|
|
@@ -4395,8 +4473,8 @@
|
|
|
4395
4473
|
"context": null,
|
|
4396
4474
|
"code": "const result = getExecutable(NodePyATVExecutableType.atvremote, {\n atvremotePath: '/tmp/1',\n atvscriptPath: '/tmp/2'\n});\nassert.strictEqual(result, '/tmp/1');",
|
|
4397
4475
|
"err": {},
|
|
4398
|
-
"uuid": "
|
|
4399
|
-
"parentUUID": "
|
|
4476
|
+
"uuid": "3725dfaa-6ee1-4f43-8f8a-faa52da0bbe3",
|
|
4477
|
+
"parentUUID": "308066ac-4631-44b6-984c-bb2b5d01f5f8",
|
|
4400
4478
|
"isHook": false,
|
|
4401
4479
|
"skipped": false
|
|
4402
4480
|
},
|
|
@@ -4413,8 +4491,8 @@
|
|
|
4413
4491
|
"context": null,
|
|
4414
4492
|
"code": "const result = getExecutable(NodePyATVExecutableType.atvscript, {\n atvremotePath: '/tmp/1',\n atvscriptPath: '/tmp/2'\n});\nassert.strictEqual(result, '/tmp/2');",
|
|
4415
4493
|
"err": {},
|
|
4416
|
-
"uuid": "
|
|
4417
|
-
"parentUUID": "
|
|
4494
|
+
"uuid": "edf45df6-608b-4cc6-ba33-8a44f7a4b13c",
|
|
4495
|
+
"parentUUID": "308066ac-4631-44b6-984c-bb2b5d01f5f8",
|
|
4418
4496
|
"isHook": false,
|
|
4419
4497
|
"skipped": false
|
|
4420
4498
|
},
|
|
@@ -4431,8 +4509,8 @@
|
|
|
4431
4509
|
"context": null,
|
|
4432
4510
|
"code": "const result = getExecutable(NodePyATVExecutableType.atvremote, {\n atvscriptPath: '/tmp'\n});\nassert.strictEqual(result, 'atvremote');",
|
|
4433
4511
|
"err": {},
|
|
4434
|
-
"uuid": "
|
|
4435
|
-
"parentUUID": "
|
|
4512
|
+
"uuid": "f07602d0-ba3b-45ea-b561-92e2a770eb9c",
|
|
4513
|
+
"parentUUID": "308066ac-4631-44b6-984c-bb2b5d01f5f8",
|
|
4436
4514
|
"isHook": false,
|
|
4437
4515
|
"skipped": false
|
|
4438
4516
|
},
|
|
@@ -4449,18 +4527,18 @@
|
|
|
4449
4527
|
"context": null,
|
|
4450
4528
|
"code": "const result = getExecutable(NodePyATVExecutableType.atvscript, {\n atvremotePath: '/tmp'\n});\nassert.strictEqual(result, 'atvscript');",
|
|
4451
4529
|
"err": {},
|
|
4452
|
-
"uuid": "
|
|
4453
|
-
"parentUUID": "
|
|
4530
|
+
"uuid": "b522a000-ca4a-46e8-87ef-4446684f5274",
|
|
4531
|
+
"parentUUID": "308066ac-4631-44b6-984c-bb2b5d01f5f8",
|
|
4454
4532
|
"isHook": false,
|
|
4455
4533
|
"skipped": false
|
|
4456
4534
|
}
|
|
4457
4535
|
],
|
|
4458
4536
|
"suites": [],
|
|
4459
4537
|
"passes": [
|
|
4460
|
-
"
|
|
4461
|
-
"
|
|
4462
|
-
"
|
|
4463
|
-
"
|
|
4538
|
+
"3725dfaa-6ee1-4f43-8f8a-faa52da0bbe3",
|
|
4539
|
+
"edf45df6-608b-4cc6-ba33-8a44f7a4b13c",
|
|
4540
|
+
"f07602d0-ba3b-45ea-b561-92e2a770eb9c",
|
|
4541
|
+
"b522a000-ca4a-46e8-87ef-4446684f5274"
|
|
4464
4542
|
],
|
|
4465
4543
|
"failures": [],
|
|
4466
4544
|
"pending": [],
|
|
@@ -4471,7 +4549,7 @@
|
|
|
4471
4549
|
"_timeout": 2000
|
|
4472
4550
|
},
|
|
4473
4551
|
{
|
|
4474
|
-
"uuid": "
|
|
4552
|
+
"uuid": "e311694b-9c19-487d-8ecc-e555af5cdf4f",
|
|
4475
4553
|
"title": "getParameters()",
|
|
4476
4554
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
|
|
4477
4555
|
"file": "/test/tools.ts",
|
|
@@ -4491,8 +4569,8 @@
|
|
|
4491
4569
|
"context": null,
|
|
4492
4570
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield getParamters();\n assert.deepEqual(result, []);\n});",
|
|
4493
4571
|
"err": {},
|
|
4494
|
-
"uuid": "
|
|
4495
|
-
"parentUUID": "
|
|
4572
|
+
"uuid": "b4fde6b3-fa93-4c70-b4da-4d489c705144",
|
|
4573
|
+
"parentUUID": "e311694b-9c19-487d-8ecc-e555af5cdf4f",
|
|
4496
4574
|
"isHook": false,
|
|
4497
4575
|
"skipped": false
|
|
4498
4576
|
},
|
|
@@ -4509,8 +4587,8 @@
|
|
|
4509
4587
|
"context": null,
|
|
4510
4588
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield getParamters({\n host: '192.168.178.2'\n });\n assert.deepEqual(result, ['-s', '192.168.178.2']);\n});",
|
|
4511
4589
|
"err": {},
|
|
4512
|
-
"uuid": "
|
|
4513
|
-
"parentUUID": "
|
|
4590
|
+
"uuid": "a695f5ec-f5b1-4e08-9097-2bd41a6cbed0",
|
|
4591
|
+
"parentUUID": "e311694b-9c19-487d-8ecc-e555af5cdf4f",
|
|
4514
4592
|
"isHook": false,
|
|
4515
4593
|
"skipped": false
|
|
4516
4594
|
},
|
|
@@ -4518,7 +4596,7 @@
|
|
|
4518
4596
|
"title": "full case",
|
|
4519
4597
|
"fullTitle": "Tools getParameters() full case",
|
|
4520
4598
|
"timedOut": false,
|
|
4521
|
-
"duration":
|
|
4599
|
+
"duration": 0,
|
|
4522
4600
|
"state": "passed",
|
|
4523
4601
|
"speed": "fast",
|
|
4524
4602
|
"pass": true,
|
|
@@ -4527,28 +4605,28 @@
|
|
|
4527
4605
|
"context": null,
|
|
4528
4606
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield getParamters({\n hosts: ['192.168.178.2', '192.168.178.3'],\n id: '****',\n protocol: NodePyATVProtocol.mrp,\n dmapCredentials: '****',\n mrpCredentials: '****',\n airplayCredentials: '****',\n companionCredentials: '1234',\n raopCredentials: '::foo:'\n });\n assert.deepEqual(result, [\n '-s', '192.168.178.2,192.168.178.3',\n '-i', '****',\n '--protocol', 'mrp',\n '--dmap-credentials', '****',\n '--mrp-credentials', '****',\n '--airplay-credentials', '****',\n '--companion-credentials', '1234',\n '--raop-credentials', '::foo:'\n ]);\n});",
|
|
4529
4607
|
"err": {},
|
|
4530
|
-
"uuid": "
|
|
4531
|
-
"parentUUID": "
|
|
4608
|
+
"uuid": "6d11748d-3abc-4179-9e98-649d928037fe",
|
|
4609
|
+
"parentUUID": "e311694b-9c19-487d-8ecc-e555af5cdf4f",
|
|
4532
4610
|
"isHook": false,
|
|
4533
4611
|
"skipped": false
|
|
4534
4612
|
}
|
|
4535
4613
|
],
|
|
4536
4614
|
"suites": [],
|
|
4537
4615
|
"passes": [
|
|
4538
|
-
"
|
|
4539
|
-
"
|
|
4540
|
-
"
|
|
4616
|
+
"b4fde6b3-fa93-4c70-b4da-4d489c705144",
|
|
4617
|
+
"a695f5ec-f5b1-4e08-9097-2bd41a6cbed0",
|
|
4618
|
+
"6d11748d-3abc-4179-9e98-649d928037fe"
|
|
4541
4619
|
],
|
|
4542
4620
|
"failures": [],
|
|
4543
4621
|
"pending": [],
|
|
4544
4622
|
"skipped": [],
|
|
4545
|
-
"duration":
|
|
4623
|
+
"duration": 0,
|
|
4546
4624
|
"root": false,
|
|
4547
4625
|
"rootEmpty": false,
|
|
4548
4626
|
"_timeout": 2000
|
|
4549
4627
|
},
|
|
4550
4628
|
{
|
|
4551
|
-
"uuid": "
|
|
4629
|
+
"uuid": "e2cae283-0ba3-4dca-a2bd-02f082d431fa",
|
|
4552
4630
|
"title": "parseState()",
|
|
4553
4631
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
|
|
4554
4632
|
"file": "/test/tools.ts",
|
|
@@ -4568,8 +4646,8 @@
|
|
|
4568
4646
|
"context": null,
|
|
4569
4647
|
"code": "const input = {};\nconst result = parseState(input, '', {});\nassert.deepStrictEqual(result, {\n dateTime: null,\n hash: null,\n mediaType: null,\n deviceState: null,\n title: null,\n artist: null,\n album: null,\n genre: null,\n totalTime: null,\n position: null,\n shuffle: null,\n repeat: null,\n app: null,\n appId: null,\n powerState: null\n});",
|
|
4570
4648
|
"err": {},
|
|
4571
|
-
"uuid": "
|
|
4572
|
-
"parentUUID": "
|
|
4649
|
+
"uuid": "5600e3a6-4120-4de6-8733-56272c318163",
|
|
4650
|
+
"parentUUID": "e2cae283-0ba3-4dca-a2bd-02f082d431fa",
|
|
4573
4651
|
"isHook": false,
|
|
4574
4652
|
"skipped": false
|
|
4575
4653
|
},
|
|
@@ -4586,8 +4664,8 @@
|
|
|
4586
4664
|
"context": null,
|
|
4587
4665
|
"code": "// @ts-ignore\nconst result = parseState(null, '', {});\nassert.deepStrictEqual(result, {\n dateTime: null,\n hash: null,\n mediaType: null,\n deviceState: null,\n title: null,\n artist: null,\n album: null,\n genre: null,\n totalTime: null,\n position: null,\n shuffle: null,\n repeat: null,\n app: null,\n appId: null,\n powerState: null\n});",
|
|
4588
4666
|
"err": {},
|
|
4589
|
-
"uuid": "
|
|
4590
|
-
"parentUUID": "
|
|
4667
|
+
"uuid": "bf37377f-a22a-4e20-802f-3b8b30ed2166",
|
|
4668
|
+
"parentUUID": "e2cae283-0ba3-4dca-a2bd-02f082d431fa",
|
|
4591
4669
|
"isHook": false,
|
|
4592
4670
|
"skipped": false
|
|
4593
4671
|
},
|
|
@@ -4604,8 +4682,8 @@
|
|
|
4604
4682
|
"context": null,
|
|
4605
4683
|
"code": "const input = {\n result: 'success',\n datetime: '2020-11-07T22:38:43.608030+01:00',\n hash: '100e0ab6-6ff5-4199-9c04-a7107ff78712',\n media_type: 'video',\n device_state: 'playing',\n title: 'Solo: A Star Wars Story',\n artist: null,\n album: null,\n genre: null,\n total_time: 8097,\n position: 27,\n shuffle: 'off',\n repeat: 'off',\n app: 'Disney+',\n app_id: 'com.disney.disneyplus',\n powerState: null\n};\nconst result = parseState(input, '', {});\nassert.deepStrictEqual(result, {\n dateTime: new Date('2020-11-07T22:38:43.608030+01:00'),\n hash: '100e0ab6-6ff5-4199-9c04-a7107ff78712',\n mediaType: NodePyATVMediaType.video,\n deviceState: NodePyATVDeviceState.playing,\n title: 'Solo: A Star Wars Story',\n artist: null,\n album: null,\n genre: null,\n totalTime: 8097,\n position: 27,\n shuffle: NodePyATVShuffleState.off,\n repeat: NodePyATVRepeatState.off,\n app: 'Disney+',\n appId: 'com.disney.disneyplus',\n powerState: null\n});",
|
|
4606
4684
|
"err": {},
|
|
4607
|
-
"uuid": "
|
|
4608
|
-
"parentUUID": "
|
|
4685
|
+
"uuid": "7073e94e-c466-4e13-8aaf-27e82ad71ebf",
|
|
4686
|
+
"parentUUID": "e2cae283-0ba3-4dca-a2bd-02f082d431fa",
|
|
4609
4687
|
"isHook": false,
|
|
4610
4688
|
"skipped": false
|
|
4611
4689
|
},
|
|
@@ -4622,8 +4700,8 @@
|
|
|
4622
4700
|
"context": null,
|
|
4623
4701
|
"code": "const input = {\n result: 'failure',\n datetime: '2021-11-24T21:13:36.424576+03:00',\n exception: 'invalid credentials: 321',\n stacktrace: 'Traceback (most recent call last):\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/scripts/atvscript.py\\\", line 302, in appstart\\n print(args.output(await _handle_command(args, abort_sem, loop)), flush=True)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/scripts/atvscript.py\\\", line 196, in _handle_command\\n atv = await connect(config, loop, protocol=Protocol.MRP)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/__init__.py\\\", line 96, in connect\\n for setup_data in proto_methods.setup(\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/protocols/airplay/__init__.py\\\", line 192, in setup\\n stream = AirPlayStream(config, service)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/protocols/airplay/__init__.py\\\", line 79, in __init__\\n self._credentials: HapCredentials = parse_credentials(self.service.credentials)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/auth/hap_pairing.py\\\", line 139, in parse_credentials\\n raise exceptions.InvalidCredentialsError(\\\"invalid credentials: \\\" + detail_string)\\npyatv.exceptions.InvalidCredentialsError: invalid credentials: 321\\n'\n};\nassert.throws(() => {\n parseState(input, '', {});\n}, /Got pyatv Error: invalid credentials: 321/);",
|
|
4624
4702
|
"err": {},
|
|
4625
|
-
"uuid": "
|
|
4626
|
-
"parentUUID": "
|
|
4703
|
+
"uuid": "1bb5ab89-ceb1-43c9-9b27-230fa4c4ece2",
|
|
4704
|
+
"parentUUID": "e2cae283-0ba3-4dca-a2bd-02f082d431fa",
|
|
4627
4705
|
"isHook": false,
|
|
4628
4706
|
"skipped": false
|
|
4629
4707
|
},
|
|
@@ -4640,8 +4718,8 @@
|
|
|
4640
4718
|
"context": null,
|
|
4641
4719
|
"code": "const input = { datetime: 'today' };\nconst result = parseState(input, '', {});\nassert.deepStrictEqual(result, {\n dateTime: null,\n hash: null,\n mediaType: null,\n deviceState: null,\n title: null,\n artist: null,\n album: null,\n genre: null,\n totalTime: null,\n position: null,\n shuffle: null,\n repeat: null,\n app: null,\n appId: null,\n powerState: null\n});",
|
|
4642
4720
|
"err": {},
|
|
4643
|
-
"uuid": "
|
|
4644
|
-
"parentUUID": "
|
|
4721
|
+
"uuid": "187c27c8-1a45-4563-bad3-005c8a8a742a",
|
|
4722
|
+
"parentUUID": "e2cae283-0ba3-4dca-a2bd-02f082d431fa",
|
|
4645
4723
|
"isHook": false,
|
|
4646
4724
|
"skipped": false
|
|
4647
4725
|
},
|
|
@@ -4658,8 +4736,8 @@
|
|
|
4658
4736
|
"context": null,
|
|
4659
4737
|
"code": "const input = {\n result: 'success',\n datetime: true,\n hash: 1337,\n media_type: false,\n device_state: 43,\n title: undefined,\n artist: 90,\n album: Infinity,\n genre: Math.PI,\n total_time: '23min',\n position: '0:30.123',\n shuffle: false,\n repeat: true,\n app: 0,\n app_id: 891645381647289,\n powerState: null\n};\nconst result = parseState(input, '', {});\nassert.deepStrictEqual(result, {\n dateTime: null,\n hash: null,\n mediaType: null,\n deviceState: null,\n title: null,\n artist: null,\n album: null,\n genre: null,\n totalTime: null,\n position: null,\n shuffle: null,\n repeat: null,\n app: null,\n appId: null,\n powerState: null\n});",
|
|
4660
4738
|
"err": {},
|
|
4661
|
-
"uuid": "
|
|
4662
|
-
"parentUUID": "
|
|
4739
|
+
"uuid": "7b8c11af-0ea8-455a-b543-d5a1f3c6340c",
|
|
4740
|
+
"parentUUID": "e2cae283-0ba3-4dca-a2bd-02f082d431fa",
|
|
4663
4741
|
"isHook": false,
|
|
4664
4742
|
"skipped": false
|
|
4665
4743
|
},
|
|
@@ -4676,21 +4754,21 @@
|
|
|
4676
4754
|
"context": null,
|
|
4677
4755
|
"code": "const input = {\n media_type: '3d-experience',\n device_state: 'initiating',\n shuffle: 'everything',\n repeat: 'nothing'\n};\nconst result = parseState(input, '', {});\nassert.deepStrictEqual(result, {\n dateTime: null,\n hash: null,\n mediaType: null,\n deviceState: null,\n title: null,\n artist: null,\n album: null,\n genre: null,\n totalTime: null,\n position: null,\n shuffle: null,\n repeat: null,\n app: null,\n appId: null,\n powerState: null\n});",
|
|
4678
4756
|
"err": {},
|
|
4679
|
-
"uuid": "
|
|
4680
|
-
"parentUUID": "
|
|
4757
|
+
"uuid": "cf8610ed-49b2-47ee-b7fc-3e040de13918",
|
|
4758
|
+
"parentUUID": "e2cae283-0ba3-4dca-a2bd-02f082d431fa",
|
|
4681
4759
|
"isHook": false,
|
|
4682
4760
|
"skipped": false
|
|
4683
4761
|
}
|
|
4684
4762
|
],
|
|
4685
4763
|
"suites": [],
|
|
4686
4764
|
"passes": [
|
|
4687
|
-
"
|
|
4688
|
-
"
|
|
4689
|
-
"
|
|
4690
|
-
"
|
|
4691
|
-
"
|
|
4692
|
-
"
|
|
4693
|
-
"
|
|
4765
|
+
"5600e3a6-4120-4de6-8733-56272c318163",
|
|
4766
|
+
"bf37377f-a22a-4e20-802f-3b8b30ed2166",
|
|
4767
|
+
"7073e94e-c466-4e13-8aaf-27e82ad71ebf",
|
|
4768
|
+
"1bb5ab89-ceb1-43c9-9b27-230fa4c4ece2",
|
|
4769
|
+
"187c27c8-1a45-4563-bad3-005c8a8a742a",
|
|
4770
|
+
"7b8c11af-0ea8-455a-b543-d5a1f3c6340c",
|
|
4771
|
+
"cf8610ed-49b2-47ee-b7fc-3e040de13918"
|
|
4694
4772
|
],
|
|
4695
4773
|
"failures": [],
|
|
4696
4774
|
"pending": [],
|
|
@@ -4723,7 +4801,7 @@
|
|
|
4723
4801
|
],
|
|
4724
4802
|
"meta": {
|
|
4725
4803
|
"mocha": {
|
|
4726
|
-
"version": "10.
|
|
4804
|
+
"version": "10.2.0"
|
|
4727
4805
|
},
|
|
4728
4806
|
"mochawesome": {
|
|
4729
4807
|
"options": {
|