Add a test script to add a mock Worker (#104394)
Add a script `debug-worker-add.sh` which allows additions of mock workers to Flamenco. It is useful for testing the UI for larger lists of worker items. It assists the development of multi-selection for workers #104395 Reviewed-on: https://projects.blender.org/studio/flamenco/pulls/104394
This commit is contained in:
parent
542fb5403b
commit
dbb393f62f
12
debug-worker-add.sh
Executable file
12
debug-worker-add.sh
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
curl -v -X 'POST' \
|
||||||
|
'http://localhost:8080/api/v3/worker/register-worker' \
|
||||||
|
-H 'accept: application/json' \
|
||||||
|
-H 'Content-Type: application/json' \
|
||||||
|
-d '{
|
||||||
|
"name": "Test Worker",
|
||||||
|
"secret": "abcdefg",
|
||||||
|
"platform": "Linux",
|
||||||
|
"supported_task_types": ["blender", "ffmpeg", "file-management", "misc"]
|
||||||
|
}'
|
Loading…
x
Reference in New Issue
Block a user