-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: added integration test for degraphql routes
- Loading branch information
1 parent
8946072
commit 435ebd8
Showing
3 changed files
with
154 additions
and
0 deletions.
There are no files selected for viewing
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
35 changes: 35 additions & 0 deletions
35
tests/integration/testdata/sync/036-degraphql-routes/kong-complex-query.yaml
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
_format_version: "3.0" | ||
plugins: | ||
- config: | ||
graphql_server_path: /graphql | ||
enabled: true | ||
name: degraphql | ||
protocols: | ||
- grpc | ||
- grpcs | ||
- http | ||
- https | ||
services: | ||
- connect_timeout: 60000 | ||
host: mockbin.org | ||
name: svc1 | ||
port: 80 | ||
protocol: http | ||
read_timeout: 60000 | ||
retries: 5 | ||
write_timeout: 60000 | ||
plugin_entities: | ||
- type: degraphql_routes | ||
fields: | ||
uri: "/search/posts" | ||
methods: | ||
- "POST" | ||
query: | | ||
query SearchPosts($filters: PostsFilters) { | ||
posts(filter: $filters) { | ||
id | ||
title | ||
author | ||
} | ||
} | ||
service: svc1 |
26 changes: 26 additions & 0 deletions
26
tests/integration/testdata/sync/036-degraphql-routes/kong.yaml
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
_format_version: "3.0" | ||
plugins: | ||
- config: | ||
graphql_server_path: /graphql | ||
enabled: true | ||
name: degraphql | ||
protocols: | ||
- grpc | ||
- grpcs | ||
- http | ||
- https | ||
services: | ||
- connect_timeout: 60000 | ||
host: mockbin.org | ||
name: svc1 | ||
port: 80 | ||
protocol: http | ||
read_timeout: 60000 | ||
retries: 5 | ||
write_timeout: 60000 | ||
plugin_entities: | ||
- type: degraphql_routes | ||
fields: | ||
uri: "/foo" | ||
query: "query{ foo { bar } }" | ||
service: svc1 |