@sebbo2002/node-pyatv 5.1.1-develop.1 → 5.1.1-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 +2 -0
- package/docs/coverage/cobertura-coverage.xml +4 -4
- package/docs/coverage/device-event.ts.html +1 -1
- package/docs/coverage/device-events.ts.html +1 -1
- package/docs/coverage/device.ts.html +1 -1
- package/docs/coverage/fake-spawn.ts.html +1 -1
- package/docs/coverage/index.html +1 -1
- package/docs/coverage/index.ts.html +1 -1
- package/docs/coverage/instance.ts.html +1 -1
- package/docs/coverage/tools.ts.html +4 -4
- package/docs/coverage/types.ts.html +1 -1
- package/docs/reference/classes/NodePyATVDevice.html +74 -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 +4 -4
- package/docs/reference/interfaces/NodePyATVDeviceOptions.html +26 -28
- package/docs/reference/interfaces/NodePyATVFindAndInstanceOptions.html +20 -24
- package/docs/reference/interfaces/NodePyATVFindOptions.html +15 -17
- package/docs/reference/interfaces/NodePyATVGetStateOptions.html +6 -6
- package/docs/reference/interfaces/NodePyATVInstanceOptions.html +11 -13
- 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 +652 -652
- package/package.json +6 -6
- package/docs/reference/assets/widgets.png +0 -0
- package/docs/reference/assets/widgets@2x.png +0 -0
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
"passes": 151,
|
|
6
6
|
"pending": 2,
|
|
7
7
|
"failures": 0,
|
|
8
|
-
"start": "2022-
|
|
9
|
-
"end": "2022-
|
|
10
|
-
"duration":
|
|
8
|
+
"start": "2022-10-11T20:00:03.870Z",
|
|
9
|
+
"end": "2022-10-11T20:00:16.184Z",
|
|
10
|
+
"duration": 12314,
|
|
11
11
|
"testsRegistered": 153,
|
|
12
12
|
"passPercent": 100,
|
|
13
13
|
"pendingPercent": 1.3071895424836601,
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"results": [
|
|
20
20
|
{
|
|
21
|
-
"uuid": "
|
|
21
|
+
"uuid": "02f8a487-6704-4d1c-be59-a3ac71a3b592",
|
|
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": "7469903c-dbd0-4185-aaf1-34a8faff5a18",
|
|
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": "258d933f-454c-4e49-9ef4-6b132cf368cb",
|
|
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",
|
|
@@ -56,15 +56,15 @@
|
|
|
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": "8d11caca-3016-4298-aa12-07ae56d083df",
|
|
60
|
+
"parentUUID": "258d933f-454c-4e49-9ef4-6b132cf368cb",
|
|
61
61
|
"isHook": false,
|
|
62
62
|
"skipped": false
|
|
63
63
|
}
|
|
64
64
|
],
|
|
65
65
|
"suites": [],
|
|
66
66
|
"passes": [
|
|
67
|
-
"
|
|
67
|
+
"8d11caca-3016-4298-aa12-07ae56d083df"
|
|
68
68
|
],
|
|
69
69
|
"failures": [],
|
|
70
70
|
"pending": [],
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"_timeout": 2000
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
|
-
"uuid": "
|
|
78
|
+
"uuid": "50cf132a-21a9-47f5-a94a-0dc3b8cb375f",
|
|
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",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"title": "should work",
|
|
87
87
|
"fullTitle": "NodePyATVDeviceEvent get oldValue() should work",
|
|
88
88
|
"timedOut": false,
|
|
89
|
-
"duration":
|
|
89
|
+
"duration": 0,
|
|
90
90
|
"state": "passed",
|
|
91
91
|
"speed": "fast",
|
|
92
92
|
"pass": true,
|
|
@@ -95,26 +95,26 @@
|
|
|
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": "1d45e4e4-ba99-43e7-8c5b-649652468c03",
|
|
99
|
+
"parentUUID": "50cf132a-21a9-47f5-a94a-0dc3b8cb375f",
|
|
100
100
|
"isHook": false,
|
|
101
101
|
"skipped": false
|
|
102
102
|
}
|
|
103
103
|
],
|
|
104
104
|
"suites": [],
|
|
105
105
|
"passes": [
|
|
106
|
-
"
|
|
106
|
+
"1d45e4e4-ba99-43e7-8c5b-649652468c03"
|
|
107
107
|
],
|
|
108
108
|
"failures": [],
|
|
109
109
|
"pending": [],
|
|
110
110
|
"skipped": [],
|
|
111
|
-
"duration":
|
|
111
|
+
"duration": 0,
|
|
112
112
|
"root": false,
|
|
113
113
|
"rootEmpty": false,
|
|
114
114
|
"_timeout": 2000
|
|
115
115
|
},
|
|
116
116
|
{
|
|
117
|
-
"uuid": "
|
|
117
|
+
"uuid": "82bae1fc-ac20-4b4f-8261-1cb20bd66512",
|
|
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": "2e620a8d-c852-417b-bdcb-f8bd2e1f34d4",
|
|
138
|
+
"parentUUID": "82bae1fc-ac20-4b4f-8261-1cb20bd66512",
|
|
139
139
|
"isHook": false,
|
|
140
140
|
"skipped": false
|
|
141
141
|
}
|
|
142
142
|
],
|
|
143
143
|
"suites": [],
|
|
144
144
|
"passes": [
|
|
145
|
-
"
|
|
145
|
+
"2e620a8d-c852-417b-bdcb-f8bd2e1f34d4"
|
|
146
146
|
],
|
|
147
147
|
"failures": [],
|
|
148
148
|
"pending": [],
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
"_timeout": 2000
|
|
154
154
|
},
|
|
155
155
|
{
|
|
156
|
-
"uuid": "
|
|
156
|
+
"uuid": "c4ea24ac-a7da-46ad-8eea-0bebe2e9cd93",
|
|
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",
|
|
@@ -173,15 +173,15 @@
|
|
|
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": "3592e047-fb9f-499c-9a80-7ac20febba43",
|
|
177
|
+
"parentUUID": "c4ea24ac-a7da-46ad-8eea-0bebe2e9cd93",
|
|
178
178
|
"isHook": false,
|
|
179
179
|
"skipped": false
|
|
180
180
|
}
|
|
181
181
|
],
|
|
182
182
|
"suites": [],
|
|
183
183
|
"passes": [
|
|
184
|
-
"
|
|
184
|
+
"3592e047-fb9f-499c-9a80-7ac20febba43"
|
|
185
185
|
],
|
|
186
186
|
"failures": [],
|
|
187
187
|
"pending": [],
|
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
"_timeout": 2000
|
|
193
193
|
},
|
|
194
194
|
{
|
|
195
|
-
"uuid": "
|
|
195
|
+
"uuid": "3868a3ee-159a-4905-927a-b06f4ed05687",
|
|
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",
|
|
@@ -203,7 +203,7 @@
|
|
|
203
203
|
"title": "should work",
|
|
204
204
|
"fullTitle": "NodePyATVDeviceEvent get device() should work",
|
|
205
205
|
"timedOut": false,
|
|
206
|
-
"duration":
|
|
206
|
+
"duration": 1,
|
|
207
207
|
"state": "passed",
|
|
208
208
|
"speed": "fast",
|
|
209
209
|
"pass": true,
|
|
@@ -212,20 +212,20 @@
|
|
|
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": "795d1199-caff-4e3a-8555-6daa5bdadbf1",
|
|
216
|
+
"parentUUID": "3868a3ee-159a-4905-927a-b06f4ed05687",
|
|
217
217
|
"isHook": false,
|
|
218
218
|
"skipped": false
|
|
219
219
|
}
|
|
220
220
|
],
|
|
221
221
|
"suites": [],
|
|
222
222
|
"passes": [
|
|
223
|
-
"
|
|
223
|
+
"795d1199-caff-4e3a-8555-6daa5bdadbf1"
|
|
224
224
|
],
|
|
225
225
|
"failures": [],
|
|
226
226
|
"pending": [],
|
|
227
227
|
"skipped": [],
|
|
228
|
-
"duration":
|
|
228
|
+
"duration": 1,
|
|
229
229
|
"root": false,
|
|
230
230
|
"rootEmpty": false,
|
|
231
231
|
"_timeout": 2000
|
|
@@ -241,7 +241,7 @@
|
|
|
241
241
|
"_timeout": 2000
|
|
242
242
|
},
|
|
243
243
|
{
|
|
244
|
-
"uuid": "
|
|
244
|
+
"uuid": "0312eb9a-83ff-485f-a61a-e8413986a74f",
|
|
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": "0e017625-de58-4c9b-98a7-71bb9c7c04d8",
|
|
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": 5,
|
|
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": "3e6e655a-5648-419d-a4ad-bd7b0d1a8c28",
|
|
274
|
+
"parentUUID": "0e017625-de58-4c9b-98a7-71bb9c7c04d8",
|
|
275
275
|
"isHook": false,
|
|
276
276
|
"skipped": false
|
|
277
277
|
},
|
|
@@ -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": "3fb91ac0-4151-4a75-9b1e-88db6aeee7b5",
|
|
292
|
+
"parentUUID": "0e017625-de58-4c9b-98a7-71bb9c7c04d8",
|
|
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": 3,
|
|
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": "c11c6cb0-5a90-47c2-a10f-d986ec786dc6",
|
|
310
|
+
"parentUUID": "0e017625-de58-4c9b-98a7-71bb9c7c04d8",
|
|
311
311
|
"isHook": false,
|
|
312
312
|
"skipped": false
|
|
313
313
|
},
|
|
@@ -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": "a0b494df-44d2-447b-80cd-f4d4c202e69f",
|
|
328
|
+
"parentUUID": "0e017625-de58-4c9b-98a7-71bb9c7c04d8",
|
|
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": 4,
|
|
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": "4f387382-12a0-49b9-93f2-ab9f99770596",
|
|
346
|
+
"parentUUID": "0e017625-de58-4c9b-98a7-71bb9c7c04d8",
|
|
347
347
|
"isHook": false,
|
|
348
348
|
"skipped": false
|
|
349
349
|
},
|
|
@@ -351,7 +351,7 @@
|
|
|
351
351
|
"title": "should emit error event if event listener throws an exception",
|
|
352
352
|
"fullTitle": "NodePyATVDeviceEvents applyStateAndEmitEvents() should emit error event if event listener throws an exception",
|
|
353
353
|
"timedOut": false,
|
|
354
|
-
"duration":
|
|
354
|
+
"duration": 2,
|
|
355
355
|
"state": "passed",
|
|
356
356
|
"speed": "fast",
|
|
357
357
|
"pass": true,
|
|
@@ -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": "43ffe071-9222-4cdf-af2b-dcf7d64d6c9e",
|
|
364
|
+
"parentUUID": "0e017625-de58-4c9b-98a7-71bb9c7c04d8",
|
|
365
365
|
"isHook": false,
|
|
366
366
|
"skipped": false
|
|
367
367
|
},
|
|
@@ -369,7 +369,7 @@
|
|
|
369
369
|
"title": "should also work with powerState",
|
|
370
370
|
"fullTitle": "NodePyATVDeviceEvents applyStateAndEmitEvents() should also work with powerState",
|
|
371
371
|
"timedOut": false,
|
|
372
|
-
"duration":
|
|
372
|
+
"duration": 2,
|
|
373
373
|
"state": "passed",
|
|
374
374
|
"speed": "fast",
|
|
375
375
|
"pass": true,
|
|
@@ -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": "c34ab13f-dd6b-433d-b451-ec1b9add3347",
|
|
382
|
+
"parentUUID": "0e017625-de58-4c9b-98a7-71bb9c7c04d8",
|
|
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
|
+
"3e6e655a-5648-419d-a4ad-bd7b0d1a8c28",
|
|
390
|
+
"3fb91ac0-4151-4a75-9b1e-88db6aeee7b5",
|
|
391
|
+
"c11c6cb0-5a90-47c2-a10f-d986ec786dc6",
|
|
392
|
+
"a0b494df-44d2-447b-80cd-f4d4c202e69f",
|
|
393
|
+
"4f387382-12a0-49b9-93f2-ab9f99770596",
|
|
394
|
+
"43ffe071-9222-4cdf-af2b-dcf7d64d6c9e",
|
|
395
|
+
"c34ab13f-dd6b-433d-b451-ec1b9add3347"
|
|
396
396
|
],
|
|
397
397
|
"failures": [],
|
|
398
398
|
"pending": [],
|
|
399
399
|
"skipped": [],
|
|
400
|
-
"duration":
|
|
400
|
+
"duration": 20,
|
|
401
401
|
"root": false,
|
|
402
402
|
"rootEmpty": false,
|
|
403
403
|
"_timeout": 2000
|
|
404
404
|
},
|
|
405
405
|
{
|
|
406
|
-
"uuid": "
|
|
406
|
+
"uuid": "ba0eb054-1300-4984-97a8-01247e186747",
|
|
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",
|
|
@@ -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": "ec5c31c9-d3a0-4a60-a5e1-b1ae8cf0348f",
|
|
427
|
+
"parentUUID": "ba0eb054-1300-4984-97a8-01247e186747",
|
|
428
428
|
"isHook": false,
|
|
429
429
|
"skipped": false
|
|
430
430
|
},
|
|
@@ -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": "04d8f4a0-e4b0-427a-bb11-71b11ac67068",
|
|
445
|
+
"parentUUID": "ba0eb054-1300-4984-97a8-01247e186747",
|
|
446
446
|
"isHook": false,
|
|
447
447
|
"skipped": false
|
|
448
448
|
},
|
|
@@ -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": "7edc7c23-910b-4b48-9ca1-6e7e564cfdb5",
|
|
463
|
+
"parentUUID": "ba0eb054-1300-4984-97a8-01247e186747",
|
|
464
464
|
"isHook": false,
|
|
465
465
|
"skipped": false
|
|
466
466
|
},
|
|
@@ -477,21 +477,21 @@
|
|
|
477
477
|
"context": null,
|
|
478
478
|
"code": "",
|
|
479
479
|
"err": {},
|
|
480
|
-
"uuid": "
|
|
481
|
-
"parentUUID": "
|
|
480
|
+
"uuid": "809be682-1ad1-4be1-a461-d52b61ec88bc",
|
|
481
|
+
"parentUUID": "ba0eb054-1300-4984-97a8-01247e186747",
|
|
482
482
|
"isHook": false,
|
|
483
483
|
"skipped": false
|
|
484
484
|
}
|
|
485
485
|
],
|
|
486
486
|
"suites": [],
|
|
487
487
|
"passes": [
|
|
488
|
-
"
|
|
489
|
-
"
|
|
490
|
-
"
|
|
488
|
+
"ec5c31c9-d3a0-4a60-a5e1-b1ae8cf0348f",
|
|
489
|
+
"04d8f4a0-e4b0-427a-bb11-71b11ac67068",
|
|
490
|
+
"7edc7c23-910b-4b48-9ca1-6e7e564cfdb5"
|
|
491
491
|
],
|
|
492
492
|
"failures": [],
|
|
493
493
|
"pending": [
|
|
494
|
-
"
|
|
494
|
+
"809be682-1ad1-4be1-a461-d52b61ec88bc"
|
|
495
495
|
],
|
|
496
496
|
"skipped": [],
|
|
497
497
|
"duration": 6,
|
|
@@ -500,7 +500,7 @@
|
|
|
500
500
|
"_timeout": 2000
|
|
501
501
|
},
|
|
502
502
|
{
|
|
503
|
-
"uuid": "
|
|
503
|
+
"uuid": "0af36053-dec7-4370-b388-45a7993bb052",
|
|
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": "ae08f8a5-61eb-421c-8b31-fe4b1b07f401",
|
|
524
|
+
"parentUUID": "0af36053-dec7-4370-b388-45a7993bb052",
|
|
525
525
|
"isHook": false,
|
|
526
526
|
"skipped": false
|
|
527
527
|
}
|
|
528
528
|
],
|
|
529
529
|
"suites": [],
|
|
530
530
|
"passes": [
|
|
531
|
-
"
|
|
531
|
+
"ae08f8a5-61eb-421c-8b31-fe4b1b07f401"
|
|
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": "58843415-8714-44c7-af5f-98bb60887c00",
|
|
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",
|
|
@@ -550,7 +550,7 @@
|
|
|
550
550
|
"title": "should work",
|
|
551
551
|
"fullTitle": "NodePyATVDeviceEvents emit() should work",
|
|
552
552
|
"timedOut": false,
|
|
553
|
-
"duration":
|
|
553
|
+
"duration": 0,
|
|
554
554
|
"state": "passed",
|
|
555
555
|
"speed": "fast",
|
|
556
556
|
"pass": true,
|
|
@@ -559,26 +559,26 @@
|
|
|
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": "766dd16a-bc99-49ec-bacc-6fdca6df2b17",
|
|
563
|
+
"parentUUID": "58843415-8714-44c7-af5f-98bb60887c00",
|
|
564
564
|
"isHook": false,
|
|
565
565
|
"skipped": false
|
|
566
566
|
}
|
|
567
567
|
],
|
|
568
568
|
"suites": [],
|
|
569
569
|
"passes": [
|
|
570
|
-
"
|
|
570
|
+
"766dd16a-bc99-49ec-bacc-6fdca6df2b17"
|
|
571
571
|
],
|
|
572
572
|
"failures": [],
|
|
573
573
|
"pending": [],
|
|
574
574
|
"skipped": [],
|
|
575
|
-
"duration":
|
|
575
|
+
"duration": 0,
|
|
576
576
|
"root": false,
|
|
577
577
|
"rootEmpty": false,
|
|
578
578
|
"_timeout": 2000
|
|
579
579
|
},
|
|
580
580
|
{
|
|
581
|
-
"uuid": "
|
|
581
|
+
"uuid": "0a852792-0c44-481d-b34f-a495f7269162",
|
|
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",
|
|
@@ -598,15 +598,15 @@
|
|
|
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": "4a023d24-b4bf-48d9-9f4f-0c99c65fc78c",
|
|
602
|
+
"parentUUID": "0a852792-0c44-481d-b34f-a495f7269162",
|
|
603
603
|
"isHook": false,
|
|
604
604
|
"skipped": false
|
|
605
605
|
}
|
|
606
606
|
],
|
|
607
607
|
"suites": [],
|
|
608
608
|
"passes": [
|
|
609
|
-
"
|
|
609
|
+
"4a023d24-b4bf-48d9-9f4f-0c99c65fc78c"
|
|
610
610
|
],
|
|
611
611
|
"failures": [],
|
|
612
612
|
"pending": [],
|
|
@@ -617,7 +617,7 @@
|
|
|
617
617
|
"_timeout": 2000
|
|
618
618
|
},
|
|
619
619
|
{
|
|
620
|
-
"uuid": "
|
|
620
|
+
"uuid": "9571ba91-bf21-4ee0-97ef-cc31ce07a9ca",
|
|
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": "8ac8c8b6-803b-4544-9fac-cae33e572fc2",
|
|
641
|
+
"parentUUID": "9571ba91-bf21-4ee0-97ef-cc31ce07a9ca",
|
|
642
642
|
"isHook": false,
|
|
643
643
|
"skipped": false
|
|
644
644
|
}
|
|
645
645
|
],
|
|
646
646
|
"suites": [],
|
|
647
647
|
"passes": [
|
|
648
|
-
"
|
|
648
|
+
"8ac8c8b6-803b-4544-9fac-cae33e572fc2"
|
|
649
649
|
],
|
|
650
650
|
"failures": [],
|
|
651
651
|
"pending": [],
|
|
@@ -656,7 +656,7 @@
|
|
|
656
656
|
"_timeout": 2000
|
|
657
657
|
},
|
|
658
658
|
{
|
|
659
|
-
"uuid": "
|
|
659
|
+
"uuid": "5a5e401e-ed91-4040-bb95-771ed64a15a5",
|
|
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",
|
|
@@ -667,7 +667,7 @@
|
|
|
667
667
|
"title": "should work",
|
|
668
668
|
"fullTitle": "NodePyATVDeviceEvents listenerCount() should work",
|
|
669
669
|
"timedOut": false,
|
|
670
|
-
"duration":
|
|
670
|
+
"duration": 0,
|
|
671
671
|
"state": "passed",
|
|
672
672
|
"speed": "fast",
|
|
673
673
|
"pass": true,
|
|
@@ -676,26 +676,26 @@
|
|
|
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": "7f004419-ce10-42d3-96cc-05561e76b4ca",
|
|
680
|
+
"parentUUID": "5a5e401e-ed91-4040-bb95-771ed64a15a5",
|
|
681
681
|
"isHook": false,
|
|
682
682
|
"skipped": false
|
|
683
683
|
}
|
|
684
684
|
],
|
|
685
685
|
"suites": [],
|
|
686
686
|
"passes": [
|
|
687
|
-
"
|
|
687
|
+
"7f004419-ce10-42d3-96cc-05561e76b4ca"
|
|
688
688
|
],
|
|
689
689
|
"failures": [],
|
|
690
690
|
"pending": [],
|
|
691
691
|
"skipped": [],
|
|
692
|
-
"duration":
|
|
692
|
+
"duration": 0,
|
|
693
693
|
"root": false,
|
|
694
694
|
"rootEmpty": false,
|
|
695
695
|
"_timeout": 2000
|
|
696
696
|
},
|
|
697
697
|
{
|
|
698
|
-
"uuid": "
|
|
698
|
+
"uuid": "fca422bc-a937-4b57-a00e-a3c1f4f8691b",
|
|
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": "b20c3689-6fea-4850-8407-de9e78ae6377",
|
|
719
|
+
"parentUUID": "fca422bc-a937-4b57-a00e-a3c1f4f8691b",
|
|
720
720
|
"isHook": false,
|
|
721
721
|
"skipped": false
|
|
722
722
|
}
|
|
723
723
|
],
|
|
724
724
|
"suites": [],
|
|
725
725
|
"passes": [
|
|
726
|
-
"
|
|
726
|
+
"b20c3689-6fea-4850-8407-de9e78ae6377"
|
|
727
727
|
],
|
|
728
728
|
"failures": [],
|
|
729
729
|
"pending": [],
|
|
@@ -734,7 +734,7 @@
|
|
|
734
734
|
"_timeout": 2000
|
|
735
735
|
},
|
|
736
736
|
{
|
|
737
|
-
"uuid": "
|
|
737
|
+
"uuid": "ae4f3c30-c577-420f-b19c-7ee24c2546d8",
|
|
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": "1f0341d4-ca30-4e7e-9b34-b22c28124b84",
|
|
758
|
+
"parentUUID": "ae4f3c30-c577-420f-b19c-7ee24c2546d8",
|
|
759
759
|
"isHook": false,
|
|
760
760
|
"skipped": false
|
|
761
761
|
}
|
|
762
762
|
],
|
|
763
763
|
"suites": [],
|
|
764
764
|
"passes": [
|
|
765
|
-
"
|
|
765
|
+
"1f0341d4-ca30-4e7e-9b34-b22c28124b84"
|
|
766
766
|
],
|
|
767
767
|
"failures": [],
|
|
768
768
|
"pending": [],
|
|
@@ -773,7 +773,7 @@
|
|
|
773
773
|
"_timeout": 2000
|
|
774
774
|
},
|
|
775
775
|
{
|
|
776
|
-
"uuid": "
|
|
776
|
+
"uuid": "416c8aa0-8745-4524-9528-632c73f429ff",
|
|
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": 2,
|
|
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": "3988bb93-beea-4f77-bb30-a8cba950aa54",
|
|
797
|
+
"parentUUID": "416c8aa0-8745-4524-9528-632c73f429ff",
|
|
798
798
|
"isHook": false,
|
|
799
799
|
"skipped": false
|
|
800
800
|
}
|
|
801
801
|
],
|
|
802
802
|
"suites": [],
|
|
803
803
|
"passes": [
|
|
804
|
-
"
|
|
804
|
+
"3988bb93-beea-4f77-bb30-a8cba950aa54"
|
|
805
805
|
],
|
|
806
806
|
"failures": [],
|
|
807
807
|
"pending": [],
|
|
808
808
|
"skipped": [],
|
|
809
|
-
"duration":
|
|
809
|
+
"duration": 2,
|
|
810
810
|
"root": false,
|
|
811
811
|
"rootEmpty": false,
|
|
812
812
|
"_timeout": 2000
|
|
813
813
|
},
|
|
814
814
|
{
|
|
815
|
-
"uuid": "
|
|
815
|
+
"uuid": "a0d9dd3e-8524-4661-a243-1b307e3b2967",
|
|
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": "db565116-c6b2-4565-a9ef-c634087b9e82",
|
|
836
|
+
"parentUUID": "a0d9dd3e-8524-4661-a243-1b307e3b2967",
|
|
837
837
|
"isHook": false,
|
|
838
838
|
"skipped": false
|
|
839
839
|
}
|
|
840
840
|
],
|
|
841
841
|
"suites": [],
|
|
842
842
|
"passes": [
|
|
843
|
-
"
|
|
843
|
+
"db565116-c6b2-4565-a9ef-c634087b9e82"
|
|
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": "518a5a50-8600-4487-a779-37016c82a7ef",
|
|
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": "2723fd3d-6711-4f95-a925-fc450d54e39d",
|
|
875
|
+
"parentUUID": "518a5a50-8600-4487-a779-37016c82a7ef",
|
|
876
876
|
"isHook": false,
|
|
877
877
|
"skipped": false
|
|
878
878
|
}
|
|
879
879
|
],
|
|
880
880
|
"suites": [],
|
|
881
881
|
"passes": [
|
|
882
|
-
"
|
|
882
|
+
"2723fd3d-6711-4f95-a925-fc450d54e39d"
|
|
883
883
|
],
|
|
884
884
|
"failures": [],
|
|
885
885
|
"pending": [],
|
|
@@ -900,7 +900,7 @@
|
|
|
900
900
|
"_timeout": 2000
|
|
901
901
|
},
|
|
902
902
|
{
|
|
903
|
-
"uuid": "
|
|
903
|
+
"uuid": "d99e008e-56b9-4bae-af34-12bcdcd925e1",
|
|
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": "dad225e3-2226-46b5-a0bb-9844efcf0811",
|
|
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": "eab88d7e-fcd1-4e8c-a819-28eaefff4f01",
|
|
933
|
+
"parentUUID": "dad225e3-2226-46b5-a0bb-9844efcf0811",
|
|
934
934
|
"isHook": false,
|
|
935
935
|
"skipped": false
|
|
936
936
|
}
|
|
937
937
|
],
|
|
938
938
|
"suites": [],
|
|
939
939
|
"passes": [
|
|
940
|
-
"
|
|
940
|
+
"eab88d7e-fcd1-4e8c-a819-28eaefff4f01"
|
|
941
941
|
],
|
|
942
942
|
"failures": [],
|
|
943
943
|
"pending": [],
|
|
@@ -948,7 +948,7 @@
|
|
|
948
948
|
"_timeout": 2000
|
|
949
949
|
},
|
|
950
950
|
{
|
|
951
|
-
"uuid": "
|
|
951
|
+
"uuid": "48e4bd7c-9143-4555-9cdc-ab02772985a6",
|
|
952
952
|
"title": "get host()",
|
|
953
953
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
954
954
|
"file": "/test/device.ts",
|
|
@@ -959,7 +959,7 @@
|
|
|
959
959
|
"title": "should return the host",
|
|
960
960
|
"fullTitle": "NodePyATVDevice get host() should return the host",
|
|
961
961
|
"timedOut": false,
|
|
962
|
-
"duration":
|
|
962
|
+
"duration": 1,
|
|
963
963
|
"state": "passed",
|
|
964
964
|
"speed": "fast",
|
|
965
965
|
"pass": true,
|
|
@@ -968,26 +968,26 @@
|
|
|
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": "65c2ff38-f799-4f3b-bac5-877f7c92eca2",
|
|
972
|
+
"parentUUID": "48e4bd7c-9143-4555-9cdc-ab02772985a6",
|
|
973
973
|
"isHook": false,
|
|
974
974
|
"skipped": false
|
|
975
975
|
}
|
|
976
976
|
],
|
|
977
977
|
"suites": [],
|
|
978
978
|
"passes": [
|
|
979
|
-
"
|
|
979
|
+
"65c2ff38-f799-4f3b-bac5-877f7c92eca2"
|
|
980
980
|
],
|
|
981
981
|
"failures": [],
|
|
982
982
|
"pending": [],
|
|
983
983
|
"skipped": [],
|
|
984
|
-
"duration":
|
|
984
|
+
"duration": 1,
|
|
985
985
|
"root": false,
|
|
986
986
|
"rootEmpty": false,
|
|
987
987
|
"_timeout": 2000
|
|
988
988
|
},
|
|
989
989
|
{
|
|
990
|
-
"uuid": "
|
|
990
|
+
"uuid": "545e481c-267a-4475-b17b-72054195259c",
|
|
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": "31783b37-ef3e-47f8-a55a-861c36ffde12",
|
|
1011
|
+
"parentUUID": "545e481c-267a-4475-b17b-72054195259c",
|
|
1012
1012
|
"isHook": false,
|
|
1013
1013
|
"skipped": false
|
|
1014
1014
|
}
|
|
1015
1015
|
],
|
|
1016
1016
|
"suites": [],
|
|
1017
1017
|
"passes": [
|
|
1018
|
-
"
|
|
1018
|
+
"31783b37-ef3e-47f8-a55a-861c36ffde12"
|
|
1019
1019
|
],
|
|
1020
1020
|
"failures": [],
|
|
1021
1021
|
"pending": [],
|
|
@@ -1026,7 +1026,7 @@
|
|
|
1026
1026
|
"_timeout": 2000
|
|
1027
1027
|
},
|
|
1028
1028
|
{
|
|
1029
|
-
"uuid": "
|
|
1029
|
+
"uuid": "19fd388b-7621-404a-b410-5387488b2559",
|
|
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": "bcf58393-4b12-439f-9a26-0d4c7725bce4",
|
|
1050
|
+
"parentUUID": "19fd388b-7621-404a-b410-5387488b2559",
|
|
1051
1051
|
"isHook": false,
|
|
1052
1052
|
"skipped": false
|
|
1053
1053
|
}
|
|
1054
1054
|
],
|
|
1055
1055
|
"suites": [],
|
|
1056
1056
|
"passes": [
|
|
1057
|
-
"
|
|
1057
|
+
"bcf58393-4b12-439f-9a26-0d4c7725bce4"
|
|
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": "0c23efe8-8029-4588-8d6d-0579ebb0bce4",
|
|
1069
1069
|
"title": "get model()",
|
|
1070
1070
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1071
1071
|
"file": "/test/device.ts",
|
|
@@ -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": "f7b0a633-76ac-4ba7-8348-ed2b75510c7f",
|
|
1089
|
+
"parentUUID": "0c23efe8-8029-4588-8d6d-0579ebb0bce4",
|
|
1090
1090
|
"isHook": false,
|
|
1091
1091
|
"skipped": false
|
|
1092
1092
|
},
|
|
@@ -1103,16 +1103,16 @@
|
|
|
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": "331712fc-f9ee-49c9-9783-8cc6b6f85a50",
|
|
1107
|
+
"parentUUID": "0c23efe8-8029-4588-8d6d-0579ebb0bce4",
|
|
1108
1108
|
"isHook": false,
|
|
1109
1109
|
"skipped": false
|
|
1110
1110
|
}
|
|
1111
1111
|
],
|
|
1112
1112
|
"suites": [],
|
|
1113
1113
|
"passes": [
|
|
1114
|
-
"
|
|
1115
|
-
"
|
|
1114
|
+
"f7b0a633-76ac-4ba7-8348-ed2b75510c7f",
|
|
1115
|
+
"331712fc-f9ee-49c9-9783-8cc6b6f85a50"
|
|
1116
1116
|
],
|
|
1117
1117
|
"failures": [],
|
|
1118
1118
|
"pending": [],
|
|
@@ -1123,7 +1123,7 @@
|
|
|
1123
1123
|
"_timeout": 2000
|
|
1124
1124
|
},
|
|
1125
1125
|
{
|
|
1126
|
-
"uuid": "
|
|
1126
|
+
"uuid": "14968ace-2e9f-490c-9379-591f3ad9ff42",
|
|
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": "738ddfff-f167-4385-9d84-0528ef31c705",
|
|
1147
|
+
"parentUUID": "14968ace-2e9f-490c-9379-591f3ad9ff42",
|
|
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": "3b8eed6a-9062-48f6-aee9-5eb0b1aa840b",
|
|
1165
|
+
"parentUUID": "14968ace-2e9f-490c-9379-591f3ad9ff42",
|
|
1166
1166
|
"isHook": false,
|
|
1167
1167
|
"skipped": false
|
|
1168
1168
|
}
|
|
1169
1169
|
],
|
|
1170
1170
|
"suites": [],
|
|
1171
1171
|
"passes": [
|
|
1172
|
-
"
|
|
1173
|
-
"
|
|
1172
|
+
"738ddfff-f167-4385-9d84-0528ef31c705",
|
|
1173
|
+
"3b8eed6a-9062-48f6-aee9-5eb0b1aa840b"
|
|
1174
1174
|
],
|
|
1175
1175
|
"failures": [],
|
|
1176
1176
|
"pending": [],
|
|
@@ -1181,7 +1181,7 @@
|
|
|
1181
1181
|
"_timeout": 2000
|
|
1182
1182
|
},
|
|
1183
1183
|
{
|
|
1184
|
-
"uuid": "
|
|
1184
|
+
"uuid": "7a179850-1930-428e-8ecf-8fc74ee112d5",
|
|
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": "0096794d-fb9c-4808-a5ed-acf378de98eb",
|
|
1205
|
+
"parentUUID": "7a179850-1930-428e-8ecf-8fc74ee112d5",
|
|
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": "54662a00-65d8-49ec-93a1-e3747d424fc8",
|
|
1223
|
+
"parentUUID": "7a179850-1930-428e-8ecf-8fc74ee112d5",
|
|
1224
1224
|
"isHook": false,
|
|
1225
1225
|
"skipped": false
|
|
1226
1226
|
}
|
|
1227
1227
|
],
|
|
1228
1228
|
"suites": [],
|
|
1229
1229
|
"passes": [
|
|
1230
|
-
"
|
|
1231
|
-
"
|
|
1230
|
+
"0096794d-fb9c-4808-a5ed-acf378de98eb",
|
|
1231
|
+
"54662a00-65d8-49ec-93a1-e3747d424fc8"
|
|
1232
1232
|
],
|
|
1233
1233
|
"failures": [],
|
|
1234
1234
|
"pending": [],
|
|
@@ -1239,7 +1239,7 @@
|
|
|
1239
1239
|
"_timeout": 2000
|
|
1240
1240
|
},
|
|
1241
1241
|
{
|
|
1242
|
-
"uuid": "
|
|
1242
|
+
"uuid": "0e7c40b5-98cc-4771-97b3-d0065a97a7af",
|
|
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": "3a27bdb6-8c15-451a-8288-58ebe9725dc5",
|
|
1263
|
+
"parentUUID": "0e7c40b5-98cc-4771-97b3-d0065a97a7af",
|
|
1264
1264
|
"isHook": false,
|
|
1265
1265
|
"skipped": false
|
|
1266
1266
|
},
|
|
@@ -1277,16 +1277,16 @@
|
|
|
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": "05a3f545-d63b-41aa-898f-71d3024cf81b",
|
|
1281
|
+
"parentUUID": "0e7c40b5-98cc-4771-97b3-d0065a97a7af",
|
|
1282
1282
|
"isHook": false,
|
|
1283
1283
|
"skipped": false
|
|
1284
1284
|
}
|
|
1285
1285
|
],
|
|
1286
1286
|
"suites": [],
|
|
1287
1287
|
"passes": [
|
|
1288
|
-
"
|
|
1289
|
-
"
|
|
1288
|
+
"3a27bdb6-8c15-451a-8288-58ebe9725dc5",
|
|
1289
|
+
"05a3f545-d63b-41aa-898f-71d3024cf81b"
|
|
1290
1290
|
],
|
|
1291
1291
|
"failures": [],
|
|
1292
1292
|
"pending": [],
|
|
@@ -1297,7 +1297,7 @@
|
|
|
1297
1297
|
"_timeout": 2000
|
|
1298
1298
|
},
|
|
1299
1299
|
{
|
|
1300
|
-
"uuid": "
|
|
1300
|
+
"uuid": "f56405eb-25c0-48b6-8461-3d87418fd984",
|
|
1301
1301
|
"title": "get services()",
|
|
1302
1302
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1303
1303
|
"file": "/test/device.ts",
|
|
@@ -1308,7 +1308,7 @@
|
|
|
1308
1308
|
"title": "should return the services if set by scan",
|
|
1309
1309
|
"fullTitle": "NodePyATVDevice get services() should return the services if set by scan",
|
|
1310
1310
|
"timedOut": false,
|
|
1311
|
-
"duration":
|
|
1311
|
+
"duration": 1,
|
|
1312
1312
|
"state": "passed",
|
|
1313
1313
|
"speed": "fast",
|
|
1314
1314
|
"pass": true,
|
|
@@ -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": "aa82aecd-3898-4d4c-adef-df5474b5f609",
|
|
1321
|
+
"parentUUID": "f56405eb-25c0-48b6-8461-3d87418fd984",
|
|
1322
1322
|
"isHook": false,
|
|
1323
1323
|
"skipped": false
|
|
1324
1324
|
},
|
|
@@ -1335,27 +1335,27 @@
|
|
|
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": "ddf8d237-cb05-41ed-9660-883e2bb0b6dd",
|
|
1339
|
+
"parentUUID": "f56405eb-25c0-48b6-8461-3d87418fd984",
|
|
1340
1340
|
"isHook": false,
|
|
1341
1341
|
"skipped": false
|
|
1342
1342
|
}
|
|
1343
1343
|
],
|
|
1344
1344
|
"suites": [],
|
|
1345
1345
|
"passes": [
|
|
1346
|
-
"
|
|
1347
|
-
"
|
|
1346
|
+
"aa82aecd-3898-4d4c-adef-df5474b5f609",
|
|
1347
|
+
"ddf8d237-cb05-41ed-9660-883e2bb0b6dd"
|
|
1348
1348
|
],
|
|
1349
1349
|
"failures": [],
|
|
1350
1350
|
"pending": [],
|
|
1351
1351
|
"skipped": [],
|
|
1352
|
-
"duration":
|
|
1352
|
+
"duration": 1,
|
|
1353
1353
|
"root": false,
|
|
1354
1354
|
"rootEmpty": false,
|
|
1355
1355
|
"_timeout": 2000
|
|
1356
1356
|
},
|
|
1357
1357
|
{
|
|
1358
|
-
"uuid": "
|
|
1358
|
+
"uuid": "cf699a39-b50e-4bf6-9b48-cdc5948e61d5",
|
|
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": "12dc4ba0-49c5-4bc5-ba63-abf87886c0e7",
|
|
1379
|
+
"parentUUID": "cf699a39-b50e-4bf6-9b48-cdc5948e61d5",
|
|
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": "5dba5dcc-da50-4211-84c3-37bcb75943e5",
|
|
1397
|
+
"parentUUID": "cf699a39-b50e-4bf6-9b48-cdc5948e61d5",
|
|
1398
1398
|
"isHook": false,
|
|
1399
1399
|
"skipped": false
|
|
1400
1400
|
},
|
|
@@ -1411,17 +1411,17 @@
|
|
|
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": "b59e7b47-cf8a-4104-8947-239f54205535",
|
|
1415
|
+
"parentUUID": "cf699a39-b50e-4bf6-9b48-cdc5948e61d5",
|
|
1416
1416
|
"isHook": false,
|
|
1417
1417
|
"skipped": false
|
|
1418
1418
|
}
|
|
1419
1419
|
],
|
|
1420
1420
|
"suites": [],
|
|
1421
1421
|
"passes": [
|
|
1422
|
-
"
|
|
1423
|
-
"
|
|
1424
|
-
"
|
|
1422
|
+
"12dc4ba0-49c5-4bc5-ba63-abf87886c0e7",
|
|
1423
|
+
"5dba5dcc-da50-4211-84c3-37bcb75943e5",
|
|
1424
|
+
"b59e7b47-cf8a-4104-8947-239f54205535"
|
|
1425
1425
|
],
|
|
1426
1426
|
"failures": [],
|
|
1427
1427
|
"pending": [],
|
|
@@ -1432,7 +1432,7 @@
|
|
|
1432
1432
|
"_timeout": 2000
|
|
1433
1433
|
},
|
|
1434
1434
|
{
|
|
1435
|
-
"uuid": "
|
|
1435
|
+
"uuid": "516d512b-e276-4c77-be26-a2a8c821da9d",
|
|
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": "8900c270-3da6-460d-8557-adf5f668892f",
|
|
1456
|
+
"parentUUID": "516d512b-e276-4c77-be26-a2a8c821da9d",
|
|
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": "9496426a-1e2f-4157-83da-4507c2fc7833",
|
|
1474
|
+
"parentUUID": "516d512b-e276-4c77-be26-a2a8c821da9d",
|
|
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": "4018468a-952d-4bb6-ba77-fe1cfe2cb640",
|
|
1492
|
+
"parentUUID": "516d512b-e276-4c77-be26-a2a8c821da9d",
|
|
1493
1493
|
"isHook": false,
|
|
1494
1494
|
"skipped": false
|
|
1495
1495
|
},
|
|
@@ -1506,18 +1506,18 @@
|
|
|
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": "144aff5d-b4d7-423f-af7d-99c3a0171844",
|
|
1510
|
+
"parentUUID": "516d512b-e276-4c77-be26-a2a8c821da9d",
|
|
1511
1511
|
"isHook": false,
|
|
1512
1512
|
"skipped": false
|
|
1513
1513
|
}
|
|
1514
1514
|
],
|
|
1515
1515
|
"suites": [],
|
|
1516
1516
|
"passes": [
|
|
1517
|
-
"
|
|
1518
|
-
"
|
|
1519
|
-
"
|
|
1520
|
-
"
|
|
1517
|
+
"8900c270-3da6-460d-8557-adf5f668892f",
|
|
1518
|
+
"9496426a-1e2f-4157-83da-4507c2fc7833",
|
|
1519
|
+
"4018468a-952d-4bb6-ba77-fe1cfe2cb640",
|
|
1520
|
+
"144aff5d-b4d7-423f-af7d-99c3a0171844"
|
|
1521
1521
|
],
|
|
1522
1522
|
"failures": [],
|
|
1523
1523
|
"pending": [],
|
|
@@ -1528,7 +1528,7 @@
|
|
|
1528
1528
|
"_timeout": 2000
|
|
1529
1529
|
},
|
|
1530
1530
|
{
|
|
1531
|
-
"uuid": "
|
|
1531
|
+
"uuid": "8305d55a-2931-4044-ad63-1838ec9826bd",
|
|
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": "7eecf19a-4693-40e1-adbf-d3904fb9166f",
|
|
1552
|
+
"parentUUID": "8305d55a-2931-4044-ad63-1838ec9826bd",
|
|
1553
1553
|
"isHook": false,
|
|
1554
1554
|
"skipped": false
|
|
1555
1555
|
},
|
|
@@ -1557,7 +1557,7 @@
|
|
|
1557
1557
|
"title": "should be possible to create a new device from this",
|
|
1558
1558
|
"fullTitle": "NodePyATVDevice toJSON() should be possible to create a new device from this",
|
|
1559
1559
|
"timedOut": false,
|
|
1560
|
-
"duration":
|
|
1560
|
+
"duration": 0,
|
|
1561
1561
|
"state": "passed",
|
|
1562
1562
|
"speed": "fast",
|
|
1563
1563
|
"pass": true,
|
|
@@ -1566,27 +1566,27 @@
|
|
|
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": "16993589-9c1c-4e3d-af25-c427dce8c5a8",
|
|
1570
|
+
"parentUUID": "8305d55a-2931-4044-ad63-1838ec9826bd",
|
|
1571
1571
|
"isHook": false,
|
|
1572
1572
|
"skipped": false
|
|
1573
1573
|
}
|
|
1574
1574
|
],
|
|
1575
1575
|
"suites": [],
|
|
1576
1576
|
"passes": [
|
|
1577
|
-
"
|
|
1578
|
-
"
|
|
1577
|
+
"7eecf19a-4693-40e1-adbf-d3904fb9166f",
|
|
1578
|
+
"16993589-9c1c-4e3d-af25-c427dce8c5a8"
|
|
1579
1579
|
],
|
|
1580
1580
|
"failures": [],
|
|
1581
1581
|
"pending": [],
|
|
1582
1582
|
"skipped": [],
|
|
1583
|
-
"duration":
|
|
1583
|
+
"duration": 0,
|
|
1584
1584
|
"root": false,
|
|
1585
1585
|
"rootEmpty": false,
|
|
1586
1586
|
"_timeout": 2000
|
|
1587
1587
|
},
|
|
1588
1588
|
{
|
|
1589
|
-
"uuid": "
|
|
1589
|
+
"uuid": "34c2e029-1528-4d9c-af1d-6ed78321a099",
|
|
1590
1590
|
"title": "toString()",
|
|
1591
1591
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1592
1592
|
"file": "/test/device.ts",
|
|
@@ -1606,15 +1606,15 @@
|
|
|
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": "c71aa419-6cb8-4492-a196-f9ec295d8579",
|
|
1610
|
+
"parentUUID": "34c2e029-1528-4d9c-af1d-6ed78321a099",
|
|
1611
1611
|
"isHook": false,
|
|
1612
1612
|
"skipped": false
|
|
1613
1613
|
}
|
|
1614
1614
|
],
|
|
1615
1615
|
"suites": [],
|
|
1616
1616
|
"passes": [
|
|
1617
|
-
"
|
|
1617
|
+
"c71aa419-6cb8-4492-a196-f9ec295d8579"
|
|
1618
1618
|
],
|
|
1619
1619
|
"failures": [],
|
|
1620
1620
|
"pending": [],
|
|
@@ -1625,7 +1625,7 @@
|
|
|
1625
1625
|
"_timeout": 2000
|
|
1626
1626
|
},
|
|
1627
1627
|
{
|
|
1628
|
-
"uuid": "
|
|
1628
|
+
"uuid": "742e3d14-68ca-492d-9752-78626dbfcc0c",
|
|
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": "344ce773-2f09-4bfd-9272-6a238b5eed95",
|
|
1649
|
+
"parentUUID": "742e3d14-68ca-492d-9752-78626dbfcc0c",
|
|
1650
1650
|
"isHook": false,
|
|
1651
1651
|
"skipped": false
|
|
1652
1652
|
},
|
|
@@ -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": "1b89bee5-80f5-4cf7-85c8-e127fb2a611f",
|
|
1667
|
+
"parentUUID": "742e3d14-68ca-492d-9752-78626dbfcc0c",
|
|
1668
1668
|
"isHook": false,
|
|
1669
1669
|
"skipped": false
|
|
1670
1670
|
},
|
|
@@ -1672,7 +1672,7 @@
|
|
|
1672
1672
|
"title": "should reject with error if pyatv fails",
|
|
1673
1673
|
"fullTitle": "NodePyATVDevice getState() should reject with error if pyatv fails",
|
|
1674
1674
|
"timedOut": false,
|
|
1675
|
-
"duration":
|
|
1675
|
+
"duration": 1,
|
|
1676
1676
|
"state": "passed",
|
|
1677
1677
|
"speed": "fast",
|
|
1678
1678
|
"pass": true,
|
|
@@ -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": "34b4dcf7-836c-42d5-bd65-abe6b3e2ca80",
|
|
1685
|
+
"parentUUID": "742e3d14-68ca-492d-9752-78626dbfcc0c",
|
|
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": "93b629c9-7ecb-4121-a100-20aece2ab872",
|
|
1703
|
+
"parentUUID": "742e3d14-68ca-492d-9752-78626dbfcc0c",
|
|
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": "2050cd96-e704-4add-9685-23ead014029b",
|
|
1721
|
+
"parentUUID": "742e3d14-68ca-492d-9752-78626dbfcc0c",
|
|
1722
1722
|
"isHook": false,
|
|
1723
1723
|
"skipped": false
|
|
1724
1724
|
}
|
|
1725
1725
|
],
|
|
1726
1726
|
"suites": [],
|
|
1727
1727
|
"passes": [
|
|
1728
|
-
"
|
|
1729
|
-
"
|
|
1730
|
-
"
|
|
1731
|
-
"
|
|
1728
|
+
"1b89bee5-80f5-4cf7-85c8-e127fb2a611f",
|
|
1729
|
+
"34b4dcf7-836c-42d5-bd65-abe6b3e2ca80",
|
|
1730
|
+
"93b629c9-7ecb-4121-a100-20aece2ab872",
|
|
1731
|
+
"2050cd96-e704-4add-9685-23ead014029b"
|
|
1732
1732
|
],
|
|
1733
1733
|
"failures": [],
|
|
1734
1734
|
"pending": [
|
|
1735
|
-
"
|
|
1735
|
+
"344ce773-2f09-4bfd-9272-6a238b5eed95"
|
|
1736
1736
|
],
|
|
1737
1737
|
"skipped": [],
|
|
1738
|
-
"duration":
|
|
1738
|
+
"duration": 7,
|
|
1739
1739
|
"root": false,
|
|
1740
1740
|
"rootEmpty": false,
|
|
1741
1741
|
"_timeout": 2000
|
|
1742
1742
|
},
|
|
1743
1743
|
{
|
|
1744
|
-
"uuid": "
|
|
1744
|
+
"uuid": "c5a1fdd9-39ee-44bb-9247-a2255ed3baff",
|
|
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": "350a0d2d-35fe-484b-9b70-f2ba75c706c1",
|
|
1765
|
+
"parentUUID": "c5a1fdd9-39ee-44bb-9247-a2255ed3baff",
|
|
1766
1766
|
"isHook": false,
|
|
1767
1767
|
"skipped": false
|
|
1768
1768
|
}
|
|
1769
1769
|
],
|
|
1770
1770
|
"suites": [],
|
|
1771
1771
|
"passes": [
|
|
1772
|
-
"
|
|
1772
|
+
"350a0d2d-35fe-484b-9b70-f2ba75c706c1"
|
|
1773
1773
|
],
|
|
1774
1774
|
"failures": [],
|
|
1775
1775
|
"pending": [],
|
|
@@ -1780,7 +1780,7 @@
|
|
|
1780
1780
|
"_timeout": 2000
|
|
1781
1781
|
},
|
|
1782
1782
|
{
|
|
1783
|
-
"uuid": "
|
|
1783
|
+
"uuid": "c081b5a0-8756-4963-b42c-b01f90dd4c70",
|
|
1784
1784
|
"title": "getDateTime()",
|
|
1785
1785
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1786
1786
|
"file": "/test/device.ts",
|
|
@@ -1791,7 +1791,7 @@
|
|
|
1791
1791
|
"title": "should work",
|
|
1792
1792
|
"fullTitle": "NodePyATVDevice getDateTime() should work",
|
|
1793
1793
|
"timedOut": false,
|
|
1794
|
-
"duration":
|
|
1794
|
+
"duration": 1,
|
|
1795
1795
|
"state": "passed",
|
|
1796
1796
|
"speed": "fast",
|
|
1797
1797
|
"pass": true,
|
|
@@ -1800,26 +1800,26 @@
|
|
|
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": "1fa44359-0ce1-4c97-8521-c732a7f63a37",
|
|
1804
|
+
"parentUUID": "c081b5a0-8756-4963-b42c-b01f90dd4c70",
|
|
1805
1805
|
"isHook": false,
|
|
1806
1806
|
"skipped": false
|
|
1807
1807
|
}
|
|
1808
1808
|
],
|
|
1809
1809
|
"suites": [],
|
|
1810
1810
|
"passes": [
|
|
1811
|
-
"
|
|
1811
|
+
"1fa44359-0ce1-4c97-8521-c732a7f63a37"
|
|
1812
1812
|
],
|
|
1813
1813
|
"failures": [],
|
|
1814
1814
|
"pending": [],
|
|
1815
1815
|
"skipped": [],
|
|
1816
|
-
"duration":
|
|
1816
|
+
"duration": 1,
|
|
1817
1817
|
"root": false,
|
|
1818
1818
|
"rootEmpty": false,
|
|
1819
1819
|
"_timeout": 2000
|
|
1820
1820
|
},
|
|
1821
1821
|
{
|
|
1822
|
-
"uuid": "
|
|
1822
|
+
"uuid": "63144259-a15f-45a8-b935-92dbbd685563",
|
|
1823
1823
|
"title": "getHash()",
|
|
1824
1824
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1825
1825
|
"file": "/test/device.ts",
|
|
@@ -1830,7 +1830,7 @@
|
|
|
1830
1830
|
"title": "should work",
|
|
1831
1831
|
"fullTitle": "NodePyATVDevice getHash() should work",
|
|
1832
1832
|
"timedOut": false,
|
|
1833
|
-
"duration":
|
|
1833
|
+
"duration": 0,
|
|
1834
1834
|
"state": "passed",
|
|
1835
1835
|
"speed": "fast",
|
|
1836
1836
|
"pass": true,
|
|
@@ -1839,26 +1839,26 @@
|
|
|
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": "b5e5d731-93ed-46b2-830f-d90c59299cd8",
|
|
1843
|
+
"parentUUID": "63144259-a15f-45a8-b935-92dbbd685563",
|
|
1844
1844
|
"isHook": false,
|
|
1845
1845
|
"skipped": false
|
|
1846
1846
|
}
|
|
1847
1847
|
],
|
|
1848
1848
|
"suites": [],
|
|
1849
1849
|
"passes": [
|
|
1850
|
-
"
|
|
1850
|
+
"b5e5d731-93ed-46b2-830f-d90c59299cd8"
|
|
1851
1851
|
],
|
|
1852
1852
|
"failures": [],
|
|
1853
1853
|
"pending": [],
|
|
1854
1854
|
"skipped": [],
|
|
1855
|
-
"duration":
|
|
1855
|
+
"duration": 0,
|
|
1856
1856
|
"root": false,
|
|
1857
1857
|
"rootEmpty": false,
|
|
1858
1858
|
"_timeout": 2000
|
|
1859
1859
|
},
|
|
1860
1860
|
{
|
|
1861
|
-
"uuid": "
|
|
1861
|
+
"uuid": "0c8bc4a7-784e-4f80-885f-d77c94afad7c",
|
|
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": "cdfcc268-6954-46c2-a990-3c947fc452a4",
|
|
1882
|
+
"parentUUID": "0c8bc4a7-784e-4f80-885f-d77c94afad7c",
|
|
1883
1883
|
"isHook": false,
|
|
1884
1884
|
"skipped": false
|
|
1885
1885
|
}
|
|
1886
1886
|
],
|
|
1887
1887
|
"suites": [],
|
|
1888
1888
|
"passes": [
|
|
1889
|
-
"
|
|
1889
|
+
"cdfcc268-6954-46c2-a990-3c947fc452a4"
|
|
1890
1890
|
],
|
|
1891
1891
|
"failures": [],
|
|
1892
1892
|
"pending": [],
|
|
@@ -1897,7 +1897,7 @@
|
|
|
1897
1897
|
"_timeout": 2000
|
|
1898
1898
|
},
|
|
1899
1899
|
{
|
|
1900
|
-
"uuid": "
|
|
1900
|
+
"uuid": "1d500f2e-288a-4fc5-aa36-b3dd93646010",
|
|
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": "d22aebf7-7719-400e-acad-c46e28d6c146",
|
|
1921
|
+
"parentUUID": "1d500f2e-288a-4fc5-aa36-b3dd93646010",
|
|
1922
1922
|
"isHook": false,
|
|
1923
1923
|
"skipped": false
|
|
1924
1924
|
}
|
|
1925
1925
|
],
|
|
1926
1926
|
"suites": [],
|
|
1927
1927
|
"passes": [
|
|
1928
|
-
"
|
|
1928
|
+
"d22aebf7-7719-400e-acad-c46e28d6c146"
|
|
1929
1929
|
],
|
|
1930
1930
|
"failures": [],
|
|
1931
1931
|
"pending": [],
|
|
@@ -1936,7 +1936,7 @@
|
|
|
1936
1936
|
"_timeout": 2000
|
|
1937
1937
|
},
|
|
1938
1938
|
{
|
|
1939
|
-
"uuid": "
|
|
1939
|
+
"uuid": "7bc06e82-4c9c-4866-87fb-0d6d0da23c0e",
|
|
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": "a85784a1-a74f-4747-af70-6680c65e1a61",
|
|
1960
|
+
"parentUUID": "7bc06e82-4c9c-4866-87fb-0d6d0da23c0e",
|
|
1961
1961
|
"isHook": false,
|
|
1962
1962
|
"skipped": false
|
|
1963
1963
|
}
|
|
1964
1964
|
],
|
|
1965
1965
|
"suites": [],
|
|
1966
1966
|
"passes": [
|
|
1967
|
-
"
|
|
1967
|
+
"a85784a1-a74f-4747-af70-6680c65e1a61"
|
|
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": "0971c9a7-31a7-4285-b22e-760b93b893ba",
|
|
1979
1979
|
"title": "getArtist()",
|
|
1980
1980
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1981
1981
|
"file": "/test/device.ts",
|
|
@@ -1995,15 +1995,15 @@
|
|
|
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": "49b6251f-955e-4413-acbf-e8f758677aae",
|
|
1999
|
+
"parentUUID": "0971c9a7-31a7-4285-b22e-760b93b893ba",
|
|
2000
2000
|
"isHook": false,
|
|
2001
2001
|
"skipped": false
|
|
2002
2002
|
}
|
|
2003
2003
|
],
|
|
2004
2004
|
"suites": [],
|
|
2005
2005
|
"passes": [
|
|
2006
|
-
"
|
|
2006
|
+
"49b6251f-955e-4413-acbf-e8f758677aae"
|
|
2007
2007
|
],
|
|
2008
2008
|
"failures": [],
|
|
2009
2009
|
"pending": [],
|
|
@@ -2014,7 +2014,7 @@
|
|
|
2014
2014
|
"_timeout": 2000
|
|
2015
2015
|
},
|
|
2016
2016
|
{
|
|
2017
|
-
"uuid": "
|
|
2017
|
+
"uuid": "908d4ac0-a72e-4745-b731-18c5a0e3bb38",
|
|
2018
2018
|
"title": "getAlbum()",
|
|
2019
2019
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2020
2020
|
"file": "/test/device.ts",
|
|
@@ -2025,7 +2025,7 @@
|
|
|
2025
2025
|
"title": "should work",
|
|
2026
2026
|
"fullTitle": "NodePyATVDevice getAlbum() should work",
|
|
2027
2027
|
"timedOut": false,
|
|
2028
|
-
"duration":
|
|
2028
|
+
"duration": 2,
|
|
2029
2029
|
"state": "passed",
|
|
2030
2030
|
"speed": "fast",
|
|
2031
2031
|
"pass": true,
|
|
@@ -2034,26 +2034,26 @@
|
|
|
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": "314501bc-3d4a-4a56-9323-71444bd8084c",
|
|
2038
|
+
"parentUUID": "908d4ac0-a72e-4745-b731-18c5a0e3bb38",
|
|
2039
2039
|
"isHook": false,
|
|
2040
2040
|
"skipped": false
|
|
2041
2041
|
}
|
|
2042
2042
|
],
|
|
2043
2043
|
"suites": [],
|
|
2044
2044
|
"passes": [
|
|
2045
|
-
"
|
|
2045
|
+
"314501bc-3d4a-4a56-9323-71444bd8084c"
|
|
2046
2046
|
],
|
|
2047
2047
|
"failures": [],
|
|
2048
2048
|
"pending": [],
|
|
2049
2049
|
"skipped": [],
|
|
2050
|
-
"duration":
|
|
2050
|
+
"duration": 2,
|
|
2051
2051
|
"root": false,
|
|
2052
2052
|
"rootEmpty": false,
|
|
2053
2053
|
"_timeout": 2000
|
|
2054
2054
|
},
|
|
2055
2055
|
{
|
|
2056
|
-
"uuid": "
|
|
2056
|
+
"uuid": "0593bf46-0183-4086-bdeb-3f71524ee9c4",
|
|
2057
2057
|
"title": "getGenre()",
|
|
2058
2058
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2059
2059
|
"file": "/test/device.ts",
|
|
@@ -2073,15 +2073,15 @@
|
|
|
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": "8f1c695e-4866-4a2f-86c1-ae4d07e1d512",
|
|
2077
|
+
"parentUUID": "0593bf46-0183-4086-bdeb-3f71524ee9c4",
|
|
2078
2078
|
"isHook": false,
|
|
2079
2079
|
"skipped": false
|
|
2080
2080
|
}
|
|
2081
2081
|
],
|
|
2082
2082
|
"suites": [],
|
|
2083
2083
|
"passes": [
|
|
2084
|
-
"
|
|
2084
|
+
"8f1c695e-4866-4a2f-86c1-ae4d07e1d512"
|
|
2085
2085
|
],
|
|
2086
2086
|
"failures": [],
|
|
2087
2087
|
"pending": [],
|
|
@@ -2092,7 +2092,7 @@
|
|
|
2092
2092
|
"_timeout": 2000
|
|
2093
2093
|
},
|
|
2094
2094
|
{
|
|
2095
|
-
"uuid": "
|
|
2095
|
+
"uuid": "f8fd522b-86d7-4888-9ed0-5f49b1dc7d5f",
|
|
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": "4f40c15a-21fd-4043-a064-8491d229afcd",
|
|
2116
|
+
"parentUUID": "f8fd522b-86d7-4888-9ed0-5f49b1dc7d5f",
|
|
2117
2117
|
"isHook": false,
|
|
2118
2118
|
"skipped": false
|
|
2119
2119
|
}
|
|
2120
2120
|
],
|
|
2121
2121
|
"suites": [],
|
|
2122
2122
|
"passes": [
|
|
2123
|
-
"
|
|
2123
|
+
"4f40c15a-21fd-4043-a064-8491d229afcd"
|
|
2124
2124
|
],
|
|
2125
2125
|
"failures": [],
|
|
2126
2126
|
"pending": [],
|
|
@@ -2131,7 +2131,7 @@
|
|
|
2131
2131
|
"_timeout": 2000
|
|
2132
2132
|
},
|
|
2133
2133
|
{
|
|
2134
|
-
"uuid": "
|
|
2134
|
+
"uuid": "3a8dddb4-060e-40ab-8704-ee3ef5a4aba3",
|
|
2135
2135
|
"title": "getPosition()",
|
|
2136
2136
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2137
2137
|
"file": "/test/device.ts",
|
|
@@ -2151,15 +2151,15 @@
|
|
|
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": "d5c63dba-3474-4776-8aed-fe582e522135",
|
|
2155
|
+
"parentUUID": "3a8dddb4-060e-40ab-8704-ee3ef5a4aba3",
|
|
2156
2156
|
"isHook": false,
|
|
2157
2157
|
"skipped": false
|
|
2158
2158
|
}
|
|
2159
2159
|
],
|
|
2160
2160
|
"suites": [],
|
|
2161
2161
|
"passes": [
|
|
2162
|
-
"
|
|
2162
|
+
"d5c63dba-3474-4776-8aed-fe582e522135"
|
|
2163
2163
|
],
|
|
2164
2164
|
"failures": [],
|
|
2165
2165
|
"pending": [],
|
|
@@ -2170,7 +2170,7 @@
|
|
|
2170
2170
|
"_timeout": 2000
|
|
2171
2171
|
},
|
|
2172
2172
|
{
|
|
2173
|
-
"uuid": "
|
|
2173
|
+
"uuid": "362735a1-285f-4679-a40b-156cd5013afa",
|
|
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": "ef292b39-efdc-434f-bf8f-398940104af7",
|
|
2194
|
+
"parentUUID": "362735a1-285f-4679-a40b-156cd5013afa",
|
|
2195
2195
|
"isHook": false,
|
|
2196
2196
|
"skipped": false
|
|
2197
2197
|
}
|
|
2198
2198
|
],
|
|
2199
2199
|
"suites": [],
|
|
2200
2200
|
"passes": [
|
|
2201
|
-
"
|
|
2201
|
+
"ef292b39-efdc-434f-bf8f-398940104af7"
|
|
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": "fc6fe281-aa1d-4b72-b38a-78815bb6bca5",
|
|
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": "4a5c6c08-5b22-46df-bd3e-d37e6329eb4d",
|
|
2233
|
+
"parentUUID": "fc6fe281-aa1d-4b72-b38a-78815bb6bca5",
|
|
2234
2234
|
"isHook": false,
|
|
2235
2235
|
"skipped": false
|
|
2236
2236
|
}
|
|
2237
2237
|
],
|
|
2238
2238
|
"suites": [],
|
|
2239
2239
|
"passes": [
|
|
2240
|
-
"
|
|
2240
|
+
"4a5c6c08-5b22-46df-bd3e-d37e6329eb4d"
|
|
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": "15a3cb7e-eb06-4d10-aa16-d090a5f64966",
|
|
2252
2252
|
"title": "getApp()",
|
|
2253
2253
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2254
2254
|
"file": "/test/device.ts",
|
|
@@ -2268,15 +2268,15 @@
|
|
|
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": "98b77c04-bb5c-444c-9cd7-3c26d6dcd22a",
|
|
2272
|
+
"parentUUID": "15a3cb7e-eb06-4d10-aa16-d090a5f64966",
|
|
2273
2273
|
"isHook": false,
|
|
2274
2274
|
"skipped": false
|
|
2275
2275
|
}
|
|
2276
2276
|
],
|
|
2277
2277
|
"suites": [],
|
|
2278
2278
|
"passes": [
|
|
2279
|
-
"
|
|
2279
|
+
"98b77c04-bb5c-444c-9cd7-3c26d6dcd22a"
|
|
2280
2280
|
],
|
|
2281
2281
|
"failures": [],
|
|
2282
2282
|
"pending": [],
|
|
@@ -2287,7 +2287,7 @@
|
|
|
2287
2287
|
"_timeout": 2000
|
|
2288
2288
|
},
|
|
2289
2289
|
{
|
|
2290
|
-
"uuid": "
|
|
2290
|
+
"uuid": "49f44f7d-7a72-41c9-97c2-a60d39c0b36e",
|
|
2291
2291
|
"title": "getAppId()",
|
|
2292
2292
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2293
2293
|
"file": "/test/device.ts",
|
|
@@ -2307,15 +2307,15 @@
|
|
|
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": "bf615d79-463f-45a7-9c6d-d37c26acfd4d",
|
|
2311
|
+
"parentUUID": "49f44f7d-7a72-41c9-97c2-a60d39c0b36e",
|
|
2312
2312
|
"isHook": false,
|
|
2313
2313
|
"skipped": false
|
|
2314
2314
|
}
|
|
2315
2315
|
],
|
|
2316
2316
|
"suites": [],
|
|
2317
2317
|
"passes": [
|
|
2318
|
-
"
|
|
2318
|
+
"bf615d79-463f-45a7-9c6d-d37c26acfd4d"
|
|
2319
2319
|
],
|
|
2320
2320
|
"failures": [],
|
|
2321
2321
|
"pending": [],
|
|
@@ -2326,7 +2326,7 @@
|
|
|
2326
2326
|
"_timeout": 2000
|
|
2327
2327
|
},
|
|
2328
2328
|
{
|
|
2329
|
-
"uuid": "
|
|
2329
|
+
"uuid": "25803204-3acc-477f-a120-2380b72576fc",
|
|
2330
2330
|
"title": "pressKey()",
|
|
2331
2331
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2332
2332
|
"file": "/test/device.ts",
|
|
@@ -2337,7 +2337,7 @@
|
|
|
2337
2337
|
"title": "should work with valid key",
|
|
2338
2338
|
"fullTitle": "NodePyATVDevice pressKey() should work with valid key",
|
|
2339
2339
|
"timedOut": false,
|
|
2340
|
-
"duration":
|
|
2340
|
+
"duration": 1,
|
|
2341
2341
|
"state": "passed",
|
|
2342
2342
|
"speed": "fast",
|
|
2343
2343
|
"pass": true,
|
|
@@ -2346,8 +2346,8 @@
|
|
|
2346
2346
|
"context": null,
|
|
2347
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('{\"result\":\"success\"}');\n })\n });\n yield device.pressKey(NodePyATVKeys.home);\n});",
|
|
2348
2348
|
"err": {},
|
|
2349
|
-
"uuid": "
|
|
2350
|
-
"parentUUID": "
|
|
2349
|
+
"uuid": "9400fd37-a258-419c-a66e-52256f22f907",
|
|
2350
|
+
"parentUUID": "25803204-3acc-477f-a120-2380b72576fc",
|
|
2351
2351
|
"isHook": false,
|
|
2352
2352
|
"skipped": false
|
|
2353
2353
|
},
|
|
@@ -2364,8 +2364,8 @@
|
|
|
2364
2364
|
"context": null,
|
|
2365
2365
|
"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
2366
|
"err": {},
|
|
2367
|
-
"uuid": "
|
|
2368
|
-
"parentUUID": "
|
|
2367
|
+
"uuid": "4877a326-53a2-48d8-a0cf-442eb82538c6",
|
|
2368
|
+
"parentUUID": "25803204-3acc-477f-a120-2380b72576fc",
|
|
2369
2369
|
"isHook": false,
|
|
2370
2370
|
"skipped": false
|
|
2371
2371
|
},
|
|
@@ -2373,7 +2373,7 @@
|
|
|
2373
2373
|
"title": "should throw error if pyatv result is not success",
|
|
2374
2374
|
"fullTitle": "NodePyATVDevice pressKey() should throw error if pyatv result is not success",
|
|
2375
2375
|
"timedOut": false,
|
|
2376
|
-
"duration":
|
|
2376
|
+
"duration": 2,
|
|
2377
2377
|
"state": "passed",
|
|
2378
2378
|
"speed": "fast",
|
|
2379
2379
|
"pass": true,
|
|
@@ -2382,17 +2382,17 @@
|
|
|
2382
2382
|
"context": null,
|
|
2383
2383
|
"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
2384
|
"err": {},
|
|
2385
|
-
"uuid": "
|
|
2386
|
-
"parentUUID": "
|
|
2385
|
+
"uuid": "ed703ce1-fc65-4f38-a7c1-33e289e7aa73",
|
|
2386
|
+
"parentUUID": "25803204-3acc-477f-a120-2380b72576fc",
|
|
2387
2387
|
"isHook": false,
|
|
2388
2388
|
"skipped": false
|
|
2389
2389
|
}
|
|
2390
2390
|
],
|
|
2391
2391
|
"suites": [],
|
|
2392
2392
|
"passes": [
|
|
2393
|
-
"
|
|
2394
|
-
"
|
|
2395
|
-
"
|
|
2393
|
+
"9400fd37-a258-419c-a66e-52256f22f907",
|
|
2394
|
+
"4877a326-53a2-48d8-a0cf-442eb82538c6",
|
|
2395
|
+
"ed703ce1-fc65-4f38-a7c1-33e289e7aa73"
|
|
2396
2396
|
],
|
|
2397
2397
|
"failures": [],
|
|
2398
2398
|
"pending": [],
|
|
@@ -2403,7 +2403,7 @@
|
|
|
2403
2403
|
"_timeout": 2000
|
|
2404
2404
|
},
|
|
2405
2405
|
{
|
|
2406
|
-
"uuid": "
|
|
2406
|
+
"uuid": "919d20a0-753f-4e6b-9e13-6baa382220e9",
|
|
2407
2407
|
"title": "down()",
|
|
2408
2408
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2409
2409
|
"file": "/test/device.ts",
|
|
@@ -2423,15 +2423,15 @@
|
|
|
2423
2423
|
"context": null,
|
|
2424
2424
|
"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
2425
|
"err": {},
|
|
2426
|
-
"uuid": "
|
|
2427
|
-
"parentUUID": "
|
|
2426
|
+
"uuid": "10467162-ef48-4485-8e9b-3fef4e46a097",
|
|
2427
|
+
"parentUUID": "919d20a0-753f-4e6b-9e13-6baa382220e9",
|
|
2428
2428
|
"isHook": false,
|
|
2429
2429
|
"skipped": false
|
|
2430
2430
|
}
|
|
2431
2431
|
],
|
|
2432
2432
|
"suites": [],
|
|
2433
2433
|
"passes": [
|
|
2434
|
-
"
|
|
2434
|
+
"10467162-ef48-4485-8e9b-3fef4e46a097"
|
|
2435
2435
|
],
|
|
2436
2436
|
"failures": [],
|
|
2437
2437
|
"pending": [],
|
|
@@ -2442,7 +2442,7 @@
|
|
|
2442
2442
|
"_timeout": 2000
|
|
2443
2443
|
},
|
|
2444
2444
|
{
|
|
2445
|
-
"uuid": "
|
|
2445
|
+
"uuid": "cef503b6-5a29-4708-b9ad-1bca222415e6",
|
|
2446
2446
|
"title": "home()",
|
|
2447
2447
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2448
2448
|
"file": "/test/device.ts",
|
|
@@ -2462,15 +2462,15 @@
|
|
|
2462
2462
|
"context": null,
|
|
2463
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});",
|
|
2464
2464
|
"err": {},
|
|
2465
|
-
"uuid": "
|
|
2466
|
-
"parentUUID": "
|
|
2465
|
+
"uuid": "a2cde9d7-779c-42bd-985c-fa9c26972c72",
|
|
2466
|
+
"parentUUID": "cef503b6-5a29-4708-b9ad-1bca222415e6",
|
|
2467
2467
|
"isHook": false,
|
|
2468
2468
|
"skipped": false
|
|
2469
2469
|
}
|
|
2470
2470
|
],
|
|
2471
2471
|
"suites": [],
|
|
2472
2472
|
"passes": [
|
|
2473
|
-
"
|
|
2473
|
+
"a2cde9d7-779c-42bd-985c-fa9c26972c72"
|
|
2474
2474
|
],
|
|
2475
2475
|
"failures": [],
|
|
2476
2476
|
"pending": [],
|
|
@@ -2481,7 +2481,7 @@
|
|
|
2481
2481
|
"_timeout": 2000
|
|
2482
2482
|
},
|
|
2483
2483
|
{
|
|
2484
|
-
"uuid": "
|
|
2484
|
+
"uuid": "225cd1ad-7082-455f-aad6-098bf96e148c",
|
|
2485
2485
|
"title": "homeHold()",
|
|
2486
2486
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2487
2487
|
"file": "/test/device.ts",
|
|
@@ -2492,7 +2492,7 @@
|
|
|
2492
2492
|
"title": "should work",
|
|
2493
2493
|
"fullTitle": "NodePyATVDevice homeHold() should work",
|
|
2494
2494
|
"timedOut": false,
|
|
2495
|
-
"duration":
|
|
2495
|
+
"duration": 2,
|
|
2496
2496
|
"state": "passed",
|
|
2497
2497
|
"speed": "fast",
|
|
2498
2498
|
"pass": true,
|
|
@@ -2501,26 +2501,26 @@
|
|
|
2501
2501
|
"context": null,
|
|
2502
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});",
|
|
2503
2503
|
"err": {},
|
|
2504
|
-
"uuid": "
|
|
2505
|
-
"parentUUID": "
|
|
2504
|
+
"uuid": "fddf780c-68d1-4daf-8a9e-20ce503a000c",
|
|
2505
|
+
"parentUUID": "225cd1ad-7082-455f-aad6-098bf96e148c",
|
|
2506
2506
|
"isHook": false,
|
|
2507
2507
|
"skipped": false
|
|
2508
2508
|
}
|
|
2509
2509
|
],
|
|
2510
2510
|
"suites": [],
|
|
2511
2511
|
"passes": [
|
|
2512
|
-
"
|
|
2512
|
+
"fddf780c-68d1-4daf-8a9e-20ce503a000c"
|
|
2513
2513
|
],
|
|
2514
2514
|
"failures": [],
|
|
2515
2515
|
"pending": [],
|
|
2516
2516
|
"skipped": [],
|
|
2517
|
-
"duration":
|
|
2517
|
+
"duration": 2,
|
|
2518
2518
|
"root": false,
|
|
2519
2519
|
"rootEmpty": false,
|
|
2520
2520
|
"_timeout": 2000
|
|
2521
2521
|
},
|
|
2522
2522
|
{
|
|
2523
|
-
"uuid": "
|
|
2523
|
+
"uuid": "1e9a9272-1b89-4c7e-994f-c736fbe2cd51",
|
|
2524
2524
|
"title": "left()",
|
|
2525
2525
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2526
2526
|
"file": "/test/device.ts",
|
|
@@ -2531,7 +2531,7 @@
|
|
|
2531
2531
|
"title": "should work",
|
|
2532
2532
|
"fullTitle": "NodePyATVDevice left() should work",
|
|
2533
2533
|
"timedOut": false,
|
|
2534
|
-
"duration":
|
|
2534
|
+
"duration": 2,
|
|
2535
2535
|
"state": "passed",
|
|
2536
2536
|
"speed": "fast",
|
|
2537
2537
|
"pass": true,
|
|
@@ -2540,26 +2540,26 @@
|
|
|
2540
2540
|
"context": null,
|
|
2541
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});",
|
|
2542
2542
|
"err": {},
|
|
2543
|
-
"uuid": "
|
|
2544
|
-
"parentUUID": "
|
|
2543
|
+
"uuid": "d6ac35dc-8e63-426f-ac24-b15df349cd7e",
|
|
2544
|
+
"parentUUID": "1e9a9272-1b89-4c7e-994f-c736fbe2cd51",
|
|
2545
2545
|
"isHook": false,
|
|
2546
2546
|
"skipped": false
|
|
2547
2547
|
}
|
|
2548
2548
|
],
|
|
2549
2549
|
"suites": [],
|
|
2550
2550
|
"passes": [
|
|
2551
|
-
"
|
|
2551
|
+
"d6ac35dc-8e63-426f-ac24-b15df349cd7e"
|
|
2552
2552
|
],
|
|
2553
2553
|
"failures": [],
|
|
2554
2554
|
"pending": [],
|
|
2555
2555
|
"skipped": [],
|
|
2556
|
-
"duration":
|
|
2556
|
+
"duration": 2,
|
|
2557
2557
|
"root": false,
|
|
2558
2558
|
"rootEmpty": false,
|
|
2559
2559
|
"_timeout": 2000
|
|
2560
2560
|
},
|
|
2561
2561
|
{
|
|
2562
|
-
"uuid": "
|
|
2562
|
+
"uuid": "d8078f0c-d994-4fd1-8d00-6f829faccd4b",
|
|
2563
2563
|
"title": "menu()",
|
|
2564
2564
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2565
2565
|
"file": "/test/device.ts",
|
|
@@ -2579,15 +2579,15 @@
|
|
|
2579
2579
|
"context": null,
|
|
2580
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});",
|
|
2581
2581
|
"err": {},
|
|
2582
|
-
"uuid": "
|
|
2583
|
-
"parentUUID": "
|
|
2582
|
+
"uuid": "19add474-825d-4f07-973f-0ee36163ed69",
|
|
2583
|
+
"parentUUID": "d8078f0c-d994-4fd1-8d00-6f829faccd4b",
|
|
2584
2584
|
"isHook": false,
|
|
2585
2585
|
"skipped": false
|
|
2586
2586
|
}
|
|
2587
2587
|
],
|
|
2588
2588
|
"suites": [],
|
|
2589
2589
|
"passes": [
|
|
2590
|
-
"
|
|
2590
|
+
"19add474-825d-4f07-973f-0ee36163ed69"
|
|
2591
2591
|
],
|
|
2592
2592
|
"failures": [],
|
|
2593
2593
|
"pending": [],
|
|
@@ -2598,7 +2598,7 @@
|
|
|
2598
2598
|
"_timeout": 2000
|
|
2599
2599
|
},
|
|
2600
2600
|
{
|
|
2601
|
-
"uuid": "
|
|
2601
|
+
"uuid": "3839f408-3b86-4428-a0bd-7f30cf63d655",
|
|
2602
2602
|
"title": "next()",
|
|
2603
2603
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2604
2604
|
"file": "/test/device.ts",
|
|
@@ -2618,15 +2618,15 @@
|
|
|
2618
2618
|
"context": null,
|
|
2619
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});",
|
|
2620
2620
|
"err": {},
|
|
2621
|
-
"uuid": "
|
|
2622
|
-
"parentUUID": "
|
|
2621
|
+
"uuid": "a32dff07-c0bf-4336-8a2f-aa634525ca28",
|
|
2622
|
+
"parentUUID": "3839f408-3b86-4428-a0bd-7f30cf63d655",
|
|
2623
2623
|
"isHook": false,
|
|
2624
2624
|
"skipped": false
|
|
2625
2625
|
}
|
|
2626
2626
|
],
|
|
2627
2627
|
"suites": [],
|
|
2628
2628
|
"passes": [
|
|
2629
|
-
"
|
|
2629
|
+
"a32dff07-c0bf-4336-8a2f-aa634525ca28"
|
|
2630
2630
|
],
|
|
2631
2631
|
"failures": [],
|
|
2632
2632
|
"pending": [],
|
|
@@ -2637,7 +2637,7 @@
|
|
|
2637
2637
|
"_timeout": 2000
|
|
2638
2638
|
},
|
|
2639
2639
|
{
|
|
2640
|
-
"uuid": "
|
|
2640
|
+
"uuid": "26ede67e-253c-4202-bb80-2be76f3c9e02",
|
|
2641
2641
|
"title": "pause()",
|
|
2642
2642
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2643
2643
|
"file": "/test/device.ts",
|
|
@@ -2657,15 +2657,15 @@
|
|
|
2657
2657
|
"context": null,
|
|
2658
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});",
|
|
2659
2659
|
"err": {},
|
|
2660
|
-
"uuid": "
|
|
2661
|
-
"parentUUID": "
|
|
2660
|
+
"uuid": "ea2b5955-b4d4-49f6-8f2c-93164fc206b8",
|
|
2661
|
+
"parentUUID": "26ede67e-253c-4202-bb80-2be76f3c9e02",
|
|
2662
2662
|
"isHook": false,
|
|
2663
2663
|
"skipped": false
|
|
2664
2664
|
}
|
|
2665
2665
|
],
|
|
2666
2666
|
"suites": [],
|
|
2667
2667
|
"passes": [
|
|
2668
|
-
"
|
|
2668
|
+
"ea2b5955-b4d4-49f6-8f2c-93164fc206b8"
|
|
2669
2669
|
],
|
|
2670
2670
|
"failures": [],
|
|
2671
2671
|
"pending": [],
|
|
@@ -2676,7 +2676,7 @@
|
|
|
2676
2676
|
"_timeout": 2000
|
|
2677
2677
|
},
|
|
2678
2678
|
{
|
|
2679
|
-
"uuid": "
|
|
2679
|
+
"uuid": "a4e805e1-c783-44a3-b714-b4f627205e45",
|
|
2680
2680
|
"title": "play()",
|
|
2681
2681
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2682
2682
|
"file": "/test/device.ts",
|
|
@@ -2687,7 +2687,7 @@
|
|
|
2687
2687
|
"title": "should work",
|
|
2688
2688
|
"fullTitle": "NodePyATVDevice play() should work",
|
|
2689
2689
|
"timedOut": false,
|
|
2690
|
-
"duration":
|
|
2690
|
+
"duration": 1,
|
|
2691
2691
|
"state": "passed",
|
|
2692
2692
|
"speed": "fast",
|
|
2693
2693
|
"pass": true,
|
|
@@ -2696,26 +2696,26 @@
|
|
|
2696
2696
|
"context": null,
|
|
2697
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});",
|
|
2698
2698
|
"err": {},
|
|
2699
|
-
"uuid": "
|
|
2700
|
-
"parentUUID": "
|
|
2699
|
+
"uuid": "707128fc-3fa6-4404-8a77-2b67559036b4",
|
|
2700
|
+
"parentUUID": "a4e805e1-c783-44a3-b714-b4f627205e45",
|
|
2701
2701
|
"isHook": false,
|
|
2702
2702
|
"skipped": false
|
|
2703
2703
|
}
|
|
2704
2704
|
],
|
|
2705
2705
|
"suites": [],
|
|
2706
2706
|
"passes": [
|
|
2707
|
-
"
|
|
2707
|
+
"707128fc-3fa6-4404-8a77-2b67559036b4"
|
|
2708
2708
|
],
|
|
2709
2709
|
"failures": [],
|
|
2710
2710
|
"pending": [],
|
|
2711
2711
|
"skipped": [],
|
|
2712
|
-
"duration":
|
|
2712
|
+
"duration": 1,
|
|
2713
2713
|
"root": false,
|
|
2714
2714
|
"rootEmpty": false,
|
|
2715
2715
|
"_timeout": 2000
|
|
2716
2716
|
},
|
|
2717
2717
|
{
|
|
2718
|
-
"uuid": "
|
|
2718
|
+
"uuid": "c1e7dafa-fca6-42c7-af62-62ec4a30aedc",
|
|
2719
2719
|
"title": "playPause()",
|
|
2720
2720
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2721
2721
|
"file": "/test/device.ts",
|
|
@@ -2735,15 +2735,15 @@
|
|
|
2735
2735
|
"context": null,
|
|
2736
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});",
|
|
2737
2737
|
"err": {},
|
|
2738
|
-
"uuid": "
|
|
2739
|
-
"parentUUID": "
|
|
2738
|
+
"uuid": "111a5a25-9ba0-4bb2-84bc-e45344d40084",
|
|
2739
|
+
"parentUUID": "c1e7dafa-fca6-42c7-af62-62ec4a30aedc",
|
|
2740
2740
|
"isHook": false,
|
|
2741
2741
|
"skipped": false
|
|
2742
2742
|
}
|
|
2743
2743
|
],
|
|
2744
2744
|
"suites": [],
|
|
2745
2745
|
"passes": [
|
|
2746
|
-
"
|
|
2746
|
+
"111a5a25-9ba0-4bb2-84bc-e45344d40084"
|
|
2747
2747
|
],
|
|
2748
2748
|
"failures": [],
|
|
2749
2749
|
"pending": [],
|
|
@@ -2754,7 +2754,7 @@
|
|
|
2754
2754
|
"_timeout": 2000
|
|
2755
2755
|
},
|
|
2756
2756
|
{
|
|
2757
|
-
"uuid": "
|
|
2757
|
+
"uuid": "bfce63a1-4de6-4a62-8d07-35f374976b41",
|
|
2758
2758
|
"title": "previous()",
|
|
2759
2759
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2760
2760
|
"file": "/test/device.ts",
|
|
@@ -2774,15 +2774,15 @@
|
|
|
2774
2774
|
"context": null,
|
|
2775
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});",
|
|
2776
2776
|
"err": {},
|
|
2777
|
-
"uuid": "
|
|
2778
|
-
"parentUUID": "
|
|
2777
|
+
"uuid": "e76ed020-29c6-4703-b6b4-96c530cf1f4d",
|
|
2778
|
+
"parentUUID": "bfce63a1-4de6-4a62-8d07-35f374976b41",
|
|
2779
2779
|
"isHook": false,
|
|
2780
2780
|
"skipped": false
|
|
2781
2781
|
}
|
|
2782
2782
|
],
|
|
2783
2783
|
"suites": [],
|
|
2784
2784
|
"passes": [
|
|
2785
|
-
"
|
|
2785
|
+
"e76ed020-29c6-4703-b6b4-96c530cf1f4d"
|
|
2786
2786
|
],
|
|
2787
2787
|
"failures": [],
|
|
2788
2788
|
"pending": [],
|
|
@@ -2793,7 +2793,7 @@
|
|
|
2793
2793
|
"_timeout": 2000
|
|
2794
2794
|
},
|
|
2795
2795
|
{
|
|
2796
|
-
"uuid": "
|
|
2796
|
+
"uuid": "dd4c37b7-01c9-434c-9e37-0da490488e92",
|
|
2797
2797
|
"title": "right()",
|
|
2798
2798
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2799
2799
|
"file": "/test/device.ts",
|
|
@@ -2813,15 +2813,15 @@
|
|
|
2813
2813
|
"context": null,
|
|
2814
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});",
|
|
2815
2815
|
"err": {},
|
|
2816
|
-
"uuid": "
|
|
2817
|
-
"parentUUID": "
|
|
2816
|
+
"uuid": "857958c3-7fc6-4440-a3b1-8883ee8135d3",
|
|
2817
|
+
"parentUUID": "dd4c37b7-01c9-434c-9e37-0da490488e92",
|
|
2818
2818
|
"isHook": false,
|
|
2819
2819
|
"skipped": false
|
|
2820
2820
|
}
|
|
2821
2821
|
],
|
|
2822
2822
|
"suites": [],
|
|
2823
2823
|
"passes": [
|
|
2824
|
-
"
|
|
2824
|
+
"857958c3-7fc6-4440-a3b1-8883ee8135d3"
|
|
2825
2825
|
],
|
|
2826
2826
|
"failures": [],
|
|
2827
2827
|
"pending": [],
|
|
@@ -2832,7 +2832,7 @@
|
|
|
2832
2832
|
"_timeout": 2000
|
|
2833
2833
|
},
|
|
2834
2834
|
{
|
|
2835
|
-
"uuid": "
|
|
2835
|
+
"uuid": "b723964d-e698-4cb7-bbe4-c2d0c1df8533",
|
|
2836
2836
|
"title": "select()",
|
|
2837
2837
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2838
2838
|
"file": "/test/device.ts",
|
|
@@ -2843,7 +2843,7 @@
|
|
|
2843
2843
|
"title": "should work",
|
|
2844
2844
|
"fullTitle": "NodePyATVDevice select() should work",
|
|
2845
2845
|
"timedOut": false,
|
|
2846
|
-
"duration":
|
|
2846
|
+
"duration": 2,
|
|
2847
2847
|
"state": "passed",
|
|
2848
2848
|
"speed": "fast",
|
|
2849
2849
|
"pass": true,
|
|
@@ -2852,26 +2852,26 @@
|
|
|
2852
2852
|
"context": null,
|
|
2853
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});",
|
|
2854
2854
|
"err": {},
|
|
2855
|
-
"uuid": "
|
|
2856
|
-
"parentUUID": "
|
|
2855
|
+
"uuid": "5f232fb0-f19a-4fdc-829c-485057bd384d",
|
|
2856
|
+
"parentUUID": "b723964d-e698-4cb7-bbe4-c2d0c1df8533",
|
|
2857
2857
|
"isHook": false,
|
|
2858
2858
|
"skipped": false
|
|
2859
2859
|
}
|
|
2860
2860
|
],
|
|
2861
2861
|
"suites": [],
|
|
2862
2862
|
"passes": [
|
|
2863
|
-
"
|
|
2863
|
+
"5f232fb0-f19a-4fdc-829c-485057bd384d"
|
|
2864
2864
|
],
|
|
2865
2865
|
"failures": [],
|
|
2866
2866
|
"pending": [],
|
|
2867
2867
|
"skipped": [],
|
|
2868
|
-
"duration":
|
|
2868
|
+
"duration": 2,
|
|
2869
2869
|
"root": false,
|
|
2870
2870
|
"rootEmpty": false,
|
|
2871
2871
|
"_timeout": 2000
|
|
2872
2872
|
},
|
|
2873
2873
|
{
|
|
2874
|
-
"uuid": "
|
|
2874
|
+
"uuid": "e568f9df-8b9f-4978-8320-9d37546acdeb",
|
|
2875
2875
|
"title": "skipBackward()",
|
|
2876
2876
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2877
2877
|
"file": "/test/device.ts",
|
|
@@ -2882,7 +2882,7 @@
|
|
|
2882
2882
|
"title": "should work",
|
|
2883
2883
|
"fullTitle": "NodePyATVDevice skipBackward() should work",
|
|
2884
2884
|
"timedOut": false,
|
|
2885
|
-
"duration":
|
|
2885
|
+
"duration": 1,
|
|
2886
2886
|
"state": "passed",
|
|
2887
2887
|
"speed": "fast",
|
|
2888
2888
|
"pass": true,
|
|
@@ -2891,26 +2891,26 @@
|
|
|
2891
2891
|
"context": null,
|
|
2892
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});",
|
|
2893
2893
|
"err": {},
|
|
2894
|
-
"uuid": "
|
|
2895
|
-
"parentUUID": "
|
|
2894
|
+
"uuid": "dab23478-87e3-4b6b-bc23-fa3cd2a6124d",
|
|
2895
|
+
"parentUUID": "e568f9df-8b9f-4978-8320-9d37546acdeb",
|
|
2896
2896
|
"isHook": false,
|
|
2897
2897
|
"skipped": false
|
|
2898
2898
|
}
|
|
2899
2899
|
],
|
|
2900
2900
|
"suites": [],
|
|
2901
2901
|
"passes": [
|
|
2902
|
-
"
|
|
2902
|
+
"dab23478-87e3-4b6b-bc23-fa3cd2a6124d"
|
|
2903
2903
|
],
|
|
2904
2904
|
"failures": [],
|
|
2905
2905
|
"pending": [],
|
|
2906
2906
|
"skipped": [],
|
|
2907
|
-
"duration":
|
|
2907
|
+
"duration": 1,
|
|
2908
2908
|
"root": false,
|
|
2909
2909
|
"rootEmpty": false,
|
|
2910
2910
|
"_timeout": 2000
|
|
2911
2911
|
},
|
|
2912
2912
|
{
|
|
2913
|
-
"uuid": "
|
|
2913
|
+
"uuid": "de87b32c-1958-403c-8040-a2b31c79e4a8",
|
|
2914
2914
|
"title": "skipForward()",
|
|
2915
2915
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2916
2916
|
"file": "/test/device.ts",
|
|
@@ -2930,15 +2930,15 @@
|
|
|
2930
2930
|
"context": null,
|
|
2931
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});",
|
|
2932
2932
|
"err": {},
|
|
2933
|
-
"uuid": "
|
|
2934
|
-
"parentUUID": "
|
|
2933
|
+
"uuid": "c4f271ab-f8d8-4e4f-bf68-5c274c82635f",
|
|
2934
|
+
"parentUUID": "de87b32c-1958-403c-8040-a2b31c79e4a8",
|
|
2935
2935
|
"isHook": false,
|
|
2936
2936
|
"skipped": false
|
|
2937
2937
|
}
|
|
2938
2938
|
],
|
|
2939
2939
|
"suites": [],
|
|
2940
2940
|
"passes": [
|
|
2941
|
-
"
|
|
2941
|
+
"c4f271ab-f8d8-4e4f-bf68-5c274c82635f"
|
|
2942
2942
|
],
|
|
2943
2943
|
"failures": [],
|
|
2944
2944
|
"pending": [],
|
|
@@ -2949,7 +2949,7 @@
|
|
|
2949
2949
|
"_timeout": 2000
|
|
2950
2950
|
},
|
|
2951
2951
|
{
|
|
2952
|
-
"uuid": "
|
|
2952
|
+
"uuid": "41c41c3d-7400-4f6c-8242-c65df978b999",
|
|
2953
2953
|
"title": "stop()",
|
|
2954
2954
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2955
2955
|
"file": "/test/device.ts",
|
|
@@ -2960,7 +2960,7 @@
|
|
|
2960
2960
|
"title": "should work",
|
|
2961
2961
|
"fullTitle": "NodePyATVDevice stop() should work",
|
|
2962
2962
|
"timedOut": false,
|
|
2963
|
-
"duration":
|
|
2963
|
+
"duration": 2,
|
|
2964
2964
|
"state": "passed",
|
|
2965
2965
|
"speed": "fast",
|
|
2966
2966
|
"pass": true,
|
|
@@ -2969,26 +2969,26 @@
|
|
|
2969
2969
|
"context": null,
|
|
2970
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});",
|
|
2971
2971
|
"err": {},
|
|
2972
|
-
"uuid": "
|
|
2973
|
-
"parentUUID": "
|
|
2972
|
+
"uuid": "77578e66-1e8d-4223-af71-dfbc4d426d76",
|
|
2973
|
+
"parentUUID": "41c41c3d-7400-4f6c-8242-c65df978b999",
|
|
2974
2974
|
"isHook": false,
|
|
2975
2975
|
"skipped": false
|
|
2976
2976
|
}
|
|
2977
2977
|
],
|
|
2978
2978
|
"suites": [],
|
|
2979
2979
|
"passes": [
|
|
2980
|
-
"
|
|
2980
|
+
"77578e66-1e8d-4223-af71-dfbc4d426d76"
|
|
2981
2981
|
],
|
|
2982
2982
|
"failures": [],
|
|
2983
2983
|
"pending": [],
|
|
2984
2984
|
"skipped": [],
|
|
2985
|
-
"duration":
|
|
2985
|
+
"duration": 2,
|
|
2986
2986
|
"root": false,
|
|
2987
2987
|
"rootEmpty": false,
|
|
2988
2988
|
"_timeout": 2000
|
|
2989
2989
|
},
|
|
2990
2990
|
{
|
|
2991
|
-
"uuid": "
|
|
2991
|
+
"uuid": "220d278d-004b-4caa-b1f0-b491d391de7d",
|
|
2992
2992
|
"title": "suspend()",
|
|
2993
2993
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2994
2994
|
"file": "/test/device.ts",
|
|
@@ -3008,15 +3008,15 @@
|
|
|
3008
3008
|
"context": null,
|
|
3009
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});",
|
|
3010
3010
|
"err": {},
|
|
3011
|
-
"uuid": "
|
|
3012
|
-
"parentUUID": "
|
|
3011
|
+
"uuid": "75918d1e-9404-40ee-9f8c-341940825ff7",
|
|
3012
|
+
"parentUUID": "220d278d-004b-4caa-b1f0-b491d391de7d",
|
|
3013
3013
|
"isHook": false,
|
|
3014
3014
|
"skipped": false
|
|
3015
3015
|
}
|
|
3016
3016
|
],
|
|
3017
3017
|
"suites": [],
|
|
3018
3018
|
"passes": [
|
|
3019
|
-
"
|
|
3019
|
+
"75918d1e-9404-40ee-9f8c-341940825ff7"
|
|
3020
3020
|
],
|
|
3021
3021
|
"failures": [],
|
|
3022
3022
|
"pending": [],
|
|
@@ -3027,7 +3027,7 @@
|
|
|
3027
3027
|
"_timeout": 2000
|
|
3028
3028
|
},
|
|
3029
3029
|
{
|
|
3030
|
-
"uuid": "
|
|
3030
|
+
"uuid": "53d39542-ef1d-4aec-aaac-1d5d27cd676d",
|
|
3031
3031
|
"title": "topMenu()",
|
|
3032
3032
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
3033
3033
|
"file": "/test/device.ts",
|
|
@@ -3038,7 +3038,7 @@
|
|
|
3038
3038
|
"title": "should work",
|
|
3039
3039
|
"fullTitle": "NodePyATVDevice topMenu() should work",
|
|
3040
3040
|
"timedOut": false,
|
|
3041
|
-
"duration":
|
|
3041
|
+
"duration": 0,
|
|
3042
3042
|
"state": "passed",
|
|
3043
3043
|
"speed": "fast",
|
|
3044
3044
|
"pass": true,
|
|
@@ -3047,26 +3047,26 @@
|
|
|
3047
3047
|
"context": null,
|
|
3048
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});",
|
|
3049
3049
|
"err": {},
|
|
3050
|
-
"uuid": "
|
|
3051
|
-
"parentUUID": "
|
|
3050
|
+
"uuid": "4c565c50-b5b6-40e2-b950-c4d2e94ef534",
|
|
3051
|
+
"parentUUID": "53d39542-ef1d-4aec-aaac-1d5d27cd676d",
|
|
3052
3052
|
"isHook": false,
|
|
3053
3053
|
"skipped": false
|
|
3054
3054
|
}
|
|
3055
3055
|
],
|
|
3056
3056
|
"suites": [],
|
|
3057
3057
|
"passes": [
|
|
3058
|
-
"
|
|
3058
|
+
"4c565c50-b5b6-40e2-b950-c4d2e94ef534"
|
|
3059
3059
|
],
|
|
3060
3060
|
"failures": [],
|
|
3061
3061
|
"pending": [],
|
|
3062
3062
|
"skipped": [],
|
|
3063
|
-
"duration":
|
|
3063
|
+
"duration": 0,
|
|
3064
3064
|
"root": false,
|
|
3065
3065
|
"rootEmpty": false,
|
|
3066
3066
|
"_timeout": 2000
|
|
3067
3067
|
},
|
|
3068
3068
|
{
|
|
3069
|
-
"uuid": "
|
|
3069
|
+
"uuid": "e95ede13-bfc7-476d-b60e-0b3b0c64b8c0",
|
|
3070
3070
|
"title": "up()",
|
|
3071
3071
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
3072
3072
|
"file": "/test/device.ts",
|
|
@@ -3077,7 +3077,7 @@
|
|
|
3077
3077
|
"title": "should work",
|
|
3078
3078
|
"fullTitle": "NodePyATVDevice up() should work",
|
|
3079
3079
|
"timedOut": false,
|
|
3080
|
-
"duration":
|
|
3080
|
+
"duration": 2,
|
|
3081
3081
|
"state": "passed",
|
|
3082
3082
|
"speed": "fast",
|
|
3083
3083
|
"pass": true,
|
|
@@ -3086,26 +3086,26 @@
|
|
|
3086
3086
|
"context": null,
|
|
3087
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});",
|
|
3088
3088
|
"err": {},
|
|
3089
|
-
"uuid": "
|
|
3090
|
-
"parentUUID": "
|
|
3089
|
+
"uuid": "57910d27-45bc-4f57-bf4a-6a3fa3088fd0",
|
|
3090
|
+
"parentUUID": "e95ede13-bfc7-476d-b60e-0b3b0c64b8c0",
|
|
3091
3091
|
"isHook": false,
|
|
3092
3092
|
"skipped": false
|
|
3093
3093
|
}
|
|
3094
3094
|
],
|
|
3095
3095
|
"suites": [],
|
|
3096
3096
|
"passes": [
|
|
3097
|
-
"
|
|
3097
|
+
"57910d27-45bc-4f57-bf4a-6a3fa3088fd0"
|
|
3098
3098
|
],
|
|
3099
3099
|
"failures": [],
|
|
3100
3100
|
"pending": [],
|
|
3101
3101
|
"skipped": [],
|
|
3102
|
-
"duration":
|
|
3102
|
+
"duration": 2,
|
|
3103
3103
|
"root": false,
|
|
3104
3104
|
"rootEmpty": false,
|
|
3105
3105
|
"_timeout": 2000
|
|
3106
3106
|
},
|
|
3107
3107
|
{
|
|
3108
|
-
"uuid": "
|
|
3108
|
+
"uuid": "e4076e2f-88fb-42cb-a978-05221e5aab3e",
|
|
3109
3109
|
"title": "volumeDown()",
|
|
3110
3110
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
3111
3111
|
"file": "/test/device.ts",
|
|
@@ -3125,15 +3125,15 @@
|
|
|
3125
3125
|
"context": null,
|
|
3126
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});",
|
|
3127
3127
|
"err": {},
|
|
3128
|
-
"uuid": "
|
|
3129
|
-
"parentUUID": "
|
|
3128
|
+
"uuid": "26ea09c2-4795-4a00-92b0-434518da6c90",
|
|
3129
|
+
"parentUUID": "e4076e2f-88fb-42cb-a978-05221e5aab3e",
|
|
3130
3130
|
"isHook": false,
|
|
3131
3131
|
"skipped": false
|
|
3132
3132
|
}
|
|
3133
3133
|
],
|
|
3134
3134
|
"suites": [],
|
|
3135
3135
|
"passes": [
|
|
3136
|
-
"
|
|
3136
|
+
"26ea09c2-4795-4a00-92b0-434518da6c90"
|
|
3137
3137
|
],
|
|
3138
3138
|
"failures": [],
|
|
3139
3139
|
"pending": [],
|
|
@@ -3144,7 +3144,7 @@
|
|
|
3144
3144
|
"_timeout": 2000
|
|
3145
3145
|
},
|
|
3146
3146
|
{
|
|
3147
|
-
"uuid": "
|
|
3147
|
+
"uuid": "9b9c67e1-bee0-43d6-9d2f-71be15ece00a",
|
|
3148
3148
|
"title": "volumeUp()",
|
|
3149
3149
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
3150
3150
|
"file": "/test/device.ts",
|
|
@@ -3155,7 +3155,7 @@
|
|
|
3155
3155
|
"title": "should work",
|
|
3156
3156
|
"fullTitle": "NodePyATVDevice volumeUp() should work",
|
|
3157
3157
|
"timedOut": false,
|
|
3158
|
-
"duration":
|
|
3158
|
+
"duration": 1,
|
|
3159
3159
|
"state": "passed",
|
|
3160
3160
|
"speed": "fast",
|
|
3161
3161
|
"pass": true,
|
|
@@ -3164,26 +3164,26 @@
|
|
|
3164
3164
|
"context": null,
|
|
3165
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});",
|
|
3166
3166
|
"err": {},
|
|
3167
|
-
"uuid": "
|
|
3168
|
-
"parentUUID": "
|
|
3167
|
+
"uuid": "8f6784ed-5cfc-4c71-8db9-9f0199cd763b",
|
|
3168
|
+
"parentUUID": "9b9c67e1-bee0-43d6-9d2f-71be15ece00a",
|
|
3169
3169
|
"isHook": false,
|
|
3170
3170
|
"skipped": false
|
|
3171
3171
|
}
|
|
3172
3172
|
],
|
|
3173
3173
|
"suites": [],
|
|
3174
3174
|
"passes": [
|
|
3175
|
-
"
|
|
3175
|
+
"8f6784ed-5cfc-4c71-8db9-9f0199cd763b"
|
|
3176
3176
|
],
|
|
3177
3177
|
"failures": [],
|
|
3178
3178
|
"pending": [],
|
|
3179
3179
|
"skipped": [],
|
|
3180
|
-
"duration":
|
|
3180
|
+
"duration": 1,
|
|
3181
3181
|
"root": false,
|
|
3182
3182
|
"rootEmpty": false,
|
|
3183
3183
|
"_timeout": 2000
|
|
3184
3184
|
},
|
|
3185
3185
|
{
|
|
3186
|
-
"uuid": "
|
|
3186
|
+
"uuid": "38c42005-68db-4f1f-beb3-87272599837b",
|
|
3187
3187
|
"title": "wakeup()",
|
|
3188
3188
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
3189
3189
|
"file": "/test/device.ts",
|
|
@@ -3203,15 +3203,15 @@
|
|
|
3203
3203
|
"context": null,
|
|
3204
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});",
|
|
3205
3205
|
"err": {},
|
|
3206
|
-
"uuid": "
|
|
3207
|
-
"parentUUID": "
|
|
3206
|
+
"uuid": "0782903e-8838-4e62-9c1c-dc272508ab33",
|
|
3207
|
+
"parentUUID": "38c42005-68db-4f1f-beb3-87272599837b",
|
|
3208
3208
|
"isHook": false,
|
|
3209
3209
|
"skipped": false
|
|
3210
3210
|
}
|
|
3211
3211
|
],
|
|
3212
3212
|
"suites": [],
|
|
3213
3213
|
"passes": [
|
|
3214
|
-
"
|
|
3214
|
+
"0782903e-8838-4e62-9c1c-dc272508ab33"
|
|
3215
3215
|
],
|
|
3216
3216
|
"failures": [],
|
|
3217
3217
|
"pending": [],
|
|
@@ -3222,7 +3222,7 @@
|
|
|
3222
3222
|
"_timeout": 2000
|
|
3223
3223
|
},
|
|
3224
3224
|
{
|
|
3225
|
-
"uuid": "
|
|
3225
|
+
"uuid": "22a4e9df-d75c-4f20-bcd7-b81b656d2024",
|
|
3226
3226
|
"title": "turnOff()",
|
|
3227
3227
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
3228
3228
|
"file": "/test/device.ts",
|
|
@@ -3233,7 +3233,7 @@
|
|
|
3233
3233
|
"title": "should work",
|
|
3234
3234
|
"fullTitle": "NodePyATVDevice turnOff() should work",
|
|
3235
3235
|
"timedOut": false,
|
|
3236
|
-
"duration":
|
|
3236
|
+
"duration": 2,
|
|
3237
3237
|
"state": "passed",
|
|
3238
3238
|
"speed": "fast",
|
|
3239
3239
|
"pass": true,
|
|
@@ -3242,26 +3242,26 @@
|
|
|
3242
3242
|
"context": null,
|
|
3243
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});",
|
|
3244
3244
|
"err": {},
|
|
3245
|
-
"uuid": "
|
|
3246
|
-
"parentUUID": "
|
|
3245
|
+
"uuid": "16edd570-d900-41a7-a6a7-dfb53c542293",
|
|
3246
|
+
"parentUUID": "22a4e9df-d75c-4f20-bcd7-b81b656d2024",
|
|
3247
3247
|
"isHook": false,
|
|
3248
3248
|
"skipped": false
|
|
3249
3249
|
}
|
|
3250
3250
|
],
|
|
3251
3251
|
"suites": [],
|
|
3252
3252
|
"passes": [
|
|
3253
|
-
"
|
|
3253
|
+
"16edd570-d900-41a7-a6a7-dfb53c542293"
|
|
3254
3254
|
],
|
|
3255
3255
|
"failures": [],
|
|
3256
3256
|
"pending": [],
|
|
3257
3257
|
"skipped": [],
|
|
3258
|
-
"duration":
|
|
3258
|
+
"duration": 2,
|
|
3259
3259
|
"root": false,
|
|
3260
3260
|
"rootEmpty": false,
|
|
3261
3261
|
"_timeout": 2000
|
|
3262
3262
|
},
|
|
3263
3263
|
{
|
|
3264
|
-
"uuid": "
|
|
3264
|
+
"uuid": "c70888be-b68d-4c61-b4ac-4e58c60204d7",
|
|
3265
3265
|
"title": "turnOn()",
|
|
3266
3266
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
3267
3267
|
"file": "/test/device.ts",
|
|
@@ -3272,7 +3272,7 @@
|
|
|
3272
3272
|
"title": "should work",
|
|
3273
3273
|
"fullTitle": "NodePyATVDevice turnOn() should work",
|
|
3274
3274
|
"timedOut": false,
|
|
3275
|
-
"duration":
|
|
3275
|
+
"duration": 2,
|
|
3276
3276
|
"state": "passed",
|
|
3277
3277
|
"speed": "fast",
|
|
3278
3278
|
"pass": true,
|
|
@@ -3281,20 +3281,20 @@
|
|
|
3281
3281
|
"context": null,
|
|
3282
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});",
|
|
3283
3283
|
"err": {},
|
|
3284
|
-
"uuid": "
|
|
3285
|
-
"parentUUID": "
|
|
3284
|
+
"uuid": "5dd5c90b-272a-4125-a632-4de14d559d28",
|
|
3285
|
+
"parentUUID": "c70888be-b68d-4c61-b4ac-4e58c60204d7",
|
|
3286
3286
|
"isHook": false,
|
|
3287
3287
|
"skipped": false
|
|
3288
3288
|
}
|
|
3289
3289
|
],
|
|
3290
3290
|
"suites": [],
|
|
3291
3291
|
"passes": [
|
|
3292
|
-
"
|
|
3292
|
+
"5dd5c90b-272a-4125-a632-4de14d559d28"
|
|
3293
3293
|
],
|
|
3294
3294
|
"failures": [],
|
|
3295
3295
|
"pending": [],
|
|
3296
3296
|
"skipped": [],
|
|
3297
|
-
"duration":
|
|
3297
|
+
"duration": 2,
|
|
3298
3298
|
"root": false,
|
|
3299
3299
|
"rootEmpty": false,
|
|
3300
3300
|
"_timeout": 2000
|
|
@@ -3310,7 +3310,7 @@
|
|
|
3310
3310
|
"_timeout": 2000
|
|
3311
3311
|
},
|
|
3312
3312
|
{
|
|
3313
|
-
"uuid": "
|
|
3313
|
+
"uuid": "508142fd-1a86-4fe3-ad54-8d4cf1993b22",
|
|
3314
3314
|
"title": "NodePyATVInstance",
|
|
3315
3315
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3316
3316
|
"file": "/test/instance.ts",
|
|
@@ -3319,7 +3319,7 @@
|
|
|
3319
3319
|
"tests": [],
|
|
3320
3320
|
"suites": [
|
|
3321
3321
|
{
|
|
3322
|
-
"uuid": "
|
|
3322
|
+
"uuid": "1f64bced-616b-4874-9ec1-e28dc25357f2",
|
|
3323
3323
|
"title": "static version()",
|
|
3324
3324
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3325
3325
|
"file": "/test/instance.ts",
|
|
@@ -3330,7 +3330,7 @@
|
|
|
3330
3330
|
"title": "should work with pyatv [L]",
|
|
3331
3331
|
"fullTitle": "NodePyATVInstance static version() should work with pyatv [L]",
|
|
3332
3332
|
"timedOut": false,
|
|
3333
|
-
"duration":
|
|
3333
|
+
"duration": 553,
|
|
3334
3334
|
"state": "passed",
|
|
3335
3335
|
"speed": "slow",
|
|
3336
3336
|
"pass": true,
|
|
@@ -3339,8 +3339,8 @@
|
|
|
3339
3339
|
"context": null,
|
|
3340
3340
|
"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
3341
|
"err": {},
|
|
3342
|
-
"uuid": "
|
|
3343
|
-
"parentUUID": "
|
|
3342
|
+
"uuid": "8c16ccd2-0325-41b5-a5fd-199d8f9dcfb6",
|
|
3343
|
+
"parentUUID": "1f64bced-616b-4874-9ec1-e28dc25357f2",
|
|
3344
3344
|
"isHook": false,
|
|
3345
3345
|
"skipped": false
|
|
3346
3346
|
},
|
|
@@ -3357,8 +3357,8 @@
|
|
|
3357
3357
|
"context": null,
|
|
3358
3358
|
"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
3359
|
"err": {},
|
|
3360
|
-
"uuid": "
|
|
3361
|
-
"parentUUID": "
|
|
3360
|
+
"uuid": "bfcc9e00-014f-4382-9424-b45f1ad5a793",
|
|
3361
|
+
"parentUUID": "1f64bced-616b-4874-9ec1-e28dc25357f2",
|
|
3362
3362
|
"isHook": false,
|
|
3363
3363
|
"skipped": false
|
|
3364
3364
|
},
|
|
@@ -3366,7 +3366,7 @@
|
|
|
3366
3366
|
"title": "should return the module version",
|
|
3367
3367
|
"fullTitle": "NodePyATVInstance static version() should return the module version",
|
|
3368
3368
|
"timedOut": false,
|
|
3369
|
-
"duration":
|
|
3369
|
+
"duration": 2,
|
|
3370
3370
|
"state": "passed",
|
|
3371
3371
|
"speed": "fast",
|
|
3372
3372
|
"pass": true,
|
|
@@ -3375,8 +3375,8 @@
|
|
|
3375
3375
|
"context": null,
|
|
3376
3376
|
"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
3377
|
"err": {},
|
|
3378
|
-
"uuid": "
|
|
3379
|
-
"parentUUID": "
|
|
3378
|
+
"uuid": "a092d0d2-0542-4f19-ae88-98659623eb5e",
|
|
3379
|
+
"parentUUID": "1f64bced-616b-4874-9ec1-e28dc25357f2",
|
|
3380
3380
|
"isHook": false,
|
|
3381
3381
|
"skipped": false
|
|
3382
3382
|
},
|
|
@@ -3384,7 +3384,7 @@
|
|
|
3384
3384
|
"title": "should handle option.atvremotePath",
|
|
3385
3385
|
"fullTitle": "NodePyATVInstance static version() should handle option.atvremotePath",
|
|
3386
3386
|
"timedOut": false,
|
|
3387
|
-
"duration":
|
|
3387
|
+
"duration": 2,
|
|
3388
3388
|
"state": "passed",
|
|
3389
3389
|
"speed": "fast",
|
|
3390
3390
|
"pass": true,
|
|
@@ -3393,8 +3393,8 @@
|
|
|
3393
3393
|
"context": null,
|
|
3394
3394
|
"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
3395
|
"err": {},
|
|
3396
|
-
"uuid": "
|
|
3397
|
-
"parentUUID": "
|
|
3396
|
+
"uuid": "66db2210-8ac3-4292-baf5-043bea57dac9",
|
|
3397
|
+
"parentUUID": "1f64bced-616b-4874-9ec1-e28dc25357f2",
|
|
3398
3398
|
"isHook": false,
|
|
3399
3399
|
"skipped": false
|
|
3400
3400
|
},
|
|
@@ -3402,7 +3402,7 @@
|
|
|
3402
3402
|
"title": "should work with option.debug = true",
|
|
3403
3403
|
"fullTitle": "NodePyATVInstance static version() should work with option.debug = true",
|
|
3404
3404
|
"timedOut": false,
|
|
3405
|
-
"duration":
|
|
3405
|
+
"duration": 2,
|
|
3406
3406
|
"state": "passed",
|
|
3407
3407
|
"speed": "fast",
|
|
3408
3408
|
"pass": true,
|
|
@@ -3411,8 +3411,8 @@
|
|
|
3411
3411
|
"context": null,
|
|
3412
3412
|
"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
3413
|
"err": {},
|
|
3414
|
-
"uuid": "
|
|
3415
|
-
"parentUUID": "
|
|
3414
|
+
"uuid": "7c8a87b9-3572-4a68-abcb-68bb8d8e8a7a",
|
|
3415
|
+
"parentUUID": "1f64bced-616b-4874-9ec1-e28dc25357f2",
|
|
3416
3416
|
"isHook": false,
|
|
3417
3417
|
"skipped": false
|
|
3418
3418
|
},
|
|
@@ -3420,7 +3420,7 @@
|
|
|
3420
3420
|
"title": "should work with option.noColors",
|
|
3421
3421
|
"fullTitle": "NodePyATVInstance static version() should work with option.noColors",
|
|
3422
3422
|
"timedOut": false,
|
|
3423
|
-
"duration":
|
|
3423
|
+
"duration": 1,
|
|
3424
3424
|
"state": "passed",
|
|
3425
3425
|
"speed": "fast",
|
|
3426
3426
|
"pass": true,
|
|
@@ -3429,8 +3429,8 @@
|
|
|
3429
3429
|
"context": null,
|
|
3430
3430
|
"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
3431
|
"err": {},
|
|
3432
|
-
"uuid": "
|
|
3433
|
-
"parentUUID": "
|
|
3432
|
+
"uuid": "234542cb-0c86-4a17-bee2-bb0be355aef3",
|
|
3433
|
+
"parentUUID": "1f64bced-616b-4874-9ec1-e28dc25357f2",
|
|
3434
3434
|
"isHook": false,
|
|
3435
3435
|
"skipped": false
|
|
3436
3436
|
},
|
|
@@ -3447,8 +3447,8 @@
|
|
|
3447
3447
|
"context": null,
|
|
3448
3448
|
"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
3449
|
"err": {},
|
|
3450
|
-
"uuid": "
|
|
3451
|
-
"parentUUID": "
|
|
3450
|
+
"uuid": "d0bbdb5c-7fd1-4f4c-9389-232b1f47462e",
|
|
3451
|
+
"parentUUID": "1f64bced-616b-4874-9ec1-e28dc25357f2",
|
|
3452
3452
|
"isHook": false,
|
|
3453
3453
|
"skipped": false
|
|
3454
3454
|
},
|
|
@@ -3456,7 +3456,7 @@
|
|
|
3456
3456
|
"title": "should return null on pyatv error",
|
|
3457
3457
|
"fullTitle": "NodePyATVInstance static version() should return null on pyatv error",
|
|
3458
3458
|
"timedOut": false,
|
|
3459
|
-
"duration":
|
|
3459
|
+
"duration": 2,
|
|
3460
3460
|
"state": "passed",
|
|
3461
3461
|
"speed": "fast",
|
|
3462
3462
|
"pass": true,
|
|
@@ -3465,8 +3465,8 @@
|
|
|
3465
3465
|
"context": null,
|
|
3466
3466
|
"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
3467
|
"err": {},
|
|
3468
|
-
"uuid": "
|
|
3469
|
-
"parentUUID": "
|
|
3468
|
+
"uuid": "c198c142-4497-471e-9dc3-359005a1f33f",
|
|
3469
|
+
"parentUUID": "1f64bced-616b-4874-9ec1-e28dc25357f2",
|
|
3470
3470
|
"isHook": false,
|
|
3471
3471
|
"skipped": false
|
|
3472
3472
|
},
|
|
@@ -3474,7 +3474,7 @@
|
|
|
3474
3474
|
"title": "should return null on invalid pyatv version",
|
|
3475
3475
|
"fullTitle": "NodePyATVInstance static version() should return null on invalid pyatv version",
|
|
3476
3476
|
"timedOut": false,
|
|
3477
|
-
"duration":
|
|
3477
|
+
"duration": 2,
|
|
3478
3478
|
"state": "passed",
|
|
3479
3479
|
"speed": "fast",
|
|
3480
3480
|
"pass": true,
|
|
@@ -3483,34 +3483,34 @@
|
|
|
3483
3483
|
"context": null,
|
|
3484
3484
|
"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
3485
|
"err": {},
|
|
3486
|
-
"uuid": "
|
|
3487
|
-
"parentUUID": "
|
|
3486
|
+
"uuid": "dd395357-9542-4d1d-937f-3d96635d9b26",
|
|
3487
|
+
"parentUUID": "1f64bced-616b-4874-9ec1-e28dc25357f2",
|
|
3488
3488
|
"isHook": false,
|
|
3489
3489
|
"skipped": false
|
|
3490
3490
|
}
|
|
3491
3491
|
],
|
|
3492
3492
|
"suites": [],
|
|
3493
3493
|
"passes": [
|
|
3494
|
-
"
|
|
3495
|
-
"
|
|
3496
|
-
"
|
|
3497
|
-
"
|
|
3498
|
-
"
|
|
3499
|
-
"
|
|
3500
|
-
"
|
|
3501
|
-
"
|
|
3502
|
-
"
|
|
3494
|
+
"8c16ccd2-0325-41b5-a5fd-199d8f9dcfb6",
|
|
3495
|
+
"bfcc9e00-014f-4382-9424-b45f1ad5a793",
|
|
3496
|
+
"a092d0d2-0542-4f19-ae88-98659623eb5e",
|
|
3497
|
+
"66db2210-8ac3-4292-baf5-043bea57dac9",
|
|
3498
|
+
"7c8a87b9-3572-4a68-abcb-68bb8d8e8a7a",
|
|
3499
|
+
"234542cb-0c86-4a17-bee2-bb0be355aef3",
|
|
3500
|
+
"d0bbdb5c-7fd1-4f4c-9389-232b1f47462e",
|
|
3501
|
+
"c198c142-4497-471e-9dc3-359005a1f33f",
|
|
3502
|
+
"dd395357-9542-4d1d-937f-3d96635d9b26"
|
|
3503
3503
|
],
|
|
3504
3504
|
"failures": [],
|
|
3505
3505
|
"pending": [],
|
|
3506
3506
|
"skipped": [],
|
|
3507
|
-
"duration":
|
|
3507
|
+
"duration": 567,
|
|
3508
3508
|
"root": false,
|
|
3509
3509
|
"rootEmpty": false,
|
|
3510
3510
|
"_timeout": 2000
|
|
3511
3511
|
},
|
|
3512
3512
|
{
|
|
3513
|
-
"uuid": "
|
|
3513
|
+
"uuid": "51fbb9ce-ef98-4686-9683-878084f74440",
|
|
3514
3514
|
"title": "static check()",
|
|
3515
3515
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3516
3516
|
"file": "/test/instance.ts",
|
|
@@ -3521,7 +3521,7 @@
|
|
|
3521
3521
|
"title": "should resolve in test environment [L]",
|
|
3522
3522
|
"fullTitle": "NodePyATVInstance static check() should resolve in test environment [L]",
|
|
3523
3523
|
"timedOut": false,
|
|
3524
|
-
"duration":
|
|
3524
|
+
"duration": 6050,
|
|
3525
3525
|
"state": "passed",
|
|
3526
3526
|
"speed": "slow",
|
|
3527
3527
|
"pass": true,
|
|
@@ -3530,8 +3530,8 @@
|
|
|
3530
3530
|
"context": null,
|
|
3531
3531
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n this.timeout(12000);\n yield NodePyATVInstance.check();\n});",
|
|
3532
3532
|
"err": {},
|
|
3533
|
-
"uuid": "
|
|
3534
|
-
"parentUUID": "
|
|
3533
|
+
"uuid": "86d28a55-88b0-45ab-a86e-aafa5b431922",
|
|
3534
|
+
"parentUUID": "51fbb9ce-ef98-4686-9683-878084f74440",
|
|
3535
3535
|
"isHook": false,
|
|
3536
3536
|
"skipped": false
|
|
3537
3537
|
},
|
|
@@ -3539,7 +3539,7 @@
|
|
|
3539
3539
|
"title": "should return nice error message if pyatv was not found",
|
|
3540
3540
|
"fullTitle": "NodePyATVInstance static check() should return nice error message if pyatv was not found",
|
|
3541
3541
|
"timedOut": false,
|
|
3542
|
-
"duration":
|
|
3542
|
+
"duration": 3,
|
|
3543
3543
|
"state": "passed",
|
|
3544
3544
|
"speed": "fast",
|
|
3545
3545
|
"pass": true,
|
|
@@ -3548,8 +3548,8 @@
|
|
|
3548
3548
|
"context": null,
|
|
3549
3549
|
"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
3550
|
"err": {},
|
|
3551
|
-
"uuid": "
|
|
3552
|
-
"parentUUID": "
|
|
3551
|
+
"uuid": "b3f4539a-4ad3-4a79-a63f-41837f1ec104",
|
|
3552
|
+
"parentUUID": "51fbb9ce-ef98-4686-9683-878084f74440",
|
|
3553
3553
|
"isHook": false,
|
|
3554
3554
|
"skipped": false
|
|
3555
3555
|
},
|
|
@@ -3557,7 +3557,7 @@
|
|
|
3557
3557
|
"title": "should return nice error message if myatv is too old",
|
|
3558
3558
|
"fullTitle": "NodePyATVInstance static check() should return nice error message if myatv is too old",
|
|
3559
3559
|
"timedOut": false,
|
|
3560
|
-
"duration":
|
|
3560
|
+
"duration": 3,
|
|
3561
3561
|
"state": "passed",
|
|
3562
3562
|
"speed": "fast",
|
|
3563
3563
|
"pass": true,
|
|
@@ -3566,8 +3566,8 @@
|
|
|
3566
3566
|
"context": null,
|
|
3567
3567
|
"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
3568
|
"err": {},
|
|
3569
|
-
"uuid": "
|
|
3570
|
-
"parentUUID": "
|
|
3569
|
+
"uuid": "34143162-bee2-4c94-98f5-d87e71044de5",
|
|
3570
|
+
"parentUUID": "51fbb9ce-ef98-4686-9683-878084f74440",
|
|
3571
3571
|
"isHook": false,
|
|
3572
3572
|
"skipped": false
|
|
3573
3573
|
},
|
|
@@ -3575,7 +3575,7 @@
|
|
|
3575
3575
|
"title": "should return nice error message if scan failed",
|
|
3576
3576
|
"fullTitle": "NodePyATVInstance static check() should return nice error message if scan failed",
|
|
3577
3577
|
"timedOut": false,
|
|
3578
|
-
"duration":
|
|
3578
|
+
"duration": 4,
|
|
3579
3579
|
"state": "passed",
|
|
3580
3580
|
"speed": "fast",
|
|
3581
3581
|
"pass": true,
|
|
@@ -3584,29 +3584,29 @@
|
|
|
3584
3584
|
"context": null,
|
|
3585
3585
|
"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
3586
|
"err": {},
|
|
3587
|
-
"uuid": "
|
|
3588
|
-
"parentUUID": "
|
|
3587
|
+
"uuid": "4a75db8e-c35e-49f5-9882-e43584a42301",
|
|
3588
|
+
"parentUUID": "51fbb9ce-ef98-4686-9683-878084f74440",
|
|
3589
3589
|
"isHook": false,
|
|
3590
3590
|
"skipped": false
|
|
3591
3591
|
}
|
|
3592
3592
|
],
|
|
3593
3593
|
"suites": [],
|
|
3594
3594
|
"passes": [
|
|
3595
|
-
"
|
|
3596
|
-
"
|
|
3597
|
-
"
|
|
3598
|
-
"
|
|
3595
|
+
"86d28a55-88b0-45ab-a86e-aafa5b431922",
|
|
3596
|
+
"b3f4539a-4ad3-4a79-a63f-41837f1ec104",
|
|
3597
|
+
"34143162-bee2-4c94-98f5-d87e71044de5",
|
|
3598
|
+
"4a75db8e-c35e-49f5-9882-e43584a42301"
|
|
3599
3599
|
],
|
|
3600
3600
|
"failures": [],
|
|
3601
3601
|
"pending": [],
|
|
3602
3602
|
"skipped": [],
|
|
3603
|
-
"duration":
|
|
3603
|
+
"duration": 6060,
|
|
3604
3604
|
"root": false,
|
|
3605
3605
|
"rootEmpty": false,
|
|
3606
3606
|
"_timeout": 2000
|
|
3607
3607
|
},
|
|
3608
3608
|
{
|
|
3609
|
-
"uuid": "
|
|
3609
|
+
"uuid": "e302c953-9ecd-4dae-a10c-15fd8fb236e9",
|
|
3610
3610
|
"title": "static find()",
|
|
3611
3611
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3612
3612
|
"file": "/test/instance.ts",
|
|
@@ -3617,7 +3617,7 @@
|
|
|
3617
3617
|
"title": "should work [L]",
|
|
3618
3618
|
"fullTitle": "NodePyATVInstance static find() should work [L]",
|
|
3619
3619
|
"timedOut": false,
|
|
3620
|
-
"duration":
|
|
3620
|
+
"duration": 5511,
|
|
3621
3621
|
"state": "passed",
|
|
3622
3622
|
"speed": "slow",
|
|
3623
3623
|
"pass": true,
|
|
@@ -3626,8 +3626,8 @@
|
|
|
3626
3626
|
"context": null,
|
|
3627
3627
|
"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
3628
|
"err": {},
|
|
3629
|
-
"uuid": "
|
|
3630
|
-
"parentUUID": "
|
|
3629
|
+
"uuid": "fa9ae676-a544-40d5-8870-da6b6092f2c6",
|
|
3630
|
+
"parentUUID": "e302c953-9ecd-4dae-a10c-15fd8fb236e9",
|
|
3631
3631
|
"isHook": false,
|
|
3632
3632
|
"skipped": false
|
|
3633
3633
|
},
|
|
@@ -3635,7 +3635,7 @@
|
|
|
3635
3635
|
"title": "should handle option.atvscriptPath",
|
|
3636
3636
|
"fullTitle": "NodePyATVInstance static find() should handle option.atvscriptPath",
|
|
3637
3637
|
"timedOut": false,
|
|
3638
|
-
"duration":
|
|
3638
|
+
"duration": 2,
|
|
3639
3639
|
"state": "passed",
|
|
3640
3640
|
"speed": "fast",
|
|
3641
3641
|
"pass": true,
|
|
@@ -3644,8 +3644,8 @@
|
|
|
3644
3644
|
"context": null,
|
|
3645
3645
|
"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
3646
|
"err": {},
|
|
3647
|
-
"uuid": "
|
|
3648
|
-
"parentUUID": "
|
|
3647
|
+
"uuid": "b83ffbe1-a2fb-4e2d-838e-dfd891645a6b",
|
|
3648
|
+
"parentUUID": "e302c953-9ecd-4dae-a10c-15fd8fb236e9",
|
|
3649
3649
|
"isHook": false,
|
|
3650
3650
|
"skipped": false
|
|
3651
3651
|
},
|
|
@@ -3653,7 +3653,7 @@
|
|
|
3653
3653
|
"title": "should throw error on stderr output",
|
|
3654
3654
|
"fullTitle": "NodePyATVInstance static find() should throw error on stderr output",
|
|
3655
3655
|
"timedOut": false,
|
|
3656
|
-
"duration":
|
|
3656
|
+
"duration": 2,
|
|
3657
3657
|
"state": "passed",
|
|
3658
3658
|
"speed": "fast",
|
|
3659
3659
|
"pass": true,
|
|
@@ -3662,8 +3662,8 @@
|
|
|
3662
3662
|
"context": null,
|
|
3663
3663
|
"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
3664
|
"err": {},
|
|
3665
|
-
"uuid": "
|
|
3666
|
-
"parentUUID": "
|
|
3665
|
+
"uuid": "eeff0334-9aab-4cd2-9bb8-ed36a7e76877",
|
|
3666
|
+
"parentUUID": "e302c953-9ecd-4dae-a10c-15fd8fb236e9",
|
|
3667
3667
|
"isHook": false,
|
|
3668
3668
|
"skipped": false
|
|
3669
3669
|
},
|
|
@@ -3680,8 +3680,8 @@
|
|
|
3680
3680
|
"context": null,
|
|
3681
3681
|
"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
3682
|
"err": {},
|
|
3683
|
-
"uuid": "
|
|
3684
|
-
"parentUUID": "
|
|
3683
|
+
"uuid": "bb9f845c-cf46-4276-be18-57093d4c9cd2",
|
|
3684
|
+
"parentUUID": "e302c953-9ecd-4dae-a10c-15fd8fb236e9",
|
|
3685
3685
|
"isHook": false,
|
|
3686
3686
|
"skipped": false
|
|
3687
3687
|
},
|
|
@@ -3689,7 +3689,7 @@
|
|
|
3689
3689
|
"title": "should throw error if atvscript result is not valid json",
|
|
3690
3690
|
"fullTitle": "NodePyATVInstance static find() should throw error if atvscript result is not valid json",
|
|
3691
3691
|
"timedOut": false,
|
|
3692
|
-
"duration":
|
|
3692
|
+
"duration": 2,
|
|
3693
3693
|
"state": "passed",
|
|
3694
3694
|
"speed": "fast",
|
|
3695
3695
|
"pass": true,
|
|
@@ -3698,8 +3698,8 @@
|
|
|
3698
3698
|
"context": null,
|
|
3699
3699
|
"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
3700
|
"err": {},
|
|
3701
|
-
"uuid": "
|
|
3702
|
-
"parentUUID": "
|
|
3701
|
+
"uuid": "80754048-1819-4672-bf4b-bab2ebcc0b11",
|
|
3702
|
+
"parentUUID": "e302c953-9ecd-4dae-a10c-15fd8fb236e9",
|
|
3703
3703
|
"isHook": false,
|
|
3704
3704
|
"skipped": false
|
|
3705
3705
|
},
|
|
@@ -3716,8 +3716,8 @@
|
|
|
3716
3716
|
"context": null,
|
|
3717
3717
|
"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
3718
|
"err": {},
|
|
3719
|
-
"uuid": "
|
|
3720
|
-
"parentUUID": "
|
|
3719
|
+
"uuid": "5d62b1bc-f83d-4502-a335-9511aedab03b",
|
|
3720
|
+
"parentUUID": "e302c953-9ecd-4dae-a10c-15fd8fb236e9",
|
|
3721
3721
|
"isHook": false,
|
|
3722
3722
|
"skipped": false
|
|
3723
3723
|
},
|
|
@@ -3725,7 +3725,7 @@
|
|
|
3725
3725
|
"title": "should throw error if atvscript result is without device array",
|
|
3726
3726
|
"fullTitle": "NodePyATVInstance static find() should throw error if atvscript result is without device array",
|
|
3727
3727
|
"timedOut": false,
|
|
3728
|
-
"duration":
|
|
3728
|
+
"duration": 2,
|
|
3729
3729
|
"state": "passed",
|
|
3730
3730
|
"speed": "fast",
|
|
3731
3731
|
"pass": true,
|
|
@@ -3734,8 +3734,8 @@
|
|
|
3734
3734
|
"context": null,
|
|
3735
3735
|
"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
3736
|
"err": {},
|
|
3737
|
-
"uuid": "
|
|
3738
|
-
"parentUUID": "
|
|
3737
|
+
"uuid": "e7d72c01-db34-4d2a-83c5-a8daf19e957b",
|
|
3738
|
+
"parentUUID": "e302c953-9ecd-4dae-a10c-15fd8fb236e9",
|
|
3739
3739
|
"isHook": false,
|
|
3740
3740
|
"skipped": false
|
|
3741
3741
|
},
|
|
@@ -3743,7 +3743,7 @@
|
|
|
3743
3743
|
"title": "should work if devices are without device_info / services",
|
|
3744
3744
|
"fullTitle": "NodePyATVInstance static find() should work if devices are without device_info / services",
|
|
3745
3745
|
"timedOut": false,
|
|
3746
|
-
"duration":
|
|
3746
|
+
"duration": 0,
|
|
3747
3747
|
"state": "passed",
|
|
3748
3748
|
"speed": "fast",
|
|
3749
3749
|
"pass": true,
|
|
@@ -3752,8 +3752,8 @@
|
|
|
3752
3752
|
"context": null,
|
|
3753
3753
|
"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
3754
|
"err": {},
|
|
3755
|
-
"uuid": "
|
|
3756
|
-
"parentUUID": "
|
|
3755
|
+
"uuid": "90d36ee1-befa-49c1-bd13-dcf4ed61cbb5",
|
|
3756
|
+
"parentUUID": "e302c953-9ecd-4dae-a10c-15fd8fb236e9",
|
|
3757
3757
|
"isHook": false,
|
|
3758
3758
|
"skipped": false
|
|
3759
3759
|
},
|
|
@@ -3761,7 +3761,7 @@
|
|
|
3761
3761
|
"title": "should work if devices are with device_info / services",
|
|
3762
3762
|
"fullTitle": "NodePyATVInstance static find() should work if devices are with device_info / services",
|
|
3763
3763
|
"timedOut": false,
|
|
3764
|
-
"duration":
|
|
3764
|
+
"duration": 1,
|
|
3765
3765
|
"state": "passed",
|
|
3766
3766
|
"speed": "fast",
|
|
3767
3767
|
"pass": true,
|
|
@@ -3770,34 +3770,34 @@
|
|
|
3770
3770
|
"context": null,
|
|
3771
3771
|
"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
3772
|
"err": {},
|
|
3773
|
-
"uuid": "
|
|
3774
|
-
"parentUUID": "
|
|
3773
|
+
"uuid": "b03c9285-3cda-4de5-abc6-cf0fa92e41d0",
|
|
3774
|
+
"parentUUID": "e302c953-9ecd-4dae-a10c-15fd8fb236e9",
|
|
3775
3775
|
"isHook": false,
|
|
3776
3776
|
"skipped": false
|
|
3777
3777
|
}
|
|
3778
3778
|
],
|
|
3779
3779
|
"suites": [],
|
|
3780
3780
|
"passes": [
|
|
3781
|
-
"
|
|
3782
|
-
"
|
|
3783
|
-
"
|
|
3784
|
-
"
|
|
3785
|
-
"
|
|
3786
|
-
"
|
|
3787
|
-
"
|
|
3788
|
-
"
|
|
3789
|
-
"
|
|
3781
|
+
"fa9ae676-a544-40d5-8870-da6b6092f2c6",
|
|
3782
|
+
"b83ffbe1-a2fb-4e2d-838e-dfd891645a6b",
|
|
3783
|
+
"eeff0334-9aab-4cd2-9bb8-ed36a7e76877",
|
|
3784
|
+
"bb9f845c-cf46-4276-be18-57093d4c9cd2",
|
|
3785
|
+
"80754048-1819-4672-bf4b-bab2ebcc0b11",
|
|
3786
|
+
"5d62b1bc-f83d-4502-a335-9511aedab03b",
|
|
3787
|
+
"e7d72c01-db34-4d2a-83c5-a8daf19e957b",
|
|
3788
|
+
"90d36ee1-befa-49c1-bd13-dcf4ed61cbb5",
|
|
3789
|
+
"b03c9285-3cda-4de5-abc6-cf0fa92e41d0"
|
|
3790
3790
|
],
|
|
3791
3791
|
"failures": [],
|
|
3792
3792
|
"pending": [],
|
|
3793
3793
|
"skipped": [],
|
|
3794
|
-
"duration":
|
|
3794
|
+
"duration": 5524,
|
|
3795
3795
|
"root": false,
|
|
3796
3796
|
"rootEmpty": false,
|
|
3797
3797
|
"_timeout": 2000
|
|
3798
3798
|
},
|
|
3799
3799
|
{
|
|
3800
|
-
"uuid": "
|
|
3800
|
+
"uuid": "b811528a-dfaa-4ed0-bb3a-e9e2e23f1068",
|
|
3801
3801
|
"title": "static device()",
|
|
3802
3802
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3803
3803
|
"file": "/test/instance.ts",
|
|
@@ -3808,7 +3808,7 @@
|
|
|
3808
3808
|
"title": "should pass options to constructor",
|
|
3809
3809
|
"fullTitle": "NodePyATVInstance static device() should pass options to constructor",
|
|
3810
3810
|
"timedOut": false,
|
|
3811
|
-
"duration":
|
|
3811
|
+
"duration": 1,
|
|
3812
3812
|
"state": "passed",
|
|
3813
3813
|
"speed": "fast",
|
|
3814
3814
|
"pass": true,
|
|
@@ -3817,26 +3817,26 @@
|
|
|
3817
3817
|
"context": null,
|
|
3818
3818
|
"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
3819
|
"err": {},
|
|
3820
|
-
"uuid": "
|
|
3821
|
-
"parentUUID": "
|
|
3820
|
+
"uuid": "745b120e-c759-4bfe-bcf1-1139a692db3a",
|
|
3821
|
+
"parentUUID": "b811528a-dfaa-4ed0-bb3a-e9e2e23f1068",
|
|
3822
3822
|
"isHook": false,
|
|
3823
3823
|
"skipped": false
|
|
3824
3824
|
}
|
|
3825
3825
|
],
|
|
3826
3826
|
"suites": [],
|
|
3827
3827
|
"passes": [
|
|
3828
|
-
"
|
|
3828
|
+
"745b120e-c759-4bfe-bcf1-1139a692db3a"
|
|
3829
3829
|
],
|
|
3830
3830
|
"failures": [],
|
|
3831
3831
|
"pending": [],
|
|
3832
3832
|
"skipped": [],
|
|
3833
|
-
"duration":
|
|
3833
|
+
"duration": 1,
|
|
3834
3834
|
"root": false,
|
|
3835
3835
|
"rootEmpty": false,
|
|
3836
3836
|
"_timeout": 2000
|
|
3837
3837
|
},
|
|
3838
3838
|
{
|
|
3839
|
-
"uuid": "
|
|
3839
|
+
"uuid": "b559a51a-4752-4f5f-9b62-df08437c527e",
|
|
3840
3840
|
"title": "version()",
|
|
3841
3841
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3842
3842
|
"file": "/test/instance.ts",
|
|
@@ -3856,15 +3856,15 @@
|
|
|
3856
3856
|
"context": null,
|
|
3857
3857
|
"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
3858
|
"err": {},
|
|
3859
|
-
"uuid": "
|
|
3860
|
-
"parentUUID": "
|
|
3859
|
+
"uuid": "70ca4f24-a131-44db-964d-a48f7c5d41fb",
|
|
3860
|
+
"parentUUID": "b559a51a-4752-4f5f-9b62-df08437c527e",
|
|
3861
3861
|
"isHook": false,
|
|
3862
3862
|
"skipped": false
|
|
3863
3863
|
}
|
|
3864
3864
|
],
|
|
3865
3865
|
"suites": [],
|
|
3866
3866
|
"passes": [
|
|
3867
|
-
"
|
|
3867
|
+
"70ca4f24-a131-44db-964d-a48f7c5d41fb"
|
|
3868
3868
|
],
|
|
3869
3869
|
"failures": [],
|
|
3870
3870
|
"pending": [],
|
|
@@ -3875,7 +3875,7 @@
|
|
|
3875
3875
|
"_timeout": 2000
|
|
3876
3876
|
},
|
|
3877
3877
|
{
|
|
3878
|
-
"uuid": "
|
|
3878
|
+
"uuid": "1f0fd15c-973b-417d-a1da-ddd313b2698e",
|
|
3879
3879
|
"title": "check()",
|
|
3880
3880
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3881
3881
|
"file": "/test/instance.ts",
|
|
@@ -3895,15 +3895,15 @@
|
|
|
3895
3895
|
"context": null,
|
|
3896
3896
|
"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
3897
|
"err": {},
|
|
3898
|
-
"uuid": "
|
|
3899
|
-
"parentUUID": "
|
|
3898
|
+
"uuid": "723788ea-61cf-423d-92d4-27d13c27c7fd",
|
|
3899
|
+
"parentUUID": "1f0fd15c-973b-417d-a1da-ddd313b2698e",
|
|
3900
3900
|
"isHook": false,
|
|
3901
3901
|
"skipped": false
|
|
3902
3902
|
}
|
|
3903
3903
|
],
|
|
3904
3904
|
"suites": [],
|
|
3905
3905
|
"passes": [
|
|
3906
|
-
"
|
|
3906
|
+
"723788ea-61cf-423d-92d4-27d13c27c7fd"
|
|
3907
3907
|
],
|
|
3908
3908
|
"failures": [],
|
|
3909
3909
|
"pending": [],
|
|
@@ -3914,7 +3914,7 @@
|
|
|
3914
3914
|
"_timeout": 2000
|
|
3915
3915
|
},
|
|
3916
3916
|
{
|
|
3917
|
-
"uuid": "
|
|
3917
|
+
"uuid": "5e507f1c-717c-4c27-9bc3-8992a7c6eae1",
|
|
3918
3918
|
"title": "find()",
|
|
3919
3919
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3920
3920
|
"file": "/test/instance.ts",
|
|
@@ -3934,15 +3934,15 @@
|
|
|
3934
3934
|
"context": null,
|
|
3935
3935
|
"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
3936
|
"err": {},
|
|
3937
|
-
"uuid": "
|
|
3938
|
-
"parentUUID": "
|
|
3937
|
+
"uuid": "5f9a5073-daf2-4841-8715-2897bf7782a9",
|
|
3938
|
+
"parentUUID": "5e507f1c-717c-4c27-9bc3-8992a7c6eae1",
|
|
3939
3939
|
"isHook": false,
|
|
3940
3940
|
"skipped": false
|
|
3941
3941
|
}
|
|
3942
3942
|
],
|
|
3943
3943
|
"suites": [],
|
|
3944
3944
|
"passes": [
|
|
3945
|
-
"
|
|
3945
|
+
"5f9a5073-daf2-4841-8715-2897bf7782a9"
|
|
3946
3946
|
],
|
|
3947
3947
|
"failures": [],
|
|
3948
3948
|
"pending": [],
|
|
@@ -3953,7 +3953,7 @@
|
|
|
3953
3953
|
"_timeout": 2000
|
|
3954
3954
|
},
|
|
3955
3955
|
{
|
|
3956
|
-
"uuid": "
|
|
3956
|
+
"uuid": "921198cb-5b27-4c2b-93db-556faf9163b3",
|
|
3957
3957
|
"title": "device()",
|
|
3958
3958
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3959
3959
|
"file": "/test/instance.ts",
|
|
@@ -3973,15 +3973,15 @@
|
|
|
3973
3973
|
"context": null,
|
|
3974
3974
|
"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
3975
|
"err": {},
|
|
3976
|
-
"uuid": "
|
|
3977
|
-
"parentUUID": "
|
|
3976
|
+
"uuid": "e89eabb7-7e6d-4cd2-969c-fd17b329ed0c",
|
|
3977
|
+
"parentUUID": "921198cb-5b27-4c2b-93db-556faf9163b3",
|
|
3978
3978
|
"isHook": false,
|
|
3979
3979
|
"skipped": false
|
|
3980
3980
|
}
|
|
3981
3981
|
],
|
|
3982
3982
|
"suites": [],
|
|
3983
3983
|
"passes": [
|
|
3984
|
-
"
|
|
3984
|
+
"e89eabb7-7e6d-4cd2-969c-fd17b329ed0c"
|
|
3985
3985
|
],
|
|
3986
3986
|
"failures": [],
|
|
3987
3987
|
"pending": [],
|
|
@@ -3992,7 +3992,7 @@
|
|
|
3992
3992
|
"_timeout": 2000
|
|
3993
3993
|
},
|
|
3994
3994
|
{
|
|
3995
|
-
"uuid": "
|
|
3995
|
+
"uuid": "745b14f6-2fa3-4b9f-90f7-743652d454fd",
|
|
3996
3996
|
"title": "Type Exports",
|
|
3997
3997
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3998
3998
|
"file": "/test/instance.ts",
|
|
@@ -4012,8 +4012,8 @@
|
|
|
4012
4012
|
"context": null,
|
|
4013
4013
|
"code": "assert.ok(NodePyATVProtocol);",
|
|
4014
4014
|
"err": {},
|
|
4015
|
-
"uuid": "
|
|
4016
|
-
"parentUUID": "
|
|
4015
|
+
"uuid": "ee6bf088-2bea-49f7-b9b2-4e19b0b7a5b3",
|
|
4016
|
+
"parentUUID": "745b14f6-2fa3-4b9f-90f7-743652d454fd",
|
|
4017
4017
|
"isHook": false,
|
|
4018
4018
|
"skipped": false
|
|
4019
4019
|
},
|
|
@@ -4030,8 +4030,8 @@
|
|
|
4030
4030
|
"context": null,
|
|
4031
4031
|
"code": "assert.ok(NodePyATVMediaType);",
|
|
4032
4032
|
"err": {},
|
|
4033
|
-
"uuid": "
|
|
4034
|
-
"parentUUID": "
|
|
4033
|
+
"uuid": "6a545050-71b0-475d-b9db-aa6b5c5ec34b",
|
|
4034
|
+
"parentUUID": "745b14f6-2fa3-4b9f-90f7-743652d454fd",
|
|
4035
4035
|
"isHook": false,
|
|
4036
4036
|
"skipped": false
|
|
4037
4037
|
},
|
|
@@ -4048,8 +4048,8 @@
|
|
|
4048
4048
|
"context": null,
|
|
4049
4049
|
"code": "assert.ok(NodePyATVDeviceEvent);",
|
|
4050
4050
|
"err": {},
|
|
4051
|
-
"uuid": "
|
|
4052
|
-
"parentUUID": "
|
|
4051
|
+
"uuid": "2313efe4-8551-4b53-a790-a4b5ef1c5e97",
|
|
4052
|
+
"parentUUID": "745b14f6-2fa3-4b9f-90f7-743652d454fd",
|
|
4053
4053
|
"isHook": false,
|
|
4054
4054
|
"skipped": false
|
|
4055
4055
|
},
|
|
@@ -4057,7 +4057,7 @@
|
|
|
4057
4057
|
"title": "Type NodePyATVDeviceState should be exported",
|
|
4058
4058
|
"fullTitle": "NodePyATVInstance Type Exports Type NodePyATVDeviceState should be exported",
|
|
4059
4059
|
"timedOut": false,
|
|
4060
|
-
"duration":
|
|
4060
|
+
"duration": 1,
|
|
4061
4061
|
"state": "passed",
|
|
4062
4062
|
"speed": "fast",
|
|
4063
4063
|
"pass": true,
|
|
@@ -4066,8 +4066,8 @@
|
|
|
4066
4066
|
"context": null,
|
|
4067
4067
|
"code": "assert.ok(NodePyATVDeviceState);",
|
|
4068
4068
|
"err": {},
|
|
4069
|
-
"uuid": "
|
|
4070
|
-
"parentUUID": "
|
|
4069
|
+
"uuid": "3b97b910-ef56-49b9-8f2e-51cc8c0a6fbe",
|
|
4070
|
+
"parentUUID": "745b14f6-2fa3-4b9f-90f7-743652d454fd",
|
|
4071
4071
|
"isHook": false,
|
|
4072
4072
|
"skipped": false
|
|
4073
4073
|
},
|
|
@@ -4084,8 +4084,8 @@
|
|
|
4084
4084
|
"context": null,
|
|
4085
4085
|
"code": "assert.ok(NodePyATVRepeatState);",
|
|
4086
4086
|
"err": {},
|
|
4087
|
-
"uuid": "
|
|
4088
|
-
"parentUUID": "
|
|
4087
|
+
"uuid": "be504799-9d25-48d7-8fa7-4e93253fe38b",
|
|
4088
|
+
"parentUUID": "745b14f6-2fa3-4b9f-90f7-743652d454fd",
|
|
4089
4089
|
"isHook": false,
|
|
4090
4090
|
"skipped": false
|
|
4091
4091
|
},
|
|
@@ -4102,8 +4102,8 @@
|
|
|
4102
4102
|
"context": null,
|
|
4103
4103
|
"code": "assert.ok(NodePyATVShuffleState);",
|
|
4104
4104
|
"err": {},
|
|
4105
|
-
"uuid": "
|
|
4106
|
-
"parentUUID": "
|
|
4105
|
+
"uuid": "05ff2313-2661-43b3-8e8e-f6429258c3ba",
|
|
4106
|
+
"parentUUID": "745b14f6-2fa3-4b9f-90f7-743652d454fd",
|
|
4107
4107
|
"isHook": false,
|
|
4108
4108
|
"skipped": false
|
|
4109
4109
|
},
|
|
@@ -4120,8 +4120,8 @@
|
|
|
4120
4120
|
"context": null,
|
|
4121
4121
|
"code": "assert.ok(NodePyATVKeys);",
|
|
4122
4122
|
"err": {},
|
|
4123
|
-
"uuid": "
|
|
4124
|
-
"parentUUID": "
|
|
4123
|
+
"uuid": "423932ef-de52-47c7-9be1-e894ad88017b",
|
|
4124
|
+
"parentUUID": "745b14f6-2fa3-4b9f-90f7-743652d454fd",
|
|
4125
4125
|
"isHook": false,
|
|
4126
4126
|
"skipped": false
|
|
4127
4127
|
},
|
|
@@ -4138,8 +4138,8 @@
|
|
|
4138
4138
|
"context": null,
|
|
4139
4139
|
"code": "assert.ok(NodePyATVListenerState);",
|
|
4140
4140
|
"err": {},
|
|
4141
|
-
"uuid": "
|
|
4142
|
-
"parentUUID": "
|
|
4141
|
+
"uuid": "5744ef2d-5284-4f86-ad7e-5f12196331d6",
|
|
4142
|
+
"parentUUID": "745b14f6-2fa3-4b9f-90f7-743652d454fd",
|
|
4143
4143
|
"isHook": false,
|
|
4144
4144
|
"skipped": false
|
|
4145
4145
|
},
|
|
@@ -4156,28 +4156,28 @@
|
|
|
4156
4156
|
"context": null,
|
|
4157
4157
|
"code": "assert.ok(NodePyATVPowerState);",
|
|
4158
4158
|
"err": {},
|
|
4159
|
-
"uuid": "
|
|
4160
|
-
"parentUUID": "
|
|
4159
|
+
"uuid": "04b44b13-9849-40c7-8882-a58379ca3b23",
|
|
4160
|
+
"parentUUID": "745b14f6-2fa3-4b9f-90f7-743652d454fd",
|
|
4161
4161
|
"isHook": false,
|
|
4162
4162
|
"skipped": false
|
|
4163
4163
|
}
|
|
4164
4164
|
],
|
|
4165
4165
|
"suites": [],
|
|
4166
4166
|
"passes": [
|
|
4167
|
-
"
|
|
4168
|
-
"
|
|
4169
|
-
"
|
|
4170
|
-
"
|
|
4171
|
-
"
|
|
4172
|
-
"
|
|
4173
|
-
"
|
|
4174
|
-
"
|
|
4175
|
-
"
|
|
4167
|
+
"ee6bf088-2bea-49f7-b9b2-4e19b0b7a5b3",
|
|
4168
|
+
"6a545050-71b0-475d-b9db-aa6b5c5ec34b",
|
|
4169
|
+
"2313efe4-8551-4b53-a790-a4b5ef1c5e97",
|
|
4170
|
+
"3b97b910-ef56-49b9-8f2e-51cc8c0a6fbe",
|
|
4171
|
+
"be504799-9d25-48d7-8fa7-4e93253fe38b",
|
|
4172
|
+
"05ff2313-2661-43b3-8e8e-f6429258c3ba",
|
|
4173
|
+
"423932ef-de52-47c7-9be1-e894ad88017b",
|
|
4174
|
+
"5744ef2d-5284-4f86-ad7e-5f12196331d6",
|
|
4175
|
+
"04b44b13-9849-40c7-8882-a58379ca3b23"
|
|
4176
4176
|
],
|
|
4177
4177
|
"failures": [],
|
|
4178
4178
|
"pending": [],
|
|
4179
4179
|
"skipped": [],
|
|
4180
|
-
"duration":
|
|
4180
|
+
"duration": 1,
|
|
4181
4181
|
"root": false,
|
|
4182
4182
|
"rootEmpty": false,
|
|
4183
4183
|
"_timeout": 2000
|
|
@@ -4193,7 +4193,7 @@
|
|
|
4193
4193
|
"_timeout": 2000
|
|
4194
4194
|
},
|
|
4195
4195
|
{
|
|
4196
|
-
"uuid": "
|
|
4196
|
+
"uuid": "aee17458-9035-41f5-bd71-26ce1539e034",
|
|
4197
4197
|
"title": "Tools",
|
|
4198
4198
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
|
|
4199
4199
|
"file": "/test/tools.ts",
|
|
@@ -4202,7 +4202,7 @@
|
|
|
4202
4202
|
"tests": [],
|
|
4203
4203
|
"suites": [
|
|
4204
4204
|
{
|
|
4205
|
-
"uuid": "
|
|
4205
|
+
"uuid": "98f033ba-7750-4465-894d-8dd4d4cfb7e7",
|
|
4206
4206
|
"title": "addRequestId() / removeRequestId()",
|
|
4207
4207
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
|
|
4208
4208
|
"file": "/test/tools.ts",
|
|
@@ -4222,8 +4222,8 @@
|
|
|
4222
4222
|
"context": null,
|
|
4223
4223
|
"code": "const id = addRequestId();\nassert.strictEqual(typeof id, 'string');\nremoveRequestId(id);",
|
|
4224
4224
|
"err": {},
|
|
4225
|
-
"uuid": "
|
|
4226
|
-
"parentUUID": "
|
|
4225
|
+
"uuid": "060d367a-d653-42e5-9c62-3e1fe0401d62",
|
|
4226
|
+
"parentUUID": "98f033ba-7750-4465-894d-8dd4d4cfb7e7",
|
|
4227
4227
|
"isHook": false,
|
|
4228
4228
|
"skipped": false
|
|
4229
4229
|
},
|
|
@@ -4240,16 +4240,16 @@
|
|
|
4240
4240
|
"context": null,
|
|
4241
4241
|
"code": "removeRequestId('FOO');",
|
|
4242
4242
|
"err": {},
|
|
4243
|
-
"uuid": "
|
|
4244
|
-
"parentUUID": "
|
|
4243
|
+
"uuid": "b763a00e-9ea4-4698-82ae-d14caa338bfd",
|
|
4244
|
+
"parentUUID": "98f033ba-7750-4465-894d-8dd4d4cfb7e7",
|
|
4245
4245
|
"isHook": false,
|
|
4246
4246
|
"skipped": false
|
|
4247
4247
|
}
|
|
4248
4248
|
],
|
|
4249
4249
|
"suites": [],
|
|
4250
4250
|
"passes": [
|
|
4251
|
-
"
|
|
4252
|
-
"
|
|
4251
|
+
"060d367a-d653-42e5-9c62-3e1fe0401d62",
|
|
4252
|
+
"b763a00e-9ea4-4698-82ae-d14caa338bfd"
|
|
4253
4253
|
],
|
|
4254
4254
|
"failures": [],
|
|
4255
4255
|
"pending": [],
|
|
@@ -4260,7 +4260,7 @@
|
|
|
4260
4260
|
"_timeout": 2000
|
|
4261
4261
|
},
|
|
4262
4262
|
{
|
|
4263
|
-
"uuid": "
|
|
4263
|
+
"uuid": "f0d462f0-58ab-42fb-8a90-3da2fd10859d",
|
|
4264
4264
|
"title": "debug()",
|
|
4265
4265
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
|
|
4266
4266
|
"file": "/test/tools.ts",
|
|
@@ -4280,8 +4280,8 @@
|
|
|
4280
4280
|
"context": null,
|
|
4281
4281
|
"code": "debug('TEST', 'Hello World.', {});",
|
|
4282
4282
|
"err": {},
|
|
4283
|
-
"uuid": "
|
|
4284
|
-
"parentUUID": "
|
|
4283
|
+
"uuid": "e354eab9-f1a0-4acc-b078-6eceec92394d",
|
|
4284
|
+
"parentUUID": "f0d462f0-58ab-42fb-8a90-3da2fd10859d",
|
|
4285
4285
|
"isHook": false,
|
|
4286
4286
|
"skipped": false
|
|
4287
4287
|
},
|
|
@@ -4289,7 +4289,7 @@
|
|
|
4289
4289
|
"title": "should work with default logger",
|
|
4290
4290
|
"fullTitle": "Tools debug() should work with default logger",
|
|
4291
4291
|
"timedOut": false,
|
|
4292
|
-
"duration":
|
|
4292
|
+
"duration": 1,
|
|
4293
4293
|
"state": "passed",
|
|
4294
4294
|
"speed": "fast",
|
|
4295
4295
|
"pass": true,
|
|
@@ -4298,8 +4298,8 @@
|
|
|
4298
4298
|
"context": null,
|
|
4299
4299
|
"code": "debug('TEST', 'Hello World.', { debug: true });",
|
|
4300
4300
|
"err": {},
|
|
4301
|
-
"uuid": "
|
|
4302
|
-
"parentUUID": "
|
|
4301
|
+
"uuid": "f1e8d88c-7a98-4613-b435-bb5de7c320f0",
|
|
4302
|
+
"parentUUID": "f0d462f0-58ab-42fb-8a90-3da2fd10859d",
|
|
4303
4303
|
"isHook": false,
|
|
4304
4304
|
"skipped": false
|
|
4305
4305
|
},
|
|
@@ -4316,8 +4316,8 @@
|
|
|
4316
4316
|
"context": null,
|
|
4317
4317
|
"code": "debug('TEST', 'Hello World.', {\n debug: function (msg) {\n assert.strictEqual(this, null);\n assert.ok(msg.includes('Hello World'));\n }\n});",
|
|
4318
4318
|
"err": {},
|
|
4319
|
-
"uuid": "
|
|
4320
|
-
"parentUUID": "
|
|
4319
|
+
"uuid": "fe9990a0-3e40-4e36-971d-d091a0fc7682",
|
|
4320
|
+
"parentUUID": "f0d462f0-58ab-42fb-8a90-3da2fd10859d",
|
|
4321
4321
|
"isHook": false,
|
|
4322
4322
|
"skipped": false
|
|
4323
4323
|
},
|
|
@@ -4334,8 +4334,8 @@
|
|
|
4334
4334
|
"context": null,
|
|
4335
4335
|
"code": "debug('TEST', 'Hello World.', { noColors: true });",
|
|
4336
4336
|
"err": {},
|
|
4337
|
-
"uuid": "
|
|
4338
|
-
"parentUUID": "
|
|
4337
|
+
"uuid": "f775e34d-254f-4cf7-9a14-acd9232dbbf7",
|
|
4338
|
+
"parentUUID": "f0d462f0-58ab-42fb-8a90-3da2fd10859d",
|
|
4339
4339
|
"isHook": false,
|
|
4340
4340
|
"skipped": false
|
|
4341
4341
|
},
|
|
@@ -4352,30 +4352,30 @@
|
|
|
4352
4352
|
"context": null,
|
|
4353
4353
|
"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
4354
|
"err": {},
|
|
4355
|
-
"uuid": "
|
|
4356
|
-
"parentUUID": "
|
|
4355
|
+
"uuid": "f839e6f0-5b07-449e-9413-1d1443a8b288",
|
|
4356
|
+
"parentUUID": "f0d462f0-58ab-42fb-8a90-3da2fd10859d",
|
|
4357
4357
|
"isHook": false,
|
|
4358
4358
|
"skipped": false
|
|
4359
4359
|
}
|
|
4360
4360
|
],
|
|
4361
4361
|
"suites": [],
|
|
4362
4362
|
"passes": [
|
|
4363
|
-
"
|
|
4364
|
-
"
|
|
4365
|
-
"
|
|
4366
|
-
"
|
|
4367
|
-
"
|
|
4363
|
+
"e354eab9-f1a0-4acc-b078-6eceec92394d",
|
|
4364
|
+
"f1e8d88c-7a98-4613-b435-bb5de7c320f0",
|
|
4365
|
+
"fe9990a0-3e40-4e36-971d-d091a0fc7682",
|
|
4366
|
+
"f775e34d-254f-4cf7-9a14-acd9232dbbf7",
|
|
4367
|
+
"f839e6f0-5b07-449e-9413-1d1443a8b288"
|
|
4368
4368
|
],
|
|
4369
4369
|
"failures": [],
|
|
4370
4370
|
"pending": [],
|
|
4371
4371
|
"skipped": [],
|
|
4372
|
-
"duration":
|
|
4372
|
+
"duration": 1,
|
|
4373
4373
|
"root": false,
|
|
4374
4374
|
"rootEmpty": false,
|
|
4375
4375
|
"_timeout": 2000
|
|
4376
4376
|
},
|
|
4377
4377
|
{
|
|
4378
|
-
"uuid": "
|
|
4378
|
+
"uuid": "d19731d1-70ab-4f6c-9d12-cafe1cce793d",
|
|
4379
4379
|
"title": "getExecutable()",
|
|
4380
4380
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
|
|
4381
4381
|
"file": "/test/tools.ts",
|
|
@@ -4395,8 +4395,8 @@
|
|
|
4395
4395
|
"context": null,
|
|
4396
4396
|
"code": "const result = getExecutable(NodePyATVExecutableType.atvremote, {\n atvremotePath: '/tmp/1',\n atvscriptPath: '/tmp/2'\n});\nassert.strictEqual(result, '/tmp/1');",
|
|
4397
4397
|
"err": {},
|
|
4398
|
-
"uuid": "
|
|
4399
|
-
"parentUUID": "
|
|
4398
|
+
"uuid": "d3c717ba-ccba-43af-b7f2-1e4a0a9a48e4",
|
|
4399
|
+
"parentUUID": "d19731d1-70ab-4f6c-9d12-cafe1cce793d",
|
|
4400
4400
|
"isHook": false,
|
|
4401
4401
|
"skipped": false
|
|
4402
4402
|
},
|
|
@@ -4413,8 +4413,8 @@
|
|
|
4413
4413
|
"context": null,
|
|
4414
4414
|
"code": "const result = getExecutable(NodePyATVExecutableType.atvscript, {\n atvremotePath: '/tmp/1',\n atvscriptPath: '/tmp/2'\n});\nassert.strictEqual(result, '/tmp/2');",
|
|
4415
4415
|
"err": {},
|
|
4416
|
-
"uuid": "
|
|
4417
|
-
"parentUUID": "
|
|
4416
|
+
"uuid": "31e241a4-8510-492f-b148-f003b61001ca",
|
|
4417
|
+
"parentUUID": "d19731d1-70ab-4f6c-9d12-cafe1cce793d",
|
|
4418
4418
|
"isHook": false,
|
|
4419
4419
|
"skipped": false
|
|
4420
4420
|
},
|
|
@@ -4431,8 +4431,8 @@
|
|
|
4431
4431
|
"context": null,
|
|
4432
4432
|
"code": "const result = getExecutable(NodePyATVExecutableType.atvremote, {\n atvscriptPath: '/tmp'\n});\nassert.strictEqual(result, 'atvremote');",
|
|
4433
4433
|
"err": {},
|
|
4434
|
-
"uuid": "
|
|
4435
|
-
"parentUUID": "
|
|
4434
|
+
"uuid": "d3132ea8-8494-4bab-9cc2-6ea6228ede68",
|
|
4435
|
+
"parentUUID": "d19731d1-70ab-4f6c-9d12-cafe1cce793d",
|
|
4436
4436
|
"isHook": false,
|
|
4437
4437
|
"skipped": false
|
|
4438
4438
|
},
|
|
@@ -4449,18 +4449,18 @@
|
|
|
4449
4449
|
"context": null,
|
|
4450
4450
|
"code": "const result = getExecutable(NodePyATVExecutableType.atvscript, {\n atvremotePath: '/tmp'\n});\nassert.strictEqual(result, 'atvscript');",
|
|
4451
4451
|
"err": {},
|
|
4452
|
-
"uuid": "
|
|
4453
|
-
"parentUUID": "
|
|
4452
|
+
"uuid": "fd86466f-5bbe-4dcd-b9df-79291da8ceb9",
|
|
4453
|
+
"parentUUID": "d19731d1-70ab-4f6c-9d12-cafe1cce793d",
|
|
4454
4454
|
"isHook": false,
|
|
4455
4455
|
"skipped": false
|
|
4456
4456
|
}
|
|
4457
4457
|
],
|
|
4458
4458
|
"suites": [],
|
|
4459
4459
|
"passes": [
|
|
4460
|
-
"
|
|
4461
|
-
"
|
|
4462
|
-
"
|
|
4463
|
-
"
|
|
4460
|
+
"d3c717ba-ccba-43af-b7f2-1e4a0a9a48e4",
|
|
4461
|
+
"31e241a4-8510-492f-b148-f003b61001ca",
|
|
4462
|
+
"d3132ea8-8494-4bab-9cc2-6ea6228ede68",
|
|
4463
|
+
"fd86466f-5bbe-4dcd-b9df-79291da8ceb9"
|
|
4464
4464
|
],
|
|
4465
4465
|
"failures": [],
|
|
4466
4466
|
"pending": [],
|
|
@@ -4471,7 +4471,7 @@
|
|
|
4471
4471
|
"_timeout": 2000
|
|
4472
4472
|
},
|
|
4473
4473
|
{
|
|
4474
|
-
"uuid": "
|
|
4474
|
+
"uuid": "31f1a504-6f39-4e1b-b4bd-9a1fe57e7064",
|
|
4475
4475
|
"title": "getParameters()",
|
|
4476
4476
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
|
|
4477
4477
|
"file": "/test/tools.ts",
|
|
@@ -4482,7 +4482,7 @@
|
|
|
4482
4482
|
"title": "empty case",
|
|
4483
4483
|
"fullTitle": "Tools getParameters() empty case",
|
|
4484
4484
|
"timedOut": false,
|
|
4485
|
-
"duration":
|
|
4485
|
+
"duration": 1,
|
|
4486
4486
|
"state": "passed",
|
|
4487
4487
|
"speed": "fast",
|
|
4488
4488
|
"pass": true,
|
|
@@ -4491,8 +4491,8 @@
|
|
|
4491
4491
|
"context": null,
|
|
4492
4492
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield getParamters();\n assert.deepEqual(result, []);\n});",
|
|
4493
4493
|
"err": {},
|
|
4494
|
-
"uuid": "
|
|
4495
|
-
"parentUUID": "
|
|
4494
|
+
"uuid": "d621c73b-b71e-4e1a-a1cb-b81324f4f578",
|
|
4495
|
+
"parentUUID": "31f1a504-6f39-4e1b-b4bd-9a1fe57e7064",
|
|
4496
4496
|
"isHook": false,
|
|
4497
4497
|
"skipped": false
|
|
4498
4498
|
},
|
|
@@ -4500,7 +4500,7 @@
|
|
|
4500
4500
|
"title": "easy case",
|
|
4501
4501
|
"fullTitle": "Tools getParameters() easy case",
|
|
4502
4502
|
"timedOut": false,
|
|
4503
|
-
"duration":
|
|
4503
|
+
"duration": 0,
|
|
4504
4504
|
"state": "passed",
|
|
4505
4505
|
"speed": "fast",
|
|
4506
4506
|
"pass": true,
|
|
@@ -4509,8 +4509,8 @@
|
|
|
4509
4509
|
"context": null,
|
|
4510
4510
|
"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
4511
|
"err": {},
|
|
4512
|
-
"uuid": "
|
|
4513
|
-
"parentUUID": "
|
|
4512
|
+
"uuid": "1ca5b167-6e73-4550-ba98-11d9c4d695ca",
|
|
4513
|
+
"parentUUID": "31f1a504-6f39-4e1b-b4bd-9a1fe57e7064",
|
|
4514
4514
|
"isHook": false,
|
|
4515
4515
|
"skipped": false
|
|
4516
4516
|
},
|
|
@@ -4518,7 +4518,7 @@
|
|
|
4518
4518
|
"title": "full case",
|
|
4519
4519
|
"fullTitle": "Tools getParameters() full case",
|
|
4520
4520
|
"timedOut": false,
|
|
4521
|
-
"duration":
|
|
4521
|
+
"duration": 1,
|
|
4522
4522
|
"state": "passed",
|
|
4523
4523
|
"speed": "fast",
|
|
4524
4524
|
"pass": true,
|
|
@@ -4527,28 +4527,28 @@
|
|
|
4527
4527
|
"context": null,
|
|
4528
4528
|
"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
4529
|
"err": {},
|
|
4530
|
-
"uuid": "
|
|
4531
|
-
"parentUUID": "
|
|
4530
|
+
"uuid": "a721e8d2-6527-42c8-ae23-7d129951e2c6",
|
|
4531
|
+
"parentUUID": "31f1a504-6f39-4e1b-b4bd-9a1fe57e7064",
|
|
4532
4532
|
"isHook": false,
|
|
4533
4533
|
"skipped": false
|
|
4534
4534
|
}
|
|
4535
4535
|
],
|
|
4536
4536
|
"suites": [],
|
|
4537
4537
|
"passes": [
|
|
4538
|
-
"
|
|
4539
|
-
"
|
|
4540
|
-
"
|
|
4538
|
+
"d621c73b-b71e-4e1a-a1cb-b81324f4f578",
|
|
4539
|
+
"1ca5b167-6e73-4550-ba98-11d9c4d695ca",
|
|
4540
|
+
"a721e8d2-6527-42c8-ae23-7d129951e2c6"
|
|
4541
4541
|
],
|
|
4542
4542
|
"failures": [],
|
|
4543
4543
|
"pending": [],
|
|
4544
4544
|
"skipped": [],
|
|
4545
|
-
"duration":
|
|
4545
|
+
"duration": 2,
|
|
4546
4546
|
"root": false,
|
|
4547
4547
|
"rootEmpty": false,
|
|
4548
4548
|
"_timeout": 2000
|
|
4549
4549
|
},
|
|
4550
4550
|
{
|
|
4551
|
-
"uuid": "
|
|
4551
|
+
"uuid": "c91469ae-ce5e-4053-875c-3b71d7beaae4",
|
|
4552
4552
|
"title": "parseState()",
|
|
4553
4553
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
|
|
4554
4554
|
"file": "/test/tools.ts",
|
|
@@ -4568,8 +4568,8 @@
|
|
|
4568
4568
|
"context": null,
|
|
4569
4569
|
"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
4570
|
"err": {},
|
|
4571
|
-
"uuid": "
|
|
4572
|
-
"parentUUID": "
|
|
4571
|
+
"uuid": "0d112915-9eeb-4c7f-95d9-934c05f66277",
|
|
4572
|
+
"parentUUID": "c91469ae-ce5e-4053-875c-3b71d7beaae4",
|
|
4573
4573
|
"isHook": false,
|
|
4574
4574
|
"skipped": false
|
|
4575
4575
|
},
|
|
@@ -4586,8 +4586,8 @@
|
|
|
4586
4586
|
"context": null,
|
|
4587
4587
|
"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
4588
|
"err": {},
|
|
4589
|
-
"uuid": "
|
|
4590
|
-
"parentUUID": "
|
|
4589
|
+
"uuid": "2c131b2b-bf16-4941-a26f-483da71c0486",
|
|
4590
|
+
"parentUUID": "c91469ae-ce5e-4053-875c-3b71d7beaae4",
|
|
4591
4591
|
"isHook": false,
|
|
4592
4592
|
"skipped": false
|
|
4593
4593
|
},
|
|
@@ -4595,7 +4595,7 @@
|
|
|
4595
4595
|
"title": "should work with example data",
|
|
4596
4596
|
"fullTitle": "Tools parseState() should work with example data",
|
|
4597
4597
|
"timedOut": false,
|
|
4598
|
-
"duration":
|
|
4598
|
+
"duration": 1,
|
|
4599
4599
|
"state": "passed",
|
|
4600
4600
|
"speed": "fast",
|
|
4601
4601
|
"pass": true,
|
|
@@ -4604,8 +4604,8 @@
|
|
|
4604
4604
|
"context": null,
|
|
4605
4605
|
"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
4606
|
"err": {},
|
|
4607
|
-
"uuid": "
|
|
4608
|
-
"parentUUID": "
|
|
4607
|
+
"uuid": "6202ace7-f5d6-4639-9859-e64c9379fb39",
|
|
4608
|
+
"parentUUID": "c91469ae-ce5e-4053-875c-3b71d7beaae4",
|
|
4609
4609
|
"isHook": false,
|
|
4610
4610
|
"skipped": false
|
|
4611
4611
|
},
|
|
@@ -4622,8 +4622,8 @@
|
|
|
4622
4622
|
"context": null,
|
|
4623
4623
|
"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
4624
|
"err": {},
|
|
4625
|
-
"uuid": "
|
|
4626
|
-
"parentUUID": "
|
|
4625
|
+
"uuid": "77898aec-c125-4014-80f9-ebe64352b68e",
|
|
4626
|
+
"parentUUID": "c91469ae-ce5e-4053-875c-3b71d7beaae4",
|
|
4627
4627
|
"isHook": false,
|
|
4628
4628
|
"skipped": false
|
|
4629
4629
|
},
|
|
@@ -4640,8 +4640,8 @@
|
|
|
4640
4640
|
"context": null,
|
|
4641
4641
|
"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
4642
|
"err": {},
|
|
4643
|
-
"uuid": "
|
|
4644
|
-
"parentUUID": "
|
|
4643
|
+
"uuid": "a8755826-5913-4efb-948e-0b3cba563c4c",
|
|
4644
|
+
"parentUUID": "c91469ae-ce5e-4053-875c-3b71d7beaae4",
|
|
4645
4645
|
"isHook": false,
|
|
4646
4646
|
"skipped": false
|
|
4647
4647
|
},
|
|
@@ -4649,7 +4649,7 @@
|
|
|
4649
4649
|
"title": "should ignore data if unsupported type",
|
|
4650
4650
|
"fullTitle": "Tools parseState() should ignore data if unsupported type",
|
|
4651
4651
|
"timedOut": false,
|
|
4652
|
-
"duration":
|
|
4652
|
+
"duration": 0,
|
|
4653
4653
|
"state": "passed",
|
|
4654
4654
|
"speed": "fast",
|
|
4655
4655
|
"pass": true,
|
|
@@ -4658,8 +4658,8 @@
|
|
|
4658
4658
|
"context": null,
|
|
4659
4659
|
"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
4660
|
"err": {},
|
|
4661
|
-
"uuid": "
|
|
4662
|
-
"parentUUID": "
|
|
4661
|
+
"uuid": "6623cd3a-2303-4616-8ca5-427193c4a4f3",
|
|
4662
|
+
"parentUUID": "c91469ae-ce5e-4053-875c-3b71d7beaae4",
|
|
4663
4663
|
"isHook": false,
|
|
4664
4664
|
"skipped": false
|
|
4665
4665
|
},
|
|
@@ -4676,21 +4676,21 @@
|
|
|
4676
4676
|
"context": null,
|
|
4677
4677
|
"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
4678
|
"err": {},
|
|
4679
|
-
"uuid": "
|
|
4680
|
-
"parentUUID": "
|
|
4679
|
+
"uuid": "01c73d78-2743-4790-8275-abc5e22cb847",
|
|
4680
|
+
"parentUUID": "c91469ae-ce5e-4053-875c-3b71d7beaae4",
|
|
4681
4681
|
"isHook": false,
|
|
4682
4682
|
"skipped": false
|
|
4683
4683
|
}
|
|
4684
4684
|
],
|
|
4685
4685
|
"suites": [],
|
|
4686
4686
|
"passes": [
|
|
4687
|
-
"
|
|
4688
|
-
"
|
|
4689
|
-
"
|
|
4690
|
-
"
|
|
4691
|
-
"
|
|
4692
|
-
"
|
|
4693
|
-
"
|
|
4687
|
+
"0d112915-9eeb-4c7f-95d9-934c05f66277",
|
|
4688
|
+
"2c131b2b-bf16-4941-a26f-483da71c0486",
|
|
4689
|
+
"6202ace7-f5d6-4639-9859-e64c9379fb39",
|
|
4690
|
+
"77898aec-c125-4014-80f9-ebe64352b68e",
|
|
4691
|
+
"a8755826-5913-4efb-948e-0b3cba563c4c",
|
|
4692
|
+
"6623cd3a-2303-4616-8ca5-427193c4a4f3",
|
|
4693
|
+
"01c73d78-2743-4790-8275-abc5e22cb847"
|
|
4694
4694
|
],
|
|
4695
4695
|
"failures": [],
|
|
4696
4696
|
"pending": [],
|