-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
27e7ed2
commit a1d286a
Showing
5 changed files
with
108 additions
and
30 deletions.
There are no files selected for viewing
16 changes: 7 additions & 9 deletions
16
ci/tests/tracing/scenarios/tyk_test-graphql-tracing_200.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,20 @@ | ||
type: Test | ||
spec: | ||
id: hXtQIVq4R | ||
id: smwk-S3VR | ||
name: Test Graphql Tracing | ||
description: Test Graphql Tracing | ||
description: Test Graphql Tracing And Proper Spans | ||
trigger: | ||
type: http | ||
httpRequest: | ||
method: GET | ||
url: tyk:8080/test-graphql-tracing/test-grapql-tracing | ||
method: POST | ||
url: tyk:8080/test-graphql-tracing/test-graphql-tracing | ||
body: "{\n \"query\": \"{\\n country(code: \\\"NG\\\"){\\n name\\n }\\n}\"\n}" | ||
headers: | ||
- key: Content-Type | ||
value: application/json | ||
specs: | ||
- selector: span[tracetest.span.type="general" name="GraphqlEngine"] | ||
name: Check if the graphql engine span exists | ||
assertions: | ||
- attr:name = "GraphqlEngine" | ||
- selector: span[tracetest.span.type="http" name="HTTP POST" http.method="POST"] | ||
name: Upstream Request is valid | ||
assertions: | ||
- attr:http.status_code = 200 | ||
- attr:http.status_code = 200 | ||
- attr:http.url = "https://countries.trevorblades.com/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters