Skip to content

Commit

Permalink
chore: update synthetic monitoring with latest pokeshop changes (#3424)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbdias committed Dec 5, 2023
1 parent 8ea7a6c commit be2f70a
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/scheduled-jobs.yml
Expand Up @@ -23,7 +23,7 @@ jobs:
tracetest configure --token ${{secrets.TRACETEST_POKESHOP_TOKEN}}
- name: Run synthetic monitoring tests
run: |
tracetest run testsuite --file ./testing/synthetic-monitoring/pokeshop/_testsuite.yaml
tracetest run testsuite --file ./testing/synthetic-monitoring/pokeshop/_testsuite.yaml --vars ./testing/synthetic-monitoring/pokeshop/_variableset.yaml
- name: Send message on Slack in case of failure
if: ${{ failure() }}
uses: slackapi/slack-github-action@v1.24.0
Expand Down
Expand Up @@ -7,7 +7,7 @@ spec:
type: http
httpRequest:
method: POST
url: http://demo-pokeshop/pokemon
url: ${var:POKESHOP_API_URL}/pokemon
body: |
{
"name": "meowth",
Expand Down
Expand Up @@ -7,7 +7,7 @@ spec:
type: http
httpRequest:
method: POST
url: http://demo-pokeshop/pokemon/import
url: ${var:POKESHOP_API_URL}/pokemon/import
body: |
{
"id": 143
Expand Down
Expand Up @@ -7,7 +7,7 @@ spec:
type: kafka
kafka:
brokerUrls:
- stream:9092
- ${var:POKESHOP_KAFKA_BROKER}
topic: pokemon
headers: []
messageKey: snorlax-key
Expand Down
Expand Up @@ -7,7 +7,7 @@ spec:
type: http
httpRequest:
method: GET
url: http://demo-pokeshop/pokemon?take=100&skip=0
url: ${var:POKESHOP_API_URL}/pokemon?take=100&skip=0
headers:
- key: Content-Type
value: application/json
Expand Down
9 changes: 9 additions & 0 deletions testing/synthetic-monitoring/pokeshop/_variableset.yaml
@@ -0,0 +1,9 @@
type: VariableSet
spec:
id: tracetesting-vars
name: tracetesting-vars
values:
- key: POKESHOP_API_URL
value: https://demo-pokeshop.tracetest.io
- key: POKESHOP_KAFKA_BROKER
value: demo-pokeshop.tracetest.io:9092

0 comments on commit be2f70a

Please sign in to comment.