flamenco/debug-worker-add.sh
Vivian Leung dbb393f62f 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
2025-06-10 11:41:19 +02:00

13 lines
322 B
Bash
Executable File

#!/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"]
}'