Skip to content

Commit fb3733c

Browse files
committed
fix: integration test
Signed-off-by: Anupam Kumar <[email protected]>
1 parent 515fc79 commit fb3733c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/integration-test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,14 @@ jobs:
146146
env:
147147
CREDS: "admin:password"
148148
run: |
149+
TASKTYPES=$(curl -u "$CREDS" -H "oCS-APIRequest: true" -H "Content-type: application/json" http://localhost:8080/ocs/v2.php/taskprocessing/tasktypes?format=json | jq '.ocs.data.types')
150+
echo $TASKTYPES
151+
[ "$(echo $TASKTYPES | jq -r '.[0].id')" == "core:text2text:translate" ]
152+
149153
TASK=$(curl -X POST -u "$CREDS" -H "oCS-APIRequest: true" -H "Content-type: application/json" http://localhost:8080/ocs/v2.php/taskprocessing/schedule?format=json --data-raw '{"input": {"input": "Hello World!"},"type":"core:text2text:translate", "appId": "test", "customId": ""}')
150154
echo $TASK
155+
[ "$(echo $TASK | jq -r '.ocs.meta.status')" == "OK" ]
156+
151157
TASK_ID=$(echo $TASK | jq '.ocs.data.task.id')
152158
NEXT_WAIT_TIME=0
153159
TASK_STATUS='"STATUS_SCHEDULED"'

0 commit comments

Comments
 (0)