Skip to content

Commit 5416c53

Browse files
committed
Test update trigger endpoint in CI too
1 parent 193b129 commit 5416c53

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

test/distributables-test/unix.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,8 @@ curl "$WITH_ORIGIN" "$AS_JSON" -v --fail http://127.0.0.1:45457/ -d '{"query": "
2727
# Can query interceptors
2828
curl "$WITH_ORIGIN" "$AS_JSON" -v --fail http://127.0.0.1:45457/ -d '{"query": "query getInterceptors { interceptors { id version, metadata isActivable isActive(proxyPort: 8000) } }"}'
2929

30+
# Can trigger update (can't test that it actually updates, unfortunately)
31+
curl "$WITH_ORIGIN" "$AS_JSON" -v --fail http://127.0.0.1:45457/ -d '{"query": "mutation TriggerUpdate { triggerUpdate }"}'
32+
3033
# ^ This will fail if they receive anything but a 200 result.
3134
# This ensures that the server is startable, and has minimal functionality for launch.

test/distributables-test/windows.bat

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ curl %WITH_ORIGIN% %AS_JSON% -v --fail http://127.0.0.1:45457/ -d "{\"query\": \
2828
REM Can query interceptors
2929
curl %WITH_ORIGIN% %AS_JSON% -v --fail http://127.0.0.1:45457/ -d "{\"query\": \"query getInterceptors { interceptors { id version, metadata isActivable isActive(proxyPort: 8000) } }\"}" || goto :error
3030

31+
REM Can trigger update (can't test that it actually updates, unfortunately)
32+
curl %WITH_ORIGIN% %AS_JSON% -v --fail http://127.0.0.1:45457/ -d "{\"query\": \"mutation TriggerUpdate { triggerUpdate }\"}" || goto :error
33+
3134
REM ^ This will fail if they receive anything but a 200 result.
3235
REM This ensures that the server is startable, and has minimal functionality for launch.
3336

0 commit comments

Comments
 (0)