Skip to content

Commit b789065

Browse files
authored
Merge pull request #56 from nextcloud/fix/integration-test-ddg
fix(integration_test): Use duckduckgo instead of OSM API
2 parents 153a2fb + ef1c0bd commit b789065

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/integration_test.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ jobs:
198198
CREDS: "alice:alice"
199199
run: |
200200
sleep 300
201-
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": "What are the coordinates of Berlin, Germany?", "confirmation":1, "conversation_token": ""},"type":"core:contextagent:interaction", "appId": "test", "customId": ""}')
201+
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": "Search duckduckgo for Nextcloud", "confirmation":1, "conversation_token": ""},"type":"core:contextagent:interaction", "appId": "test", "customId": ""}')
202202
echo $TASK
203203
TASK_ID=$(echo $TASK | jq '.ocs.data.task.id')
204204
NEXT_WAIT_TIME=0
@@ -215,9 +215,8 @@ jobs:
215215
[ "$TASK_STATUS" == '"STATUS_SUCCESSFUL"' ]
216216
echo $TASK | jq '.ocs.data.task.output.output'
217217
echo $TASK | jq '.ocs.data.task.output.sources'
218-
echo $TASK | jq '.ocs.data.task.output.sources' | grep -q get_coordinates_for_address
219-
echo $TASK | jq '.ocs.data.task.output.output' | grep -q '52.'
220-
echo $TASK | jq '.ocs.data.task.output.output' | grep -q '13.'
218+
echo $TASK | jq '.ocs.data.task.output.sources' | grep -q 'duckduckgo_results_json'
219+
echo $TASK | jq '.ocs.data.task.output.output' | grep -q 'Nextcloud'
221220
222221
- name: Show nextcloud logs
223222
if: always()

0 commit comments

Comments
 (0)