From 9b771525f05561d6d4cd88e781dac8ef23198235 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerg=C5=91=20M=C3=B3ricz?= Date: Sun, 4 Feb 2024 12:53:35 +0100 Subject: [PATCH] chore(test): delete tests that have been converted to md (#1102) Co-authored-by: Tushar Mathur --- testconv/src/main.rs | 8 + tests/graphql/add-field-many-list.graphql | 42 - tests/graphql/add-field-many.graphql | 42 - tests/graphql/errors/test-add-field.graphql | 24 - .../errors/test-all-blueprint-errors.graphql | 26 - .../errors/test-batch-operator-post.graphql | 16 - .../errors/test-const-with-add-field.graphql | 29 - .../errors/test-const-with-inline.graphql | 29 - tests/graphql/errors/test-const.graphql | 16 - .../errors/test-dbl-usage-many.graphql | 24 - tests/graphql/errors/test-dbl-usage.graphql | 16 - .../test-directives-undef-null-fields.graphql | 82 -- tests/graphql/errors/test-expr-errors.graphql | 17 - .../errors/test-expr-if-errors.graphql | 16 - ...already-implemented-from-Interface.graphql | 23 - .../test-graphqlsource-no-base-url.graphql | 21 - .../test-groupby-without-batching.graphql | 16 - .../graphql/errors/test-grpc-group-by.graphql | 35 - .../errors/test-grpc-missing-fields.graphql | 27 - .../errors/test-grpc-nested-data.graphql | 41 - .../errors/test-grpc-nested-optional.graphql | 28 - .../graphql/errors/test-grpc-optional.graphql | 28 - .../errors/test-grpc-proto-path.graphql | 28 - .../errors/test-grpc-service-method.graphql | 28 - .../graphql/errors/test-grpc-service.graphql | 28 - .../errors/test-hostname-faliure.graphql | 17 - .../errors/test-http-with-add-field.graphql | 29 - .../errors/test-http-with-inline.graphql | 29 - tests/graphql/errors/test-inline.graphql | 24 - .../errors/test-invalid-query-in-http.graphql | 18 - .../errors/test-invalid-server.graphql | 8 - .../graphql/errors/test-lack-resolver.graphql | 28 - ...-missing-argument-on-all-resolvers.graphql | 59 -- .../test-missing-mutation-resolver.graphql | 24 - .../test-missing-query-resolver.graphql | 23 - .../errors/test-missing-root-types.graphql | 10 - .../errors/test-missing-schema-query.graphql | 11 - ...ple-resolvable-directives-on-field.graphql | 16 - tests/graphql/errors/test-no-base-url.graphql | 15 - .../errors/test-response-header-value.graphql | 20 - .../test-response-headers-multi.graphql | 26 - .../errors/test-response-headers-name.graphql | 17 - .../errors/test-undefined-query.graphql | 40 - .../undeclared-type-no-base-url.graphql | 13 - tests/graphql/errors/undeclared-type.graphql | 11 - tests/graphql/inline-many-list.graphql | 35 - tests/graphql/inline-many.graphql | 35 - .../test-conflict-allowed-headers.graphql | 26 - .../graphql/merge/test-conflict-vars.graphql | 26 - tests/graphql/merge/test-enum-merge.graphql | 42 - tests/graphql/merge/test-merge-batch.graphql | 35 - tests/graphql/merge/test-merge-nested.graphql | 51 - tests/graphql/merge/test-merge-query.graphql | 27 - .../merge/test-merge-server-sdl.graphql | 27 - tests/graphql/merge/test-merge-union.graphql | 61 -- .../merge/test-server-base-types.graphql | 26 - tests/graphql/omit-many.graphql | 35 - tests/graphql/test-add-field-list.graphql | 42 - tests/graphql/test-add-field.graphql | 42 - tests/graphql/test-batching-group-by.graphql | 43 - tests/graphql/test-cache.graphql | 27 - tests/graphql/test-const.graphql | 17 - tests/graphql/test-custom-scalar.graphql | 21 - tests/graphql/test-custom-types.graphql | 53 - tests/graphql/test-description-many.graphql | 37 - tests/graphql/test-enum.graphql | 27 - tests/graphql/test-expr-success.graphql | 61 -- tests/graphql/test-graphqlsource.graphql | 39 - tests/graphql/test-grpc.graphql | 57 -- tests/graphql/test-http-baseurl.graphql | 19 - tests/graphql/test-http-headers.graphql | 17 - tests/graphql/test-http-tmpl.graphql | 39 - tests/graphql/test-http.graphql | 27 - tests/graphql/test-inline-list.graphql | 33 - tests/graphql/test-inline.graphql | 33 - tests/graphql/test-interface-result.graphql | 35 - tests/graphql/test-interface.graphql | 35 - tests/graphql/test-modify.graphql | 25 - tests/graphql/test-multi-interface.graphql | 43 - tests/graphql/test-nested-input.graphql | 57 -- tests/graphql/test-nested-value.graphql | 37 - tests/graphql/test-omit-list.graphql | 33 - tests/graphql/test-omit.graphql | 33 - .../graphql/test-query-documentation.graphql | 23 - tests/graphql/test-query.graphql | 17 - tests/graphql/test-ref-other.graphql | 35 - tests/graphql/test-server-vars.graphql | 17 - tests/graphql/test-union.graphql | 39 - tests/graphql/test-upstream.graphql | 17 - tests/graphql_spec.rs | 10 +- tests/http/add-field-index-list.yml | 23 - tests/http/add-field-modify.yml | 29 - tests/http/add-field-with-composition.yml | 37 - tests/http/add-field-with-modify.yml | 35 - tests/http/add-field.yml | 26 - tests/http/batching-default.yml | 36 - tests/http/batching-disabled.yml | 57 -- tests/http/batching-group-by-default.yml | 42 - tests/http/batching-group-by.yml | 42 - tests/http/batching-post.yml | 30 - tests/http/batching.yml | 74 -- tests/http/cache-control.yml | 126 --- tests/http/caching-collision.yml | 918 ------------------ tests/http/caching-gql-args.yml | 59 -- tests/http/caching-gql-parent-not-null.yml | 53 - tests/http/caching-gql-parent-null.yml | 25 - tests/http/caching-gql-parent-obj.yml | 57 -- tests/http/caching.yml | 41 - tests/http/custom-headers.yml | 30 - tests/http/env-value.yml | 84 -- tests/http/graphql-dataloader-batch-keys.yml | 87 -- .../http/graphql-dataloader-batch-request.yml | 67 -- .../graphql-dataloader-no-batch-request.yml | 59 -- tests/http/graphql-datasource-errors.yml | 64 -- tests/http/graphql-datasource-mutation.yml | 23 - tests/http/graphql-datasource-no-args.yml | 25 - tests/http/graphql-datasource-with-args.yml | 46 - tests/http/grpc-batch.yml | 28 - tests/http/grpc-simple.yml | 21 - tests/http/https.yml | 40 - tests/http/inline-field.yml | 25 - tests/http/inline-index-list.yml | 21 - tests/http/modified-field.yml | 22 - tests/http/mutation-put.yml | 31 - tests/http/mutation.yml | 26 - tests/http/n-plus-one-list.yml | 49 - tests/http/n-plus-one.yml | 39 - tests/http/nested-objects.yml | 27 - tests/http/nesting-level3.yml | 48 - tests/http/nullable-arg-query.yml | 59 -- tests/http/omit-index-list.yml | 21 - tests/http/omit-resolved-by-parent.yml | 24 - tests/http/ref-other-nested.yml | 55 -- tests/http/ref-other.yml | 22 - tests/http/rename-field.yml | 38 - tests/http/request-to-upstream-batching.yml | 64 -- tests/http/resolve-with-headers.yml | 28 - tests/http/resolve-with-vars.yml | 22 - tests/http/resolved-by-parent.yml | 24 - tests/http/simple-graphql.yml | 33 - tests/http/simple-query.yml | 41 - tests/http/test-expr-concat.yml | 16 - tests/http/test-expr-intersection.yml | 13 - tests/http/test-expr-logic.yml | 66 -- tests/http/test-expr-math.yml | 32 - tests/http/test-expr-relation.yml | 138 --- tests/http/test-js-hello-world.yml | 13 - tests/http/test-js-request-reponse.yml | 21 - tests/http/test-params-as-body.yml | 26 - tests/http/test-static-value.yml | 38 - tests/http/upstream-batching.yml | 56 -- tests/http/upstream-fail-request.yml | 22 - tests/http/with-args-url.yml | 48 - tests/http/with-args.yml | 22 - tests/http/with-nesting.yml | 34 - tests/http_spec.rs | 12 +- 156 files changed, 18 insertions(+), 6186 deletions(-) delete mode 100644 tests/graphql/add-field-many-list.graphql delete mode 100644 tests/graphql/add-field-many.graphql delete mode 100644 tests/graphql/errors/test-add-field.graphql delete mode 100644 tests/graphql/errors/test-all-blueprint-errors.graphql delete mode 100644 tests/graphql/errors/test-batch-operator-post.graphql delete mode 100644 tests/graphql/errors/test-const-with-add-field.graphql delete mode 100644 tests/graphql/errors/test-const-with-inline.graphql delete mode 100644 tests/graphql/errors/test-const.graphql delete mode 100644 tests/graphql/errors/test-dbl-usage-many.graphql delete mode 100644 tests/graphql/errors/test-dbl-usage.graphql delete mode 100644 tests/graphql/errors/test-directives-undef-null-fields.graphql delete mode 100644 tests/graphql/errors/test-expr-errors.graphql delete mode 100644 tests/graphql/errors/test-expr-if-errors.graphql delete mode 100644 tests/graphql/errors/test-field-already-implemented-from-Interface.graphql delete mode 100644 tests/graphql/errors/test-graphqlsource-no-base-url.graphql delete mode 100644 tests/graphql/errors/test-groupby-without-batching.graphql delete mode 100644 tests/graphql/errors/test-grpc-group-by.graphql delete mode 100644 tests/graphql/errors/test-grpc-missing-fields.graphql delete mode 100644 tests/graphql/errors/test-grpc-nested-data.graphql delete mode 100644 tests/graphql/errors/test-grpc-nested-optional.graphql delete mode 100644 tests/graphql/errors/test-grpc-optional.graphql delete mode 100644 tests/graphql/errors/test-grpc-proto-path.graphql delete mode 100644 tests/graphql/errors/test-grpc-service-method.graphql delete mode 100644 tests/graphql/errors/test-grpc-service.graphql delete mode 100644 tests/graphql/errors/test-hostname-faliure.graphql delete mode 100644 tests/graphql/errors/test-http-with-add-field.graphql delete mode 100644 tests/graphql/errors/test-http-with-inline.graphql delete mode 100644 tests/graphql/errors/test-inline.graphql delete mode 100644 tests/graphql/errors/test-invalid-query-in-http.graphql delete mode 100644 tests/graphql/errors/test-invalid-server.graphql delete mode 100644 tests/graphql/errors/test-lack-resolver.graphql delete mode 100644 tests/graphql/errors/test-missing-argument-on-all-resolvers.graphql delete mode 100644 tests/graphql/errors/test-missing-mutation-resolver.graphql delete mode 100644 tests/graphql/errors/test-missing-query-resolver.graphql delete mode 100644 tests/graphql/errors/test-missing-root-types.graphql delete mode 100644 tests/graphql/errors/test-missing-schema-query.graphql delete mode 100644 tests/graphql/errors/test-multiple-resolvable-directives-on-field.graphql delete mode 100644 tests/graphql/errors/test-no-base-url.graphql delete mode 100644 tests/graphql/errors/test-response-header-value.graphql delete mode 100644 tests/graphql/errors/test-response-headers-multi.graphql delete mode 100644 tests/graphql/errors/test-response-headers-name.graphql delete mode 100644 tests/graphql/errors/test-undefined-query.graphql delete mode 100644 tests/graphql/errors/undeclared-type-no-base-url.graphql delete mode 100644 tests/graphql/errors/undeclared-type.graphql delete mode 100644 tests/graphql/inline-many-list.graphql delete mode 100644 tests/graphql/inline-many.graphql delete mode 100644 tests/graphql/merge/test-conflict-allowed-headers.graphql delete mode 100644 tests/graphql/merge/test-conflict-vars.graphql delete mode 100644 tests/graphql/merge/test-enum-merge.graphql delete mode 100644 tests/graphql/merge/test-merge-batch.graphql delete mode 100644 tests/graphql/merge/test-merge-nested.graphql delete mode 100644 tests/graphql/merge/test-merge-query.graphql delete mode 100644 tests/graphql/merge/test-merge-server-sdl.graphql delete mode 100644 tests/graphql/merge/test-merge-union.graphql delete mode 100644 tests/graphql/merge/test-server-base-types.graphql delete mode 100644 tests/graphql/omit-many.graphql delete mode 100644 tests/graphql/test-add-field-list.graphql delete mode 100644 tests/graphql/test-add-field.graphql delete mode 100644 tests/graphql/test-batching-group-by.graphql delete mode 100644 tests/graphql/test-cache.graphql delete mode 100644 tests/graphql/test-const.graphql delete mode 100644 tests/graphql/test-custom-scalar.graphql delete mode 100644 tests/graphql/test-custom-types.graphql delete mode 100644 tests/graphql/test-description-many.graphql delete mode 100644 tests/graphql/test-enum.graphql delete mode 100644 tests/graphql/test-expr-success.graphql delete mode 100644 tests/graphql/test-graphqlsource.graphql delete mode 100644 tests/graphql/test-grpc.graphql delete mode 100644 tests/graphql/test-http-baseurl.graphql delete mode 100644 tests/graphql/test-http-headers.graphql delete mode 100644 tests/graphql/test-http-tmpl.graphql delete mode 100644 tests/graphql/test-http.graphql delete mode 100644 tests/graphql/test-inline-list.graphql delete mode 100644 tests/graphql/test-inline.graphql delete mode 100644 tests/graphql/test-interface-result.graphql delete mode 100644 tests/graphql/test-interface.graphql delete mode 100644 tests/graphql/test-modify.graphql delete mode 100644 tests/graphql/test-multi-interface.graphql delete mode 100644 tests/graphql/test-nested-input.graphql delete mode 100644 tests/graphql/test-nested-value.graphql delete mode 100644 tests/graphql/test-omit-list.graphql delete mode 100644 tests/graphql/test-omit.graphql delete mode 100644 tests/graphql/test-query-documentation.graphql delete mode 100644 tests/graphql/test-query.graphql delete mode 100644 tests/graphql/test-ref-other.graphql delete mode 100644 tests/graphql/test-server-vars.graphql delete mode 100644 tests/graphql/test-union.graphql delete mode 100644 tests/graphql/test-upstream.graphql delete mode 100644 tests/http/add-field-index-list.yml delete mode 100644 tests/http/add-field-modify.yml delete mode 100644 tests/http/add-field-with-composition.yml delete mode 100644 tests/http/add-field-with-modify.yml delete mode 100644 tests/http/add-field.yml delete mode 100644 tests/http/batching-default.yml delete mode 100644 tests/http/batching-disabled.yml delete mode 100644 tests/http/batching-group-by-default.yml delete mode 100644 tests/http/batching-group-by.yml delete mode 100644 tests/http/batching-post.yml delete mode 100644 tests/http/batching.yml delete mode 100644 tests/http/cache-control.yml delete mode 100644 tests/http/caching-collision.yml delete mode 100644 tests/http/caching-gql-args.yml delete mode 100644 tests/http/caching-gql-parent-not-null.yml delete mode 100644 tests/http/caching-gql-parent-null.yml delete mode 100644 tests/http/caching-gql-parent-obj.yml delete mode 100644 tests/http/caching.yml delete mode 100644 tests/http/custom-headers.yml delete mode 100644 tests/http/env-value.yml delete mode 100644 tests/http/graphql-dataloader-batch-keys.yml delete mode 100644 tests/http/graphql-dataloader-batch-request.yml delete mode 100644 tests/http/graphql-dataloader-no-batch-request.yml delete mode 100644 tests/http/graphql-datasource-errors.yml delete mode 100644 tests/http/graphql-datasource-mutation.yml delete mode 100644 tests/http/graphql-datasource-no-args.yml delete mode 100644 tests/http/graphql-datasource-with-args.yml delete mode 100644 tests/http/grpc-batch.yml delete mode 100644 tests/http/grpc-simple.yml delete mode 100644 tests/http/https.yml delete mode 100644 tests/http/inline-field.yml delete mode 100644 tests/http/inline-index-list.yml delete mode 100644 tests/http/modified-field.yml delete mode 100644 tests/http/mutation-put.yml delete mode 100644 tests/http/mutation.yml delete mode 100644 tests/http/n-plus-one-list.yml delete mode 100644 tests/http/n-plus-one.yml delete mode 100644 tests/http/nested-objects.yml delete mode 100644 tests/http/nesting-level3.yml delete mode 100644 tests/http/nullable-arg-query.yml delete mode 100644 tests/http/omit-index-list.yml delete mode 100644 tests/http/omit-resolved-by-parent.yml delete mode 100644 tests/http/ref-other-nested.yml delete mode 100644 tests/http/ref-other.yml delete mode 100644 tests/http/rename-field.yml delete mode 100644 tests/http/request-to-upstream-batching.yml delete mode 100644 tests/http/resolve-with-headers.yml delete mode 100644 tests/http/resolve-with-vars.yml delete mode 100644 tests/http/resolved-by-parent.yml delete mode 100644 tests/http/simple-graphql.yml delete mode 100644 tests/http/simple-query.yml delete mode 100644 tests/http/test-expr-concat.yml delete mode 100644 tests/http/test-expr-intersection.yml delete mode 100644 tests/http/test-expr-logic.yml delete mode 100644 tests/http/test-expr-math.yml delete mode 100644 tests/http/test-expr-relation.yml delete mode 100644 tests/http/test-js-hello-world.yml delete mode 100644 tests/http/test-js-request-reponse.yml delete mode 100644 tests/http/test-params-as-body.yml delete mode 100644 tests/http/test-static-value.yml delete mode 100644 tests/http/upstream-batching.yml delete mode 100644 tests/http/upstream-fail-request.yml delete mode 100644 tests/http/with-args-url.yml delete mode 100644 tests/http/with-args.yml delete mode 100644 tests/http/with-nesting.yml diff --git a/testconv/src/main.rs b/testconv/src/main.rs index ea685794ef..64e4eabbcb 100644 --- a/testconv/src/main.rs +++ b/testconv/src/main.rs @@ -298,6 +298,8 @@ async fn main() { } files_already_processed.insert(file_stem); + + fs::remove_file(path).unwrap(); } else if path.is_file() { println!("skipping unexpected file: {:?}", path); } @@ -381,6 +383,8 @@ async fn main() { } files_already_processed.insert(file_stem); + + fs::remove_file(path).unwrap(); } else if path.is_file() { println!("Skipping unexpected file: {:?}", path); } @@ -473,6 +477,8 @@ async fn main() { generate_merged_snapshot_sdl(&file_stem, &server).await; files_already_processed.insert(file_stem); + + fs::remove_file(path).unwrap(); } else if path.is_file() { println!("Skipping unexpected file: {:?}", path); } @@ -580,6 +586,8 @@ async fn main() { write(target, snap).expect("Failed to write errors snapshot"); files_already_processed.insert(file_stem); + + fs::remove_file(path).unwrap(); } else if path.is_file() { println!("Skipping unexpected file: {:?}", path); } diff --git a/tests/graphql/add-field-many-list.graphql b/tests/graphql/add-field-many-list.graphql deleted file mode 100644 index 274ca68c44..0000000000 --- a/tests/graphql/add-field-many-list.graphql +++ /dev/null @@ -1,42 +0,0 @@ -#> server-sdl -schema @server @upstream { - query: Query -} - -type A { - b: [String] - c: String - d: String -} - -type Query { - u: U @http(baseURL: "http://jsonplaceholder.typicode.com", path: "/us/1") -} - -type U @addField(name: "b", path: ["a", "b"]) @addField(name: "c", path: ["a", "c"]) @addField(name: "d", path: ["a", "d"]) { - a: A - e: String -} - -#> client-sdl -type A { - b: [String] - c: String - d: String -} - -type Query { - u: U -} - -type U { - a: A - b: [String] - c: String - d: String - e: String -} - -schema { - query: Query -} diff --git a/tests/graphql/add-field-many.graphql b/tests/graphql/add-field-many.graphql deleted file mode 100644 index 4503000542..0000000000 --- a/tests/graphql/add-field-many.graphql +++ /dev/null @@ -1,42 +0,0 @@ -#> server-sdl -schema @server @upstream { - query: Query -} - -type Foo @addField(name: "a", path: ["x", "a"]) @addField(name: "b", path: ["x", "b"]) @addField(name: "c", path: ["x", "c"]) { - name: String - x: X -} - -type Query { - user: Foo @http(baseURL: "http://jsonplaceholder.typicode.com", path: "/users/1") -} - -type X { - a: String - b: String - c: String -} - -#> client-sdl -type Foo { - a: String - b: String - c: String - name: String - x: X -} - -type Query { - user: Foo -} - -type X { - a: String - b: String - c: String -} - -schema { - query: Query -} diff --git a/tests/graphql/errors/test-add-field.graphql b/tests/graphql/errors/test-add-field.graphql deleted file mode 100644 index 89da2d3860..0000000000 --- a/tests/graphql/errors/test-add-field.graphql +++ /dev/null @@ -1,24 +0,0 @@ -#> server-sdl -schema { - query: Query -} - -type User { - name: String - address: Address -} -type Address { - city: String -} - -type Query @addField(name: "street", path: ["user", "address", "street"]) { - user: User @http(path: "/user/1", baseURL: "http://localhost:8000") -} - -#> client-sdl -type Failure - @error( - message: "Cannot add field" - description: "Path [user, address, street] does not exist" - trace: ["Query", "@addField", "street"] - ) diff --git a/tests/graphql/errors/test-all-blueprint-errors.graphql b/tests/graphql/errors/test-all-blueprint-errors.graphql deleted file mode 100644 index 6c70c4c545..0000000000 --- a/tests/graphql/errors/test-all-blueprint-errors.graphql +++ /dev/null @@ -1,26 +0,0 @@ -#> server-sdl -schema @server { - query: Query - mutation: Mutation -} -type Mutation { - a: String -} -type Query { - foo(inp: B): Foo - bar: String @const @const(data: {name: "John"}) -} -type Foo { - a: String @const(data: "1") - b: B -} -type B { - a: String -} - -#> client-sdl -type Failure - @error(message: "No resolver has been found in the schema", trace: ["Query", "foo"]) - @error(message: "No resolver has been found in the schema", trace: ["Mutation", "a"]) - @error(message: "type is used in input and output", trace: ["B"]) - @error(message: "expected string", trace: ["Query", "bar", "@const"]) diff --git a/tests/graphql/errors/test-batch-operator-post.graphql b/tests/graphql/errors/test-batch-operator-post.graphql deleted file mode 100644 index 8a2172aa03..0000000000 --- a/tests/graphql/errors/test-batch-operator-post.graphql +++ /dev/null @@ -1,16 +0,0 @@ -#> server-sdl -schema @server @upstream(baseURL: "http://localhost:3000", batch: {delay: 1}) { - query: Query -} - -type User { - name: String - age: Int -} - -type Query { - user: User @http(path: "/posts/1", method: "POST", groupBy: ["id"]) -} - -#> client-sdl -type Failure @error(message: "GroupBy is only supported for GET requests", trace: ["Query", "user", "@http"]) diff --git a/tests/graphql/errors/test-const-with-add-field.graphql b/tests/graphql/errors/test-const-with-add-field.graphql deleted file mode 100644 index e6ef48a9b4..0000000000 --- a/tests/graphql/errors/test-const-with-add-field.graphql +++ /dev/null @@ -1,29 +0,0 @@ -#> server-sdl -schema @server @upstream(baseURL: "http://jsonplaceholder.typicode.com") { - query: Query -} - -type Query @addField(name: "name", path: ["post", "user", "name"]) { - post: Post @http(path: "/posts/1") -} - -type Post { - id: Int - title: String - body: String - userId: Int - user: User @const(data: {id: 1, name: "user1"}) -} - -type User { - id: Int - name: String -} - -#> client-sdl -type Failure - @error( - message: "Cannot add field" - description: "Path: [post, user, name] contains resolver const at [Post.user]" - trace: ["Query", "@addField"] - ) diff --git a/tests/graphql/errors/test-const-with-inline.graphql b/tests/graphql/errors/test-const-with-inline.graphql deleted file mode 100644 index acfab31f4a..0000000000 --- a/tests/graphql/errors/test-const-with-inline.graphql +++ /dev/null @@ -1,29 +0,0 @@ -#> server-sdl -schema @server @upstream(baseURL: "http://jsonplaceholder.typicode.com") { - query: Query -} - -type Query @addField(name: "username", path: ["post", "user", "name"]) { - post: Post @http(path: "/posts/1") -} - -type Post { - id: Int - title: String - body: String - userId: Int - user: User @const(data: {id: 1, name: "user1"}) -} - -type User { - id: Int - name: String -} - -#> client-sdl -type Failure - @error( - message: "Cannot add field" - trace: ["Query", "@addField"] - description: "Path: [post, user, name] contains resolver const at [Post.user]" - ) diff --git a/tests/graphql/errors/test-const.graphql b/tests/graphql/errors/test-const.graphql deleted file mode 100644 index 6f4bc3e5bf..0000000000 --- a/tests/graphql/errors/test-const.graphql +++ /dev/null @@ -1,16 +0,0 @@ -#> server-sdl -schema @server @upstream(baseURL: "https://jsonplaceholder.typicode.com") { - query: Query -} - -type User { - name: String - age: Int! -} - -type Query { - user: User @const(data: {name: "John"}) -} - -#> client-sdl -type Failure @error(message: "expected field to be non-nullable", trace: ["Query", "user", "@const", "age"]) diff --git a/tests/graphql/errors/test-dbl-usage-many.graphql b/tests/graphql/errors/test-dbl-usage-many.graphql deleted file mode 100644 index ec52b3a8fb..0000000000 --- a/tests/graphql/errors/test-dbl-usage-many.graphql +++ /dev/null @@ -1,24 +0,0 @@ -#> server-sdl -schema { - query: Query -} - -type User { - id: ID! - name: String! -} - -input Post { - id: ID! - title: String! -} - -type Query { - user(input: User!): User @http(path: "/user/{{args.input.id}}", baseURL: "http://localhost:8080") - post(input: Post!): Post @http(path: "/user/{{args.input.id}}", baseURL: "http://localhost:8080") -} - -#> client-sdl -type Failure - @error(message: "type is used in input and output", trace: ["Post"]) - @error(message: "type is used in input and output", trace: ["User"]) diff --git a/tests/graphql/errors/test-dbl-usage.graphql b/tests/graphql/errors/test-dbl-usage.graphql deleted file mode 100644 index d222990e7d..0000000000 --- a/tests/graphql/errors/test-dbl-usage.graphql +++ /dev/null @@ -1,16 +0,0 @@ -#> server-sdl -schema { - query: Query -} - -type User { - id: ID! - name: String! -} - -type Query { - user(input: User!): User @http(path: "/user/{{args.input.id}}", baseURL: "http://localhost:8080") -} - -#> client-sdl -type Failure @error(message: "type is used in input and output", trace: ["User"]) diff --git a/tests/graphql/errors/test-directives-undef-null-fields.graphql b/tests/graphql/errors/test-directives-undef-null-fields.graphql deleted file mode 100644 index 24967b18e3..0000000000 --- a/tests/graphql/errors/test-directives-undef-null-fields.graphql +++ /dev/null @@ -1,82 +0,0 @@ -#> server-sdl -schema @server(vars: [{key: "a", value: "1"}, {key: "c", value: "d"}]) { - query: Query -} - -type NestedUser { - id: ID -} - -type User { - id: ID! - nestedUser: NestedUser - nonNullableNestedUser: NestedUser! -} - -type Query { - userAccessHeadersVars(id: ID!): User - @http(path: "/user/{{args.id}}/{{headers.garbage}}/{{vars.garbage}}", baseURL: "http://localhost:8080") - userListArg(id: [ID]): User @http(path: "/user/{{args.id}}", baseURL: "http://localhost:8080") - userNullableArg(id: ID): User @http(path: "/user/{{args.id}}", baseURL: "http://localhost:8080") - userUndefinedArg(id: ID): User @http(path: "/user/{{args.uid}}", baseURL: "http://localhost:8080") -} - -type Post { - id: Int! - userId: Int - user: User @http(path: "/users/{{value.id}}", baseURL: "http://localhost:8080") - nonNullableUser: User! @http(path: "/users/{{value.id}}", baseURL: "http://localhost:8080") - userArg: User @http(path: "/users/{{args.id}}", baseURL: "http://localhost:8080") - userInvalidDirective: User @http(path: "/users/{{Vale.userId}}", baseURL: "http://localhost:8080") - userNonScalar: User @http(path: "/users/{{value.nonNullableUser}}", baseURL: "http://localhost:8080") - userNullable: User @http(path: "/users/{{value.user.id}}", baseURL: "http://localhost:8080") - nestedUserNullable: User - @http(path: "/users/{{value.nonNullableUser.nestedUser.id}}", baseURL: "http://localhost:8080") - nestedNonScalar: User - @http(path: "/users/{{value.nonNullableUser.nonNullableNestedUser}}", baseURL: "http://localhost:8080") - nestedUndefinedValue: User - @http(path: "/users/{{value.nonNullableUser.nonNullableNestedUser.userId}}", baseURL: "http://localhost:8080") - nestedNullable: User - @http(path: "/users/{{value.nonNullableUser.nonNullableNestedUser.id}}", baseURL: "http://localhost:8080") - userNullValue: User @http(path: "/users/{{value.userId}}", baseURL: "http://localhost:8080") - # nullable values are allowed in queries - userNullValueQuery: User - @http(path: "/users", query: [{key: "id", value: "{{value.id}}"}], baseURL: "http://localhost:8080") - userUndefinedValue: User @http(path: "/users/{{value.userid}}", baseURL: "http://localhost:8080") - # but not undefined values - userUndefinedValueQuery: User - @http(path: "/users", query: [{key: "id", value: "{{value.userid}}"}], baseURL: "http://localhost:8080") - userVars: User @http(path: "/users/{{vars.a}}", baseURL: "http://localhost:8080") -} - -#> client-sdl -type Failure - @error( - message: "value 'nonNullableNestedUser' is not of a scalar type" - trace: ["Post", "nestedNonScalar", "@http", "path"] - ) -type Failure @error(message: "value 'id' is a nullable type", trace: ["Post", "nestedNullable", "@http", "path"]) -type Failure - @error( - message: "no value 'nonNullableUser.nonNullableNestedUser.userId' found" - trace: ["Post", "nestedUndefinedValue", "@http", "path"] - ) -type Failure - @error(message: "value 'nestedUser' is a nullable type", trace: ["Post", "nestedUserNullable", "@http", "path"]) -type Failure @error(message: "no argument 'id' found", trace: ["Post", "userArg", "@http", "path"]) -type Failure - @error(message: "unknown template directive 'Vale'", trace: ["Post", "userInvalidDirective", "@http", "path"]) -type Failure - @error(message: "value 'nonNullableUser' is not of a scalar type", trace: ["Post", "userNonScalar", "@http", "path"]) -type Failure @error(message: "value 'userId' is a nullable type", trace: ["Post", "userNullValue", "@http", "path"]) -type Failure @error(message: "value 'user' is a nullable type", trace: ["Post", "userNullable", "@http", "path"]) -type Failure @error(message: "no value 'userid' found", trace: ["Post", "userUndefinedValue", "@http", "path"]) -type Failure @error(message: "no value 'userid' found", trace: ["Post", "userUndefinedValueQuery", "@http", "query"]) -type Failure - @error( - message: "var 'garbage' is not set in the server config" - trace: ["Query", "userAccessHeadersVars", "@http", "path"] - ) -type Failure @error(message: "can't use list type 'id' here", trace: ["Query", "userListArg", "@http", "path"]) -type Failure @error(message: "argument 'id' is a nullable type", trace: ["Query", "userNullableArg", "@http", "path"]) -type Failure @error(message: "no argument 'uid' found", trace: ["Query", "userUndefinedArg", "@http", "path"]) diff --git a/tests/graphql/errors/test-expr-errors.graphql b/tests/graphql/errors/test-expr-errors.graphql deleted file mode 100644 index 6359851059..0000000000 --- a/tests/graphql/errors/test-expr-errors.graphql +++ /dev/null @@ -1,17 +0,0 @@ -#> server-sdl -schema @server { - query: Query -} - -type Query { - foo: String @expr(data: {const: "John"}) - bar: String @expr(body: {unsupported: true}) -} - -#> client-sdl -type Failure - @error(message: "Parsing failed because of missing field `body`", trace: ["@expr"]) - @error( - message: "Parsing failed because of unknown variant `unsupported`, expected one of `http`, `grpc`, `graphQL`, `const`, `if`, `and`, `or`, `cond`, `defaultTo`, `isEmpty`, `not`, `concat`, `intersection`, `difference`, `eq`, `gt`, `gte`, `lt`, `lte`, `max`, `min`, `pathEq`, `propEq`, `sortPath`, `symmetricDifference`, `union`, `mod`, `add`, `dec`, `divide`, `inc`, `multiply`, `negate`, `product`, `subtract`, `sum`" - trace: ["@expr", "body"] - ) diff --git a/tests/graphql/errors/test-expr-if-errors.graphql b/tests/graphql/errors/test-expr-if-errors.graphql deleted file mode 100644 index 2fe7250d56..0000000000 --- a/tests/graphql/errors/test-expr-if-errors.graphql +++ /dev/null @@ -1,16 +0,0 @@ -#> server-sdl -schema @server { - query: Query -} - -type Query { - noCond: String @expr(body: {if: {then: {const: "True"}, else: {const: "False"}}}) - noThen: String @expr(body: {if: {cond: {const: true}, else: {const: "False"}}}) - noElse: String @expr(body: {if: {cond: {const: true}, then: {const: "True"}}}) -} - -#> client-sdl -type Failure - @error(message: "Parsing failed because of missing field `cond`", trace: ["@expr", "body", ".", "if"]) - @error(message: "Parsing failed because of missing field `then`", trace: ["@expr", "body", ".", "if"]) - @error(message: "Parsing failed because of missing field `else`", trace: ["@expr", "body", ".", "if"]) diff --git a/tests/graphql/errors/test-field-already-implemented-from-Interface.graphql b/tests/graphql/errors/test-field-already-implemented-from-Interface.graphql deleted file mode 100644 index 38ea8f6101..0000000000 --- a/tests/graphql/errors/test-field-already-implemented-from-Interface.graphql +++ /dev/null @@ -1,23 +0,0 @@ -#> server-sdl -schema { - query: Query -} - -interface IUser { - id: ID - name: String -} -type User implements IUser { - userName: String! @modify(name: "name") - userId: ID! @modify(name: "id") -} - -type Query { - user: User @http(path: "/user/{{args.input.id}}", baseURL: "http://localhost:8080") -} - -#> client-sdl -type Failure - @error(message: "no argument 'input' found", trace: ["Query", "user", "@http", "path"]) - @error(message: "Field is already implemented from interface", trace: ["User", "userId", "@modify"]) - @error(message: "Field is already implemented from interface", trace: ["User", "userName", "@modify"]) diff --git a/tests/graphql/errors/test-graphqlsource-no-base-url.graphql b/tests/graphql/errors/test-graphqlsource-no-base-url.graphql deleted file mode 100644 index 4ddf784009..0000000000 --- a/tests/graphql/errors/test-graphqlsource-no-base-url.graphql +++ /dev/null @@ -1,21 +0,0 @@ -#> server-sdl -schema { - query: Query -} - -type Post { - id: Int! - user: User @graphQL(name: "user", args: [{key: "id", value: "{{value.userId}}"}]) -} - -type Query { - post(id: Int!): Post @http(baseURL: "http://jsonplacheholder.typicode.com", path: "/posts/{{args.id}}") -} - -type User { - id: Int - name: String -} - -#> client-sdl -type Failure @error(message: "No base URL defined", trace: ["Post", "user", "@graphQL"]) diff --git a/tests/graphql/errors/test-groupby-without-batching.graphql b/tests/graphql/errors/test-groupby-without-batching.graphql deleted file mode 100644 index 75808b4274..0000000000 --- a/tests/graphql/errors/test-groupby-without-batching.graphql +++ /dev/null @@ -1,16 +0,0 @@ -#> server-sdl -schema @upstream(baseURL: "http://jsonplaceholder.typicode.com", httpCache: true) { - query: Query -} - -type User { - id: Int - name: String -} - -type Query { - user(id: Int!): User @http(path: "/users", query: [{key: "id", value: "{{args.id}}"}], groupBy: ["id"]) -} - -#> client-sdl -type Failure @error(message: "GroupBy can only be applied if batching is enabled", trace: ["Query", "user", "@http"]) diff --git a/tests/graphql/errors/test-grpc-group-by.graphql b/tests/graphql/errors/test-grpc-group-by.graphql deleted file mode 100644 index caedf28cab..0000000000 --- a/tests/graphql/errors/test-grpc-group-by.graphql +++ /dev/null @@ -1,35 +0,0 @@ -#> server-sdl -schema @server(port: 8000, graphiql: true) @upstream(httpCache: true, batch: {delay: 10}) { - query: Query -} - -type Query { - newsById(news: NewsInput!): News! - @grpc( - service: "news.NewsService" - method: "GetMultipleNews" - baseURL: "http://localhost:50051" - body: "{{args.news}}" - protoPath: "src/grpc/tests/news.proto" - groupBy: ["id"] - ) -} -input NewsInput { - id: Int - title: String - body: String - postImage: String -} -type NewsData { - news: [News]! -} - -type News { - id: Int - title: String - body: String - postImage: String -} - -#> client-sdl -type Failure @error(message: "field id not found", trace: ["Query", "newsById", "@grpc"]) diff --git a/tests/graphql/errors/test-grpc-missing-fields.graphql b/tests/graphql/errors/test-grpc-missing-fields.graphql deleted file mode 100644 index bd9fe7efca..0000000000 --- a/tests/graphql/errors/test-grpc-missing-fields.graphql +++ /dev/null @@ -1,27 +0,0 @@ -#> server-sdl -schema { - query: Query -} - -type Query { - news: NewsData! - @grpc( - service: "news.NewsService" - method: "GetAllNews" - baseURL: "http://localhost:4000" - protoPath: "tests/graphql/errors/proto/news.proto" - ) -} - -type NewsData { - news: [News]! -} - -type News { - body: String - postImage: String - title: String -} - -#> client-sdl -type Failure @error(message: "missing key: id", trace: ["Query", "news", "@grpc", "NewsData", "news"]) diff --git a/tests/graphql/errors/test-grpc-nested-data.graphql b/tests/graphql/errors/test-grpc-nested-data.graphql deleted file mode 100644 index 375baf4bd0..0000000000 --- a/tests/graphql/errors/test-grpc-nested-data.graphql +++ /dev/null @@ -1,41 +0,0 @@ -#> server-sdl -schema @server(port: 8000, graphiql: true) @upstream(httpCache: true, batch: {delay: 10}) { - query: Query -} - -type Query { - news: NewsData! - @grpc( - service: "news.NewsService" - method: "GetAllNews" - baseURL: "http://localhost:50051" - protoPath: "src/grpc/tests/news.proto" - ) - newsById(news: NewsInput!): [News]! - @grpc( - service: "news.NewsService" - method: "GetNews" - baseURL: "http://localhost:50051" - body: "{{args.news}}" - protoPath: "src/grpc/tests/news.proto" - ) -} -input NewsInput { - id: Int - title: String - body: String - postImage: String -} -type NewsData { - news: [News]! -} - -type News { - id: Int - title: String - body: String - postImage: String -} - -#> client-sdl -type Failure @error(message: "expected Non repeatable type", trace: ["Query", "newsById", "@grpc", "News"]) diff --git a/tests/graphql/errors/test-grpc-nested-optional.graphql b/tests/graphql/errors/test-grpc-nested-optional.graphql deleted file mode 100644 index 24f28139ab..0000000000 --- a/tests/graphql/errors/test-grpc-nested-optional.graphql +++ /dev/null @@ -1,28 +0,0 @@ -#> server-sdl -schema { - query: Query -} - -type Query { - news: NewsData! - @grpc( - service: "news.NewsService" - method: "GetAllNews" - baseURL: "http://localhost:4000" - protoPath: "tests/graphql/errors/proto/news.proto" - ) -} - -type NewsData { - news: [News] -} - -type News { - id: Int! - title: String! - body: String! - postImage: String! -} - -#> client-sdl -type Failure @error(message: "expected type to be required", trace: ["Query", "news", "@grpc", "NewsData", "news"]) diff --git a/tests/graphql/errors/test-grpc-optional.graphql b/tests/graphql/errors/test-grpc-optional.graphql deleted file mode 100644 index 28bd07cd40..0000000000 --- a/tests/graphql/errors/test-grpc-optional.graphql +++ /dev/null @@ -1,28 +0,0 @@ -#> server-sdl -schema { - query: Query -} - -type Query { - news: NewsData - @grpc( - service: "news.NewsService" - method: "GetAllNews" - baseURL: "http://localhost:4000" - protoPath: "tests/graphql/errors/proto/news.proto" - ) -} - -type NewsData { - news: [News] -} - -type News { - id: Int! - title: String! - body: String! - postImage: String! -} - -#> client-sdl -type Failure @error(message: "expected type to be required", trace: ["Query", "news", "@grpc", "NewsData"]) diff --git a/tests/graphql/errors/test-grpc-proto-path.graphql b/tests/graphql/errors/test-grpc-proto-path.graphql deleted file mode 100644 index dad6f4dd21..0000000000 --- a/tests/graphql/errors/test-grpc-proto-path.graphql +++ /dev/null @@ -1,28 +0,0 @@ -#> server-sdl -schema { - query: Query -} - -type Query { - news: NewsData - @grpc( - service: "news.NewsService" - method: "GetAllNews" - baseURL: "http://localhost:4000" - protoPath: "tailcall/src/grpcnews.proto" - ) -} - -type NewsData { - news: [News] -} - -type News { - id: Int! - title: String! - body: String! - postImage: String! -} - -#> client-sdl -type Failure @error(message: "No such file or directory (os error 2)", trace: []) diff --git a/tests/graphql/errors/test-grpc-service-method.graphql b/tests/graphql/errors/test-grpc-service-method.graphql deleted file mode 100644 index 72dd9556cf..0000000000 --- a/tests/graphql/errors/test-grpc-service-method.graphql +++ /dev/null @@ -1,28 +0,0 @@ -#> server-sdl -schema { - query: Query -} - -type Query { - news: NewsData - @grpc( - service: "news.NewsService" - method: "X" - baseURL: "http://localhost:4000" - protoPath: "tests/graphql/errors/proto/news.proto" - ) -} - -type NewsData { - news: [News] -} - -type News { - id: Int! - title: String! - body: String! - postImage: String! -} - -#> client-sdl -type Failure @error(message: "Couldn't find method X", trace: ["Query", "news", "@grpc"]) diff --git a/tests/graphql/errors/test-grpc-service.graphql b/tests/graphql/errors/test-grpc-service.graphql deleted file mode 100644 index 76f601dbb8..0000000000 --- a/tests/graphql/errors/test-grpc-service.graphql +++ /dev/null @@ -1,28 +0,0 @@ -#> server-sdl -schema { - query: Query -} - -type Query { - news: NewsData - @grpc( - service: "YourServiceName" - method: "GetAllNews" - baseURL: "http://localhost:4000" - protoPath: "tests/graphql/errors/proto/news.proto" - ) -} - -type NewsData { - news: [News] -} - -type News { - id: Int! - title: String! - body: String! - postImage: String! -} - -#> client-sdl -type Failure @error(message: "Couldn't find definitions for service YourServiceName", trace: ["Query", "news", "@grpc"]) diff --git a/tests/graphql/errors/test-hostname-faliure.graphql b/tests/graphql/errors/test-hostname-faliure.graphql deleted file mode 100644 index f5bcad6b0d..0000000000 --- a/tests/graphql/errors/test-hostname-faliure.graphql +++ /dev/null @@ -1,17 +0,0 @@ -#> server-sdl -schema @server(hostname: "abc") { - query: Query -} - -type User { - id: Int - name: String -} - -type Query { - user: User @http(path: "/users/1", baseURL: "http://jsonplaceholder.typicode.com") -} - -#> client-sdl -type Failure - @error(message: "Parsing failed because of invalid IP address syntax", trace: ["schema", "@server", "hostname"]) diff --git a/tests/graphql/errors/test-http-with-add-field.graphql b/tests/graphql/errors/test-http-with-add-field.graphql deleted file mode 100644 index 494359aa38..0000000000 --- a/tests/graphql/errors/test-http-with-add-field.graphql +++ /dev/null @@ -1,29 +0,0 @@ -#> server-sdl -schema @server @upstream(baseURL: "http://jsonplaceholder.typicode.com") { - query: Query -} - -type Query @addField(name: "name", path: ["post", "user", "name"]) { - post: Post @http(path: "/posts/1") -} - -type Post { - id: Int - title: String - body: String - userId: Int! - user: User @http(path: "/users/{{value.userId}}") -} - -type User { - id: Int - name: String -} - -#> client-sdl -type Failure - @error( - message: "Cannot add field" - description: "Path: [post, user, name] contains resolver http at [Post.user]" - trace: ["Query", "@addField"] - ) diff --git a/tests/graphql/errors/test-http-with-inline.graphql b/tests/graphql/errors/test-http-with-inline.graphql deleted file mode 100644 index 111e86db7c..0000000000 --- a/tests/graphql/errors/test-http-with-inline.graphql +++ /dev/null @@ -1,29 +0,0 @@ -#> server-sdl -schema @server @upstream(baseURL: "http://jsonplaceholder.typicode.com") { - query: Query -} - -type Query @addField(name: "username", path: ["post", "user", "name"]) { - post: Post @http(path: "/posts/1") @http(path: "/users/{{value.userId}}") -} - -type Post { - id: Int - title: String - body: String - userId: Int! - user: User @http(path: "/users/{{value.userId}}") -} - -type User { - id: Int - name: String -} - -#> client-sdl -type Failure - @error( - message: "Cannot add field" - trace: ["Query", "@addField"] - description: "Path: [post, user, name] contains resolver http at [Post.user]" - ) diff --git a/tests/graphql/errors/test-inline.graphql b/tests/graphql/errors/test-inline.graphql deleted file mode 100644 index f23623ceb8..0000000000 --- a/tests/graphql/errors/test-inline.graphql +++ /dev/null @@ -1,24 +0,0 @@ -#> server-sdl -schema { - query: Query -} - -type User { - name: String - address: Address -} -type Address { - city: String -} - -type Query @addField(name: "street", path: ["user", "address", "street"]) { - user: User @http(path: "/user/1", baseURL: "http://localhost:8000") -} - -#> client-sdl -type Failure - @error( - message: "Cannot add field" - trace: ["Query", "@addField", "street"] - description: "Path [user, address, street] does not exist" - ) diff --git a/tests/graphql/errors/test-invalid-query-in-http.graphql b/tests/graphql/errors/test-invalid-query-in-http.graphql deleted file mode 100644 index 48ab2128ff..0000000000 --- a/tests/graphql/errors/test-invalid-query-in-http.graphql +++ /dev/null @@ -1,18 +0,0 @@ -#> server-sdl -schema @server(vars: [{key: "id", value: "1"}]) { - query: Query -} - -type User { - name: String - id: Int -} - -type Query { - user: [User] - @http(path: "/users", query: {key: "id", value: "{{vars.id}}"}, baseURL: "http://jsonplaceholder.typicode.com") -} - -#> client-sdl -type Failure - @error(message: "Parsing failed because of invalid type: map, expected a sequence", trace: ["@http", "query"]) diff --git a/tests/graphql/errors/test-invalid-server.graphql b/tests/graphql/errors/test-invalid-server.graphql deleted file mode 100644 index 9336c71030..0000000000 --- a/tests/graphql/errors/test-invalid-server.graphql +++ /dev/null @@ -1,8 +0,0 @@ -#> server-sdl -schema @server(port: "8000") { - query: Query -} - -#> client-sdl -type Failure - @error(message: "Parsing failed because of invalid type: string \"8000\", expected u16", trace: ["@server", "port"]) diff --git a/tests/graphql/errors/test-lack-resolver.graphql b/tests/graphql/errors/test-lack-resolver.graphql deleted file mode 100644 index e050d0085a..0000000000 --- a/tests/graphql/errors/test-lack-resolver.graphql +++ /dev/null @@ -1,28 +0,0 @@ -#> server-sdl -schema @server(port: 8000) @upstream(baseURL: "http://jsonplaceholder.typicode.com") { - query: Query -} - -type Query { - posts: InPost -} - -type InPost { - get: [Post] -} - -type Post { - id: Int! - userId: Int! - title: String! - body: String! - user: User @http(path: "/users/1") -} - -type User { - name: String - id: Int -} - -#> client-sdl -type Failure @error(message: "No resolver has been found in the schema", trace: ["Query", "posts"]) diff --git a/tests/graphql/errors/test-missing-argument-on-all-resolvers.graphql b/tests/graphql/errors/test-missing-argument-on-all-resolvers.graphql deleted file mode 100644 index 6e4e4e724b..0000000000 --- a/tests/graphql/errors/test-missing-argument-on-all-resolvers.graphql +++ /dev/null @@ -1,59 +0,0 @@ -#> server-sdl -schema @upstream(baseURL: "http://jsonplaceholder.typicode.com") { - query: Query -} - -type Post { - id: Int! -} - -type News { - body: String - id: Int - postImage: String - title: String -} - -type NewsData { - news: [News]! -} - -type Query { - postGraphQLArgs: Post @graphQL(name: "post", args: [{key: "id", value: "{{args.id}}"}]) - postGraphQLHeaders: Post @graphQL(name: "post", headers: [{key: "id", value: "{{args.id}}"}]) - postHttp: Post @http(path: "/posts/{{args.id}}") - newsGrpcHeaders: NewsData! - @grpc( - method: "GetAllNews" - protoPath: "src/grpc/tests/news.proto" - service: "news.NewsService" - headers: [{key: "id", value: "{{args.id}}"}] - ) - newsGrpcUrl: NewsData! - @grpc( - method: "GetAllNews" - protoPath: "src/grpc/tests/news.proto" - service: "news.NewsService" - baseURL: "{{args.url}}" - ) - newsGrpcBody: NewsData! - @grpc( - method: "GetAllNews" - protoPath: "src/grpc/tests/news.proto" - service: "news.NewsService" - body: "{{args.id}}" - ) -} - -type User { - id: Int - name: String -} - -#> client-sdl -type Failure @error(message: "no argument 'id' found", trace: ["Query", "newsGrpcBody", "@grpc", "body"]) -type Failure @error(message: "no argument 'id' found", trace: ["Query", "newsGrpcHeaders", "@grpc", "headers"]) -type Failure @error(message: "no argument 'url' found", trace: ["Query", "newsGrpcUrl", "@grpc", "path"]) -type Failure @error(message: "no argument 'id' found", trace: ["Query", "postGraphQLArgs", "@graphQL", "args"]) -type Failure @error(message: "no argument 'id' found", trace: ["Query", "postGraphQLHeaders", "@graphQL", "headers"]) -type Failure @error(message: "no argument 'id' found", trace: ["Query", "postHttp", "@http", "path"]) diff --git a/tests/graphql/errors/test-missing-mutation-resolver.graphql b/tests/graphql/errors/test-missing-mutation-resolver.graphql deleted file mode 100644 index da93626df8..0000000000 --- a/tests/graphql/errors/test-missing-mutation-resolver.graphql +++ /dev/null @@ -1,24 +0,0 @@ -#> server-sdl -schema { - query: Query - mutation: Mutation -} - -type Query { - user: User @http(baseURL: "https://jsonplaceholder.typicode.com", path: "/user/1") -} - -type User { - id: ID -} - -type UserInput { - id: ID -} - -type Mutation { - createUser(input: UserInput!): User -} - -#> client-sdl -type Failure @error(message: "No resolver has been found in the schema", trace: ["Mutation", "createUser"]) diff --git a/tests/graphql/errors/test-missing-query-resolver.graphql b/tests/graphql/errors/test-missing-query-resolver.graphql deleted file mode 100644 index 05b7bd175f..0000000000 --- a/tests/graphql/errors/test-missing-query-resolver.graphql +++ /dev/null @@ -1,23 +0,0 @@ -#> server-sdl -schema { - query: Query -} - -type Query { - user: [User] - posts: [Post]! -} - -type User { - id: ID - name: String -} - -type Post { - id: ID -} - -#> client-sdl -type Failure - @error(message: "No resolver has been found in the schema", trace: ["Query", "posts"]) - @error(message: "No resolver has been found in the schema", trace: ["Query", "user"]) diff --git a/tests/graphql/errors/test-missing-root-types.graphql b/tests/graphql/errors/test-missing-root-types.graphql deleted file mode 100644 index bcd39ea82e..0000000000 --- a/tests/graphql/errors/test-missing-root-types.graphql +++ /dev/null @@ -1,10 +0,0 @@ -#> server-sdl -schema { - query: QueryType - mutation: MutationDef -} - -#> client-sdl -type Failure - @error(message: "Query type is not defined", trace: ["QueryType"]) - @error(message: "Mutation type is not defined", trace: ["MutationDef"]) diff --git a/tests/graphql/errors/test-missing-schema-query.graphql b/tests/graphql/errors/test-missing-schema-query.graphql deleted file mode 100644 index 43b9e09977..0000000000 --- a/tests/graphql/errors/test-missing-schema-query.graphql +++ /dev/null @@ -1,11 +0,0 @@ -#> server-sdl -schema { - mutation: Mutation -} - -type Mutation { - id: Int! -} - -#> client-sdl -type Failure @error(message: "schema definition is missing query root", trace: []) diff --git a/tests/graphql/errors/test-multiple-resolvable-directives-on-field.graphql b/tests/graphql/errors/test-multiple-resolvable-directives-on-field.graphql deleted file mode 100644 index c48b7dc2d5..0000000000 --- a/tests/graphql/errors/test-multiple-resolvable-directives-on-field.graphql +++ /dev/null @@ -1,16 +0,0 @@ -#> server-sdl -schema @server @upstream(baseURL: "https://jsonplaceholder.typicode.com") { - query: Query -} - -type User { - name: String - id: Int -} - -type Query { - user1: User @const(data: {name: "John"}) @http(path: "/users/1") -} - -#> client-sdl -type Failure @error(message: "Multiple resolvers detected [@http, @const]", trace: ["Query", "user1"]) diff --git a/tests/graphql/errors/test-no-base-url.graphql b/tests/graphql/errors/test-no-base-url.graphql deleted file mode 100644 index cc38dcb6d0..0000000000 --- a/tests/graphql/errors/test-no-base-url.graphql +++ /dev/null @@ -1,15 +0,0 @@ -#> server-sdl -schema { - query: Query -} - -type User { - id: ID! -} - -type Query { - user: User @http(path: "/user/1") -} - -#> client-sdl -type Failure @error(message: "No base URL defined", trace: ["Query", "user", "@http"]) diff --git a/tests/graphql/errors/test-response-header-value.graphql b/tests/graphql/errors/test-response-header-value.graphql deleted file mode 100644 index c6728ab3ff..0000000000 --- a/tests/graphql/errors/test-response-header-value.graphql +++ /dev/null @@ -1,20 +0,0 @@ -#> server-sdl -schema @server(responseHeaders: [{key: "a", value: "a \n b"}]) { - query: Query -} - -type User { - name: String - age: Int -} - -type Query { - user: User @const(data: {name: "John"}) -} - -#> client-sdl -type Failure - @error( - message: "Parsing failed because of failed to parse header value" - trace: ["schema", "@server", "responseHeaders"] - ) diff --git a/tests/graphql/errors/test-response-headers-multi.graphql b/tests/graphql/errors/test-response-headers-multi.graphql deleted file mode 100644 index df6e7feeb4..0000000000 --- a/tests/graphql/errors/test-response-headers-multi.graphql +++ /dev/null @@ -1,26 +0,0 @@ -#> server-sdl -schema @server(responseHeaders: [{key: "a b", value: "a \n b"}, {key: "a c", value: "a \n b"}]) { - query: Query -} - -type User { - name: String - age: Int -} - -type Query { - user: User @const(data: {name: "John"}) -} - -#> client-sdl -type Failure - @error(message: "Parsing failed because of invalid HTTP header name", trace: ["schema", "@server", "responseHeaders"]) - @error( - message: "Parsing failed because of failed to parse header value" - trace: ["schema", "@server", "responseHeaders"] - ) - @error(message: "Parsing failed because of invalid HTTP header name", trace: ["schema", "@server", "responseHeaders"]) - @error( - message: "Parsing failed because of failed to parse header value" - trace: ["schema", "@server", "responseHeaders"] - ) diff --git a/tests/graphql/errors/test-response-headers-name.graphql b/tests/graphql/errors/test-response-headers-name.graphql deleted file mode 100644 index 5155612679..0000000000 --- a/tests/graphql/errors/test-response-headers-name.graphql +++ /dev/null @@ -1,17 +0,0 @@ -#> server-sdl -schema @server(responseHeaders: [{key: "🤣", value: "a"}]) { - query: Query -} - -type User { - name: String - age: Int -} - -type Query { - user: User @const(data: {name: "John"}) -} - -#> client-sdl -type Failure - @error(message: "Parsing failed because of invalid HTTP header name", trace: ["schema", "@server", "responseHeaders"]) diff --git a/tests/graphql/errors/test-undefined-query.graphql b/tests/graphql/errors/test-undefined-query.graphql deleted file mode 100644 index 02b3ce1bb0..0000000000 --- a/tests/graphql/errors/test-undefined-query.graphql +++ /dev/null @@ -1,40 +0,0 @@ -#> server-sdl -schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { - query: Query -} - -type Post { - id: Int - user: User! @http(path: "/users", query: [{key: "id", value: "{{value.test.id}}"}]) - nested: User! @http(path: "/users", query: [{key: "id", value: "{{value.user.nested.test}}"}]) - innerNested: User! @http(path: "/users", query: [{key: "id", value: "{{value.user.nested.inner.test.id}}"}]) - innerIdNested: User! @http(path: "/users", query: [{key: "id", value: "{{value.user.nested.inner.id.test}}"}]) -} - -type Query { - posts: [Post] @http(path: "/posts") -} - -type Inner { - id: Int! -} - -type NestedUser { - id: Int! - name: String - inner: Inner -} - -type User { - id: Int! - name: String - nested: NestedUser -} - -#> client-sdl -type Failure - @error(message: "no type 'user.nested.inner.id.test' found", trace: ["Post", "innerIdNested", "@http", "query"]) -type Failure - @error(message: "no value 'user.nested.inner.test' found", trace: ["Post", "innerNested", "@http", "query"]) -type Failure @error(message: "no value 'user.nested.test' found", trace: ["Post", "nested", "@http", "query"]) -type Failure @error(message: "no value 'test' found", trace: ["Post", "user", "@http", "query"]) diff --git a/tests/graphql/errors/undeclared-type-no-base-url.graphql b/tests/graphql/errors/undeclared-type-no-base-url.graphql deleted file mode 100644 index fb84340bc8..0000000000 --- a/tests/graphql/errors/undeclared-type-no-base-url.graphql +++ /dev/null @@ -1,13 +0,0 @@ -#> server-sdl -schema @server { - query: Query -} - -type Query { - users: [User] @http(path: "/users") -} - -#> client-sdl -type Failure - @error(message: "Undeclared type 'User' was found", trace: ["Query", "users"]) - @error(message: "No base URL defined", trace: ["Query", "users", "@http"]) diff --git a/tests/graphql/errors/undeclared-type.graphql b/tests/graphql/errors/undeclared-type.graphql deleted file mode 100644 index 640cc9905e..0000000000 --- a/tests/graphql/errors/undeclared-type.graphql +++ /dev/null @@ -1,11 +0,0 @@ -#> server-sdl -schema @server { - query: Query -} - -type Query { - users: [User] @http(baseURL: "https://jsonplaceholder.typicode.com", path: "/users") -} - -#> client-sdl -type Failure @error(message: "Undeclared type 'User' was found", trace: ["Query", "users"]) diff --git a/tests/graphql/inline-many-list.graphql b/tests/graphql/inline-many-list.graphql deleted file mode 100644 index 1a334949f7..0000000000 --- a/tests/graphql/inline-many-list.graphql +++ /dev/null @@ -1,35 +0,0 @@ -#> server-sdl -schema @server @upstream { - query: Query -} - -type A { - b: [String] - c: String - d: String -} - -type Query { - u: U @http(baseURL: "http://jsonplaceholder.typicode.com", path: "/us/1") -} - -type U @addField(name: "b", path: ["a", "b"]) @addField(name: "c", path: ["a", "c"]) @addField(name: "d", path: ["a", "d"]) { - a: A @modify(omit: true) - e: String -} - -#> client-sdl -type Query { - u: U -} - -type U { - b: [String] - c: String - d: String - e: String -} - -schema { - query: Query -} diff --git a/tests/graphql/inline-many.graphql b/tests/graphql/inline-many.graphql deleted file mode 100644 index 3a907028d4..0000000000 --- a/tests/graphql/inline-many.graphql +++ /dev/null @@ -1,35 +0,0 @@ -#> server-sdl -schema @server @upstream { - query: Query -} - -type Address { - city: String - street: String - zipcode: String -} - -type Query { - user: User @http(baseURL: "http://jsonplaceholder.typicode.com", path: "/users/1") -} - -type User @addField(name: "city", path: ["address", "city"]) @addField(name: "street", path: ["address", "street"]) @addField(name: "zipcode", path: ["address", "zipcode"]) { - address: Address @modify(omit: true) - name: String -} - -#> client-sdl -type Query { - user: User -} - -type User { - city: String - name: String - street: String - zipcode: String -} - -schema { - query: Query -} diff --git a/tests/graphql/merge/test-conflict-allowed-headers.graphql b/tests/graphql/merge/test-conflict-allowed-headers.graphql deleted file mode 100644 index b833a55441..0000000000 --- a/tests/graphql/merge/test-conflict-allowed-headers.graphql +++ /dev/null @@ -1,26 +0,0 @@ -#> server-sdl -schema @server @upstream(allowedHeaders: ["a", "b", "c"]) { - query: Query -} - -type Query { - hello: String @const(data: "world") -} - -#> server-sdl -schema @server @upstream(allowedHeaders: ["b", "c", "d"]) { - query: Query -} - -type Query { - hello: String @const(data: "world") -} - -#> merged-sdl -schema @server @upstream(allowedHeaders: ["a", "b", "c", "d"]) { - query: Query -} - -type Query { - hello: String @const(data: "world") -} diff --git a/tests/graphql/merge/test-conflict-vars.graphql b/tests/graphql/merge/test-conflict-vars.graphql deleted file mode 100644 index 7405374695..0000000000 --- a/tests/graphql/merge/test-conflict-vars.graphql +++ /dev/null @@ -1,26 +0,0 @@ -#> server-sdl -schema @server(vars: [{key: "a", value: "b"}, {key: "c", value: "d"}]) @upstream { - query: Query -} - -type Query { - hello: String @const(data: "world") -} - -#> server-sdl -schema @server(vars: [{key: "a", value: "b"}, {key: "p", value: "q"}]) @upstream { - query: Query -} - -type Query { - hello: String @const(data: "world") -} - -#> merged-sdl -schema @server(vars: [{key: "a", value: "b"}, {key: "c", value: "d"}, {key: "p", value: "q"}]) @upstream { - query: Query -} - -type Query { - hello: String @const(data: "world") -} diff --git a/tests/graphql/merge/test-enum-merge.graphql b/tests/graphql/merge/test-enum-merge.graphql deleted file mode 100644 index be504064f9..0000000000 --- a/tests/graphql/merge/test-enum-merge.graphql +++ /dev/null @@ -1,42 +0,0 @@ -#> server-sdl -schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { - query: Query -} - -enum Foo { - BAR - BAZ -} - -type Query { - foo: Foo @http(path: "/foo") -} - -#> server-sdl -schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { - query: Query -} - -enum Foo { - BAR - BOOM -} - -type Query { - foo: Foo @http(path: "/foo") -} - -#> merged-sdl -schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { - query: Query -} - -enum Foo { - BAR - BAZ - BOOM -} - -type Query { - foo: Foo @http(path: "/foo") -} diff --git a/tests/graphql/merge/test-merge-batch.graphql b/tests/graphql/merge/test-merge-batch.graphql deleted file mode 100644 index 2cfd535dd2..0000000000 --- a/tests/graphql/merge/test-merge-batch.graphql +++ /dev/null @@ -1,35 +0,0 @@ -#> server-sdl -schema @server @upstream(batch: {delay: 0, maxSize: 1000, headers: ["a", "b"]}) { - query: Query -} - -type Query { - hello: String @const(data: "world") -} - -#> server-sdl -schema @server @upstream(batch: {delay: 5, maxSize: 100, headers: ["b", "c"]}) { - query: Query -} - -type Query { - hello: String @const(data: "world") -} - -#> server-sdl -schema @server @upstream { - query: Query -} - -type Query { - hello: String @const(data: "world") -} - -#> merged-sdl -schema @server @upstream(batch: {delay: 5, headers: ["a", "b", "c"], maxSize: 100}) { - query: Query -} - -type Query { - hello: String @const(data: "world") -} diff --git a/tests/graphql/merge/test-merge-nested.graphql b/tests/graphql/merge/test-merge-nested.graphql deleted file mode 100644 index 67858ca576..0000000000 --- a/tests/graphql/merge/test-merge-nested.graphql +++ /dev/null @@ -1,51 +0,0 @@ -#> server-sdl -schema @server @upstream(baseURL: "http://abc.com") { - query: Query -} - -type Query { - hi: Foo @const(data: "world") -} - -type Foo { - """ - test1 - """ - b: String -} - -#> server-sdl -schema @server { - query: Query -} - -type Query { - hi: Foo @const(data: {a: "world"}) -} - -type Foo { - """ - test2 - """ - a: String -} - -#> merged-sdl -schema @server @upstream(baseURL: "http://abc.com") { - query: Query -} - -type Foo { - """ - test2 - """ - a: String - """ - test1 - """ - b: String -} - -type Query { - hi: Foo @const(data: {a: "world"}) -} diff --git a/tests/graphql/merge/test-merge-query.graphql b/tests/graphql/merge/test-merge-query.graphql deleted file mode 100644 index 0b133edf00..0000000000 --- a/tests/graphql/merge/test-merge-query.graphql +++ /dev/null @@ -1,27 +0,0 @@ -#> server-sdl -schema @server(port: 3000) @upstream(baseURL: "http://abc.com") { - query: Query -} - -type Query { - hello: String @const(data: "world") -} - -#> server-sdl -schema @server(port: 8000) @upstream(proxy: {url: "http://localhost:3000"}) { - query: Query -} - -type Query { - hi: String @const(data: "world") -} - -#> merged-sdl -schema @server(port: 8000) @upstream(baseURL: "http://abc.com", proxy: {url: "http://localhost:3000"}) { - query: Query -} - -type Query { - hello: String @const(data: "world") - hi: String @const(data: "world") -} diff --git a/tests/graphql/merge/test-merge-server-sdl.graphql b/tests/graphql/merge/test-merge-server-sdl.graphql deleted file mode 100644 index df3793aa5f..0000000000 --- a/tests/graphql/merge/test-merge-server-sdl.graphql +++ /dev/null @@ -1,27 +0,0 @@ -#> server-sdl -schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { - query: Query -} - -type Query { - foo: [User] @http(path: "/users") -} - -type User { - id: Int - name: String -} - -#> merged-sdl -schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { - query: Query -} - -type Query { - foo: [User] @http(path: "/users") -} - -type User { - id: Int - name: String -} diff --git a/tests/graphql/merge/test-merge-union.graphql b/tests/graphql/merge/test-merge-union.graphql deleted file mode 100644 index ee9d9ca58e..0000000000 --- a/tests/graphql/merge/test-merge-union.graphql +++ /dev/null @@ -1,61 +0,0 @@ -#> server-sdl -schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { - query: Query -} - -union FooBar = Bar | Foo - -type Bar { - bar: String -} - -type Foo { - foo: String -} - -type Query { - foo: FooBar @http(path: "/foo") -} -#> server-sdl -schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { - query: Query -} - -union FooBar = Baz | Foo - -type Baz { - baz: String -} - -type Foo { - foo: String - a: String -} - -type Query { - foo: FooBar @http(path: "/foo") -} - -#> merged-sdl -schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { - query: Query -} - -union FooBar = Bar | Baz | Foo - -type Bar { - bar: String -} - -type Baz { - baz: String -} - -type Foo { - a: String - foo: String -} - -type Query { - foo: FooBar @http(path: "/foo") -} diff --git a/tests/graphql/merge/test-server-base-types.graphql b/tests/graphql/merge/test-server-base-types.graphql deleted file mode 100644 index 5f30b12645..0000000000 --- a/tests/graphql/merge/test-server-base-types.graphql +++ /dev/null @@ -1,26 +0,0 @@ -#> server-sdl -schema @server(port: 3000) @upstream(baseURL: "http://abc.com") { - query: Query -} - -type Query { - hello: String @const(data: "world") -} - -#> server-sdl -schema @server(port: 8000) @upstream(proxy: {url: "http://localhost:3000"}) { - query: Query -} - -type Query { - hello: String @const(data: "world") -} - -#> merged-sdl -schema @server(port: 8000) @upstream(baseURL: "http://abc.com", proxy: {url: "http://localhost:3000"}) { - query: Query -} - -type Query { - hello: String @const(data: "world") -} diff --git a/tests/graphql/omit-many.graphql b/tests/graphql/omit-many.graphql deleted file mode 100644 index 7790e22942..0000000000 --- a/tests/graphql/omit-many.graphql +++ /dev/null @@ -1,35 +0,0 @@ -#> server-sdl -schema @server @upstream { - query: Query -} - -type Address { - city: String - complements: [String] - street: String - zipcode: String -} - -type Query { - user: User @http(baseURL: "http://jsonplaceholder.typicode.com", path: "/users/1") -} - -type User @addField(name: "zipcode", path: ["address", "zipcode"]) @addField(name: "complements", path: ["address", "complements"]) { - address: Address @omit - name: String -} - -#> client-sdl -type Query { - user: User -} - -type User { - complements: [String] - name: String - zipcode: String -} - -schema { - query: Query -} diff --git a/tests/graphql/test-add-field-list.graphql b/tests/graphql/test-add-field-list.graphql deleted file mode 100644 index 892d8dd254..0000000000 --- a/tests/graphql/test-add-field-list.graphql +++ /dev/null @@ -1,42 +0,0 @@ -#> server-sdl -schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { - query: Query -} - -type A { - b: B -} - -type B { - c: String -} - -type Foo { - a: A -} - -type Query @addField(name: "b", path: ["foo", "a", "0", "b"]) { - foo: [Foo] @http(path: "/foo") -} - -#> client-sdl -type A { - b: B -} - -type B { - c: String -} - -type Foo { - a: A -} - -type Query { - b: B - foo: [Foo] -} - -schema { - query: Query -} diff --git a/tests/graphql/test-add-field.graphql b/tests/graphql/test-add-field.graphql deleted file mode 100644 index 77ff2e0999..0000000000 --- a/tests/graphql/test-add-field.graphql +++ /dev/null @@ -1,42 +0,0 @@ -#> server-sdl -schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { - query: Query -} - -type A { - b: B -} - -type B { - c: String -} - -type Foo { - a: A -} - -type Query @addField(name: "b", path: ["foo", "a", "b"]) { - foo: Foo @http(path: "/foo") -} - -#> client-sdl -type A { - b: B -} - -type B { - c: String -} - -type Foo { - a: A -} - -type Query { - b: B - foo: Foo -} - -schema { - query: Query -} diff --git a/tests/graphql/test-batching-group-by.graphql b/tests/graphql/test-batching-group-by.graphql deleted file mode 100644 index b27b18645b..0000000000 --- a/tests/graphql/test-batching-group-by.graphql +++ /dev/null @@ -1,43 +0,0 @@ -#> server-sdl -schema @server(port: 4000) @upstream(baseURL: "http://abc.com", batch: {delay: 1, headers: [], maxSize: 1000}) { - query: Query -} - -type Post { - body: String - id: Int - title: String - user: User @http(groupBy: ["id"], path: "/users", query: [{key: "id", value: "{{value.userId}}"}]) - userId: Int! -} - -type Query { - posts: [Post] @http(path: "/posts?id=1&id=11") -} - -type User { - id: Int - name: String -} - -#> client-sdl -type Post { - body: String - id: Int - title: String - user: User - userId: Int! -} - -type Query { - posts: [Post] -} - -type User { - id: Int - name: String -} - -schema { - query: Query -} diff --git a/tests/graphql/test-cache.graphql b/tests/graphql/test-cache.graphql deleted file mode 100644 index 60084e21f7..0000000000 --- a/tests/graphql/test-cache.graphql +++ /dev/null @@ -1,27 +0,0 @@ -#> server-sdl -schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { - query: Query -} - -type Query { - user: User @http(path: "/foo") @cache(maxAge: 300) -} - -type User @cache(maxAge: 900) { - id: Int - name: String -} - -#> client-sdl -type Query { - user: User -} - -type User { - id: Int - name: String -} - -schema { - query: Query -} diff --git a/tests/graphql/test-const.graphql b/tests/graphql/test-const.graphql deleted file mode 100644 index fc56239119..0000000000 --- a/tests/graphql/test-const.graphql +++ /dev/null @@ -1,17 +0,0 @@ -#> server-sdl -schema @server @upstream { - query: Query -} - -type Query { - hello: String @const(data: "Hello from server") -} - -#> client-sdl -type Query { - hello: String -} - -schema { - query: Query -} diff --git a/tests/graphql/test-custom-scalar.graphql b/tests/graphql/test-custom-scalar.graphql deleted file mode 100644 index 5b16b29051..0000000000 --- a/tests/graphql/test-custom-scalar.graphql +++ /dev/null @@ -1,21 +0,0 @@ -#> server-sdl -schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { - query: Query -} - -scalar Json - -type Query { - foo: [Json] @http(path: "/foo") -} - -#> client-sdl -scalar Json - -type Query { - foo: [Json] -} - -schema { - query: Query -} diff --git a/tests/graphql/test-custom-types.graphql b/tests/graphql/test-custom-types.graphql deleted file mode 100644 index e66fd81b9a..0000000000 --- a/tests/graphql/test-custom-types.graphql +++ /dev/null @@ -1,53 +0,0 @@ -#> server-sdl -schema @server @upstream(baseURL: "http://jsonplaceholder.typicode.com") { - query: Que - mutation: Mut -} - -input PostInput { - body: String - title: String - userId: Int -} - -type Mut { - insertPost(input: PostInput): Post @http(body: "{{args.input}}", method: "POST", path: "/posts") -} - -type Post { - body: String - id: Int - title: String - userId: Int -} - -type Que { - posts: [Post] @const(data: [{id: 1}]) -} - -#> client-sdl -type Mut { - insertPost(input: PostInput): Post -} - -type Post { - body: String - id: Int - title: String - userId: Int -} - -input PostInput { - body: String - title: String - userId: Int -} - -type Que { - posts: [Post] -} - -schema { - query: Que - mutation: Mut -} diff --git a/tests/graphql/test-description-many.graphql b/tests/graphql/test-description-many.graphql deleted file mode 100644 index 21088d7b37..0000000000 --- a/tests/graphql/test-description-many.graphql +++ /dev/null @@ -1,37 +0,0 @@ -#> server-sdl -schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { - query: Query -} - -type Bar { - """ - This is test2 - """ - baz: String -} - -type Query { - """ - This is test - """ - foo: Bar @http(path: "/foo") -} - -#> client-sdl -type Bar { - """ - This is test2 - """ - baz: String -} - -type Query { - """ - This is test - """ - foo: Bar -} - -schema { - query: Query -} diff --git a/tests/graphql/test-enum.graphql b/tests/graphql/test-enum.graphql deleted file mode 100644 index 09f38df30b..0000000000 --- a/tests/graphql/test-enum.graphql +++ /dev/null @@ -1,27 +0,0 @@ -#> server-sdl -schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { - query: Query -} - -enum Foo { - BAR - BAZ -} - -type Query { - foo: Foo @http(path: "/foo") -} - -#> client-sdl -enum Foo { - BAR - BAZ -} - -type Query { - foo: Foo -} - -schema { - query: Query -} diff --git a/tests/graphql/test-expr-success.graphql b/tests/graphql/test-expr-success.graphql deleted file mode 100644 index 41076a75b1..0000000000 --- a/tests/graphql/test-expr-success.graphql +++ /dev/null @@ -1,61 +0,0 @@ -#> server-sdl -schema @server(port: 8000) @upstream(baseURL: "http://localhost:50051", batch: {delay: 10, headers: [], maxSize: 1000}, httpCache: true) { - query: Query -} - -input NewsInput { - body: String - id: Int - postImage: String - title: String -} - -type News { - body: String - id: Int - postImage: String - title: String -} - -type Post { - content: String @expr(body: {graphQL: {args: [{key: "id", value: "{{value.id}}"}], name: "postContent"}}) - id: Int! -} - -type Query { - cond: Post @expr(body: {if: {cond: {const: true}, else: {http: {path: "/posts/1"}}, then: {http: {path: "/posts/2"}}}}) - greeting: String @expr(body: {const: "hello from server"}) - news(news: NewsInput!): News! @expr(body: {grpc: {body: "{{args.news}}", groupBy: ["news", "id"], method: "GetMultipleNews", protoPath: "src/grpc/tests/news.proto", service: "news.NewsService"}}) - post(id: Int!): Post @expr(body: {http: {baseURL: "http://jsonplacheholder.typicode.com", path: "/posts/{{args.id}}"}}) -} - -#> client-sdl -type News { - body: String - id: Int - postImage: String - title: String -} - -input NewsInput { - body: String - id: Int - postImage: String - title: String -} - -type Post { - content: String - id: Int! -} - -type Query { - cond: Post - greeting: String - news(news: NewsInput!): News! - post(id: Int!): Post -} - -schema { - query: Query -} diff --git a/tests/graphql/test-graphqlsource.graphql b/tests/graphql/test-graphqlsource.graphql deleted file mode 100644 index ed0d6662ba..0000000000 --- a/tests/graphql/test-graphqlsource.graphql +++ /dev/null @@ -1,39 +0,0 @@ -#> server-sdl -schema @server @upstream(baseURL: "http://localhost:8000/graphql") { - query: Query -} - -type Post { - id: Int! - user: User @graphQL(args: [{key: "id", value: "{{value.userId}}"}], name: "user") - userId: Int! -} - -type Query { - post(id: Int!): Post @http(baseURL: "http://jsonplacheholder.typicode.com", path: "/posts/{{args.id}}") -} - -type User { - id: Int - name: String -} - -#> client-sdl -type Post { - id: Int! - user: User - userId: Int! -} - -type Query { - post(id: Int!): Post -} - -type User { - id: Int - name: String -} - -schema { - query: Query -} diff --git a/tests/graphql/test-grpc.graphql b/tests/graphql/test-grpc.graphql deleted file mode 100644 index 3bc7c3a04a..0000000000 --- a/tests/graphql/test-grpc.graphql +++ /dev/null @@ -1,57 +0,0 @@ -#> server-sdl -schema @server(port: 8000) @upstream(baseURL: "http://localhost:50051", batch: {delay: 10, headers: [], maxSize: 1000}, httpCache: true) { - query: Query -} - -input NewsInput { - body: String - id: Int - postImage: String - title: String -} - -type News { - body: String - id: Int - postImage: String - title: String -} - -type NewsData { - news: [News]! -} - -type Query { - news: NewsData! @grpc(method: "GetAllNews", protoPath: "src/grpc/tests/news.proto", service: "news.NewsService") - newsById(news: NewsInput!): News! @grpc(body: "{{args.news}}", method: "GetNews", protoPath: "src/grpc/tests/news.proto", service: "news.NewsService") - newsByIdBatch(news: NewsInput!): News! @grpc(body: "{{args.news}}", groupBy: ["news", "id"], method: "GetMultipleNews", protoPath: "src/grpc/tests/news.proto", service: "news.NewsService") -} - -#> client-sdl -type News { - body: String - id: Int - postImage: String - title: String -} - -type NewsData { - news: [News]! -} - -input NewsInput { - body: String - id: Int - postImage: String - title: String -} - -type Query { - news: NewsData! - newsById(news: NewsInput!): News! - newsByIdBatch(news: NewsInput!): News! -} - -schema { - query: Query -} diff --git a/tests/graphql/test-http-baseurl.graphql b/tests/graphql/test-http-baseurl.graphql deleted file mode 100644 index fac035b493..0000000000 --- a/tests/graphql/test-http-baseurl.graphql +++ /dev/null @@ -1,19 +0,0 @@ -#> server-sdl -schema @server @upstream(baseURL: "http://abc.com") { - query: Query -} - -type Query { - bar: String @http(path: "/bar") - foo: String @http(baseURL: "http://foo.com", path: "/foo") -} - -#> client-sdl -type Query { - bar: String - foo: String -} - -schema { - query: Query -} diff --git a/tests/graphql/test-http-headers.graphql b/tests/graphql/test-http-headers.graphql deleted file mode 100644 index 09824becd5..0000000000 --- a/tests/graphql/test-http-headers.graphql +++ /dev/null @@ -1,17 +0,0 @@ -#> server-sdl -schema @server @upstream(baseURL: "http://localhost:4000") { - query: Query -} - -type Query { - foo: String @http(headers: [{key: "foo", value: "bar"}], path: "/foo") -} - -#> client-sdl -type Query { - foo: String -} - -schema { - query: Query -} diff --git a/tests/graphql/test-http-tmpl.graphql b/tests/graphql/test-http-tmpl.graphql deleted file mode 100644 index a72fe7d25a..0000000000 --- a/tests/graphql/test-http-tmpl.graphql +++ /dev/null @@ -1,39 +0,0 @@ -#> server-sdl -schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { - query: Query -} - -type Post { - id: Int - user: User @http(path: "/users", query: [{key: "id", value: "{{value.userId}}"}]) - userId: Int! -} - -type Query { - posts: [Post] @http(path: "/posts") -} - -type User { - id: Int - name: String -} - -#> client-sdl -type Post { - id: Int - user: User - userId: Int! -} - -type Query { - posts: [Post] -} - -type User { - id: Int - name: String -} - -schema { - query: Query -} diff --git a/tests/graphql/test-http.graphql b/tests/graphql/test-http.graphql deleted file mode 100644 index 0ba93eb703..0000000000 --- a/tests/graphql/test-http.graphql +++ /dev/null @@ -1,27 +0,0 @@ -#> server-sdl -schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { - query: Query -} - -type Query { - foo: [User] @http(path: "/users") -} - -type User { - id: Int - name: String -} - -#> client-sdl -type Query { - foo: [User] -} - -type User { - id: Int - name: String -} - -schema { - query: Query -} diff --git a/tests/graphql/test-inline-list.graphql b/tests/graphql/test-inline-list.graphql deleted file mode 100644 index a298c7a0d2..0000000000 --- a/tests/graphql/test-inline-list.graphql +++ /dev/null @@ -1,33 +0,0 @@ -#> server-sdl -schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { - query: Query -} - -type A { - b: B -} - -type B { - c: String -} - -type Foo { - a: A -} - -type Query @addField(name: "foo", path: ["foo", "a", "0", "b"]) { - foo: [Foo] @http(path: "/foo") @modify(omit: true) -} - -#> client-sdl -type B { - c: String -} - -type Query { - foo: B -} - -schema { - query: Query -} diff --git a/tests/graphql/test-inline.graphql b/tests/graphql/test-inline.graphql deleted file mode 100644 index ff98e544c1..0000000000 --- a/tests/graphql/test-inline.graphql +++ /dev/null @@ -1,33 +0,0 @@ -#> server-sdl -schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { - query: Query -} - -type A { - b: B -} - -type B { - c: String -} - -type Foo { - a: A -} - -type Query @addField(name: "foo", path: ["foo", "a", "b"]) { - foo: Foo @http(path: "/foo") @modify(omit: true) -} - -#> client-sdl -type B { - c: String -} - -type Query { - foo: B -} - -schema { - query: Query -} diff --git a/tests/graphql/test-interface-result.graphql b/tests/graphql/test-interface-result.graphql deleted file mode 100644 index 25fb7df3cc..0000000000 --- a/tests/graphql/test-interface-result.graphql +++ /dev/null @@ -1,35 +0,0 @@ -#> server-sdl -schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { - query: Query -} - -interface IA { - a: String -} - -type B implements IA { - a: String - b: String -} - -type Query { - bar: IA @http(path: "/user") -} - -#> client-sdl -type B implements IA { - a: String - b: String -} - -interface IA { - a: String -} - -type Query { - bar: IA -} - -schema { - query: Query -} diff --git a/tests/graphql/test-interface.graphql b/tests/graphql/test-interface.graphql deleted file mode 100644 index 93a76e4705..0000000000 --- a/tests/graphql/test-interface.graphql +++ /dev/null @@ -1,35 +0,0 @@ -#> server-sdl -schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { - query: Query -} - -interface IA { - a: String -} - -type B implements IA { - a: String - b: String -} - -type Query { - bar: B @http(path: "/user") -} - -#> client-sdl -type B implements IA { - a: String - b: String -} - -interface IA { - a: String -} - -type Query { - bar: B -} - -schema { - query: Query -} diff --git a/tests/graphql/test-modify.graphql b/tests/graphql/test-modify.graphql deleted file mode 100644 index ad66805b9e..0000000000 --- a/tests/graphql/test-modify.graphql +++ /dev/null @@ -1,25 +0,0 @@ -#> server-sdl -schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { - query: Query -} - -input Foo { - bar: String -} - -type Query { - foo(input: Foo): String @http(path: "/foo") @modify(name: "data") -} - -#> client-sdl -input Foo { - bar: String -} - -type Query { - data(input: Foo): String -} - -schema { - query: Query -} diff --git a/tests/graphql/test-multi-interface.graphql b/tests/graphql/test-multi-interface.graphql deleted file mode 100644 index e9684e9b36..0000000000 --- a/tests/graphql/test-multi-interface.graphql +++ /dev/null @@ -1,43 +0,0 @@ -#> server-sdl -schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { - query: Query -} - -interface IA { - a: String -} - -interface IB { - b: String -} - -type B implements IA & IB { - a: String - b: String -} - -type Query { - bar: B @http(path: "/user") -} - -#> client-sdl -type B implements IA & IB { - a: String - b: String -} - -interface IA { - a: String -} - -interface IB { - b: String -} - -type Query { - bar: B -} - -schema { - query: Query -} diff --git a/tests/graphql/test-nested-input.graphql b/tests/graphql/test-nested-input.graphql deleted file mode 100644 index 080cfeb5e5..0000000000 --- a/tests/graphql/test-nested-input.graphql +++ /dev/null @@ -1,57 +0,0 @@ -#> server-sdl -schema @server @upstream { - query: Query -} - -input A { - b: B -} - -input B { - c: C -} - -input C { - d: D -} - -input D { - e: Int -} - -type Query { - a(a: A!): X @const(data: {a: "hello"}) -} - -type X { - a: String -} - -#> client-sdl -input A { - b: B -} - -input B { - c: C -} - -input C { - d: D -} - -input D { - e: Int -} - -type Query { - a(a: A!): X -} - -type X { - a: String -} - -schema { - query: Query -} diff --git a/tests/graphql/test-nested-value.graphql b/tests/graphql/test-nested-value.graphql deleted file mode 100644 index 76023fb9b1..0000000000 --- a/tests/graphql/test-nested-value.graphql +++ /dev/null @@ -1,37 +0,0 @@ -#> server-sdl -schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { - query: Query -} - -type Post { - id: Int - user: User! @http(path: "/users", query: [{key: "id", value: "{{value.user.id}}"}]) -} - -type Query { - posts: [Post] @http(path: "/posts") -} - -type User { - id: Int! - name: String -} - -#> client-sdl -type Post { - id: Int - user: User! -} - -type Query { - posts: [Post] -} - -type User { - id: Int! - name: String -} - -schema { - query: Query -} diff --git a/tests/graphql/test-omit-list.graphql b/tests/graphql/test-omit-list.graphql deleted file mode 100644 index 262e92a742..0000000000 --- a/tests/graphql/test-omit-list.graphql +++ /dev/null @@ -1,33 +0,0 @@ -#> server-sdl -schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { - query: Query -} - -type A { - b: B -} - -type B { - c: String -} - -type Foo { - a: A -} - -type Query @addField(name: "foo", path: ["foo", "a", "0", "b"]) { - foo: [Foo] @http(path: "/foo") @omit -} - -#> client-sdl -type B { - c: String -} - -type Query { - foo: B -} - -schema { - query: Query -} diff --git a/tests/graphql/test-omit.graphql b/tests/graphql/test-omit.graphql deleted file mode 100644 index 33a2d479f0..0000000000 --- a/tests/graphql/test-omit.graphql +++ /dev/null @@ -1,33 +0,0 @@ -#> server-sdl -schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { - query: Query -} - -type A { - b: B -} - -type B { - c: String -} - -type Foo { - a: A -} - -type Query @addField(name: "foo", path: ["foo", "a", "b"]) { - foo: Foo @http(path: "/foo") @omit -} - -#> client-sdl -type B { - c: String -} - -type Query { - foo: B -} - -schema { - query: Query -} diff --git a/tests/graphql/test-query-documentation.graphql b/tests/graphql/test-query-documentation.graphql deleted file mode 100644 index 5db870ce08..0000000000 --- a/tests/graphql/test-query-documentation.graphql +++ /dev/null @@ -1,23 +0,0 @@ -#> server-sdl -schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { - query: Query -} - -type Query { - """ - This is test - """ - foo: String @http(path: "/foo") -} - -#> client-sdl -type Query { - """ - This is test - """ - foo: String -} - -schema { - query: Query -} diff --git a/tests/graphql/test-query.graphql b/tests/graphql/test-query.graphql deleted file mode 100644 index 2f1b33238f..0000000000 --- a/tests/graphql/test-query.graphql +++ /dev/null @@ -1,17 +0,0 @@ -#> server-sdl -schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { - query: Query -} - -type Query { - foo: String @http(path: "/foo") -} - -#> client-sdl -type Query { - foo: String -} - -schema { - query: Query -} diff --git a/tests/graphql/test-ref-other.graphql b/tests/graphql/test-ref-other.graphql deleted file mode 100644 index 11a48bfc14..0000000000 --- a/tests/graphql/test-ref-other.graphql +++ /dev/null @@ -1,35 +0,0 @@ -#> server-sdl -schema @server(port: 8000) @upstream(baseURL: "http://jsonplaceholder.typicode.com") { - query: Query -} - -type InPost { - get: [Post] @http(path: "/posts") -} - -type Post { - id: Int! - userId: Int! -} - -type Query { - posts: InPost -} - -#> client-sdl -type InPost { - get: [Post] -} - -type Post { - id: Int! - userId: Int! -} - -type Query { - posts: InPost -} - -schema { - query: Query -} diff --git a/tests/graphql/test-server-vars.graphql b/tests/graphql/test-server-vars.graphql deleted file mode 100644 index 680d6fadc1..0000000000 --- a/tests/graphql/test-server-vars.graphql +++ /dev/null @@ -1,17 +0,0 @@ -#> server-sdl -schema @server(vars: [{key: "foo", value: "bar"}]) @upstream(baseURL: "http://jsonplacheholder.typicode.com") { - query: Query -} - -type Query { - foo: String @http(path: "/foo") -} - -#> client-sdl -type Query { - foo: String -} - -schema { - query: Query -} diff --git a/tests/graphql/test-union.graphql b/tests/graphql/test-union.graphql deleted file mode 100644 index 27750de90c..0000000000 --- a/tests/graphql/test-union.graphql +++ /dev/null @@ -1,39 +0,0 @@ -#> server-sdl -schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { - query: Query -} - -scalar Baz - -union FooBar = Bar | Foo - -type Bar { - bar: String -} - -type Foo { - foo: String -} - -type Query { - foo: FooBar @http(path: "/foo") -} - -#> client-sdl -type Bar { - bar: String -} - -type Foo { - foo: String -} - -union FooBar = Bar | Foo - -type Query { - foo: FooBar -} - -schema { - query: Query -} diff --git a/tests/graphql/test-upstream.graphql b/tests/graphql/test-upstream.graphql deleted file mode 100644 index 035a82c317..0000000000 --- a/tests/graphql/test-upstream.graphql +++ /dev/null @@ -1,17 +0,0 @@ -#> server-sdl -schema @server @upstream(proxy: {url: "http://localhost:8085"}) { - query: Query -} - -type Query { - hello: String @http(baseURL: "http://localhost:8000", path: "/hello") -} - -#> client-sdl -type Query { - hello: String -} - -schema { - query: Query -} diff --git a/tests/graphql_spec.rs b/tests/graphql_spec.rs index b572129e1a..8b67e7ec75 100644 --- a/tests/graphql_spec.rs +++ b/tests/graphql_spec.rs @@ -197,6 +197,10 @@ impl GraphQLSpec { let mut dir_path = PathBuf::from(env!("CARGO_MANIFEST_DIR")); dir_path.push(path); + if !dir_path.exists() { + return Ok(Vec::with_capacity(0)); + } + let entries = fs::read_dir(dir_path.clone())?; let mut files = Vec::new(); let mut only_files = Vec::new(); @@ -218,12 +222,6 @@ impl GraphQLSpec { } } - assert!( - !files.is_empty() || !only_files.is_empty(), - "No files found in {}", - dir_path.to_str().unwrap_or_default() - ); - if !only_files.is_empty() { Ok(only_files) } else { diff --git a/tests/http/add-field-index-list.yml b/tests/http/add-field-index-list.yml deleted file mode 100644 index 4e05342208..0000000000 --- a/tests/http/add-field-index-list.yml +++ /dev/null @@ -1,23 +0,0 @@ ---- -config: !file tests/http/config/add-field-index-list.graphql - -name: Sending field index list -mock: - - request: - url: http://jsonplaceholder.typicode.com/users - method: GET - response: - body: - - id: 1 - name: Leanne Graham -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { username }" - - response: - body: - data: - username: Leanne Graham diff --git a/tests/http/add-field-modify.yml b/tests/http/add-field-modify.yml deleted file mode 100644 index 8f56faccc7..0000000000 --- a/tests/http/add-field-modify.yml +++ /dev/null @@ -1,29 +0,0 @@ ---- -config: !file tests/http/config/add-field-modify.graphql -name: Add field modify -mock: - - request: - url: http://jsonplaceholder.typicode.com/users/1 - response: - body: - id: 1 - name: foo - address: - street: "Kulas Light" - city: "Gwenborough" - zipcode: "92998-3874" - -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { user { name street city zipcode } }" - response: - body: - data: - user: - name: foo - street: "Kulas Light" - city: "Gwenborough" - zipcode: "92998-3874" diff --git a/tests/http/add-field-with-composition.yml b/tests/http/add-field-with-composition.yml deleted file mode 100644 index 987a25010e..0000000000 --- a/tests/http/add-field-with-composition.yml +++ /dev/null @@ -1,37 +0,0 @@ ---- -config: !file tests/http/config/add-field-with-composition.graphql -name: Add field with composition -mock: - - request: - url: http://jsonplaceholder.typicode.com/users/1 - response: - body: - id: 1 - name: foo - address: - geo: - lat: "-37.3159" - lng: "81.1496" - -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { lat }" - - response: - body: - data: - lat: "-37.3159" - - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { lng }" - - response: - body: - data: - lng: "81.1496" diff --git a/tests/http/add-field-with-modify.yml b/tests/http/add-field-with-modify.yml deleted file mode 100644 index a6010c6013..0000000000 --- a/tests/http/add-field-with-modify.yml +++ /dev/null @@ -1,35 +0,0 @@ ---- -config: !file tests/http/config/add-field-with-modify.graphql -name: Add field with modify -mock: - - request: - url: http://jsonplaceholder.typicode.com/users/1 - response: - body: - id: 1 - name: "Leanne Graham" - - request: - url: http://jsonplaceholder.typicode.com/users/2 - response: - body: - id: 2 - name: "Ervin Howell" -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { user1 }" - response: - body: - data: - user1: "Leanne Graham" - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { user2 }" - response: - body: - data: - user2: "Ervin Howell" diff --git a/tests/http/add-field.yml b/tests/http/add-field.yml deleted file mode 100644 index 118226a8a5..0000000000 --- a/tests/http/add-field.yml +++ /dev/null @@ -1,26 +0,0 @@ ---- -config: !file tests/http/config/add-field.graphql -name: Add field -mock: - - request: - url: http://jsonplaceholder.typicode.com/users/1 - response: - body: - id: 1 - name: foo - address: - geo: - lat: "-37.3159" - -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { user { lat } }" - - response: - body: - data: - user: - lat: "-37.3159" diff --git a/tests/http/batching-default.yml b/tests/http/batching-default.yml deleted file mode 100644 index 4ada3ccd69..0000000000 --- a/tests/http/batching-default.yml +++ /dev/null @@ -1,36 +0,0 @@ ---- -config: !file tests/http/config/batching-default.graphql -name: Batching default - -mock: - - request: - url: http://jsonplaceholder.typicode.com/posts?id=11&id=3&foo=1 - response: - body: - - id: 11 - userId: 1 - - id: 3 - userId: 2 - - request: - url: http://jsonplaceholder.typicode.com/users?foo=bar&id=1&foo=bar&id=2 - response: - body: - - id: 1 - - id: 2 - -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { posts { user { id } userId } }" - response: - body: - data: - posts: - - user: - id: 1 - userId: 1 - - user: - id: 2 - userId: 2 diff --git a/tests/http/batching-disabled.yml b/tests/http/batching-disabled.yml deleted file mode 100644 index 2030d2c46c..0000000000 --- a/tests/http/batching-disabled.yml +++ /dev/null @@ -1,57 +0,0 @@ ---- -name: Batching disabled -config: !inline - upstream: - baseURL: "http://jsonplaceholder.typicode.com" - httpCache: true - batch: - delay: 0 - schema: - query: Query - types: - Query: - fields: - user: - type: User - args: - id: - type: Int - required: true - http: - path: "/users/{{args.id}}" - User: - fields: - id: - type: Int - name: - type: String - username: - type: String - -mock: - - request: - url: http://jsonplaceholder.typicode.com/users/1 - response: - body: - id: 1 - name: "Leanne Graham" - - request: - url: http://jsonplaceholder.typicode.com/users/2 - response: - body: - id: 2 - name: "Leanne Graham" - -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { u1: user(id: 1) {id} u2: user(id: 2) {id} }" - response: - body: - data: - u1: - id: 1 - u2: - id: 2 diff --git a/tests/http/batching-group-by-default.yml b/tests/http/batching-group-by-default.yml deleted file mode 100644 index 3a748307ab..0000000000 --- a/tests/http/batching-group-by-default.yml +++ /dev/null @@ -1,42 +0,0 @@ ---- -config: !file tests/http/config/batching-group-by-default.graphql -name: Batching group by default - -mock: - - request: - url: http://jsonplaceholder.typicode.com/posts?id=11&id=3&foo=1 - response: - body: - - id: 11 - title: foo - body: bar - userId: 1 - - id: 3 - title: foo - body: bar - userId: 2 - - request: - url: http://jsonplaceholder.typicode.com/users?foo=bar&id=1&foo=bar&id=2 - response: - body: - - id: 1 - name: foo - - id: 2 - name: bar - -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { posts { user { id } userId } }" - response: - body: - data: - posts: - - user: - id: 1 - userId: 1 - - user: - id: 2 - userId: 2 diff --git a/tests/http/batching-group-by.yml b/tests/http/batching-group-by.yml deleted file mode 100644 index 65cd2fe8f4..0000000000 --- a/tests/http/batching-group-by.yml +++ /dev/null @@ -1,42 +0,0 @@ ---- -config: !file tests/http/config/batching-group-by.graphql -name: Batching group by -mock: - - request: - url: http://jsonplaceholder.typicode.com/posts?id=11&id=3&foo=1 - response: - body: - - id: 11 - title: "foo" - body: "bar" - userId: 1 - - id: 3 - title: "foo" - body: "bar" - userId: 2 - - - request: - url: http://jsonplaceholder.typicode.com/users?foo=bar&id=1&foo=bar&id=2 - response: - body: - - id: 1 - name: "Leanne Graham" - - id: 2 - name: "Ervin Howell" - -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { posts { user { id } userId } }" - response: - body: - data: - posts: - - user: - id: 1 - userId: 1 - - user: - id: 2 - userId: 2 diff --git a/tests/http/batching-post.yml b/tests/http/batching-post.yml deleted file mode 100644 index 865a34c325..0000000000 --- a/tests/http/batching-post.yml +++ /dev/null @@ -1,30 +0,0 @@ ---- -config: !file tests/http/config/batching-post.graphql -name: Batching post - -mock: - - request: - url: http://jsonplaceholder.typicode.com/posts?id=1 - response: - body: - - id: 1 - userId: 1 - - request: - url: http://jsonplaceholder.typicode.com/users/1 - response: - body: - id: 1 - name: Leanne Graham - -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { posts { user { name } } }" - response: - body: - data: - posts: - - user: - name: Leanne Graham diff --git a/tests/http/batching.yml b/tests/http/batching.yml deleted file mode 100644 index f3ce3fc875..0000000000 --- a/tests/http/batching.yml +++ /dev/null @@ -1,74 +0,0 @@ ---- -name: Sending a batched graphql request -config: !inline - upstream: {} - server: - batchRequests: true - schema: - query: Query - types: - Query: - fields: - user: - type: User - http: - path: /users/1 - baseURL: http://jsonplaceholder.typicode.com - User: - fields: - id: - type: Int - name: - type: String -mock: - - request: - url: http://jsonplaceholder.typicode.com/users/1 - headers: - test: test - response: - body: - id: 1 - name: foo -assert: - # Sending a batched request - - request: - method: POST - url: http://localhost:8080/graphql - body: - - query: "query { user { id } }" - - query: "query { user { name } }" - - response: - body: - - data: - user: - id: 1 - - data: - user: - name: foo - # Sending a single request - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { user { id } }" - response: - body: - data: - user: - id: 1 - # Sending a bad request - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: FOO - response: - status: 200 - body: - data: null - errors: - - locations: - - column: 1 - line: 1 - message: " --> 1:1\n |\n1 | FOO\n | ^---\n |\n = expected executable_definition" diff --git a/tests/http/cache-control.yml b/tests/http/cache-control.yml deleted file mode 100644 index 14a4e332ce..0000000000 --- a/tests/http/cache-control.yml +++ /dev/null @@ -1,126 +0,0 @@ ---- -name: Sending requests to verify Cache-Control behavior -config: !inline - upstream: - schema: - query: Query - server: - cacheControlHeader: true - types: - Query: - fields: - user: - type: User - args: - id: - type: Int - http: - path: /users - baseURL: http://jsonplaceholder.typicode.com - query: - - key: id - value: "{{args.id}}" - User: - fields: - id: - type: Int - name: - type: String -mock: - - request: - url: http://jsonplaceholder.typicode.com/users?id=1 - headers: - test: test - response: - headers: - Cache-Control: "max-age=3600" - body: - id: 1 - name: foo - - request: - url: http://jsonplaceholder.typicode.com/users?id=2 - headers: - test: test - response: - headers: - Cache-Control: "max-age=7200" - body: - id: 2 - name: bar - - request: - url: http://jsonplaceholder.typicode.com/users?id=3 - headers: - test: test - response: - headers: - Cache-Control: "max-age=7200, private" - body: - id: 3 - name: foobar - - request: - url: http://jsonplaceholder.typicode.com/users?id=4 - headers: - test: test - response: - headers: - Cache-Control: "no-cache" - body: - id: 4 - name: barfoo -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { u1: user(id: 1) { id } u2: user(id: 2) { id } }" - response: - headers: - Cache-Control: "max-age=3600" - body: - data: - u1: - id: 1 - u2: - id: 2 - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { u1: user(id: 1) { id } u3: user(id: 3) { id } }" - response: - headers: - Cache-Control: "max-age=3600, private" - body: - data: - u1: - id: 1 - u3: - id: 3 - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { u1: user(id: 1) { id } u4: user(id: 4) { id } }" - response: - headers: - Cache-Control: "no-cache" - body: - data: - u1: - id: 1 - u4: - id: 4 - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { u3: user(id: 3) { id } u4: user(id: 4) { id } }" - response: - headers: - Cache-Control: "no-cache, private" - body: - data: - u3: - id: 3 - u4: - id: 4 diff --git a/tests/http/caching-collision.yml b/tests/http/caching-collision.yml deleted file mode 100644 index e1f73affd8..0000000000 --- a/tests/http/caching-collision.yml +++ /dev/null @@ -1,918 +0,0 @@ -config: !file tests/http/config/caching-collision.graphql -name: Caching Collision -mock: - - request: - url: http://example.com/bars - response: - body: - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBZh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: ByVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SE3mXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BEVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DFPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSoYIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZigeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEomXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKFxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvePbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jsz1qh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ5f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYftglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQ7YUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqp8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtHlFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbczXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeF6bPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFGbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSxrIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSo9IxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjrXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FtO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3n2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FoO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvVvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3VpzFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoumL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTYZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtgRFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sfZV2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwKe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jjzyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmcWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFw4i4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL3345FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgaFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImR33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXRorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvfKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQIf7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnOImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPmckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbc9XSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3q7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFkbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoTmL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIFmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33d5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSosIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SVjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4JszyJh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFhoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSSrIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Za6x1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFwbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SIjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImt33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoIwL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdw4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4J6zyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jskyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2NFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorFxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25yXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4lszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFmdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jsjyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sfXV2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYe25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSogIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33n5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZqgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwJi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoKmL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FY625TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTzZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoIFL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvNKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTMZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFyoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3VqzFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4oszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDHIwHe - - id: BVVLvrvaKvxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1yf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f8Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25rXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgPFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi45NPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQHf7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPb9kXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnonmL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUhkJszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvFKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5SYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Pszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtgHFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmIUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBZh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 0 - - request: - url: http://example.com/foo?id=ByVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 1 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SE3mXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 2 - - request: - url: http://example.com/foo?id=BEVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 3 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DFPDXIwHe - response: - body: - id: 4 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSoYIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 5 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZigeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 6 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEomXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 7 - - request: - url: http://example.com/foo?id=BVVLvrvaKFxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 8 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvePbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 9 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jsz1qh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 10 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ5f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 11 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYftglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 12 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQ7YUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 13 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqp8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 14 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 15 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtHlFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 16 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbczXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 17 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeF6bPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 18 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFGbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 19 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSxrIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 20 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSo9IxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 21 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjrXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 22 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FtO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 23 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3n2zFwdi4DNPDXIwHe - response: - body: - id: 24 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FoO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 25 - - request: - url: http://example.com/foo?id=BVVLvVvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 26 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3VpzFwdi4DNPDXIwHe - response: - body: - id: 27 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoumL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 28 - - request: - url: http://example.com/foo?id=BVVLvrvaKTYZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 29 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtgRFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 30 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sfZV2zFwdi4DNPDXIwHe - response: - body: - id: 31 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwKe - response: - body: - id: 32 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jjzyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 33 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmcWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 34 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFw4i4DNPDXIwHe - response: - body: - id: 35 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL3345FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 36 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgaFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 37 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImR33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 38 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXRorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 39 - - request: - url: http://example.com/foo?id=BVVLvrvfKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 40 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQIf7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 41 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnOImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 42 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPmckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 43 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbc9XSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 44 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3q7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 45 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFkbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 46 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoTmL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 47 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIFmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 48 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33d5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 49 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSosIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 50 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SVjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 51 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4JszyJh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 52 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFhoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 53 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSSrIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 54 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Za6x1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 55 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFwbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 56 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SIjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 57 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImt33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 58 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoIwL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 59 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdw4DNPDXIwHe - response: - body: - id: 60 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4J6zyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 61 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jskyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 62 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2NFwdi4DNPDXIwHe - response: - body: - id: 63 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorFxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 64 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25yXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 65 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4lszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 66 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFmdi4DNPDXIwHe - response: - body: - id: 67 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jsjyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 68 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sfXV2zFwdi4DNPDXIwHe - response: - body: - id: 69 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYe25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 70 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSogIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 71 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33n5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 72 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZqgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 73 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwJi4DNPDXIwHe - response: - body: - id: 74 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoKmL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 75 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FY625TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 76 - - request: - url: http://example.com/foo?id=BVVLvrvaKTzZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 77 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoIFL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 78 - - request: - url: http://example.com/foo?id=BVVLvrvNKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 79 - - request: - url: http://example.com/foo?id=BVVLvrvaKTMZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 80 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFyoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 81 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3VqzFwdi4DNPDXIwHe - response: - body: - id: 82 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4oszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 83 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDHIwHe - response: - body: - id: 84 - - request: - url: http://example.com/foo?id=BVVLvrvaKvxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 85 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1yf3V2zFwdi4DNPDXIwHe - response: - body: - id: 86 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f8Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 87 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25rXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 88 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgPFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 89 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi45NPDXIwHe - response: - body: - id: 90 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQHf7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 91 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPb9kXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 92 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnonmL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 93 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUhkJszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 94 - - request: - url: http://example.com/foo?id=BVVLvrvFKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 95 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5SYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 96 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Pszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 97 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtgHFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 98 - - request: - url: http://example.com/foo?id=BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmIUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - response: - body: - id: 99 - -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: query { bars { foo { id } id } } - response: - body: - data: - bars: - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBZh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 0 - - id: ByVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 1 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SE3mXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 2 - - id: BEVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 3 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DFPDXIwHe - foo: - id: 4 - - id: BVVLvrvaKTxZdgeFvbPbckXSoYIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 5 - - id: BVVLvrvaKTxZigeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 6 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEomXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 7 - - id: BVVLvrvaKFxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 8 - - id: BVVLvrvaKTxZdgeFvePbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 9 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jsz1qh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 10 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ5f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 11 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYftglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 12 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQ7YUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 13 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqp8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 14 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 15 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtHlFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 16 - - id: BVVLvrvaKTxZdgeFvbPbczXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 17 - - id: BVVLvrvaKTxZdgeF6bPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 18 - - id: BVVLvrvaKTxZdgeFGbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 19 - - id: BVVLvrvaKTxZdgeFvbPbckXSxrIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 20 - - id: BVVLvrvaKTxZdgeFvbPbckXSo9IxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 21 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjrXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 22 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FtO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 23 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3n2zFwdi4DNPDXIwHe - foo: - id: 24 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FoO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 25 - - id: BVVLvVvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 26 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3VpzFwdi4DNPDXIwHe - foo: - id: 27 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoumL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 28 - - id: BVVLvrvaKTYZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 29 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtgRFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 30 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sfZV2zFwdi4DNPDXIwHe - foo: - id: 31 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwKe - foo: - id: 32 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jjzyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 33 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmcWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 34 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFw4i4DNPDXIwHe - foo: - id: 35 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL3345FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 36 - - id: BVVLvrvaKTxZdgaFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 37 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImR33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 38 - - id: BVVLvrvaKTxZdgeFvbPbckXRorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 39 - - id: BVVLvrvfKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 40 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQIf7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 41 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnOImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 42 - - id: BVVLvrvaKTxZdgeFvbPmckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 43 - - id: BVVLvrvaKTxZdgeFvbPbc9XSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 44 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3q7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 45 - - id: BVVLvrvaKTxZdgeFkbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 46 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoTmL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 47 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIFmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 48 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33d5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 49 - - id: BVVLvrvaKTxZdgeFvbPbckXSosIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 50 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SVjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 51 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4JszyJh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 52 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFhoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 53 - - id: BVVLvrvaKTxZdgeFvbPbckXSSrIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 54 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Za6x1sf3V2zFwdi4DNPDXIwHe - foo: - id: 55 - - id: BVVLvrvaKTxZdgeFwbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 56 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SIjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 57 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImt33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 58 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoIwL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 59 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdw4DNPDXIwHe - foo: - id: 60 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4J6zyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 61 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jskyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 62 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2NFwdi4DNPDXIwHe - foo: - id: 63 - - id: BVVLvrvaKTxZdgeFvbPbckXSorFxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 64 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25yXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 65 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4lszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 66 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFmdi4DNPDXIwHe - foo: - id: 67 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jsjyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 68 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sfXV2zFwdi4DNPDXIwHe - foo: - id: 69 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYe25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 70 - - id: BVVLvrvaKTxZdgeFvbPbckXSogIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 71 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33n5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 72 - - id: BVVLvrvaKTxZqgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 73 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwJi4DNPDXIwHe - foo: - id: 74 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoKmL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 75 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FY625TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 76 - - id: BVVLvrvaKTzZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 77 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoIFL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 78 - - id: BVVLvrvNKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 79 - - id: BVVLvrvaKTMZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 80 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFyoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 81 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3VqzFwdi4DNPDXIwHe - foo: - id: 82 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4oszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 83 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDHIwHe - foo: - id: 84 - - id: BVVLvrvaKvxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 85 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1yf3V2zFwdi4DNPDXIwHe - foo: - id: 86 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f8Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 87 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25rXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 88 - - id: BVVLvrvaKTxZdgPFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 89 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi45NPDXIwHe - foo: - id: 90 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQHf7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 91 - - id: BVVLvrvaKTxZdgeFvbPb9kXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 92 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnonmL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 93 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUhkJszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 94 - - id: BVVLvrvFKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 95 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtglFnoImL33F5SYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 96 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Pszyqh8SEjmXWIQmYUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 97 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmYUtgHFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 98 - - id: BVVLvrvaKTxZdgeFvbPbckXSorIxBUh4Jszyqh8SEjmXWIQmIUtglFnoImL33F5FYO25TXzQ3f7Zamx1sf3V2zFwdi4DNPDXIwHe - foo: - id: 99 diff --git a/tests/http/caching-gql-args.yml b/tests/http/caching-gql-args.yml deleted file mode 100644 index 659c7c0c02..0000000000 --- a/tests/http/caching-gql-args.yml +++ /dev/null @@ -1,59 +0,0 @@ -config: !file tests/http/config/caching-gql-args.graphql -name: Caching Graphql args -mock: - - request: - url: http://example.com/bar?id=1&flag=true - response: - body: - id: 1 - - request: - url: http://example.com/bar?id=2&flag=false - response: - body: - id: 2 - - request: - url: http://example.com/bar?id=3&flag=false - response: - body: - id: 3 -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { bar(id: 1, flag: true, dummy: { list: [1] }) { id dir } }" - response: - body: - data: - bar: - id: 1 - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { bar(id: 2, flag: false, dummy: { list: [1] }) { id dir } }" - response: - body: - data: - bar: - id: 2 - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { bar(id: 3, flag: false, dummy: { list: [1] }) { id dir } }" - response: - body: - data: - bar: - id: 3 - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { bar(id: 2, flag: false, dummy: { list: [1] }) { id dir } }" - response: - body: - data: - bar: - id: 2 diff --git a/tests/http/caching-gql-parent-not-null.yml b/tests/http/caching-gql-parent-not-null.yml deleted file mode 100644 index 0d79e515ff..0000000000 --- a/tests/http/caching-gql-parent-not-null.yml +++ /dev/null @@ -1,53 +0,0 @@ -config: !file tests/http/config/caching-gql-parent-not-null.graphql -name: Caching Parent Not Null -mock: - - request: - url: http://example.com/bars - response: - body: - - id: 1 - - id: 2 - - id: 3 - - id: 4 - - request: - url: http://example.com/foo?id=1 - response: - body: - id: 1 - - request: - url: http://example.com/foo?id=2 - response: - body: - id: 2 - - request: - url: http://example.com/foo?id=3 - response: - body: - id: 3 - - request: - url: http://example.com/foo?id=4 - response: - body: - id: 4 -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: query { bars { foo { id } id } } - response: - body: - data: - bars: - - id: 1 - foo: - id: 1 - - id: 2 - foo: - id: 2 - - id: 3 - foo: - id: 3 - - id: 4 - foo: - id: 4 diff --git a/tests/http/caching-gql-parent-null.yml b/tests/http/caching-gql-parent-null.yml deleted file mode 100644 index db1d5e6fb5..0000000000 --- a/tests/http/caching-gql-parent-null.yml +++ /dev/null @@ -1,25 +0,0 @@ -config: !file tests/http/config/caching-gql-parent-null.graphql -name: Caching Parent Null -mock: - - request: - url: http://example.com/bars - response: - body: - - id: 1 - - id: 3 - - id: 5 - - id: 7 -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: query { bars { id } } - response: - body: - data: - bars: - - id: 1 - - id: 3 - - id: 5 - - id: 7 diff --git a/tests/http/caching-gql-parent-obj.yml b/tests/http/caching-gql-parent-obj.yml deleted file mode 100644 index bbe2d93acf..0000000000 --- a/tests/http/caching-gql-parent-obj.yml +++ /dev/null @@ -1,57 +0,0 @@ -config: !file tests/http/config/caching-gql-parent-obj.graphql -name: Caching parent id object -mock: - - request: - url: http://example.com/bars - response: - body: - - id: - - bid: 1 - foo: - id: 2 - flag: true - - id: - - bid: 3 - foo: - id: 4 - flag: false - - id: - - bid: 5 - foo: - id: 6 - flag: false - - id: - - bid: 7 - foo: - id: 8 - flag: true -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: query { bars { id { bid } flag foo { id } } } - response: - body: - data: - bars: - - id: - - bid: 1 - foo: - id: 2 - flag: true - - id: - - bid: 3 - foo: - id: 4 - flag: false - - id: - - bid: 5 - foo: - id: 6 - flag: false - - id: - - bid: 7 - foo: - id: 8 - flag: true diff --git a/tests/http/caching.yml b/tests/http/caching.yml deleted file mode 100644 index 81ddd8b3b3..0000000000 --- a/tests/http/caching.yml +++ /dev/null @@ -1,41 +0,0 @@ -config: !file tests/http/config/caching.graphql -name: Caching -mock: - - request: - url: http://example.com/bars - response: - body: - - id: 1 - foo: - id: 2 - - id: 3 - foo: - id: 4 - - id: 5 - foo: - id: 6 - - id: 7 - foo: - id: 8 -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: query { bars { id foo { id } } } - response: - body: - data: - bars: - - id: 1 - foo: - id: 2 - - id: 3 - foo: - id: 4 - - id: 5 - foo: - id: 6 - - id: 7 - foo: - id: 8 diff --git a/tests/http/custom-headers.yml b/tests/http/custom-headers.yml deleted file mode 100644 index db22a019eb..0000000000 --- a/tests/http/custom-headers.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Custom Headers -config: !inline - server: - responseHeaders: - - key: x-id - value: 1 - - key: x-name - value: John Doe - schema: - query: Query - types: - Query: - fields: - greet: - type: String - const: - data: Hello World! -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { greet }" - response: - headers: - x-id: 1 - x-name: John Doe - body: - data: - greet: Hello World! diff --git a/tests/http/env-value.yml b/tests/http/env-value.yml deleted file mode 100644 index 49e3bf268b..0000000000 --- a/tests/http/env-value.yml +++ /dev/null @@ -1,84 +0,0 @@ ---- -name: Env value -config: !inline - server: - upstream: - baseURL: http://jsonplaceholder.typicode.com - schema: - query: Query - types: - Query: - fields: - post1: - type: Post - http: - path: /posts/{{env.ID}} - post2: - type: Post - http: - path: /posts/{{env.POST_ID}} - post3: - type: Post - http: - path: /posts/{{env.NESTED_POST_ID}} - Post: - fields: - id: - type: Int - title: - type: String - userId: - type: Int - required: true - body: - type: String - -env: - ID: 1 - POST_ID: 2 - NESTED_POST_ID: 3 - -post1: &post1 - id: 1 - title: "Post 1" - body: "Post 1 body" - userId: 1 - -post2: &post2 - id: 2 - title: "Post 2" - body: "Post 2 body" - userId: 2 - -post3: &post3 - id: 3 - title: "Post 3" - body: "Post 3 body" - userId: 3 - -mock: - - request: - url: http://jsonplaceholder.typicode.com/posts/1 - response: - body: *post1 - - request: - url: http://jsonplaceholder.typicode.com/posts/2 - response: - body: *post2 - - request: - url: http://jsonplaceholder.typicode.com/posts/3 - response: - body: *post3 - -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { post1 {id title body userId} post2 {id title body userId} post3 {id title body userId} }" - response: - body: - data: - post1: *post1 - post2: *post2 - post3: *post3 diff --git a/tests/http/graphql-dataloader-batch-keys.yml b/tests/http/graphql-dataloader-batch-keys.yml deleted file mode 100644 index e5a2021a13..0000000000 --- a/tests/http/graphql-dataloader-batch-keys.yml +++ /dev/null @@ -1,87 +0,0 @@ -config: !file tests/http/config/graphql-dataloader-batch-keys.graphql -name: Graphql datasource -runner: fail -mock: - - request: - url: http://upstream/graphql - method: POST - body: '[{"query": "a {id, bid, cid}"}]' - response: - body: - data: - a: - - id: 1 - bid: 1 - cid: 1 - - id: 2 - bid: 1 - cid: 1 - - id: 3 - bid: 2 - cid: 2 - - id: 4 - bid: 2 - cid: 2 - - request: - url: http://upstream/graphql - method: POST - body: '[{"query": "b {y}"},{"query": "c {x}"}]' - response: - body: - - data: - b: - y: 1 - - data: - c: - x: 1 - - request: - url: http://upstream/graphql - method: POST - body: '[{"query": "c {x}"},{"query": "b {y}"}]' - response: - body: - - data: - c: - x: 1 - - data: - b: - y: 1 - -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { a { id bid cid b { y } c { x } } }" - response: - body: - data: - a: - - id: 1 - bid: 1 - cid: 1 - b: - y: 1 - c: - x: 1 - - id: 2 - bid: 1 - cid: 1 - b: - y: 1 - c: - x: 1 - - id: 3 - bid: 2 - cid: 2 - b: - y: 1 - c: - x: 1 - - id: 4 - bid: 2 - cid: 2 - b: - y: 1 - c: - x: 1 diff --git a/tests/http/graphql-dataloader-batch-request.yml b/tests/http/graphql-dataloader-batch-request.yml deleted file mode 100644 index b5974a9f3b..0000000000 --- a/tests/http/graphql-dataloader-batch-request.yml +++ /dev/null @@ -1,67 +0,0 @@ -config: !file tests/http/config/graphql-dataloader-batch-request.graphql -name: Graphql datasource -mock: - - request: - url: http://jsonplaceholder.typicode.com/posts - response: - body: - - id: 1 - title: "a" - userId: 1 - - id: 2 - title: "b" - userId: 1 - - id: 3 - title: "c" - userId: 2 - - id: 4 - title: "d" - userId: 2 - - request: - url: http://upstream/graphql - method: POST - body: '[{ "query": "query { user(id: 1) { name } }" },{ "query": "query { user(id: 2) { name } }" }]' - response: - body: - - data: - user: - name: "Leanne Graham" - - data: - user: - name: "Ervin Howell" - # request order in the load method can vary so the additional case below matches if the second request is first - - request: - url: http://upstream/graphql - method: POST - body: '[{ "query": "query { user(id: 2) { name } }" },{ "query": "query { user(id: 1) { name } }" }]' - response: - body: - - data: - user: - name: "Ervin Howell" - - data: - user: - name: "Leanne Graham" - -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { posts { title user { name } } }" - response: - body: - data: - posts: - - title: "a" - user: - name: "Leanne Graham" - - title: "b" - user: - name: "Leanne Graham" - - title: "c" - user: - name: "Ervin Howell" - - title: "d" - user: - name: "Ervin Howell" diff --git a/tests/http/graphql-dataloader-no-batch-request.yml b/tests/http/graphql-dataloader-no-batch-request.yml deleted file mode 100644 index b0df993100..0000000000 --- a/tests/http/graphql-dataloader-no-batch-request.yml +++ /dev/null @@ -1,59 +0,0 @@ -config: !file tests/http/config/graphql-dataloader-no-batch-request.graphql -name: Graphql datasource -mock: - - request: - url: http://jsonplaceholder.typicode.com/posts - response: - body: - - id: 1 - title: "a" - userId: 1 - - id: 2 - title: "b" - userId: 1 - - id: 3 - title: "c" - userId: 2 - - id: 4 - title: "d" - userId: 2 - - request: - url: http://upstream/graphql - method: POST - body: '{ "query": "query { user(id: 1) { name } }" }' - response: - body: - data: - user: - name: "Leanne Graham" - - request: - url: http://upstream/graphql - method: POST - body: '{ "query": "query { user(id: 2) { name } }" }' - response: - body: - data: - user: - name: "Ervin Howell" -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { posts { title user { name } } }" - response: - body: - data: - posts: - - title: "a" - user: - name: "Leanne Graham" - - title: "b" - user: - name: "Leanne Graham" - - title: "c" - user: - name: "Ervin Howell" - - title: "d" - user: - name: "Ervin Howell" diff --git a/tests/http/graphql-datasource-errors.yml b/tests/http/graphql-datasource-errors.yml deleted file mode 100644 index 335cda45b3..0000000000 --- a/tests/http/graphql-datasource-errors.yml +++ /dev/null @@ -1,64 +0,0 @@ -config: !file tests/http/config/graphql-datasource-errors.graphql -name: Graphql datasource -mock: - - request: - url: http://upstream/graphql - method: POST - body: '{ "query": "query { user(id: 1) { name } }" }' - response: - body: - data: null - errors: - - message: Failed to resolve user - path: ["user"] - locations: - - line: 1 - column: 9 - - request: - url: http://upstream/graphql - method: POST - body: '{ "query": "query { user(id: 2) { name id } }" }' - response: - body: - data: - user: - name: null - id: 2 - errors: - - message: Failed to resolve name - locations: - - line: 1 - column: 35 -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { user(id: 1) { name } }" - response: - body: - data: - user: - name: null - errors: - - message: Failed to resolve user - path: ["user"] - locations: - - line: 1 - column: 9 - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { user(id: 2) { name id } }" - response: - body: - data: - user: - name: null - id: 2 - errors: - - message: Failed to resolve name - locations: - - line: 1 - column: 35 diff --git a/tests/http/graphql-datasource-mutation.yml b/tests/http/graphql-datasource-mutation.yml deleted file mode 100644 index 6388977cd4..0000000000 --- a/tests/http/graphql-datasource-mutation.yml +++ /dev/null @@ -1,23 +0,0 @@ -config: !file tests/http/config/graphql-datasource-mutation.graphql -name: Graphql datasource -mock: - - request: - url: http://upstream/graphql - method: POST - body: '{ "query": "mutation { createUser(user: {name: \"Test Name\",email: \"test@email\"}) { name } }" }' - response: - body: - data: - createUser: - name: Test Name -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: 'mutation { createUser(user: {name: "Test Name", email: "test@email"}) { name } }' - response: - body: - data: - createUser: - name: Test Name diff --git a/tests/http/graphql-datasource-no-args.yml b/tests/http/graphql-datasource-no-args.yml deleted file mode 100644 index b79a5b51d2..0000000000 --- a/tests/http/graphql-datasource-no-args.yml +++ /dev/null @@ -1,25 +0,0 @@ -config: !file tests/http/config/graphql-datasource-no-args.graphql -name: Graphql datasource -mock: - - request: - url: http://upstream/graphql - method: POST - body: '{ "query": "query { users { name } }" }' - response: - body: - data: - users: - - name: "Leanne Graham" - - name: "Ervin Howell" -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { users_list { name } }" - response: - body: - data: - users_list: - - name: "Leanne Graham" - - name: "Ervin Howell" diff --git a/tests/http/graphql-datasource-with-args.yml b/tests/http/graphql-datasource-with-args.yml deleted file mode 100644 index 952536d46f..0000000000 --- a/tests/http/graphql-datasource-with-args.yml +++ /dev/null @@ -1,46 +0,0 @@ -config: !file tests/http/config/graphql-datasource-with-args.graphql -name: Graphql datasource -mock: - - request: - url: http://upstream/graphql - method: POST - body: '{ "query": "query { user(id: 1) { name } }" }' - response: - body: - data: - user: - name: "Leanne Graham" - - request: - url: http://upstream/graphql - method: POST - body: '{ "query": "query { post(id: 1) { id user { name } } }" }' - response: - body: - data: - post: - id: 1 - user: - name: "Leanne Graham" -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { user(id: 1) { name } }" - response: - body: - data: - user: - name: "Leanne Graham" - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { post(id: 1) { id user { name } } }" - response: - body: - data: - post: - id: 1 - user: - name: "Leanne Graham" diff --git a/tests/http/grpc-batch.yml b/tests/http/grpc-batch.yml deleted file mode 100644 index b25fa57d66..0000000000 --- a/tests/http/grpc-batch.yml +++ /dev/null @@ -1,28 +0,0 @@ -config: !file tests/http/config/grpc-batch.graphql -name: Grpc datasource with batching -mock: - - request: - url: http://localhost:50051/news.NewsService/GetMultipleNews - method: POST - body: \0\0\0\0\n\x02\x08\x02\n\x02\x08\x03 - response: - body: \0\0\0\0t\n#\x08\x02\x12\x06Note 2\x1a\tContent 2\"\x0cPost image 2\n#\x08\x03\x12\x06Note 3\x1a\tContent 3\"\x0cPost image 3 - - request: - url: http://localhost:50051/news.NewsService/GetMultipleNews - method: POST - body: \0\0\0\0\n\x02\x08\x03\n\x02\x08\x02 - response: - body: \0\0\0\0t\n#\x08\x03\x12\x06Note 3\x1a\tContent 3\"\x0cPost image 3\n#\x08\x02\x12\x06Note 2\x1a\tContent 2\"\x0cPost image 2 -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { newsById2: newsById(news: {id: 2}) { title }, newsById3: newsById(news: {id: 3}) { title } }" - response: - body: - data: - newsById2: - title: Note 2 - newsById3: - title: Note 3 diff --git a/tests/http/grpc-simple.yml b/tests/http/grpc-simple.yml deleted file mode 100644 index c08953da7f..0000000000 --- a/tests/http/grpc-simple.yml +++ /dev/null @@ -1,21 +0,0 @@ -config: !file tests/http/config/grpc.graphql -name: Grpc datasource -mock: - - request: - url: http://localhost:50051/news.NewsService/GetAllNews - method: POST - response: - body: \0\0\0\0t\n#\x08\x01\x12\x06Note 1\x1a\tContent 1\"\x0cPost image 1\n#\x08\x02\x12\x06Note 2\x1a\tContent 2\"\x0cPost image 2 -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { news {news{ id }} }" - response: - body: - data: - news: - news: - - id: 1 - - id: 2 diff --git a/tests/http/https.yml b/tests/http/https.yml deleted file mode 100644 index 26c44c6ab2..0000000000 --- a/tests/http/https.yml +++ /dev/null @@ -1,40 +0,0 @@ ---- -name: Against a server with HTTPS -config: !inline - server: {} - upstream: - baseURL: https://jsonplaceholder.typicode.com - schema: - query: Query - types: - Query: - fields: - firstUser: - type: User - http: - path: /users/1 - baseURL: https://jsonplaceholder.typicode.com - User: - fields: - id: - type: Int - name: - type: String -mock: - - request: - url: https://jsonplaceholder.typicode.com/users/1 - response: - body: - id: 1 - name: "Leanne Graham" -assert: - - request: - url: http://localhost:8080/graphql - method: POST - body: - query: "query { firstUser { name } }" - response: - body: - data: - firstUser: - name: "Leanne Graham" diff --git a/tests/http/inline-field.yml b/tests/http/inline-field.yml deleted file mode 100644 index 2662099799..0000000000 --- a/tests/http/inline-field.yml +++ /dev/null @@ -1,25 +0,0 @@ ---- -config: !file tests/http/config/inline-field.graphql -name: Inline field -mock: - - request: - url: http://jsonplaceholder.typicode.com/users/1 - response: - body: - id: 1 - name: foo - address: - geo: - lat: "-37.3159" - -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { user { address } }" - response: - body: - data: - user: - address: "-37.3159" diff --git a/tests/http/inline-index-list.yml b/tests/http/inline-index-list.yml deleted file mode 100644 index 97dc30b1fc..0000000000 --- a/tests/http/inline-index-list.yml +++ /dev/null @@ -1,21 +0,0 @@ ---- -config: !file tests/http/config/inline-index-list.graphql -name: Test inline index list -mock: - - request: - url: http://jsonplaceholder.typicode.com/users - response: - body: - - id: 1 - name: "Leanne Graham" - -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { username }" - response: - body: - data: - username: "Leanne Graham" diff --git a/tests/http/modified-field.yml b/tests/http/modified-field.yml deleted file mode 100644 index 1d5defd7db..0000000000 --- a/tests/http/modified-field.yml +++ /dev/null @@ -1,22 +0,0 @@ ---- -config: !file tests/http/config/modified-field.graphql -name: Modified field -mock: - - request: - url: http://jsonplaceholder.typicode.com/users/1 - response: - body: - id: 1 - name: "Leanne Graham" - -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { user { fullname } }" - response: - body: - data: - user: - fullname: "Leanne Graham" diff --git a/tests/http/mutation-put.yml b/tests/http/mutation-put.yml deleted file mode 100644 index 4e549fc714..0000000000 --- a/tests/http/mutation-put.yml +++ /dev/null @@ -1,31 +0,0 @@ ---- -config: !file tests/http/config/mutation-put.graphql -name: Mutation put - -mock: - - request: - method: GET - url: http://jsonplaceholder.typicode.com/users/1 - response: - body: - id: 1 - name: Leanne Graham - - request: - method: PUT - url: http://jsonplaceholder.typicode.com/posts/100 - body: '{"body":"abc","id":100,"title":"bar","userId":1}' - response: - body: - body: abc - -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: 'mutation { insertPost(input: { body: "abc", title: "bar", userId: 1, id: 100 }) { body } }' - response: - body: - data: - insertPost: - body: abc diff --git a/tests/http/mutation.yml b/tests/http/mutation.yml deleted file mode 100644 index c736c05a13..0000000000 --- a/tests/http/mutation.yml +++ /dev/null @@ -1,26 +0,0 @@ ---- -config: !file tests/http/config/mutation.graphql -name: Mutation - -mock: - - request: - method: POST - url: http://jsonplaceholder.typicode.com/posts - body: '{"body":"post-body","title":"post-title","userId":1}' - response: - body: - title: "post-title" - body: "post-body" - userId: 1 - -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: 'mutation { insertPost(input: { body: "post-body", title: "post-title", userId: 1 }) { body } }' - response: - body: - data: - insertPost: - body: "post-body" diff --git a/tests/http/n-plus-one-list.yml b/tests/http/n-plus-one-list.yml deleted file mode 100644 index 5b6fadc22b..0000000000 --- a/tests/http/n-plus-one-list.yml +++ /dev/null @@ -1,49 +0,0 @@ -config: !file tests/http/config/n-plus-one.graphql -name: n + 1 Request List -mock: - - request: - url: http://example.com/bars - response: - body: - - id: 1 - fooId: 1 - - id: 2 - fooId: 1 - - id: 3 - fooId: 2 - - id: 4 - fooId: 2 - - request: - url: http://example.com/foos?id=1&id=2 - response: - body: - - id: 1 - name: foo1 - - id: 2 - name: foo2 -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: query { bars { foo { id } fooId id } } - response: - body: - data: - bars: - - fooId: 1 - id: 1 - foo: - - id: 1 - - id: 2 - fooId: 1 - foo: - - id: 1 - - id: 3 - fooId: 2 - foo: - - id: 2 - - id: 4 - fooId: 2 - foo: - - id: 2 diff --git a/tests/http/n-plus-one.yml b/tests/http/n-plus-one.yml deleted file mode 100644 index 2b81a0bbb7..0000000000 --- a/tests/http/n-plus-one.yml +++ /dev/null @@ -1,39 +0,0 @@ -config: !file tests/http/config/n-plus-one.graphql -name: n + 1 Request -mock: - - request: - url: http://example.com/foos - response: - body: - - id: 1 - name: foo1 - - id: 2 - name: foo2 - - request: - url: http://example.com/bars?fooId=1&fooId=2 - response: - body: - - id: 1 - fooId: "1" - - id: 2 - fooId: "2" -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: query { foos { bar {fooId id} id name} } - response: - body: - data: - foos: - - bar: - fooId: "1" - id: 1 - id: 1 - name: foo1 - - bar: - fooId: "2" - id: 2 - id: 2 - name: foo2 diff --git a/tests/http/nested-objects.yml b/tests/http/nested-objects.yml deleted file mode 100644 index c1ba8367c5..0000000000 --- a/tests/http/nested-objects.yml +++ /dev/null @@ -1,27 +0,0 @@ ---- -config: !file tests/http/config/nested-objects.graphql -name: Nested objects -mock: - - request: - url: http://jsonplaceholder.typicode.com/users/1 - response: - body: - id: 1 - name: foo - address: - geo: - lat: "-37.3159" - -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { user { address { geo { lat } } } }" - response: - body: - data: - user: - address: - geo: - lat: "-37.3159" diff --git a/tests/http/nesting-level3.yml b/tests/http/nesting-level3.yml deleted file mode 100644 index 59c0e1c1cc..0000000000 --- a/tests/http/nesting-level3.yml +++ /dev/null @@ -1,48 +0,0 @@ ---- -config: !file tests/http/config/nesting-level3.graphql -name: Nesting level 3 -mock: - - request: - method: GET - url: http://jsonplaceholder.typicode.com/posts/1 - response: - body: - userId: 1 - - request: - method: GET - url: http://jsonplaceholder.typicode.com/users/1 - response: - body: - id: 1 - name: Leanne Graham - - request: - method: GET - url: http://jsonplaceholder.typicode.com/users/1/todos - response: - body: - - completed: false - - completed: false - - completed: false - - completed: true - - completed: false - - completed: false - -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { post { user { todos { completed } } } }" - response: - status: 200 - body: - data: - post: - user: - todos: - - completed: false - - completed: false - - completed: false - - completed: true - - completed: false - - completed: false diff --git a/tests/http/nullable-arg-query.yml b/tests/http/nullable-arg-query.yml deleted file mode 100644 index 124aa4b01a..0000000000 --- a/tests/http/nullable-arg-query.yml +++ /dev/null @@ -1,59 +0,0 @@ ---- -config: !file tests/http/config/nullable-arg-query.graphql -name: Nullable arg query -mock: - - request: - url: http://jsonplaceholder.typicode.com/users - method: GET - response: - body: - - id: 1 - - id: 2 - - id: 3 - - id: 4 - - id: 5 - - id: 6 - - id: 7 - - id: 8 - - id: 9 - - id: 10 - - request: - url: http://jsonplaceholder.typicode.com/users?id=1 - method: GET - response: - body: - - id: 1 - -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { users { id } }" - - response: - body: - data: - users: - - id: 1 - - id: 2 - - id: 3 - - id: 4 - - id: 5 - - id: 6 - - id: 7 - - id: 8 - - id: 9 - - id: 10 - - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { users(id: 1) { id } }" - - response: - body: - data: - users: - - id: 1 diff --git a/tests/http/omit-index-list.yml b/tests/http/omit-index-list.yml deleted file mode 100644 index 97dc30b1fc..0000000000 --- a/tests/http/omit-index-list.yml +++ /dev/null @@ -1,21 +0,0 @@ ---- -config: !file tests/http/config/inline-index-list.graphql -name: Test inline index list -mock: - - request: - url: http://jsonplaceholder.typicode.com/users - response: - body: - - id: 1 - name: "Leanne Graham" - -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { username }" - response: - body: - data: - username: "Leanne Graham" diff --git a/tests/http/omit-resolved-by-parent.yml b/tests/http/omit-resolved-by-parent.yml deleted file mode 100644 index b0fb364fc2..0000000000 --- a/tests/http/omit-resolved-by-parent.yml +++ /dev/null @@ -1,24 +0,0 @@ ---- -config: !file tests/http/config/resolved-by-parent.graphql -name: Resolved by parent -mock: - - request: - url: http://jsonplaceholder.typicode.com/users/1 - response: - body: - id: 1 - name: foo - address: - street: "Kulas Light" - -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { user { address } }" - response: - body: - data: - user: - address: "Kulas Light" diff --git a/tests/http/ref-other-nested.yml b/tests/http/ref-other-nested.yml deleted file mode 100644 index 570b17b1da..0000000000 --- a/tests/http/ref-other-nested.yml +++ /dev/null @@ -1,55 +0,0 @@ ---- -name: Ref other nested -config: !inline - server: {} - upstream: - baseURL: https://jsonplaceholder.typicode.com - schema: - query: Query - types: - Query: - fields: - firstUser: - type: User1 - http: - path: /users/1 - baseURL: https://jsonplaceholder.typicode.com - User: - fields: - id: - type: Int - name: - type: String - User2: - fields: - user2: - type: User - http: - path: /users/1 - baseURL: https://jsonplaceholder.typicode.com - User1: - fields: - user1: - type: User2 - -mock: - - request: - url: https://jsonplaceholder.typicode.com/users/1 - response: - body: - id: 1 - name: "Leanne Graham" - -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { firstUser { user1 { user2 { name } } } }" - response: - body: - data: - firstUser: - user1: - user2: - name: "Leanne Graham" diff --git a/tests/http/ref-other.yml b/tests/http/ref-other.yml deleted file mode 100644 index 9d79db5d3b..0000000000 --- a/tests/http/ref-other.yml +++ /dev/null @@ -1,22 +0,0 @@ ---- -config: !file tests/http/config/ref-other.graphql -name: Ref other -mock: - - request: - url: https://jsonplaceholder.typicode.com/users/1 - response: - body: - id: 1 - name: "Leanne Graham" -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { firstUser { user1 { name } } }" - response: - body: - data: - firstUser: - user1: - name: "Leanne Graham" diff --git a/tests/http/rename-field.yml b/tests/http/rename-field.yml deleted file mode 100644 index e29072f00c..0000000000 --- a/tests/http/rename-field.yml +++ /dev/null @@ -1,38 +0,0 @@ ---- -config: !file tests/http/config/rename-field.graphql -name: Rename field -mock: - - request: - url: http://jsonplaceholder.typicode.com/users/1 - response: - body: - id: 1 - name: "Leanne Graham" - - request: - url: http://jsonplaceholder.typicode.com/users/2 - response: - body: - id: 2 - name: "Ervin Howell" - -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { user1 { name } }" - response: - body: - data: - user1: - name: "Leanne Graham" - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { user2 { name } }" - response: - body: - data: - user2: - name: "Ervin Howell" diff --git a/tests/http/request-to-upstream-batching.yml b/tests/http/request-to-upstream-batching.yml deleted file mode 100644 index 66489c3389..0000000000 --- a/tests/http/request-to-upstream-batching.yml +++ /dev/null @@ -1,64 +0,0 @@ ---- -name: Batched graphql request to batched upstream query -config: !inline - upstream: - batch: - delay: 1 - server: - batchRequests: true - schema: - query: Query - types: - Query: - fields: - user: - type: User - args: - id: - type: Int - list: false - required: true - http: - path: /users - baseURL: http://jsonplaceholder.typicode.com - query: - - key: id - value: "{{args.id}}" - groupBy: - - id - User: - fields: - id: - type: Int - name: - type: String -mock: - - request: - url: http://jsonplaceholder.typicode.com/users?id=1&id=2 - headers: - test: test - response: - body: - - id: 1 - name: foo - - id: 2 - name: bar -assert: - # Sending a batched request - - request: - method: POST - url: http://localhost:8080/graphql - body: - - query: "query { user(id: 1) { id name } }" - - query: "query { user(id: 2) { id name } }" - - response: - body: - - data: - user: - id: 1 - name: foo - - data: - user: - id: 2 - name: bar diff --git a/tests/http/resolve-with-headers.yml b/tests/http/resolve-with-headers.yml deleted file mode 100644 index 6df42b7884..0000000000 --- a/tests/http/resolve-with-headers.yml +++ /dev/null @@ -1,28 +0,0 @@ ---- -config: !file tests/http/config/resolve-with-headers.graphql -name: Resolve with headers - -mock: - - request: - url: http://jsonplaceholder.typicode.com/posts/1 - method: GET - response: - headers: - authorization: 1 - body: - id: 1 - title: "post title" - -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { post1 { title } }" - headers: - authorization: 1 - response: - body: - data: - post1: - title: "post title" diff --git a/tests/http/resolve-with-vars.yml b/tests/http/resolve-with-vars.yml deleted file mode 100644 index 394ac527f4..0000000000 --- a/tests/http/resolve-with-vars.yml +++ /dev/null @@ -1,22 +0,0 @@ ---- -config: !file tests/http/config/resolve-with-vars.graphql -name: Resolve with vars -mock: - - request: - url: http://jsonplaceholder.typicode.com/users?id=1 - response: - body: - - id: 1 - name: "Leanne Graham" - -assert: - - request: - url: http://localhost:8080/graphql - method: POST - body: - query: "query { user(id: 1) { name } }" - response: - body: - data: - user: - - name: "Leanne Graham" diff --git a/tests/http/resolved-by-parent.yml b/tests/http/resolved-by-parent.yml deleted file mode 100644 index b0fb364fc2..0000000000 --- a/tests/http/resolved-by-parent.yml +++ /dev/null @@ -1,24 +0,0 @@ ---- -config: !file tests/http/config/resolved-by-parent.graphql -name: Resolved by parent -mock: - - request: - url: http://jsonplaceholder.typicode.com/users/1 - response: - body: - id: 1 - name: foo - address: - street: "Kulas Light" - -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { user { address } }" - response: - body: - data: - user: - address: "Kulas Light" diff --git a/tests/http/simple-graphql.yml b/tests/http/simple-graphql.yml deleted file mode 100644 index 33efa5964f..0000000000 --- a/tests/http/simple-graphql.yml +++ /dev/null @@ -1,33 +0,0 @@ -config: !file tests/http/config/simple.graphql -name: Simple GraphQL Request -mock: - - request: - url: http://jsonplaceholder.typicode.com/users/1 - headers: - test: test - response: - body: - id: 1 - name: foo -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: query { user { name } } - response: - body: - data: - user: - name: foo - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: - foo: bar - response: - body: - data: null - errors: - - message: "Unexpected GraphQL Request: invalid type: map, expected a string at line 1 column 9" diff --git a/tests/http/simple-query.yml b/tests/http/simple-query.yml deleted file mode 100644 index cb963f1c35..0000000000 --- a/tests/http/simple-query.yml +++ /dev/null @@ -1,41 +0,0 @@ ---- -name: Simple query -config: !inline - server: {} - upstream: - baseURL: http://jsonplaceholder.typicode.com - schema: - query: Query - types: - Query: - fields: - firstUser: - type: User - http: - path: /users/1 - User: - fields: - id: - type: Int - name: - type: String - -mock: - - request: - url: http://jsonplaceholder.typicode.com/users/1 - response: - body: - id: 1 - name: foo - -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { firstUser { name } }" - response: - body: - data: - firstUser: - name: foo diff --git a/tests/http/test-expr-concat.yml b/tests/http/test-expr-concat.yml deleted file mode 100644 index e338047e0b..0000000000 --- a/tests/http/test-expr-concat.yml +++ /dev/null @@ -1,16 +0,0 @@ -config: !file tests/http/config/test-expr-concat.graphql -name: expr concat -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { concat }" - response: - body: - data: - concat: - - 1 - - 2 - - 3 - - 4 diff --git a/tests/http/test-expr-intersection.yml b/tests/http/test-expr-intersection.yml deleted file mode 100644 index 621c86abf6..0000000000 --- a/tests/http/test-expr-intersection.yml +++ /dev/null @@ -1,13 +0,0 @@ -config: !file tests/http/config/test-expr-intersection.graphql -name: expr intersection -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { intersection }" - response: - body: - data: - intersection: - - 3 diff --git a/tests/http/test-expr-logic.yml b/tests/http/test-expr-logic.yml deleted file mode 100644 index 699352a6bf..0000000000 --- a/tests/http/test-expr-logic.yml +++ /dev/null @@ -1,66 +0,0 @@ -config: !file tests/http/config/test-expr-logic.graphql -name: expr logic -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { - andTrue1 - andTrue2 - andFalse3 - andFalse1 - andFalse2 - isEmptyTrue1 - isEmptyTrue2 - isEmptyTrue3 - isEmptyTrue4 - isEmptyFalse1 - isEmptyFalse2 - isEmptyFalse3 - notTrue - notFalse1 - notFalse2 - orFalse1 - orFalse2 - orTrue1 - orTrue2 - orTrue3 - condZero - condOne - condTwo - defaultToZero - defaultToTrue - ifZero - ifOne - }" - response: - body: - data: - andTrue1: true - andTrue2: true - andFalse3: false - andFalse1: false - andFalse2: false - isEmptyTrue1: true - isEmptyTrue2: true - isEmptyTrue3: true - isEmptyTrue4: true - isEmptyFalse1: false - isEmptyFalse2: false - isEmptyFalse3: false - notTrue: true - notFalse1: false - notFalse2: false - orFalse1: false - orFalse2: false - orTrue1: true - orTrue2: true - orTrue3: true - condZero: 0 - condOne: 1 - condTwo: 2 - defaultToZero: 0 - defaultToTrue: true - ifZero: 0 - ifOne: 1 diff --git a/tests/http/test-expr-math.yml b/tests/http/test-expr-math.yml deleted file mode 100644 index 87413d4944..0000000000 --- a/tests/http/test-expr-math.yml +++ /dev/null @@ -1,32 +0,0 @@ -config: !file tests/http/config/test-expr-math.graphql -name: expr logic -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { - add - subtract - multiply - mod - div1 - div2 - inc - dec - product - sum - }" - response: - body: - data: - add: 42.0 - subtract: 42.0 - multiply: 42.0 - mod: 42 - div1: 42.0 - div2: 42.0 - inc: 42.0 - dec: 42.0 - product: 42.0 - sum: 42.0 diff --git a/tests/http/test-expr-relation.yml b/tests/http/test-expr-relation.yml deleted file mode 100644 index f0db0830e7..0000000000 --- a/tests/http/test-expr-relation.yml +++ /dev/null @@ -1,138 +0,0 @@ -config: !file tests/http/config/test-expr-relation.graphql -name: expr logic -assert: -mock: - - request: - url: http://example.com/user - response: - body: - id: 1 - email: abc@bcd.com - friend: - id: 2 - email: bcd@abc.com - friend: null - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { - intersection - difference - symmetricDifference1 - symmetricDifference2 - - equalsTrue1 - equalsTrue2 - equalsTrue3 - equalsFalse1 - equalsFalse2 - equalsFalse3 - - gtTrue1 - gtTrue2 - gtTrue3 - gtFalse1 - gtFalse2 - gtFalse3 - - ltFalse1 - ltFalse2 - ltFalse3 - ltTrue1 - ltTrue2 - ltTrue3 - - gteTrue1 - gteTrue2 - gteTrue3 - gteFalse1 - gteFalse2 - gteFalse3 - - lteTrue1 - lteFalse1 - lteTrue2 - lteTrue3 - lteTrue4 - lteTrue5 - - max1 - max2 - max3 - - min1 - min2 - min3 - - sortPath - pathEq1 - pathEq2 - }" - response: - body: - data: - intersection: - - 3 - difference: - - 1 - symmetricDifference1: - - 1 - symmetricDifference2: - - 1 - - equalsTrue1: true - equalsTrue2: true - equalsTrue3: true - equalsFalse1: false - equalsFalse2: false - equalsFalse3: false - - gtTrue1: true - gtTrue2: true - gtTrue3: true - gtFalse1: false - gtFalse2: false - gtFalse3: false - - ltFalse1: false - ltFalse2: false - ltFalse3: false - ltTrue1: true - ltTrue2: true - ltTrue3: true - - gteTrue1: true - gteTrue2: true - gteTrue3: true - gteFalse1: false - gteFalse2: false - gteFalse3: false - - lteTrue1: true - lteFalse1: false - lteTrue2: true - lteTrue3: true - lteTrue4: true - lteTrue5: true - - max1: 923.83 - max2: z - max3: - - 2 - - 3 - - min1: -423 - min2: abc - min3: - - -1 - - 0 - - 0 - - 0 - - sortPath: - - 2 - - 3 - - 4 - pathEqTrue: true - pathEqFalse: false diff --git a/tests/http/test-js-hello-world.yml b/tests/http/test-js-hello-world.yml deleted file mode 100644 index c8a669ca5f..0000000000 --- a/tests/http/test-js-hello-world.yml +++ /dev/null @@ -1,13 +0,0 @@ ---- -name: Js Hello World -config: !file tests/http/config/test-js.graphql -assert: - - request: - url: http://localhost:8080/graphql - method: POST - body: - query: "query { hello }" - response: - body: - data: - hello: "hello world" diff --git a/tests/http/test-js-request-reponse.yml b/tests/http/test-js-request-reponse.yml deleted file mode 100644 index 0fb4fafea3..0000000000 --- a/tests/http/test-js-request-reponse.yml +++ /dev/null @@ -1,21 +0,0 @@ ---- -name: Js Request Response Hello World -config: !file tests/http/config/test-js.graphql -mock: - - request: - url: http://localhost:3000/bye - method: GET - body: '""' - headers: - response: - body: "hello world" -assert: - - request: - url: http://localhost:8080/graphql - method: POST - body: - query: "query { hi }" - response: - body: - data: - hi: "hello world" diff --git a/tests/http/test-params-as-body.yml b/tests/http/test-params-as-body.yml deleted file mode 100644 index 743875167b..0000000000 --- a/tests/http/test-params-as-body.yml +++ /dev/null @@ -1,26 +0,0 @@ ---- -name: Http with args as body -config: !file tests/http/config/args-body.graphql - -mock: - - request: - url: http://jsonplaceholder.typicode.com/users - method: POST - body: '{"id":1,"name":"foo"}' - response: - body: - id: 1 - name: foo - -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "{\n firstUser(id: 1, name:\"foo\") {\n id\n name\n }\n}" - response: - body: - data: - firstUser: - id: 1 - name: foo diff --git a/tests/http/test-static-value.yml b/tests/http/test-static-value.yml deleted file mode 100644 index b97130f95a..0000000000 --- a/tests/http/test-static-value.yml +++ /dev/null @@ -1,38 +0,0 @@ ---- -name: Static value -config: !inline - schema: - query: Query - types: - Query: - fields: - firstUser: - type: User - http: - baseURL: "http://jsonplaceholder.typicode.com" - path: "/users/1" - User: - fields: - name: - type: String - id: - type: Int -mock: - - request: - url: http://jsonplaceholder.typicode.com/users/1 - response: - body: - id: 1 - name: "Leanne Graham" - -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { firstUser { name } }" - response: - body: - data: - firstUser: - name: "Leanne Graham" diff --git a/tests/http/upstream-batching.yml b/tests/http/upstream-batching.yml deleted file mode 100644 index 49f86c1868..0000000000 --- a/tests/http/upstream-batching.yml +++ /dev/null @@ -1,56 +0,0 @@ ---- -name: Sending requests to be batched by the upstream server -config: !inline - upstream: - batch: - delay: 1 - schema: - query: Query - types: - Query: - fields: - user: - type: User - args: - id: - type: Int - http: - path: /users - baseURL: http://jsonplaceholder.typicode.com - query: - - key: id - value: "{{args.id}}" - groupBy: - - id - User: - fields: - id: - type: Int - name: - type: String -mock: - - request: - url: http://jsonplaceholder.typicode.com/users?id=1&id=2 - headers: - test: test - response: - body: - - id: 1 - name: foo - - id: 2 - name: bar -assert: - # Sending a batched request - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { u1: user(id: 1) { id } u2: user(id: 2) { id } }" - - response: - body: - data: - u1: - id: 1 - u2: - id: 2 diff --git a/tests/http/upstream-fail-request.yml b/tests/http/upstream-fail-request.yml deleted file mode 100644 index 497d2041c7..0000000000 --- a/tests/http/upstream-fail-request.yml +++ /dev/null @@ -1,22 +0,0 @@ -config: !file tests/http/config/simple.graphql -name: Simple GraphQL Request -mock: - - request: - url: http://jsonplaceholder.typicode.com/users/1 - response: - status: 503 - body: {} -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: query { user { name } } - response: - body: - data: null - errors: - - message: "IOException: Status code error" - locations: - - line: 1 - column: 9 diff --git a/tests/http/with-args-url.yml b/tests/http/with-args-url.yml deleted file mode 100644 index 07d9230f61..0000000000 --- a/tests/http/with-args-url.yml +++ /dev/null @@ -1,48 +0,0 @@ ---- -name: With args URL -config: !inline - server: {} - upstream: - baseURL: http://jsonplaceholder.typicode.com - schema: - query: Query - types: - Query: - fields: - user: - type: User - args: - id: - type: Int - required: true - http: - path: /users/{{args.id}} - baseURL: http://jsonplaceholder.typicode.com - User: - fields: - id: - type: Int - name: - type: String - -mock: - - request: - url: http://jsonplaceholder.typicode.com/users/1 - headers: - test: test - response: - body: - id: 1 - name: foo - -assert: - - request: - method: POST - url: http://localhost:8080/graphql - body: - query: "query { user(id: 1) { name } }" - response: - body: - data: - user: - name: foo diff --git a/tests/http/with-args.yml b/tests/http/with-args.yml deleted file mode 100644 index 5592f5785c..0000000000 --- a/tests/http/with-args.yml +++ /dev/null @@ -1,22 +0,0 @@ ---- -config: !file tests/http/config/with-args.graphql -name: With args -mock: - - request: - url: http://jsonplaceholder.typicode.com/users?id=1 - response: - body: - - id: 1 - name: "Leanne Graham" - -assert: - - request: - url: http://localhost:8080/graphql - method: POST - body: - query: "query { user(id: 1) { name } }" - response: - body: - data: - user: - - name: "Leanne Graham" diff --git a/tests/http/with-nesting.yml b/tests/http/with-nesting.yml deleted file mode 100644 index e78da510de..0000000000 --- a/tests/http/with-nesting.yml +++ /dev/null @@ -1,34 +0,0 @@ ---- -config: !file tests/http/config/with-nesting.graphql -name: With nesting -mock: - - request: - url: http://jsonplaceholder.typicode.com/users/1 - response: - body: - id: 1 - name: "Leanne Graham" - username: "Bret" - email: "leanne@mail.com" - - request: - url: http://jsonplaceholder.typicode.com/users/1/posts - response: - body: - - title: title1 - - title: title2 - - title: title3 - -assert: - - request: - url: http://localhost:8080/graphql - method: POST - body: - query: "query { user { posts { title } } }" - response: - body: - data: - user: - posts: - - title: title1 - - title: title2 - - title: title3 diff --git a/tests/http_spec.rs b/tests/http_spec.rs index 6360492557..66e3932926 100644 --- a/tests/http_spec.rs +++ b/tests/http_spec.rs @@ -136,9 +136,14 @@ struct HttpSpec { impl HttpSpec { fn cargo_read(path: &str) -> anyhow::Result> { let dir_path = PathBuf::from(env!("CARGO_MANIFEST_DIR")).join(path); + + if !dir_path.exists() { + return Ok(Vec::with_capacity(0)); + } + let mut files = Vec::new(); - for entry in fs::read_dir(&dir_path)? { + for entry in fs::read_dir(dir_path)? { let path = entry?.path(); if path.is_dir() { continue; @@ -153,11 +158,6 @@ impl HttpSpec { } } - assert!( - !files.is_empty(), - "No files found in {}", - dir_path.to_str().unwrap_or_default() - ); Ok(files) }