From dbb393f62ff08d571612c5b584c3c0bf2db8ade4 Mon Sep 17 00:00:00 2001 From: Vivian Leung Date: Fri, 30 May 2025 01:54:46 -0700 Subject: [PATCH] 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 --- debug-worker-add.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 debug-worker-add.sh diff --git a/debug-worker-add.sh b/debug-worker-add.sh new file mode 100755 index 00000000..62a154eb --- /dev/null +++ b/debug-worker-add.sh @@ -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"] +}'