Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/ai-gateway-automated-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ jobs:
echo "KONG_IMAGE_NAME=${INPUT_IMAGE%:*}" >> $GITHUB_ENV
echo "KONG_IMAGE_TAG=${INPUT_IMAGE##*:}" >> $GITHUB_ENV

- name: Pre-pull AI Gateway quickstart dependencies
run: docker pull ghcr.io/jqlang/jq:latest

- name: Run tests
working-directory: tools/automated-tests
shell: bash
Expand Down Expand Up @@ -86,7 +89,7 @@ jobs:
TESTS_GCP_SERVICE_ACCOUNT_JSON_BASE64: ${{ secrets.GCP_SERVICE_ACCOUNT_JSON_BASE64 }}
TESTS_VERTEX_UPSTREAM_URL: ${{ secrets.VERTEX_UPSTREAM_URL }}
run: |
npm run run-tests
DEBUG=tests:* npm run run-tests

- name: Publish Test Report
uses: './.github/reusable-steps/publish-test-report'
Expand Down
2 changes: 2 additions & 0 deletions app/_how-tos/ai-gateway/map-api-to-mcp-tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ Before creating an [MCP Server](/ai-gateway/entities/ai-mcp-server/) entity, you
```sh
docker run -d \
--name swagger-petstore \
--network kong-ai-quickstart-net \
--network-alias host.docker.internal \
-p 8080:8080 \
swaggerapi/petstore3:latest
```
Expand Down
2 changes: 2 additions & 0 deletions app/_includes/prereqs/third-party/swagger-petstore.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ This tutorial uses Swagger's Petstore API, run the following command to start th
```sh
docker run -d \
--name swagger-petstore \
--network kong-ai-quickstart-net \
--network-alias host.docker.internal \
-p 8080:8080 \
swaggerapi/petstore3:latest
```
Expand Down
9 changes: 4 additions & 5 deletions tools/automated-tests/config/runtimes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,20 +145,19 @@ konnect:
env:
WEBHOOK_URL: http://httpbin.konghq.com/anything
SLACK_WEBHOOK_URL: http://httpbin.konghq.com/anything
KONNECT_DOMAIN: konghq.tech
KONGCTL_DEFAULT_KONNECT_ENVIRONMENT: tech
OUTPUT_DIR: ./kong/quickstart
setup:
commands:
- curl -Ls https://get.konghq.com/ai | bash -s -- -r "" -k $KONNECT_TOKEN -i $KONG_IMAGE_NAME -t $KONG_IMAGE_TAG -e KONG_NGINX_HTTP_CLIENT_BODY_BUFFER_SIZE=2m | grep '^export AI_GATEWAY_ID' >> /env-vars.sh
- curl -Ls https://get.konghq.com/ai | bash -s -- -r "" -k $KONNECT_TOKEN -i $KONG_IMAGE_NAME -t $KONG_IMAGE_TAG -e KONG_NGINX_HTTP_CLIENT_BODY_BUFFER_SIZE=2m -n automated-tests-ai-gateway-quickstart
- sleep 5

cleanup:
commands:
- curl -Ls https://get.konghq.com/ai | bash -s -- -k $KONNECT_TOKEN -d
- curl -Ls https://get.konghq.com/ai | bash -s -- -k $KONNECT_TOKEN -d -n automated-tests-ai-gateway-quickstart

reset:
commands:
- curl -Ls https://get.konghq.com/ai | bash -s -- -r "" -k $KONNECT_TOKEN -i $KONG_IMAGE_NAME -t $KONG_IMAGE_TAG -e KONG_NGINX_HTTP_CLIENT_BODY_BUFFER_SIZE=2m | grep '^export AI_GATEWAY_ID' >> /env-vars.sh
- curl -Ls https://get.konghq.com/ai | bash -s -- -r "" -k $KONNECT_TOKEN -i $KONG_IMAGE_NAME -t $KONG_IMAGE_TAG -e KONG_NGINX_HTTP_CLIENT_BODY_BUFFER_SIZE=2m -n automated-tests-ai-gateway-quickstart | grep '^export AI_GATEWAY_ID' >> /env-vars.sh
- sleep 5
event-gateway:
setup:
Expand Down
Loading