From 260907dce8e79cbceb6d3490787e4b519268d3e9 Mon Sep 17 00:00:00 2001 From: Kunam Balaram Reddy Date: Tue, 30 Apr 2024 09:19:05 +0530 Subject: [PATCH] refactor: Refactor execution_spec (#1727) Co-authored-by: Tushar Mathur --- Cargo.lock | 83 ++ Cargo.toml | 7 + tests/core/env.rs | 23 + tests/core/file.rs | 67 + tests/core/http.rs | 176 +++ tests/core/mod.rs | 7 + tests/core/model.rs | 63 + tests/core/parse.rs | 306 +++++ tests/core/runtime.rs | 108 ++ .../snapshots/add-field-index-list.md_0.snap} | 2 +- .../add-field-index-list.md_client.snap} | 2 +- .../add-field-index-list.md_merged.snap} | 2 +- .../add-field-many-list.md_client.snap} | 2 +- .../add-field-many-list.md_merged.snap} | 2 +- .../snapshots/add-field-many.md_client.snap} | 2 +- .../snapshots/add-field-many.md_merged.snap} | 2 +- .../snapshots/add-field-modify.md_0.snap} | 2 +- .../add-field-modify.md_client.snap} | 2 +- .../add-field-modify.md_merged.snap} | 2 +- .../add-field-with-composition.md_0.snap} | 2 +- .../add-field-with-composition.md_1.snap} | 2 +- ...add-field-with-composition.md_client.snap} | 2 +- ...add-field-with-composition.md_merged.snap} | 2 +- .../add-field-with-modify.md_0.snap} | 2 +- .../add-field-with-modify.md_1.snap} | 2 +- .../add-field-with-modify.md_client.snap} | 2 +- .../add-field-with-modify.md_merged.snap} | 2 +- .../snapshots/add-field.md_0.snap} | 2 +- .../snapshots/add-field.md_client.snap} | 2 +- .../snapshots/add-field.md_merged.snap} | 2 +- .../snapshots/apollo-tracing.md_0.snap} | 2 +- .../snapshots/apollo-tracing.md_client.snap} | 2 +- .../snapshots/apollo-tracing.md_merged.snap} | 2 +- .../snapshots/auth-basic.md_0.snap} | 2 +- .../snapshots/auth-basic.md_1.snap} | 2 +- .../snapshots/auth-basic.md_2.snap} | 2 +- .../snapshots/auth-basic.md_3.snap} | 2 +- .../snapshots/auth-basic.md_4.snap} | 2 +- .../snapshots/auth-basic.md_5.snap} | 2 +- .../snapshots/auth-basic.md_6.snap} | 2 +- .../snapshots/auth-basic.md_client.snap} | 2 +- .../snapshots/auth-basic.md_merged.snap} | 2 +- .../snapshots/auth-jwt.md_0.snap} | 2 +- .../snapshots/auth-jwt.md_1.snap} | 2 +- .../snapshots/auth-jwt.md_2.snap} | 2 +- .../snapshots/auth-jwt.md_3.snap} | 2 +- .../snapshots/auth-jwt.md_4.snap} | 2 +- .../snapshots/auth-jwt.md_5.snap} | 2 +- .../snapshots/auth-jwt.md_client.snap} | 2 +- .../snapshots/auth-jwt.md_merged.snap} | 2 +- .../snapshots/auth.md_client.snap} | 2 +- .../snapshots/auth.md_merged.snap} | 2 +- .../snapshots/batching-default.md_0.snap} | 2 +- .../batching-default.md_client.snap} | 2 +- .../batching-default.md_merged.snap} | 2 +- .../snapshots/batching-disabled.md_0.snap} | 2 +- .../batching-disabled.md_client.snap} | 2 +- .../batching-disabled.md_merged.snap} | 2 +- .../batching-group-by-default.md_0.snap} | 2 +- .../batching-group-by-default.md_client.snap} | 2 +- .../batching-group-by-default.md_merged.snap} | 2 +- .../snapshots/batching-group-by.md_0.snap} | 2 +- .../batching-group-by.md_client.snap} | 2 +- .../batching-group-by.md_merged.snap} | 2 +- .../snapshots/batching-post.md_0.snap} | 2 +- .../snapshots/batching-post.md_client.snap} | 2 +- .../snapshots/batching-post.md_merged.snap} | 2 +- .../snapshots/batching.md_0.snap} | 2 +- .../snapshots/batching.md_1.snap} | 2 +- .../snapshots/batching.md_2.snap} | 2 +- .../snapshots/batching.md_client.snap} | 2 +- .../snapshots/batching.md_merged.snap} | 2 +- .../snapshots/cache-control.md_0.snap} | 2 +- .../snapshots/cache-control.md_1.snap} | 2 +- .../snapshots/cache-control.md_2.snap} | 2 +- .../snapshots/cache-control.md_3.snap} | 2 +- .../snapshots/cache-control.md_client.snap} | 2 +- .../snapshots/cache-control.md_merged.snap} | 2 +- .../snapshots/caching-collision.md_0.snap} | 2 +- .../caching-collision.md_client.snap} | 2 +- .../caching-collision.md_merged.snap} | 2 +- .../snapshots/caching.md_0.snap} | 2 +- .../snapshots/caching.md_1.snap} | 2 +- .../snapshots/caching.md_2.snap} | 2 +- .../snapshots/caching.md_client.snap} | 2 +- .../snapshots/caching.md_merged.snap} | 2 +- .../call-graphql-datasource.md_0.snap} | 2 +- .../call-graphql-datasource.md_client.snap} | 2 +- .../call-graphql-datasource.md_merged.snap} | 2 +- .../call-multiple-steps-piping.md_0.snap} | 2 +- .../call-multiple-steps-piping.md_1.snap} | 2 +- ...call-multiple-steps-piping.md_client.snap} | 2 +- ...call-multiple-steps-piping.md_merged.snap} | 2 +- .../snapshots/call-mutation.md_0.snap} | 2 +- .../snapshots/call-mutation.md_1.snap} | 2 +- .../snapshots/call-mutation.md_2.snap} | 2 +- .../snapshots/call-mutation.md_3.snap} | 2 +- .../snapshots/call-mutation.md_4.snap} | 2 +- .../snapshots/call-mutation.md_client.snap} | 2 +- .../snapshots/call-mutation.md_merged.snap} | 2 +- .../snapshots/call-operator.md_0.snap} | 2 +- .../snapshots/call-operator.md_1.snap} | 2 +- .../snapshots/call-operator.md_10.snap} | 2 +- .../snapshots/call-operator.md_11.snap} | 2 +- .../snapshots/call-operator.md_12.snap} | 2 +- .../snapshots/call-operator.md_2.snap} | 2 +- .../snapshots/call-operator.md_3.snap} | 2 +- .../snapshots/call-operator.md_4.snap} | 2 +- .../snapshots/call-operator.md_5.snap} | 2 +- .../snapshots/call-operator.md_6.snap} | 2 +- .../snapshots/call-operator.md_7.snap} | 2 +- .../snapshots/call-operator.md_8.snap} | 2 +- .../snapshots/call-operator.md_9.snap} | 2 +- .../snapshots/call-operator.md_client.snap} | 2 +- .../snapshots/call-operator.md_merged.snap} | 2 +- .../cors-allow-cred-false.md_0.snap} | 2 +- .../cors-allow-cred-false.md_client.snap} | 2 +- .../cors-allow-cred-false.md_merged.snap} | 2 +- .../snapshots/cors-allow-cred-true.md_0.snap} | 2 +- .../cors-allow-cred-true.md_client.snap} | 2 +- .../cors-allow-cred-true.md_merged.snap} | 2 +- .../snapshots/cors-allow-cred-vary.md_0.snap} | 2 +- .../cors-allow-cred-vary.md_client.snap} | 2 +- .../cors-allow-cred-vary.md_merged.snap} | 2 +- .../snapshots/custom-headers.md_0.snap} | 2 +- .../snapshots/custom-headers.md_client.snap} | 2 +- .../snapshots/custom-headers.md_merged.snap} | 2 +- .../snapshots/env-value.md_0.snap} | 2 +- .../snapshots/env-value.md_client.snap} | 2 +- .../snapshots/env-value.md_merged.snap} | 2 +- ...auth-protected-without-auth.md_errors.snap | 2 +- ...cors-invalid-expose-headers.md_errors.snap | 2 +- ..._spec__cors-invalid-headers.md_errors.snap | 2 +- ..._spec__cors-invalid-methods.md_errors.snap | 2 +- ..._spec__cors-invalid-origins.md_errors.snap | 2 +- ..._experimental-headers-error.md_errors.snap | 2 +- ..._input-type-protected-error.md_errors.snap | 2 +- ..._spec__test-add-field-error.md_errors.snap | 2 +- ...__test-all-blueprint-errors.md_errors.snap | 2 +- ...c__test-batch-operator-post.md_errors.snap | 2 +- ...__test-call-operator-errors.md_errors.snap | 2 +- ...n_spec__test-dbl-usage-many.md_errors.snap | 2 +- ...cution_spec__test-dbl-usage.md_errors.snap | 2 +- ...irectives-undef-null-fields.md_errors.snap | 2 +- ..._spec__test-duplicated-link.md_errors.snap | 2 +- ...ution_spec__test-empty-link.md_errors.snap | 2 +- ...ution_spec__test-expr-error.md_errors.snap | 2 +- ...c__test-expr-with-add-field.md_errors.snap | 2 +- ...spec__test-expr-with-inline.md_errors.snap | 2 +- ...-implemented-from-Interface.md_errors.snap | 2 +- ...t-graphqlsource-no-base-url.md_errors.snap | 2 +- ...st-groupby-without-batching.md_errors.snap | 2 +- ...on_spec__test-grpc-group-by.md_errors.snap | 2 +- ...-grpc-invalid-method-format.md_errors.snap | 2 +- ..._test-grpc-invalid-proto-id.md_errors.snap | 2 +- ...c__test-grpc-missing-fields.md_errors.snap | 2 +- ...spec__test-grpc-nested-data.md_errors.snap | 2 +- ...__test-grpc-nested-optional.md_errors.snap | 2 +- ...on_spec__test-grpc-optional.md_errors.snap | 2 +- ..._spec__test-grpc-proto-path.md_errors.snap | 2 +- ...c__test-grpc-service-method.md_errors.snap | 2 +- ...ion_spec__test-grpc-service.md_errors.snap | 2 +- ...spec__test-hostname-faliure.md_errors.snap | 2 +- ...c__test-http-with-add-field.md_errors.snap | 2 +- ...spec__test-http-with-inline.md_errors.snap | 2 +- ...ion_spec__test-inline-error.md_errors.snap | 2 +- ..._test-invalid-query-in-http.md_errors.snap | 2 +- ...n_spec__test-invalid-server.md_errors.snap | 2 +- ...c__test-js-multiple-scripts.md_errors.snap | 2 +- ...on_spec__test-lack-resolver.md_errors.snap | 2 +- ...g-argument-on-all-resolvers.md_errors.snap | 2 +- ...t-missing-mutation-resolver.md_errors.snap | 2 +- ...test-missing-query-resolver.md_errors.snap | 2 +- ...ec__test-missing-root-types.md_errors.snap | 2 +- ...__test-missing-schema-query.md_errors.snap | 2 +- ...olvable-directives-on-field.md_errors.snap | 2 +- ...tion_spec__test-no-base-url.md_errors.snap | 2 +- ..._test-response-header-value.md_errors.snap | 2 +- ...test-response-headers-multi.md_errors.snap | 2 +- ..._test-response-headers-name.md_errors.snap | 2 +- ..._spec__test-undefined-query.md_errors.snap | 2 +- ...undeclared-type-no-base-url.md_errors.snap | 2 +- ...ution_spec__undeclared-type.md_errors.snap | 2 +- .../snapshots/experimental-headers.md_0.snap} | 2 +- .../experimental-headers.md_client.snap} | 2 +- .../experimental-headers.md_merged.snap} | 2 +- ...raphql-dataloader-batch-request.md_0.snap} | 2 +- ...l-dataloader-batch-request.md_client.snap} | 2 +- ...l-dataloader-batch-request.md_merged.snap} | 2 +- ...hql-dataloader-no-batch-request.md_0.snap} | 2 +- ...ataloader-no-batch-request.md_client.snap} | 2 +- ...ataloader-no-batch-request.md_merged.snap} | 2 +- .../graphql-datasource-errors.md_0.snap} | 2 +- .../graphql-datasource-errors.md_1.snap} | 2 +- .../graphql-datasource-errors.md_client.snap} | 2 +- .../graphql-datasource-errors.md_merged.snap} | 2 +- .../graphql-datasource-mutation.md_0.snap} | 2 +- ...raphql-datasource-mutation.md_client.snap} | 2 +- ...raphql-datasource-mutation.md_merged.snap} | 2 +- .../graphql-datasource-no-args.md_0.snap} | 2 +- ...graphql-datasource-no-args.md_client.snap} | 2 +- ...graphql-datasource-no-args.md_merged.snap} | 2 +- .../graphql-datasource-with-args.md_0.snap} | 2 +- .../graphql-datasource-with-args.md_1.snap} | 2 +- ...aphql-datasource-with-args.md_client.snap} | 2 +- ...aphql-datasource-with-args.md_merged.snap} | 2 +- .../snapshots/grpc-batch.md_0.snap} | 2 +- .../snapshots/grpc-batch.md_client.snap} | 2 +- .../snapshots/grpc-batch.md_merged.snap} | 2 +- .../snapshots/grpc-error.md_0.snap} | 2 +- .../snapshots/grpc-error.md_client.snap} | 2 +- .../snapshots/grpc-error.md_merged.snap} | 2 +- ...grpc-override-url-from-upstream.md_0.snap} | 2 +- ...override-url-from-upstream.md_client.snap} | 2 +- ...override-url-from-upstream.md_merged.snap} | 2 +- .../grpc-proto-with-same-package.md_0.snap} | 2 +- ...pc-proto-with-same-package.md_client.snap} | 2 +- ...pc-proto-with-same-package.md_merged.snap} | 2 +- .../snapshots/grpc-simple.md_0.snap} | 2 +- .../snapshots/grpc-simple.md_client.snap} | 2 +- .../snapshots/grpc-simple.md_merged.snap} | 2 +- .../grpc-url-from-upstream.md_0.snap} | 2 +- .../grpc-url-from-upstream.md_client.snap | 42 + .../grpc-url-from-upstream.md_merged.snap} | 2 +- .../snapshots/https.md_0.snap} | 2 +- .../snapshots/https.md_client.snap} | 2 +- .../snapshots/https.md_merged.snap} | 2 +- .../snapshots/inline-field.md_0.snap} | 2 +- .../snapshots/inline-field.md_client.snap} | 2 +- .../snapshots/inline-field.md_merged.snap} | 2 +- .../snapshots/inline-index-list.md_0.snap} | 2 +- .../inline-index-list.md_client.snap} | 2 +- .../inline-index-list.md_merged.snap} | 2 +- .../inline-many-list.md_client.snap} | 2 +- .../inline-many-list.md_merged.snap} | 2 +- .../snapshots/inline-many.md_client.snap} | 2 +- .../snapshots/inline-many.md_merged.snap} | 2 +- .../snapshots/io-cache.md_0.snap} | 2 +- .../snapshots/io-cache.md_client.snap} | 2 +- .../snapshots/io-cache.md_merged.snap} | 2 +- .../jsonplaceholder-call-post.md_0.snap} | 2 +- .../jsonplaceholder-call-post.md_client.snap} | 2 +- .../jsonplaceholder-call-post.md_merged.snap} | 2 +- .../snapshots/modified-field.md_0.snap} | 2 +- .../snapshots/modified-field.md_client.snap} | 2 +- .../snapshots/modified-field.md_merged.snap} | 2 +- .../snapshots/mutation-put.md_0.snap} | 2 +- .../snapshots/mutation-put.md_client.snap} | 2 +- .../snapshots/mutation-put.md_merged.snap} | 2 +- .../snapshots/mutation.md_0.snap} | 2 +- .../snapshots/mutation.md_client.snap} | 2 +- .../snapshots/mutation.md_merged.snap} | 2 +- .../snapshots/n-plus-one-list.md_0.snap} | 2 +- .../snapshots/n-plus-one-list.md_client.snap} | 2 +- .../snapshots/n-plus-one-list.md_merged.snap} | 2 +- .../snapshots/n-plus-one.md_0.snap} | 2 +- .../snapshots/n-plus-one.md_client.snap} | 2 +- .../snapshots/n-plus-one.md_merged.snap} | 2 +- .../snapshots/nested-objects.md_0.snap} | 2 +- .../snapshots/nested-objects.md_client.snap} | 2 +- .../snapshots/nested-objects.md_merged.snap} | 2 +- .../snapshots/nesting-level3.md_0.snap} | 2 +- .../snapshots/nesting-level3.md_client.snap} | 2 +- .../snapshots/nesting-level3.md_merged.snap} | 2 +- .../snapshots/nullable-arg-query.md_0.snap} | 2 +- .../snapshots/nullable-arg-query.md_1.snap} | 2 +- .../nullable-arg-query.md_client.snap} | 2 +- .../nullable-arg-query.md_merged.snap} | 2 +- .../snapshots/omit-index-list.md_0.snap} | 2 +- .../snapshots/omit-index-list.md_client.snap} | 2 +- .../snapshots/omit-index-list.md_merged.snap} | 2 +- .../snapshots/omit-many.md_client.snap} | 2 +- .../snapshots/omit-many.md_merged.snap} | 2 +- .../omit-resolved-by-parent.md_0.snap} | 2 +- .../omit-resolved-by-parent.md_client.snap} | 2 +- .../omit-resolved-by-parent.md_merged.snap} | 2 +- .../snapshots/recursive-type-json.md_0.snap} | 2 +- .../recursive-type-json.md_client.snap} | 2 +- .../recursive-type-json.md_merged.snap} | 2 +- .../snapshots/recursive-types.md_0.snap} | 2 +- .../snapshots/recursive-types.md_client.snap} | 2 +- .../snapshots/recursive-types.md_merged.snap} | 2 +- .../snapshots/ref-other-nested.md_0.snap} | 2 +- .../ref-other-nested.md_client.snap} | 2 +- .../ref-other-nested.md_merged.snap} | 2 +- .../snapshots/ref-other.md_0.snap} | 2 +- .../snapshots/ref-other.md_client.snap} | 2 +- .../snapshots/ref-other.md_merged.snap} | 2 +- .../snapshots/rename-field.md_0.snap} | 2 +- .../snapshots/rename-field.md_1.snap} | 2 +- .../snapshots/rename-field.md_client.snap} | 2 +- .../snapshots/rename-field.md_merged.snap} | 2 +- .../request-to-upstream-batching.md_0.snap} | 2 +- ...quest-to-upstream-batching.md_client.snap} | 2 +- ...quest-to-upstream-batching.md_merged.snap} | 2 +- .../snapshots/resolve-with-headers.md_0.snap} | 2 +- .../resolve-with-headers.md_client.snap} | 2 +- .../resolve-with-headers.md_merged.snap} | 2 +- .../snapshots/resolve-with-vars.md_0.snap} | 2 +- .../resolve-with-vars.md_client.snap} | 2 +- .../resolve-with-vars.md_merged.snap} | 2 +- .../snapshots/resolved-by-parent.md_0.snap} | 2 +- .../resolved-by-parent.md_client.snap} | 2 +- .../resolved-by-parent.md_merged.snap} | 2 +- .../snapshots/rest-api-error.md_0.snap} | 2 +- .../snapshots/rest-api-error.md_client.snap} | 2 +- .../snapshots/rest-api-error.md_merged.snap} | 2 +- .../snapshots/rest-api-post.md_0.snap} | 2 +- .../snapshots/rest-api-post.md_client.snap} | 2 +- .../snapshots/rest-api-post.md_merged.snap} | 2 +- .../snapshots/rest-api.md_0.snap} | 2 +- .../snapshots/rest-api.md_client.snap} | 2 +- .../snapshots/rest-api.md_merged.snap} | 2 +- .../snapshots/showcase.md_0.snap} | 2 +- .../snapshots/showcase.md_1.snap} | 2 +- .../snapshots/showcase.md_2.snap} | 2 +- .../snapshots/showcase.md_3.snap} | 2 +- .../snapshots/showcase.md_4.snap} | 2 +- .../snapshots/showcase.md_client.snap} | 2 +- .../snapshots/showcase.md_merged.snap} | 2 +- .../snapshots/simple-graphql.md_0.snap} | 2 +- .../snapshots/simple-graphql.md_1.snap} | 2 +- .../snapshots/simple-graphql.md_client.snap} | 2 +- .../snapshots/simple-graphql.md_merged.snap} | 2 +- .../snapshots/simple-query.md_0.snap} | 2 +- .../snapshots/simple-query.md_client.snap} | 2 +- .../snapshots/simple-query.md_merged.snap} | 2 +- .../test-add-field-list.md_client.snap} | 2 +- .../test-add-field-list.md_merged.snap} | 2 +- .../snapshots/test-add-field.md_client.snap} | 2 +- .../snapshots/test-add-field.md_merged.snap} | 2 +- ...t-add-link-to-empty-config.md_client.snap} | 2 +- ...t-add-link-to-empty-config.md_merged.snap} | 2 +- .../test-batching-group-by.md_client.snap | 36 + .../test-batching-group-by.md_merged.snap} | 2 +- .../snapshots/test-cache.md_client.snap} | 2 +- .../snapshots/test-cache.md_merged.snap} | 2 +- ...t-conflict-allowed-headers.md_merged.snap} | 2 +- .../test-conflict-vars.md_merged.snap} | 2 +- .../test-custom-scalar.md_client.snap} | 2 +- .../test-custom-scalar.md_merged.snap} | 2 +- .../test-custom-types.md_client.snap} | 2 +- .../test-custom-types.md_merged.snap} | 2 +- .../test-description-many.md_client.snap} | 2 +- .../test-description-many.md_merged.snap} | 2 +- .../snapshots/test-enum-default.md_0.snap} | 2 +- .../test-enum-default.md_client.snap} | 2 +- .../test-enum-default.md_merged.snap} | 2 +- .../snapshots/test-enum-merge.md_merged.snap} | 2 +- .../snapshots/test-enum.md_0.snap} | 2 +- .../snapshots/test-enum.md_1.snap} | 2 +- .../snapshots/test-enum.md_2.snap} | 2 +- .../snapshots/test-enum.md_client.snap} | 2 +- .../snapshots/test-enum.md_merged.snap} | 2 +- .../test-expr-with-mustache.md_0.snap} | 2 +- .../test-expr-with-mustache.md_client.snap} | 2 +- .../test-expr-with-mustache.md_merged.snap} | 2 +- .../snapshots/test-expr.md_client.snap} | 2 +- .../snapshots/test-expr.md_merged.snap} | 2 +- .../test-graphqlsource.md_client.snap} | 2 +- .../test-graphqlsource.md_merged.snap} | 2 +- .../snapshots/test-grpc.md_client.snap} | 2 +- .../snapshots/test-grpc.md_merged.snap} | 2 +- .../test-http-baseurl.md_client.snap} | 2 +- .../test-http-baseurl.md_merged.snap} | 2 +- .../test-http-headers.md_client.snap} | 2 +- .../test-http-headers.md_merged.snap} | 2 +- .../snapshots/test-http-tmpl.md_client.snap} | 2 +- .../snapshots/test-http-tmpl.md_merged.snap} | 2 +- .../test-http-with-mustache-expr.md_0.snap} | 2 +- ...st-http-with-mustache-expr.md_client.snap} | 2 +- ...st-http-with-mustache-expr.md_merged.snap} | 2 +- .../snapshots/test-http.md_client.snap} | 2 +- .../snapshots/test-http.md_merged.snap} | 2 +- .../test-inline-list.md_client.snap} | 2 +- .../test-inline-list.md_merged.snap} | 2 +- .../snapshots/test-inline.md_client.snap} | 2 +- .../snapshots/test-inline.md_merged.snap} | 2 +- .../test-interface-result.md_client.snap} | 2 +- .../test-interface-result.md_merged.snap} | 2 +- .../snapshots/test-interface.md_client.snap} | 2 +- .../snapshots/test-interface.md_merged.snap} | 2 +- .../test-js-request-reponse.md_0.snap} | 2 +- .../test-js-request-reponse.md_client.snap} | 2 +- .../test-js-request-reponse.md_merged.snap} | 2 +- .../test-merge-batch.md_merged.snap} | 2 +- .../test-merge-nested.md_merged.snap} | 2 +- .../test-merge-query.md_merged.snap} | 2 +- ...rge-right-with-link-config.md_client.snap} | 2 +- ...rge-right-with-link-config.md_merged.snap} | 2 +- .../test-merge-server-sdl.md_client.snap} | 2 +- .../test-merge-server-sdl.md_merged.snap} | 2 +- .../test-merge-union.md_merged.snap} | 2 +- .../snapshots/test-modify.md_client.snap} | 2 +- .../snapshots/test-modify.md_merged.snap} | 2 +- .../test-multi-interface.md_client.snap} | 2 +- .../test-multi-interface.md_merged.snap} | 2 +- .../test-nested-input.md_client.snap} | 2 +- .../test-nested-input.md_merged.snap} | 2 +- .../test-nested-link.md_client.snap} | 2 +- .../test-nested-link.md_merged.snap} | 2 +- .../test-nested-value.md_client.snap} | 2 +- .../test-nested-value.md_merged.snap} | 2 +- .../snapshots/test-null-in-array.md_0.snap} | 2 +- .../test-null-in-array.md_client.snap} | 2 +- .../test-null-in-array.md_merged.snap} | 2 +- .../snapshots/test-null-in-object.md_0.snap} | 2 +- .../test-null-in-object.md_client.snap} | 2 +- .../test-null-in-object.md_merged.snap} | 2 +- .../snapshots/test-omit-list.md_client.snap} | 2 +- .../snapshots/test-omit-list.md_merged.snap} | 2 +- .../snapshots/test-omit.md_client.snap} | 2 +- .../snapshots/test-omit.md_merged.snap} | 2 +- .../snapshots/test-params-as-body.md_0.snap} | 2 +- .../test-params-as-body.md_client.snap} | 2 +- .../test-params-as-body.md_merged.snap} | 2 +- .../test-query-documentation.md_client.snap} | 2 +- .../test-query-documentation.md_merged.snap} | 2 +- .../snapshots/test-query.md_client.snap} | 2 +- .../snapshots/test-query.md_merged.snap} | 2 +- .../snapshots/test-ref-other.md_client.snap} | 2 +- .../snapshots/test-ref-other.md_merged.snap} | 2 +- ...test-response-header-merge.md_merged.snap} | 2 +- .../snapshots/test-scalars.md_0.snap} | 2 +- .../snapshots/test-scalars.md_1.snap} | 2 +- .../snapshots/test-scalars.md_2.snap} | 2 +- .../snapshots/test-scalars.md_3.snap} | 2 +- .../snapshots/test-scalars.md_4.snap} | 2 +- .../snapshots/test-scalars.md_5.snap} | 2 +- .../snapshots/test-scalars.md_6.snap} | 2 +- .../snapshots/test-scalars.md_7.snap} | 2 +- .../snapshots/test-scalars.md_8.snap} | 2 +- .../snapshots/test-scalars.md_client.snap} | 2 +- .../snapshots/test-scalars.md_merged.snap} | 2 +- .../test-server-base-types.md_merged.snap} | 2 +- .../test-server-vars.md_client.snap} | 2 +- .../test-server-vars.md_merged.snap} | 2 +- .../test-set-cookie-headers.md_0.snap} | 2 +- .../test-set-cookie-headers.md_client.snap} | 2 +- .../test-set-cookie-headers.md_merged.snap} | 2 +- .../snapshots/test-static-value.md_0.snap} | 2 +- .../test-static-value.md_client.snap} | 2 +- .../test-static-value.md_merged.snap} | 2 +- .../snapshots/test-tag.md_client.snap} | 2 +- .../snapshots/test-tag.md_merged.snap} | 2 +- .../snapshots/test-union.md_client.snap} | 2 +- .../snapshots/test-union.md_merged.snap} | 2 +- .../test-upstream-headers.md_0.snap} | 2 +- .../test-upstream-headers.md_client.snap} | 2 +- .../test-upstream-headers.md_merged.snap} | 2 +- .../snapshots/test-upstream.md_client.snap} | 2 +- .../snapshots/test-upstream.md_merged.snap} | 2 +- .../snapshots/upstream-batching.md_0.snap} | 2 +- .../upstream-batching.md_client.snap} | 2 +- .../upstream-batching.md_merged.snap} | 2 +- .../upstream-fail-request.md_0.snap} | 2 +- .../upstream-fail-request.md_client.snap} | 2 +- .../upstream-fail-request.md_merged.snap} | 2 +- .../snapshots/with-args-url.md_0.snap} | 2 +- .../snapshots/with-args-url.md_client.snap} | 2 +- .../snapshots/with-args-url.md_merged.snap} | 2 +- .../snapshots/with-args.md_0.snap} | 2 +- .../snapshots/with-args.md_client.snap} | 2 +- .../snapshots/with-args.md_merged.snap} | 2 +- .../snapshots/with-nesting.md_0.snap} | 2 +- .../snapshots/with-nesting.md_client.snap} | 2 +- .../snapshots/with-nesting.md_merged.snap} | 2 +- tests/core/spec.rs | 323 +++++ tests/execution_spec.rs | 1101 +---------------- ...pec__grpc-url-from-upstream.md_client.snap | 42 - ...pec__test-batching-group-by.md_client.snap | 36 - 471 files changed, 1704 insertions(+), 1628 deletions(-) create mode 100644 tests/core/env.rs create mode 100644 tests/core/file.rs create mode 100644 tests/core/http.rs create mode 100644 tests/core/mod.rs create mode 100644 tests/core/model.rs create mode 100644 tests/core/parse.rs create mode 100644 tests/core/runtime.rs rename tests/{snapshots/execution_spec__inline-index-list.md_test_0.snap => core/snapshots/add-field-index-list.md_0.snap} (84%) rename tests/{snapshots/execution_spec__add-field-index-list.md_client.snap => core/snapshots/add-field-index-list.md_client.snap} (87%) rename tests/{snapshots/execution_spec__add-field-index-list.md_merged.snap => core/snapshots/add-field-index-list.md_merged.snap} (89%) rename tests/{snapshots/execution_spec__add-field-many-list.md_client.snap => core/snapshots/add-field-many-list.md_client.snap} (89%) rename tests/{snapshots/execution_spec__add-field-many-list.md_merged.snap => core/snapshots/add-field-many-list.md_merged.snap} (91%) rename tests/{snapshots/execution_spec__add-field-many.md_client.snap => core/snapshots/add-field-many.md_client.snap} (89%) rename tests/{snapshots/execution_spec__add-field-many.md_merged.snap => core/snapshots/add-field-many.md_merged.snap} (92%) rename tests/{snapshots/execution_spec__add-field-modify.md_test_0.snap => core/snapshots/add-field-modify.md_0.snap} (90%) rename tests/{snapshots/execution_spec__add-field-modify.md_client.snap => core/snapshots/add-field-modify.md_client.snap} (91%) rename tests/{snapshots/execution_spec__add-field-modify.md_merged.snap => core/snapshots/add-field-modify.md_merged.snap} (93%) rename tests/{snapshots/execution_spec__add-field-with-composition.md_test_0.snap => core/snapshots/add-field-with-composition.md_0.snap} (84%) rename tests/{snapshots/execution_spec__add-field-with-composition.md_test_1.snap => core/snapshots/add-field-with-composition.md_1.snap} (84%) rename tests/{snapshots/execution_spec__add-field-with-composition.md_client.snap => core/snapshots/add-field-with-composition.md_client.snap} (90%) rename tests/{snapshots/execution_spec__add-field-with-composition.md_merged.snap => core/snapshots/add-field-with-composition.md_merged.snap} (92%) rename tests/{snapshots/execution_spec__add-field-with-modify.md_test_0.snap => core/snapshots/add-field-with-modify.md_0.snap} (84%) rename tests/{snapshots/execution_spec__add-field-with-modify.md_test_1.snap => core/snapshots/add-field-with-modify.md_1.snap} (84%) rename tests/{snapshots/execution_spec__add-field-with-modify.md_client.snap => core/snapshots/add-field-with-modify.md_client.snap} (88%) rename tests/{snapshots/execution_spec__add-field-with-modify.md_merged.snap => core/snapshots/add-field-with-modify.md_merged.snap} (92%) rename tests/{snapshots/execution_spec__add-field.md_test_0.snap => core/snapshots/add-field.md_0.snap} (85%) rename tests/{snapshots/execution_spec__add-field.md_client.snap => core/snapshots/add-field.md_client.snap} (89%) rename tests/{snapshots/execution_spec__add-field.md_merged.snap => core/snapshots/add-field.md_merged.snap} (90%) rename tests/{snapshots/execution_spec__apollo-tracing.md_test_0.snap => core/snapshots/apollo-tracing.md_0.snap} (84%) rename tests/{snapshots/execution_spec__apollo-tracing.md_client.snap => core/snapshots/apollo-tracing.md_client.snap} (84%) rename tests/{snapshots/execution_spec__apollo-tracing.md_merged.snap => core/snapshots/apollo-tracing.md_merged.snap} (86%) rename tests/{snapshots/execution_spec__auth-basic.md_test_0.snap => core/snapshots/auth-basic.md_0.snap} (88%) rename tests/{snapshots/execution_spec__auth-jwt.md_test_1.snap => core/snapshots/auth-basic.md_1.snap} (91%) rename tests/{snapshots/execution_spec__auth-basic.md_test_2.snap => core/snapshots/auth-basic.md_2.snap} (91%) rename tests/{snapshots/execution_spec__auth-jwt.md_test_2.snap => core/snapshots/auth-basic.md_3.snap} (92%) rename tests/{snapshots/execution_spec__auth-basic.md_test_4.snap => core/snapshots/auth-basic.md_4.snap} (91%) rename tests/{snapshots/execution_spec__auth-jwt.md_test_4.snap => core/snapshots/auth-basic.md_5.snap} (88%) rename tests/{snapshots/execution_spec__auth-jwt.md_test_5.snap => core/snapshots/auth-basic.md_6.snap} (91%) rename tests/{snapshots/execution_spec__auth-basic.md_client.snap => core/snapshots/auth-basic.md_client.snap} (93%) rename tests/{snapshots/execution_spec__auth-basic.md_merged.snap => core/snapshots/auth-basic.md_merged.snap} (95%) rename tests/{snapshots/execution_spec__auth-jwt.md_test_0.snap => core/snapshots/auth-jwt.md_0.snap} (88%) rename tests/{snapshots/execution_spec__auth-jwt.md_test_3.snap => core/snapshots/auth-jwt.md_1.snap} (91%) rename tests/{snapshots/execution_spec__auth-basic.md_test_3.snap => core/snapshots/auth-jwt.md_2.snap} (92%) rename tests/{snapshots/execution_spec__auth-basic.md_test_1.snap => core/snapshots/auth-jwt.md_3.snap} (91%) rename tests/{snapshots/execution_spec__auth-basic.md_test_5.snap => core/snapshots/auth-jwt.md_4.snap} (88%) rename tests/{snapshots/execution_spec__auth-basic.md_test_6.snap => core/snapshots/auth-jwt.md_5.snap} (91%) rename tests/{snapshots/execution_spec__auth-jwt.md_client.snap => core/snapshots/auth-jwt.md_client.snap} (93%) rename tests/{snapshots/execution_spec__auth-jwt.md_merged.snap => core/snapshots/auth-jwt.md_merged.snap} (95%) rename tests/{snapshots/execution_spec__auth.md_client.snap => core/snapshots/auth.md_client.snap} (84%) rename tests/{snapshots/execution_spec__auth.md_merged.snap => core/snapshots/auth.md_merged.snap} (88%) rename tests/{snapshots/execution_spec__batching-default.md_test_0.snap => core/snapshots/batching-default.md_0.snap} (91%) rename tests/{snapshots/execution_spec__batching-post.md_client.snap => core/snapshots/batching-default.md_client.snap} (90%) rename tests/{snapshots/execution_spec__batching-default.md_merged.snap => core/snapshots/batching-default.md_merged.snap} (93%) rename tests/{snapshots/execution_spec__upstream-batching.md_test_0.snap => core/snapshots/batching-disabled.md_0.snap} (87%) rename tests/{snapshots/execution_spec__batching-disabled.md_client.snap => core/snapshots/batching-disabled.md_client.snap} (88%) rename tests/{snapshots/execution_spec__batching-disabled.md_merged.snap => core/snapshots/batching-disabled.md_merged.snap} (90%) rename tests/{snapshots/execution_spec__batching-group-by-default.md_test_0.snap => core/snapshots/batching-group-by-default.md_0.snap} (91%) rename tests/{snapshots/execution_spec__batching-default.md_client.snap => core/snapshots/batching-group-by-default.md_client.snap} (90%) rename tests/{snapshots/execution_spec__batching-group-by-default.md_merged.snap => core/snapshots/batching-group-by-default.md_merged.snap} (93%) rename tests/{snapshots/execution_spec__batching-group-by.md_test_0.snap => core/snapshots/batching-group-by.md_0.snap} (91%) rename tests/{snapshots/execution_spec__batching-group-by.md_client.snap => core/snapshots/batching-group-by.md_client.snap} (90%) rename tests/{snapshots/execution_spec__batching-group-by.md_merged.snap => core/snapshots/batching-group-by.md_merged.snap} (94%) rename tests/{snapshots/execution_spec__batching-post.md_test_0.snap => core/snapshots/batching-post.md_0.snap} (88%) rename tests/{snapshots/execution_spec__batching-group-by-default.md_client.snap => core/snapshots/batching-post.md_client.snap} (90%) rename tests/{snapshots/execution_spec__batching-post.md_merged.snap => core/snapshots/batching-post.md_merged.snap} (93%) rename tests/{snapshots/execution_spec__batching.md_test_0.snap => core/snapshots/batching.md_0.snap} (90%) rename tests/{snapshots/execution_spec__batching.md_test_1.snap => core/snapshots/batching.md_1.snap} (85%) rename tests/{snapshots/execution_spec__batching.md_test_2.snap => core/snapshots/batching.md_2.snap} (92%) rename tests/{snapshots/execution_spec__upstream-fail-request.md_client.snap => core/snapshots/batching.md_client.snap} (86%) rename tests/{snapshots/execution_spec__batching.md_merged.snap => core/snapshots/batching.md_merged.snap} (87%) rename tests/{snapshots/execution_spec__cache-control.md_test_0.snap => core/snapshots/cache-control.md_0.snap} (89%) rename tests/{snapshots/execution_spec__cache-control.md_test_1.snap => core/snapshots/cache-control.md_1.snap} (89%) rename tests/{snapshots/execution_spec__cache-control.md_test_2.snap => core/snapshots/cache-control.md_2.snap} (88%) rename tests/{snapshots/execution_spec__cache-control.md_test_3.snap => core/snapshots/cache-control.md_3.snap} (89%) rename tests/{snapshots/execution_spec__graphql-datasource-errors.md_client.snap => core/snapshots/cache-control.md_client.snap} (87%) rename tests/{snapshots/execution_spec__cache-control.md_merged.snap => core/snapshots/cache-control.md_merged.snap} (90%) rename tests/{snapshots/execution_spec__caching-collision.md_test_0.snap => core/snapshots/caching-collision.md_0.snap} (99%) rename tests/{snapshots/execution_spec__caching-collision.md_client.snap => core/snapshots/caching-collision.md_client.snap} (87%) rename tests/{snapshots/execution_spec__caching-collision.md_merged.snap => core/snapshots/caching-collision.md_merged.snap} (91%) rename tests/{snapshots/execution_spec__caching.md_test_0.snap => core/snapshots/caching.md_0.snap} (85%) rename tests/{snapshots/execution_spec__caching.md_test_2.snap => core/snapshots/caching.md_1.snap} (95%) rename tests/{snapshots/execution_spec__caching.md_test_1.snap => core/snapshots/caching.md_2.snap} (95%) rename tests/{snapshots/execution_spec__caching.md_client.snap => core/snapshots/caching.md_client.snap} (90%) rename tests/{snapshots/execution_spec__caching.md_merged.snap => core/snapshots/caching.md_merged.snap} (94%) rename tests/{snapshots/execution_spec__graphql-dataloader-batch-request.md_test_0.snap => core/snapshots/call-graphql-datasource.md_0.snap} (95%) rename tests/{snapshots/execution_spec__call-graphql-datasource.md_client.snap => core/snapshots/call-graphql-datasource.md_client.snap} (92%) rename tests/{snapshots/execution_spec__call-graphql-datasource.md_merged.snap => core/snapshots/call-graphql-datasource.md_merged.snap} (95%) rename tests/{snapshots/execution_spec__call-multiple-steps-piping.md_test_0.snap => core/snapshots/call-multiple-steps-piping.md_0.snap} (83%) rename tests/{snapshots/execution_spec__call-multiple-steps-piping.md_test_1.snap => core/snapshots/call-multiple-steps-piping.md_1.snap} (83%) rename tests/{snapshots/execution_spec__call-multiple-steps-piping.md_client.snap => core/snapshots/call-multiple-steps-piping.md_client.snap} (92%) rename tests/{snapshots/execution_spec__call-multiple-steps-piping.md_merged.snap => core/snapshots/call-multiple-steps-piping.md_merged.snap} (96%) rename tests/{snapshots/execution_spec__mutation.md_test_0.snap => core/snapshots/call-mutation.md_0.snap} (86%) rename tests/{snapshots/execution_spec__call-mutation.md_test_1.snap => core/snapshots/call-mutation.md_1.snap} (92%) rename tests/{snapshots/execution_spec__call-mutation.md_test_2.snap => core/snapshots/call-mutation.md_2.snap} (86%) rename tests/{snapshots/execution_spec__call-mutation.md_test_3.snap => core/snapshots/call-mutation.md_3.snap} (86%) rename tests/{snapshots/execution_spec__call-mutation.md_test_4.snap => core/snapshots/call-mutation.md_4.snap} (86%) rename tests/{snapshots/execution_spec__call-mutation.md_client.snap => core/snapshots/call-mutation.md_client.snap} (96%) rename tests/{snapshots/execution_spec__call-mutation.md_merged.snap => core/snapshots/call-mutation.md_merged.snap} (97%) rename tests/{snapshots/execution_spec__call-operator.md_test_0.snap => core/snapshots/call-operator.md_0.snap} (88%) rename tests/{snapshots/execution_spec__call-operator.md_test_1.snap => core/snapshots/call-operator.md_1.snap} (88%) rename tests/{snapshots/execution_spec__call-operator.md_test_10.snap => core/snapshots/call-operator.md_10.snap} (92%) rename tests/{snapshots/execution_spec__call-operator.md_test_11.snap => core/snapshots/call-operator.md_11.snap} (92%) rename tests/{snapshots/execution_spec__call-operator.md_test_12.snap => core/snapshots/call-operator.md_12.snap} (90%) rename tests/{snapshots/execution_spec__call-operator.md_test_2.snap => core/snapshots/call-operator.md_2.snap} (88%) rename tests/{snapshots/execution_spec__call-operator.md_test_3.snap => core/snapshots/call-operator.md_3.snap} (89%) rename tests/{snapshots/execution_spec__call-operator.md_test_4.snap => core/snapshots/call-operator.md_4.snap} (89%) rename tests/{snapshots/execution_spec__call-operator.md_test_5.snap => core/snapshots/call-operator.md_5.snap} (89%) rename tests/{snapshots/execution_spec__call-operator.md_test_6.snap => core/snapshots/call-operator.md_6.snap} (89%) rename tests/{snapshots/execution_spec__call-operator.md_test_7.snap => core/snapshots/call-operator.md_7.snap} (89%) rename tests/{snapshots/execution_spec__call-operator.md_test_8.snap => core/snapshots/call-operator.md_8.snap} (90%) rename tests/{snapshots/execution_spec__grpc-url-from-upstream.md_test_0.snap => core/snapshots/call-operator.md_9.snap} (89%) rename tests/{snapshots/execution_spec__call-operator.md_client.snap => core/snapshots/call-operator.md_client.snap} (97%) rename tests/{snapshots/execution_spec__call-operator.md_merged.snap => core/snapshots/call-operator.md_merged.snap} (98%) rename tests/{snapshots/execution_spec__cors-allow-cred-false.md_test_0.snap => core/snapshots/cors-allow-cred-false.md_0.snap} (90%) rename tests/{snapshots/execution_spec__cors-allow-cred-false.md_client.snap => core/snapshots/cors-allow-cred-false.md_client.snap} (83%) rename tests/{snapshots/execution_spec__cors-allow-cred-false.md_merged.snap => core/snapshots/cors-allow-cred-false.md_merged.snap} (93%) rename tests/{snapshots/execution_spec__cors-allow-cred-true.md_test_0.snap => core/snapshots/cors-allow-cred-true.md_0.snap} (90%) rename tests/{snapshots/execution_spec__cors-allow-cred-true.md_client.snap => core/snapshots/cors-allow-cred-true.md_client.snap} (83%) rename tests/{snapshots/execution_spec__cors-allow-cred-true.md_merged.snap => core/snapshots/cors-allow-cred-true.md_merged.snap} (93%) rename tests/{snapshots/execution_spec__cors-allow-cred-vary.md_test_0.snap => core/snapshots/cors-allow-cred-vary.md_0.snap} (91%) rename tests/{snapshots/execution_spec__cors-allow-cred-vary.md_client.snap => core/snapshots/cors-allow-cred-vary.md_client.snap} (83%) rename tests/{snapshots/execution_spec__cors-allow-cred-vary.md_merged.snap => core/snapshots/cors-allow-cred-vary.md_merged.snap} (93%) rename tests/{snapshots/execution_spec__custom-headers.md_test_0.snap => core/snapshots/custom-headers.md_0.snap} (87%) rename tests/{snapshots/execution_spec__custom-headers.md_client.snap => core/snapshots/custom-headers.md_client.snap} (84%) rename tests/{snapshots/execution_spec__custom-headers.md_merged.snap => core/snapshots/custom-headers.md_merged.snap} (87%) rename tests/{snapshots/execution_spec__env-value.md_test_0.snap => core/snapshots/env-value.md_0.snap} (94%) rename tests/{snapshots/execution_spec__env-value.md_client.snap => core/snapshots/env-value.md_client.snap} (89%) rename tests/{snapshots/execution_spec__env-value.md_merged.snap => core/snapshots/env-value.md_merged.snap} (91%) rename tests/{ => core}/snapshots/execution_spec__auth-protected-without-auth.md_errors.snap (87%) rename tests/{ => core}/snapshots/execution_spec__cors-invalid-expose-headers.md_errors.snap (90%) rename tests/{ => core}/snapshots/execution_spec__cors-invalid-headers.md_errors.snap (90%) rename tests/{ => core}/snapshots/execution_spec__cors-invalid-methods.md_errors.snap (90%) rename tests/{ => core}/snapshots/execution_spec__cors-invalid-origins.md_errors.snap (90%) rename tests/{ => core}/snapshots/execution_spec__experimental-headers-error.md_errors.snap (96%) rename tests/{ => core}/snapshots/execution_spec__input-type-protected-error.md_errors.snap (91%) rename tests/{ => core}/snapshots/execution_spec__test-add-field-error.md_errors.snap (86%) rename tests/{ => core}/snapshots/execution_spec__test-all-blueprint-errors.md_errors.snap (94%) rename tests/{ => core}/snapshots/execution_spec__test-batch-operator-post.md_errors.snap (85%) rename tests/{ => core}/snapshots/execution_spec__test-call-operator-errors.md_errors.snap (97%) rename tests/{ => core}/snapshots/execution_spec__test-dbl-usage-many.md_errors.snap (89%) rename tests/{ => core}/snapshots/execution_spec__test-dbl-usage.md_errors.snap (82%) rename tests/{ => core}/snapshots/execution_spec__test-directives-undef-null-fields.md_errors.snap (98%) rename tests/{ => core}/snapshots/execution_spec__test-duplicated-link.md_errors.snap (94%) rename tests/{ => core}/snapshots/execution_spec__test-empty-link.md_errors.snap (90%) rename tests/{ => core}/snapshots/execution_spec__test-expr-error.md_errors.snap (85%) rename tests/{ => core}/snapshots/execution_spec__test-expr-with-add-field.md_errors.snap (86%) rename tests/{ => core}/snapshots/execution_spec__test-expr-with-inline.md_errors.snap (86%) rename tests/{ => core}/snapshots/execution_spec__test-field-already-implemented-from-Interface.md_errors.snap (94%) rename tests/{ => core}/snapshots/execution_spec__test-graphqlsource-no-base-url.md_errors.snap (84%) rename tests/{ => core}/snapshots/execution_spec__test-groupby-without-batching.md_errors.snap (86%) rename tests/{ => core}/snapshots/execution_spec__test-grpc-group-by.md_errors.snap (84%) rename tests/{ => core}/snapshots/execution_spec__test-grpc-invalid-method-format.md_errors.snap (87%) rename tests/{ => core}/snapshots/execution_spec__test-grpc-invalid-proto-id.md_errors.snap (85%) rename tests/{ => core}/snapshots/execution_spec__test-grpc-missing-fields.md_errors.snap (85%) rename tests/{ => core}/snapshots/execution_spec__test-grpc-nested-data.md_errors.snap (85%) rename tests/{ => core}/snapshots/execution_spec__test-grpc-nested-optional.md_errors.snap (86%) rename tests/{ => core}/snapshots/execution_spec__test-grpc-optional.md_errors.snap (85%) rename tests/{ => core}/snapshots/execution_spec__test-grpc-proto-path.md_errors.snap (81%) rename tests/{ => core}/snapshots/execution_spec__test-grpc-service-method.md_errors.snap (84%) rename tests/{ => core}/snapshots/execution_spec__test-grpc-service.md_errors.snap (86%) rename tests/{ => core}/snapshots/execution_spec__test-hostname-faliure.md_errors.snap (86%) rename tests/{ => core}/snapshots/execution_spec__test-http-with-add-field.md_errors.snap (86%) rename tests/{ => core}/snapshots/execution_spec__test-http-with-inline.md_errors.snap (86%) rename tests/{ => core}/snapshots/execution_spec__test-inline-error.md_errors.snap (86%) rename tests/{ => core}/snapshots/execution_spec__test-invalid-query-in-http.md_errors.snap (86%) rename tests/{ => core}/snapshots/execution_spec__test-invalid-server.md_errors.snap (86%) rename tests/{ => core}/snapshots/execution_spec__test-js-multiple-scripts.md_errors.snap (83%) rename tests/{ => core}/snapshots/execution_spec__test-lack-resolver.md_errors.snap (84%) rename tests/{ => core}/snapshots/execution_spec__test-missing-argument-on-all-resolvers.md_errors.snap (96%) rename tests/{ => core}/snapshots/execution_spec__test-missing-mutation-resolver.md_errors.snap (84%) rename tests/{ => core}/snapshots/execution_spec__test-missing-query-resolver.md_errors.snap (90%) rename tests/{ => core}/snapshots/execution_spec__test-missing-root-types.md_errors.snap (89%) rename tests/{ => core}/snapshots/execution_spec__test-missing-schema-query.md_errors.snap (81%) rename tests/{ => core}/snapshots/execution_spec__test-multiple-resolvable-directives-on-field.md_errors.snap (90%) rename tests/{ => core}/snapshots/execution_spec__test-no-base-url.md_errors.snap (83%) rename tests/{ => core}/snapshots/execution_spec__test-response-header-value.md_errors.snap (87%) rename tests/{ => core}/snapshots/execution_spec__test-response-headers-multi.md_errors.snap (96%) rename tests/{ => core}/snapshots/execution_spec__test-response-headers-name.md_errors.snap (87%) rename tests/{ => core}/snapshots/execution_spec__test-undefined-query.md_errors.snap (95%) rename tests/{ => core}/snapshots/execution_spec__undeclared-type-no-base-url.md_errors.snap (90%) rename tests/{ => core}/snapshots/execution_spec__undeclared-type.md_errors.snap (83%) rename tests/{snapshots/execution_spec__experimental-headers.md_test_0.snap => core/snapshots/experimental-headers.md_0.snap} (91%) rename tests/{snapshots/execution_spec__experimental-headers.md_client.snap => core/snapshots/experimental-headers.md_client.snap} (86%) rename tests/{snapshots/execution_spec__experimental-headers.md_merged.snap => core/snapshots/experimental-headers.md_merged.snap} (89%) rename tests/{snapshots/execution_spec__graphql-dataloader-no-batch-request.md_test_0.snap => core/snapshots/graphql-dataloader-batch-request.md_0.snap} (95%) rename tests/{snapshots/execution_spec__graphql-dataloader-batch-request.md_client.snap => core/snapshots/graphql-dataloader-batch-request.md_client.snap} (89%) rename tests/{snapshots/execution_spec__graphql-dataloader-batch-request.md_merged.snap => core/snapshots/graphql-dataloader-batch-request.md_merged.snap} (93%) rename tests/{snapshots/execution_spec__call-graphql-datasource.md_test_0.snap => core/snapshots/graphql-dataloader-no-batch-request.md_0.snap} (95%) rename tests/{snapshots/execution_spec__graphql-dataloader-no-batch-request.md_client.snap => core/snapshots/graphql-dataloader-no-batch-request.md_client.snap} (89%) rename tests/{snapshots/execution_spec__graphql-dataloader-no-batch-request.md_merged.snap => core/snapshots/graphql-dataloader-no-batch-request.md_merged.snap} (92%) rename tests/{snapshots/execution_spec__graphql-datasource-errors.md_test_0.snap => core/snapshots/graphql-datasource-errors.md_0.snap} (92%) rename tests/{snapshots/execution_spec__graphql-datasource-errors.md_test_1.snap => core/snapshots/graphql-datasource-errors.md_1.snap} (92%) rename tests/{snapshots/execution_spec__cache-control.md_client.snap => core/snapshots/graphql-datasource-errors.md_client.snap} (87%) rename tests/{snapshots/execution_spec__graphql-datasource-errors.md_merged.snap => core/snapshots/graphql-datasource-errors.md_merged.snap} (88%) rename tests/{snapshots/execution_spec__graphql-datasource-mutation.md_test_0.snap => core/snapshots/graphql-datasource-mutation.md_0.snap} (86%) rename tests/{snapshots/execution_spec__graphql-datasource-mutation.md_client.snap => core/snapshots/graphql-datasource-mutation.md_client.snap} (91%) rename tests/{snapshots/execution_spec__graphql-datasource-mutation.md_merged.snap => core/snapshots/graphql-datasource-mutation.md_merged.snap} (93%) rename tests/{snapshots/execution_spec__graphql-datasource-no-args.md_test_0.snap => core/snapshots/graphql-datasource-no-args.md_0.snap} (89%) rename tests/{snapshots/execution_spec__graphql-datasource-no-args.md_client.snap => core/snapshots/graphql-datasource-no-args.md_client.snap} (87%) rename tests/{snapshots/execution_spec__graphql-datasource-no-args.md_merged.snap => core/snapshots/graphql-datasource-no-args.md_merged.snap} (86%) rename tests/{snapshots/execution_spec__graphql-datasource-with-args.md_test_0.snap => core/snapshots/graphql-datasource-with-args.md_0.snap} (86%) rename tests/{snapshots/execution_spec__graphql-datasource-with-args.md_test_1.snap => core/snapshots/graphql-datasource-with-args.md_1.snap} (88%) rename tests/{snapshots/execution_spec__graphql-datasource-with-args.md_client.snap => core/snapshots/graphql-datasource-with-args.md_client.snap} (89%) rename tests/{snapshots/execution_spec__graphql-datasource-with-args.md_merged.snap => core/snapshots/graphql-datasource-with-args.md_merged.snap} (92%) rename tests/{snapshots/execution_spec__grpc-batch.md_test_0.snap => core/snapshots/grpc-batch.md_0.snap} (88%) rename tests/{snapshots/execution_spec__grpc-batch.md_client.snap => core/snapshots/grpc-batch.md_client.snap} (92%) rename tests/{snapshots/execution_spec__grpc-batch.md_merged.snap => core/snapshots/grpc-batch.md_merged.snap} (95%) rename tests/{snapshots/execution_spec__grpc-error.md_test_0.snap => core/snapshots/grpc-error.md_0.snap} (92%) rename tests/{snapshots/execution_spec__grpc-error.md_client.snap => core/snapshots/grpc-error.md_client.snap} (92%) rename tests/{snapshots/execution_spec__grpc-simple.md_merged.snap => core/snapshots/grpc-error.md_merged.snap} (95%) rename tests/{snapshots/execution_spec__grpc-simple.md_test_0.snap => core/snapshots/grpc-override-url-from-upstream.md_0.snap} (89%) rename tests/{snapshots/execution_spec__grpc-override-url-from-upstream.md_client.snap => core/snapshots/grpc-override-url-from-upstream.md_client.snap} (92%) rename tests/{snapshots/execution_spec__grpc-override-url-from-upstream.md_merged.snap => core/snapshots/grpc-override-url-from-upstream.md_merged.snap} (95%) rename tests/{snapshots/execution_spec__grpc-proto-with-same-package.md_test_0.snap => core/snapshots/grpc-proto-with-same-package.md_0.snap} (88%) rename tests/{snapshots/execution_spec__grpc-proto-with-same-package.md_client.snap => core/snapshots/grpc-proto-with-same-package.md_client.snap} (88%) rename tests/{snapshots/execution_spec__grpc-proto-with-same-package.md_merged.snap => core/snapshots/grpc-proto-with-same-package.md_merged.snap} (92%) rename tests/{snapshots/execution_spec__call-operator.md_test_9.snap => core/snapshots/grpc-simple.md_0.snap} (89%) rename tests/{snapshots/execution_spec__grpc-simple.md_client.snap => core/snapshots/grpc-simple.md_client.snap} (92%) rename tests/{snapshots/execution_spec__grpc-error.md_merged.snap => core/snapshots/grpc-simple.md_merged.snap} (95%) rename tests/{snapshots/execution_spec__grpc-override-url-from-upstream.md_test_0.snap => core/snapshots/grpc-url-from-upstream.md_0.snap} (89%) create mode 100644 tests/core/snapshots/grpc-url-from-upstream.md_client.snap rename tests/{snapshots/execution_spec__grpc-url-from-upstream.md_merged.snap => core/snapshots/grpc-url-from-upstream.md_merged.snap} (95%) rename tests/{snapshots/execution_spec__https.md_test_0.snap => core/snapshots/https.md_0.snap} (86%) rename tests/{snapshots/execution_spec__simple-query.md_client.snap => core/snapshots/https.md_client.snap} (86%) rename tests/{snapshots/execution_spec__https.md_merged.snap => core/snapshots/https.md_merged.snap} (89%) rename tests/{snapshots/execution_spec__inline-field.md_test_0.snap => core/snapshots/inline-field.md_0.snap} (86%) rename tests/{snapshots/execution_spec__inline-field.md_client.snap => core/snapshots/inline-field.md_client.snap} (86%) rename tests/{snapshots/execution_spec__inline-field.md_merged.snap => core/snapshots/inline-field.md_merged.snap} (91%) rename tests/{snapshots/execution_spec__omit-index-list.md_test_0.snap => core/snapshots/inline-index-list.md_0.snap} (84%) rename tests/{snapshots/execution_spec__omit-index-list.md_client.snap => core/snapshots/inline-index-list.md_client.snap} (84%) rename tests/{snapshots/execution_spec__omit-index-list.md_merged.snap => core/snapshots/inline-index-list.md_merged.snap} (89%) rename tests/{snapshots/execution_spec__inline-many-list.md_client.snap => core/snapshots/inline-many-list.md_client.snap} (87%) rename tests/{snapshots/execution_spec__inline-many-list.md_merged.snap => core/snapshots/inline-many-list.md_merged.snap} (92%) rename tests/{snapshots/execution_spec__inline-many.md_client.snap => core/snapshots/inline-many.md_client.snap} (88%) rename tests/{snapshots/execution_spec__inline-many.md_merged.snap => core/snapshots/inline-many.md_merged.snap} (93%) rename tests/{snapshots/execution_spec__io-cache.md_test_0.snap => core/snapshots/io-cache.md_0.snap} (96%) rename tests/{snapshots/execution_spec__io-cache.md_client.snap => core/snapshots/io-cache.md_client.snap} (90%) rename tests/{snapshots/execution_spec__io-cache.md_merged.snap => core/snapshots/io-cache.md_merged.snap} (92%) rename tests/{snapshots/execution_spec__jsonplaceholder-call-post.md_test_0.snap => core/snapshots/jsonplaceholder-call-post.md_0.snap} (89%) rename tests/{snapshots/execution_spec__jsonplaceholder-call-post.md_client.snap => core/snapshots/jsonplaceholder-call-post.md_client.snap} (91%) rename tests/{snapshots/execution_spec__jsonplaceholder-call-post.md_merged.snap => core/snapshots/jsonplaceholder-call-post.md_merged.snap} (94%) rename tests/{snapshots/execution_spec__modified-field.md_test_0.snap => core/snapshots/modified-field.md_0.snap} (86%) rename tests/{snapshots/execution_spec__modified-field.md_client.snap => core/snapshots/modified-field.md_client.snap} (86%) rename tests/{snapshots/execution_spec__modified-field.md_merged.snap => core/snapshots/modified-field.md_merged.snap} (87%) rename tests/{snapshots/execution_spec__mutation-put.md_test_0.snap => core/snapshots/mutation-put.md_0.snap} (86%) rename tests/{snapshots/execution_spec__mutation-put.md_client.snap => core/snapshots/mutation-put.md_client.snap} (93%) rename tests/{snapshots/execution_spec__mutation-put.md_merged.snap => core/snapshots/mutation-put.md_merged.snap} (94%) rename tests/{snapshots/execution_spec__call-mutation.md_test_0.snap => core/snapshots/mutation.md_0.snap} (86%) rename tests/{snapshots/execution_spec__mutation.md_client.snap => core/snapshots/mutation.md_client.snap} (93%) rename tests/{snapshots/execution_spec__mutation.md_merged.snap => core/snapshots/mutation.md_merged.snap} (93%) rename tests/{snapshots/execution_spec__n-plus-one-list.md_test_0.snap => core/snapshots/n-plus-one-list.md_0.snap} (95%) rename tests/{snapshots/execution_spec__n-plus-one.md_client.snap => core/snapshots/n-plus-one-list.md_client.snap} (89%) rename tests/{snapshots/execution_spec__n-plus-one.md_merged.snap => core/snapshots/n-plus-one-list.md_merged.snap} (94%) rename tests/{snapshots/execution_spec__n-plus-one.md_test_0.snap => core/snapshots/n-plus-one.md_0.snap} (93%) rename tests/{snapshots/execution_spec__n-plus-one-list.md_client.snap => core/snapshots/n-plus-one.md_client.snap} (89%) rename tests/{snapshots/execution_spec__n-plus-one-list.md_merged.snap => core/snapshots/n-plus-one.md_merged.snap} (94%) rename tests/{snapshots/execution_spec__nested-objects.md_test_0.snap => core/snapshots/nested-objects.md_0.snap} (89%) rename tests/{snapshots/execution_spec__nested-objects.md_client.snap => core/snapshots/nested-objects.md_client.snap} (90%) rename tests/{snapshots/execution_spec__nested-objects.md_merged.snap => core/snapshots/nested-objects.md_merged.snap} (90%) rename tests/{snapshots/execution_spec__nesting-level3.md_test_0.snap => core/snapshots/nesting-level3.md_0.snap} (94%) rename tests/{snapshots/execution_spec__nesting-level3.md_client.snap => core/snapshots/nesting-level3.md_client.snap} (92%) rename tests/{snapshots/execution_spec__nesting-level3.md_merged.snap => core/snapshots/nesting-level3.md_merged.snap} (94%) rename tests/{snapshots/execution_spec__nullable-arg-query.md_test_0.snap => core/snapshots/nullable-arg-query.md_0.snap} (94%) rename tests/{snapshots/execution_spec__nullable-arg-query.md_test_1.snap => core/snapshots/nullable-arg-query.md_1.snap} (86%) rename tests/{snapshots/execution_spec__nullable-arg-query.md_client.snap => core/snapshots/nullable-arg-query.md_client.snap} (87%) rename tests/{snapshots/execution_spec__nullable-arg-query.md_merged.snap => core/snapshots/nullable-arg-query.md_merged.snap} (89%) rename tests/{snapshots/execution_spec__add-field-index-list.md_test_0.snap => core/snapshots/omit-index-list.md_0.snap} (84%) rename tests/{snapshots/execution_spec__inline-index-list.md_client.snap => core/snapshots/omit-index-list.md_client.snap} (84%) rename tests/{snapshots/execution_spec__inline-index-list.md_merged.snap => core/snapshots/omit-index-list.md_merged.snap} (89%) rename tests/{snapshots/execution_spec__omit-many.md_client.snap => core/snapshots/omit-many.md_client.snap} (88%) rename tests/{snapshots/execution_spec__omit-many.md_merged.snap => core/snapshots/omit-many.md_merged.snap} (93%) rename tests/{snapshots/execution_spec__resolved-by-parent.md_test_0.snap => core/snapshots/omit-resolved-by-parent.md_0.snap} (86%) rename tests/{snapshots/execution_spec__resolved-by-parent.md_client.snap => core/snapshots/omit-resolved-by-parent.md_client.snap} (86%) rename tests/{snapshots/execution_spec__resolved-by-parent.md_merged.snap => core/snapshots/omit-resolved-by-parent.md_merged.snap} (90%) rename tests/{snapshots/execution_spec__recursive-type-json.md_test_0.snap => core/snapshots/recursive-type-json.md_0.snap} (92%) rename tests/{snapshots/execution_spec__recursive-type-json.md_client.snap => core/snapshots/recursive-type-json.md_client.snap} (88%) rename tests/{snapshots/execution_spec__recursive-type-json.md_merged.snap => core/snapshots/recursive-type-json.md_merged.snap} (89%) rename tests/{snapshots/execution_spec__recursive-types.md_test_0.snap => core/snapshots/recursive-types.md_0.snap} (92%) rename tests/{snapshots/execution_spec__recursive-types.md_client.snap => core/snapshots/recursive-types.md_client.snap} (87%) rename tests/{snapshots/execution_spec__recursive-types.md_merged.snap => core/snapshots/recursive-types.md_merged.snap} (88%) rename tests/{snapshots/execution_spec__ref-other-nested.md_test_0.snap => core/snapshots/ref-other-nested.md_0.snap} (89%) rename tests/{snapshots/execution_spec__ref-other-nested.md_client.snap => core/snapshots/ref-other-nested.md_client.snap} (89%) rename tests/{snapshots/execution_spec__ref-other-nested.md_merged.snap => core/snapshots/ref-other-nested.md_merged.snap} (92%) rename tests/{snapshots/execution_spec__ref-other.md_test_0.snap => core/snapshots/ref-other.md_0.snap} (88%) rename tests/{snapshots/execution_spec__ref-other.md_client.snap => core/snapshots/ref-other.md_client.snap} (88%) rename tests/{snapshots/execution_spec__ref-other.md_merged.snap => core/snapshots/ref-other.md_merged.snap} (88%) rename tests/{snapshots/execution_spec__rename-field.md_test_0.snap => core/snapshots/rename-field.md_0.snap} (86%) rename tests/{snapshots/execution_spec__rename-field.md_test_1.snap => core/snapshots/rename-field.md_1.snap} (86%) rename tests/{snapshots/execution_spec__rename-field.md_client.snap => core/snapshots/rename-field.md_client.snap} (86%) rename tests/{snapshots/execution_spec__rename-field.md_merged.snap => core/snapshots/rename-field.md_merged.snap} (91%) rename tests/{snapshots/execution_spec__request-to-upstream-batching.md_test_0.snap => core/snapshots/request-to-upstream-batching.md_0.snap} (91%) rename tests/{snapshots/execution_spec__request-to-upstream-batching.md_client.snap => core/snapshots/request-to-upstream-batching.md_client.snap} (87%) rename tests/{snapshots/execution_spec__request-to-upstream-batching.md_merged.snap => core/snapshots/request-to-upstream-batching.md_merged.snap} (91%) rename tests/{snapshots/execution_spec__resolve-with-headers.md_test_0.snap => core/snapshots/resolve-with-headers.md_0.snap} (86%) rename tests/{snapshots/execution_spec__resolve-with-headers.md_client.snap => core/snapshots/resolve-with-headers.md_client.snap} (88%) rename tests/{snapshots/execution_spec__resolve-with-headers.md_merged.snap => core/snapshots/resolve-with-headers.md_merged.snap} (90%) rename tests/{snapshots/execution_spec__resolve-with-vars.md_test_0.snap => core/snapshots/resolve-with-vars.md_0.snap} (87%) rename tests/{snapshots/execution_spec__resolve-with-vars.md_client.snap => core/snapshots/resolve-with-vars.md_client.snap} (86%) rename tests/{snapshots/execution_spec__resolve-with-vars.md_merged.snap => core/snapshots/resolve-with-vars.md_merged.snap} (90%) rename tests/{snapshots/execution_spec__omit-resolved-by-parent.md_test_0.snap => core/snapshots/resolved-by-parent.md_0.snap} (86%) rename tests/{snapshots/execution_spec__omit-resolved-by-parent.md_client.snap => core/snapshots/resolved-by-parent.md_client.snap} (86%) rename tests/{snapshots/execution_spec__omit-resolved-by-parent.md_merged.snap => core/snapshots/resolved-by-parent.md_merged.snap} (90%) rename tests/{snapshots/execution_spec__rest-api-error.md_test_0.snap => core/snapshots/rest-api-error.md_0.snap} (92%) rename tests/{snapshots/execution_spec__rest-api-post.md_client.snap => core/snapshots/rest-api-error.md_client.snap} (87%) rename tests/{snapshots/execution_spec__rest-api-error.md_merged.snap => core/snapshots/rest-api-error.md_merged.snap} (90%) rename tests/{snapshots/execution_spec__rest-api-post.md_test_0.snap => core/snapshots/rest-api-post.md_0.snap} (82%) rename tests/{snapshots/execution_spec__rest-api-error.md_client.snap => core/snapshots/rest-api-post.md_client.snap} (87%) rename tests/{snapshots/execution_spec__rest-api-post.md_merged.snap => core/snapshots/rest-api-post.md_merged.snap} (90%) rename tests/{snapshots/execution_spec__rest-api.md_test_0.snap => core/snapshots/rest-api.md_0.snap} (82%) rename tests/{snapshots/execution_spec__rest-api.md_client.snap => core/snapshots/rest-api.md_client.snap} (87%) rename tests/{snapshots/execution_spec__rest-api.md_merged.snap => core/snapshots/rest-api.md_merged.snap} (90%) rename tests/{snapshots/execution_spec__with-args-url.md_test_0.snap => core/snapshots/showcase.md_0.snap} (85%) rename tests/{snapshots/execution_spec__showcase.md_test_1.snap => core/snapshots/showcase.md_1.snap} (87%) rename tests/{snapshots/execution_spec__showcase.md_test_2.snap => core/snapshots/showcase.md_2.snap} (87%) rename tests/{snapshots/execution_spec__showcase.md_test_3.snap => core/snapshots/showcase.md_3.snap} (91%) rename tests/{snapshots/execution_spec__simple-graphql.md_test_1.snap => core/snapshots/showcase.md_4.snap} (89%) rename tests/{snapshots/execution_spec__showcase.md_client.snap => core/snapshots/showcase.md_client.snap} (87%) rename tests/{snapshots/execution_spec__showcase.md_merged.snap => core/snapshots/showcase.md_merged.snap} (88%) rename tests/{snapshots/execution_spec__simple-graphql.md_test_0.snap => core/snapshots/simple-graphql.md_0.snap} (85%) rename tests/{snapshots/execution_spec__showcase.md_test_4.snap => core/snapshots/simple-graphql.md_1.snap} (89%) rename tests/{snapshots/execution_spec__batching.md_client.snap => core/snapshots/simple-graphql.md_client.snap} (86%) rename tests/{snapshots/execution_spec__simple-graphql.md_merged.snap => core/snapshots/simple-graphql.md_merged.snap} (86%) rename tests/{snapshots/execution_spec__simple-query.md_test_0.snap => core/snapshots/simple-query.md_0.snap} (85%) rename tests/{snapshots/execution_spec__https.md_client.snap => core/snapshots/simple-query.md_client.snap} (86%) rename tests/{snapshots/execution_spec__simple-query.md_merged.snap => core/snapshots/simple-query.md_merged.snap} (87%) rename tests/{snapshots/execution_spec__test-add-field-list.md_client.snap => core/snapshots/test-add-field-list.md_client.snap} (88%) rename tests/{snapshots/execution_spec__test-add-field-list.md_merged.snap => core/snapshots/test-add-field-list.md_merged.snap} (89%) rename tests/{snapshots/execution_spec__test-add-field.md_client.snap => core/snapshots/test-add-field.md_client.snap} (88%) rename tests/{snapshots/execution_spec__test-add-field.md_merged.snap => core/snapshots/test-add-field.md_merged.snap} (89%) rename tests/{snapshots/execution_spec__test-add-link-to-empty-config.md_client.snap => core/snapshots/test-add-link-to-empty-config.md_client.snap} (86%) rename tests/{snapshots/execution_spec__test-add-link-to-empty-config.md_merged.snap => core/snapshots/test-add-link-to-empty-config.md_merged.snap} (83%) create mode 100644 tests/core/snapshots/test-batching-group-by.md_client.snap rename tests/{snapshots/execution_spec__test-batching-group-by.md_merged.snap => core/snapshots/test-batching-group-by.md_merged.snap} (93%) rename tests/{snapshots/execution_spec__test-cache.md_client.snap => core/snapshots/test-cache.md_client.snap} (86%) rename tests/{snapshots/execution_spec__test-cache.md_merged.snap => core/snapshots/test-cache.md_merged.snap} (88%) rename tests/{snapshots/execution_spec__test-conflict-allowed-headers.md_merged.snap => core/snapshots/test-conflict-allowed-headers.md_merged.snap} (83%) rename tests/{snapshots/execution_spec__test-conflict-vars.md_merged.snap => core/snapshots/test-conflict-vars.md_merged.snap} (86%) rename tests/{snapshots/execution_spec__test-custom-scalar.md_client.snap => core/snapshots/test-custom-scalar.md_client.snap} (85%) rename tests/{snapshots/execution_spec__test-custom-scalar.md_merged.snap => core/snapshots/test-custom-scalar.md_merged.snap} (85%) rename tests/{snapshots/execution_spec__test-custom-types.md_client.snap => core/snapshots/test-custom-types.md_client.snap} (92%) rename tests/{snapshots/execution_spec__test-custom-types.md_merged.snap => core/snapshots/test-custom-types.md_merged.snap} (93%) rename tests/{snapshots/execution_spec__test-description-many.md_client.snap => core/snapshots/test-description-many.md_client.snap} (88%) rename tests/{snapshots/execution_spec__test-description-many.md_merged.snap => core/snapshots/test-description-many.md_merged.snap} (88%) rename tests/{snapshots/execution_spec__test-enum-default.md_test_0.snap => core/snapshots/test-enum-default.md_0.snap} (92%) rename tests/{snapshots/execution_spec__test-enum-default.md_client.snap => core/snapshots/test-enum-default.md_client.snap} (90%) rename tests/{snapshots/execution_spec__test-enum-default.md_merged.snap => core/snapshots/test-enum-default.md_merged.snap} (93%) rename tests/{snapshots/execution_spec__test-enum-merge.md_merged.snap => core/snapshots/test-enum-merge.md_merged.snap} (86%) rename tests/{snapshots/execution_spec__test-enum.md_test_0.snap => core/snapshots/test-enum.md_0.snap} (83%) rename tests/{snapshots/execution_spec__test-enum.md_test_1.snap => core/snapshots/test-enum.md_1.snap} (83%) rename tests/{snapshots/execution_spec__test-enum.md_test_2.snap => core/snapshots/test-enum.md_2.snap} (92%) rename tests/{snapshots/execution_spec__test-enum.md_client.snap => core/snapshots/test-enum.md_client.snap} (86%) rename tests/{snapshots/execution_spec__test-enum.md_merged.snap => core/snapshots/test-enum.md_merged.snap} (86%) rename tests/{snapshots/execution_spec__test-expr-with-mustache.md_test_0.snap => core/snapshots/test-expr-with-mustache.md_0.snap} (92%) rename tests/{snapshots/execution_spec__test-expr-with-mustache.md_client.snap => core/snapshots/test-expr-with-mustache.md_client.snap} (89%) rename tests/{snapshots/execution_spec__test-expr-with-mustache.md_merged.snap => core/snapshots/test-expr-with-mustache.md_merged.snap} (94%) rename tests/{snapshots/execution_spec__test-expr.md_client.snap => core/snapshots/test-expr.md_client.snap} (84%) rename tests/{snapshots/execution_spec__test-expr.md_merged.snap => core/snapshots/test-expr.md_merged.snap} (80%) rename tests/{snapshots/execution_spec__test-graphqlsource.md_client.snap => core/snapshots/test-graphqlsource.md_client.snap} (89%) rename tests/{snapshots/execution_spec__test-graphqlsource.md_merged.snap => core/snapshots/test-graphqlsource.md_merged.snap} (92%) rename tests/{snapshots/execution_spec__test-grpc.md_client.snap => core/snapshots/test-grpc.md_client.snap} (93%) rename tests/{snapshots/execution_spec__test-grpc.md_merged.snap => core/snapshots/test-grpc.md_merged.snap} (95%) rename tests/{snapshots/execution_spec__test-http-baseurl.md_client.snap => core/snapshots/test-http-baseurl.md_client.snap} (85%) rename tests/{snapshots/execution_spec__test-http-baseurl.md_merged.snap => core/snapshots/test-http-baseurl.md_merged.snap} (86%) rename tests/{snapshots/execution_spec__test-http-headers.md_client.snap => core/snapshots/test-http-headers.md_client.snap} (84%) rename tests/{snapshots/execution_spec__test-http-headers.md_merged.snap => core/snapshots/test-http-headers.md_merged.snap} (85%) rename tests/{snapshots/execution_spec__test-http-tmpl.md_client.snap => core/snapshots/test-http-tmpl.md_client.snap} (89%) rename tests/{snapshots/execution_spec__test-http-tmpl.md_merged.snap => core/snapshots/test-http-tmpl.md_merged.snap} (91%) rename tests/{snapshots/execution_spec__test-http-with-mustache-expr.md_test_0.snap => core/snapshots/test-http-with-mustache-expr.md_0.snap} (89%) rename tests/{snapshots/execution_spec__test-http-with-mustache-expr.md_client.snap => core/snapshots/test-http-with-mustache-expr.md_client.snap} (88%) rename tests/{snapshots/execution_spec__test-http-with-mustache-expr.md_merged.snap => core/snapshots/test-http-with-mustache-expr.md_merged.snap} (90%) rename tests/{snapshots/execution_spec__test-http.md_client.snap => core/snapshots/test-http.md_client.snap} (86%) rename tests/{snapshots/execution_spec__test-http.md_merged.snap => core/snapshots/test-http.md_merged.snap} (86%) rename tests/{snapshots/execution_spec__test-omit.md_client.snap => core/snapshots/test-inline-list.md_client.snap} (85%) rename tests/{snapshots/execution_spec__test-inline-list.md_merged.snap => core/snapshots/test-inline-list.md_merged.snap} (90%) rename tests/{snapshots/execution_spec__test-inline-list.md_client.snap => core/snapshots/test-inline.md_client.snap} (85%) rename tests/{snapshots/execution_spec__test-inline.md_merged.snap => core/snapshots/test-inline.md_merged.snap} (90%) rename tests/{snapshots/execution_spec__test-interface-result.md_client.snap => core/snapshots/test-interface-result.md_client.snap} (88%) rename tests/{snapshots/execution_spec__test-interface-result.md_merged.snap => core/snapshots/test-interface-result.md_merged.snap} (88%) rename tests/{snapshots/execution_spec__test-interface.md_client.snap => core/snapshots/test-interface.md_client.snap} (88%) rename tests/{snapshots/execution_spec__test-interface.md_merged.snap => core/snapshots/test-interface.md_merged.snap} (88%) rename tests/{snapshots/execution_spec__test-js-request-reponse.md_test_0.snap => core/snapshots/test-js-request-reponse.md_0.snap} (84%) rename tests/{snapshots/execution_spec__test-js-request-reponse.md_client.snap => core/snapshots/test-js-request-reponse.md_client.snap} (85%) rename tests/{snapshots/execution_spec__test-js-request-reponse.md_merged.snap => core/snapshots/test-js-request-reponse.md_merged.snap} (89%) rename tests/{snapshots/execution_spec__test-merge-batch.md_merged.snap => core/snapshots/test-merge-batch.md_merged.snap} (85%) rename tests/{snapshots/execution_spec__test-merge-nested.md_merged.snap => core/snapshots/test-merge-nested.md_merged.snap} (87%) rename tests/{snapshots/execution_spec__test-merge-query.md_merged.snap => core/snapshots/test-merge-query.md_merged.snap} (88%) rename tests/{snapshots/execution_spec__test-merge-right-with-link-config.md_client.snap => core/snapshots/test-merge-right-with-link-config.md_client.snap} (85%) rename tests/{snapshots/execution_spec__test-merge-right-with-link-config.md_merged.snap => core/snapshots/test-merge-right-with-link-config.md_merged.snap} (86%) rename tests/{snapshots/execution_spec__test-merge-server-sdl.md_client.snap => core/snapshots/test-merge-server-sdl.md_client.snap} (86%) rename tests/{snapshots/execution_spec__test-merge-server-sdl.md_merged.snap => core/snapshots/test-merge-server-sdl.md_merged.snap} (86%) rename tests/{snapshots/execution_spec__test-merge-union.md_merged.snap => core/snapshots/test-merge-union.md_merged.snap} (90%) rename tests/{snapshots/execution_spec__test-modify.md_client.snap => core/snapshots/test-modify.md_client.snap} (86%) rename tests/{snapshots/execution_spec__test-modify.md_merged.snap => core/snapshots/test-modify.md_merged.snap} (87%) rename tests/{snapshots/execution_spec__test-multi-interface.md_client.snap => core/snapshots/test-multi-interface.md_client.snap} (89%) rename tests/{snapshots/execution_spec__test-multi-interface.md_merged.snap => core/snapshots/test-multi-interface.md_merged.snap} (89%) rename tests/{snapshots/execution_spec__test-nested-input.md_client.snap => core/snapshots/test-nested-input.md_client.snap} (89%) rename tests/{snapshots/execution_spec__test-nested-input.md_merged.snap => core/snapshots/test-nested-input.md_merged.snap} (87%) rename tests/{snapshots/execution_spec__test-nested-link.md_client.snap => core/snapshots/test-nested-link.md_client.snap} (90%) rename tests/{snapshots/execution_spec__test-nested-link.md_merged.snap => core/snapshots/test-nested-link.md_merged.snap} (79%) rename tests/{snapshots/execution_spec__test-nested-value.md_client.snap => core/snapshots/test-nested-value.md_client.snap} (88%) rename tests/{snapshots/execution_spec__test-nested-value.md_merged.snap => core/snapshots/test-nested-value.md_merged.snap} (91%) rename tests/{snapshots/execution_spec__test-null-in-object.md_test_0.snap => core/snapshots/test-null-in-array.md_0.snap} (83%) rename tests/{snapshots/execution_spec__test-null-in-array.md_client.snap => core/snapshots/test-null-in-array.md_client.snap} (87%) rename tests/{snapshots/execution_spec__test-null-in-array.md_merged.snap => core/snapshots/test-null-in-array.md_merged.snap} (86%) rename tests/{snapshots/execution_spec__test-null-in-array.md_test_0.snap => core/snapshots/test-null-in-object.md_0.snap} (83%) rename tests/{snapshots/execution_spec__test-null-in-object.md_client.snap => core/snapshots/test-null-in-object.md_client.snap} (87%) rename tests/{snapshots/execution_spec__test-null-in-object.md_merged.snap => core/snapshots/test-null-in-object.md_merged.snap} (86%) rename tests/{snapshots/execution_spec__test-inline.md_client.snap => core/snapshots/test-omit-list.md_client.snap} (85%) rename tests/{snapshots/execution_spec__test-omit-list.md_merged.snap => core/snapshots/test-omit-list.md_merged.snap} (90%) rename tests/{snapshots/execution_spec__test-omit-list.md_client.snap => core/snapshots/test-omit.md_client.snap} (85%) rename tests/{snapshots/execution_spec__test-omit.md_merged.snap => core/snapshots/test-omit.md_merged.snap} (89%) rename tests/{snapshots/execution_spec__test-params-as-body.md_test_0.snap => core/snapshots/test-params-as-body.md_0.snap} (86%) rename tests/{snapshots/execution_spec__test-params-as-body.md_client.snap => core/snapshots/test-params-as-body.md_client.snap} (88%) rename tests/{snapshots/execution_spec__test-params-as-body.md_merged.snap => core/snapshots/test-params-as-body.md_merged.snap} (90%) rename tests/{snapshots/execution_spec__test-query-documentation.md_client.snap => core/snapshots/test-query-documentation.md_client.snap} (85%) rename tests/{snapshots/execution_spec__test-query-documentation.md_merged.snap => core/snapshots/test-query-documentation.md_merged.snap} (86%) rename tests/{snapshots/execution_spec__test-query.md_client.snap => core/snapshots/test-query.md_client.snap} (84%) rename tests/{snapshots/execution_spec__test-query.md_merged.snap => core/snapshots/test-query.md_merged.snap} (84%) rename tests/{snapshots/execution_spec__test-ref-other.md_client.snap => core/snapshots/test-ref-other.md_client.snap} (88%) rename tests/{snapshots/execution_spec__test-ref-other.md_merged.snap => core/snapshots/test-ref-other.md_merged.snap} (88%) rename tests/{snapshots/execution_spec__test-response-header-merge.md_merged.snap => core/snapshots/test-response-header-merge.md_merged.snap} (88%) rename tests/{snapshots/execution_spec__test-scalars.md_test_0.snap => core/snapshots/test-scalars.md_0.snap} (84%) rename tests/{snapshots/execution_spec__test-scalars.md_test_1.snap => core/snapshots/test-scalars.md_1.snap} (84%) rename tests/{snapshots/execution_spec__test-scalars.md_test_2.snap => core/snapshots/test-scalars.md_2.snap} (85%) rename tests/{snapshots/execution_spec__test-scalars.md_test_3.snap => core/snapshots/test-scalars.md_3.snap} (85%) rename tests/{snapshots/execution_spec__test-scalars.md_test_4.snap => core/snapshots/test-scalars.md_4.snap} (93%) rename tests/{snapshots/execution_spec__test-scalars.md_test_6.snap => core/snapshots/test-scalars.md_5.snap} (93%) rename tests/{snapshots/execution_spec__test-scalars.md_test_5.snap => core/snapshots/test-scalars.md_6.snap} (93%) rename tests/{snapshots/execution_spec__test-scalars.md_test_7.snap => core/snapshots/test-scalars.md_7.snap} (93%) rename tests/{snapshots/execution_spec__test-scalars.md_test_8.snap => core/snapshots/test-scalars.md_8.snap} (93%) rename tests/{snapshots/execution_spec__test-scalars.md_client.snap => core/snapshots/test-scalars.md_client.snap} (89%) rename tests/{snapshots/execution_spec__test-scalars.md_merged.snap => core/snapshots/test-scalars.md_merged.snap} (93%) rename tests/{snapshots/execution_spec__test-server-base-types.md_merged.snap => core/snapshots/test-server-base-types.md_merged.snap} (86%) rename tests/{snapshots/execution_spec__test-server-vars.md_client.snap => core/snapshots/test-server-vars.md_client.snap} (84%) rename tests/{snapshots/execution_spec__test-server-vars.md_merged.snap => core/snapshots/test-server-vars.md_merged.snap} (86%) rename tests/{snapshots/execution_spec__test-set-cookie-headers.md_test_0.snap => core/snapshots/test-set-cookie-headers.md_0.snap} (89%) rename tests/{snapshots/execution_spec__test-set-cookie-headers.md_client.snap => core/snapshots/test-set-cookie-headers.md_client.snap} (90%) rename tests/{snapshots/execution_spec__test-set-cookie-headers.md_merged.snap => core/snapshots/test-set-cookie-headers.md_merged.snap} (92%) rename tests/{snapshots/execution_spec__test-static-value.md_test_0.snap => core/snapshots/test-static-value.md_0.snap} (86%) rename tests/{snapshots/execution_spec__test-static-value.md_client.snap => core/snapshots/test-static-value.md_client.snap} (86%) rename tests/{snapshots/execution_spec__test-static-value.md_merged.snap => core/snapshots/test-static-value.md_merged.snap} (87%) rename tests/{snapshots/execution_spec__test-tag.md_client.snap => core/snapshots/test-tag.md_client.snap} (91%) rename tests/{snapshots/execution_spec__test-tag.md_merged.snap => core/snapshots/test-tag.md_merged.snap} (93%) rename tests/{snapshots/execution_spec__test-union.md_client.snap => core/snapshots/test-union.md_client.snap} (88%) rename tests/{snapshots/execution_spec__test-union.md_merged.snap => core/snapshots/test-union.md_merged.snap} (89%) rename tests/{snapshots/execution_spec__test-upstream-headers.md_test_0.snap => core/snapshots/test-upstream-headers.md_0.snap} (88%) rename tests/{snapshots/execution_spec__test-upstream-headers.md_client.snap => core/snapshots/test-upstream-headers.md_client.snap} (85%) rename tests/{snapshots/execution_spec__test-upstream-headers.md_merged.snap => core/snapshots/test-upstream-headers.md_merged.snap} (87%) rename tests/{snapshots/execution_spec__test-upstream.md_client.snap => core/snapshots/test-upstream.md_client.snap} (84%) rename tests/{snapshots/execution_spec__test-upstream.md_merged.snap => core/snapshots/test-upstream.md_merged.snap} (86%) rename tests/{snapshots/execution_spec__batching-disabled.md_test_0.snap => core/snapshots/upstream-batching.md_0.snap} (87%) rename tests/{snapshots/execution_spec__upstream-batching.md_client.snap => core/snapshots/upstream-batching.md_client.snap} (87%) rename tests/{snapshots/execution_spec__upstream-batching.md_merged.snap => core/snapshots/upstream-batching.md_merged.snap} (91%) rename tests/{snapshots/execution_spec__upstream-fail-request.md_test_0.snap => core/snapshots/upstream-fail-request.md_0.snap} (91%) rename tests/{snapshots/execution_spec__simple-graphql.md_client.snap => core/snapshots/upstream-fail-request.md_client.snap} (86%) rename tests/{snapshots/execution_spec__upstream-fail-request.md_merged.snap => core/snapshots/upstream-fail-request.md_merged.snap} (86%) rename tests/{snapshots/execution_spec__showcase.md_test_0.snap => core/snapshots/with-args-url.md_0.snap} (85%) rename tests/{snapshots/execution_spec__with-args-url.md_client.snap => core/snapshots/with-args-url.md_client.snap} (87%) rename tests/{snapshots/execution_spec__with-args-url.md_merged.snap => core/snapshots/with-args-url.md_merged.snap} (89%) rename tests/{snapshots/execution_spec__with-args.md_test_0.snap => core/snapshots/with-args.md_0.snap} (87%) rename tests/{snapshots/execution_spec__with-args.md_client.snap => core/snapshots/with-args.md_client.snap} (86%) rename tests/{snapshots/execution_spec__with-args.md_merged.snap => core/snapshots/with-args.md_merged.snap} (88%) rename tests/{snapshots/execution_spec__with-nesting.md_test_0.snap => core/snapshots/with-nesting.md_0.snap} (91%) rename tests/{snapshots/execution_spec__with-nesting.md_client.snap => core/snapshots/with-nesting.md_client.snap} (91%) rename tests/{snapshots/execution_spec__with-nesting.md_merged.snap => core/snapshots/with-nesting.md_merged.snap} (92%) create mode 100644 tests/core/spec.rs delete mode 100644 tests/snapshots/execution_spec__grpc-url-from-upstream.md_client.snap delete mode 100644 tests/snapshots/execution_spec__test-batching-group-by.md_client.snap diff --git a/Cargo.lock b/Cargo.lock index 050784bfaf..6a88c7fc64 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -802,6 +802,12 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1bf2a5fb3207c12b5d208ebc145f967fea5cac41a021c37417ccc31ba40f39ee" +[[package]] +name = "camino" +version = "1.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c59e92b5a388f549b863a7bea62612c09f24c8393560709a54558a9abdfb3b9c" + [[package]] name = "cast" version = "0.3.0" @@ -1257,6 +1263,18 @@ version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7e962a19be5cfc3f3bf6dd8f61eb50107f356ad6270fbb3ed41476571db78be5" +[[package]] +name = "datatest-stable" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a00bbc70e3e6ab07f612f92eae3b282e30bcd0e093df2a9febf9db99799066fe" +dependencies = [ + "camino", + "fancy-regex", + "libtest-mimic", + "walkdir", +] + [[package]] name = "debugid" version = "0.8.0" @@ -1498,6 +1516,15 @@ dependencies = [ "windows-sys 0.52.0", ] +[[package]] +name = "escape8259" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba4f4911e3666fcd7826997b4745c8224295a6f3072f1418c3067b97a67557ee" +dependencies = [ + "rustversion", +] + [[package]] name = "event-listener" version = "2.5.3" @@ -1573,6 +1600,17 @@ dependencies = [ "once_cell", ] +[[package]] +name = "fancy-regex" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "531e46835a22af56d1e3b66f04844bed63158bc094a628bec1d321d9b4c44bf2" +dependencies = [ + "bit-set", + "regex-automata 0.4.6", + "regex-syntax 0.8.3", +] + [[package]] name = "fast_chemail" version = "0.9.6" @@ -2820,6 +2858,18 @@ dependencies = [ "libc", ] +[[package]] +name = "libtest-mimic" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fefdf21230d6143476a28adbee3d930e2b68a3d56443c777cae3fe9340eebff9" +dependencies = [ + "clap", + "escape8259", + "termcolor", + "threadpool", +] + [[package]] name = "linked-hash-map" version = "0.5.6" @@ -5127,6 +5177,7 @@ dependencies = [ "colored", "convert_case", "criterion", + "datatest-stable", "deno_core", "derive_setters", "dotenvy", @@ -5196,6 +5247,7 @@ dependencies = [ "tempfile", "thiserror", "tokio", + "tokio-test", "tonic", "tonic-types", "tracing", @@ -5381,6 +5433,15 @@ dependencies = [ "winapi", ] +[[package]] +name = "termcolor" +version = "1.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755" +dependencies = [ + "winapi-util", +] + [[package]] name = "thiserror" version = "1.0.59" @@ -5411,6 +5472,15 @@ dependencies = [ "once_cell", ] +[[package]] +name = "threadpool" +version = "1.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d050e60b33d41c19108b32cea32164033a9013fe3b46cbd4457559bfbf77afaa" +dependencies = [ + "num_cpus", +] + [[package]] name = "time" version = "0.3.36" @@ -5548,6 +5618,19 @@ dependencies = [ "tokio", ] +[[package]] +name = "tokio-test" +version = "0.4.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2468baabc3311435b55dd935f702f42cd1b8abb7e754fb7dfb16bd36aa88f9f7" +dependencies = [ + "async-stream", + "bytes", + "futures-core", + "tokio", + "tokio-stream", +] + [[package]] name = "tokio-util" version = "0.7.10" diff --git a/Cargo.toml b/Cargo.toml index 0057603986..6d9000cc2f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -146,6 +146,8 @@ convert_case = "0.6.0" rand = "0.8.5" tailcall-macros = { path = "tailcall-macros" } tonic-types = "0.11.0" +datatest-stable = "0.2.7" +tokio-test = "0.4.4" [dev-dependencies] @@ -244,3 +246,8 @@ harness = false [[bench]] name = "protobuf_convert_output" harness = false + +[[test]] +name = "execution_spec" +harness = false + diff --git a/tests/core/env.rs b/tests/core/env.rs new file mode 100644 index 0000000000..51f099372b --- /dev/null +++ b/tests/core/env.rs @@ -0,0 +1,23 @@ +extern crate core; + +use std::borrow::Cow; +use std::collections::HashMap; + +use tailcall::EnvIO; + +#[derive(Clone)] +pub struct Env { + vars: HashMap, +} + +impl EnvIO for Env { + fn get(&self, key: &str) -> Option> { + self.vars.get(key).map(Cow::from) + } +} + +impl Env { + pub fn init(vars: Option>) -> Self { + Self { vars: vars.unwrap_or_default() } + } +} diff --git a/tests/core/file.rs b/tests/core/file.rs new file mode 100644 index 0000000000..e784ed306c --- /dev/null +++ b/tests/core/file.rs @@ -0,0 +1,67 @@ +extern crate core; + +use std::path::PathBuf; + +use anyhow::{anyhow, Context}; +use tailcall::FileIO; +use tokio::io::{AsyncReadExt, AsyncWriteExt}; + +use super::runtime::ExecutionSpec; +pub struct File { + spec: ExecutionSpec, +} + +impl File { + pub fn new(spec: ExecutionSpec) -> File { + File { spec } + } +} + +#[async_trait::async_trait] +impl FileIO for File { + async fn write<'a>(&'a self, _path: &'a str, _content: &'a [u8]) -> anyhow::Result<()> { + Err(anyhow!("Cannot write to a file in an execution spec")) + } + + async fn read<'a>(&'a self, path: &'a str) -> anyhow::Result { + let base = PathBuf::from(path); + let path = base + .file_name() + .context("Invalid file path")? + .to_str() + .context("Invalid OsString")?; + match self.spec.files.get(path) { + Some(x) => Ok(x.to_owned()), + None => Err(anyhow!("No such file or directory (os error 2)")), + } + } +} + +#[derive(Clone)] +pub struct TestFileIO {} + +impl TestFileIO { + pub fn init() -> Self { + TestFileIO {} + } +} + +#[async_trait::async_trait] +impl FileIO for TestFileIO { + async fn write<'a>(&'a self, path: &'a str, content: &'a [u8]) -> anyhow::Result<()> { + let mut file = tokio::fs::File::create(path).await?; + file.write_all(content) + .await + .map_err(|e| anyhow!("{}", e))?; + Ok(()) + } + + async fn read<'a>(&'a self, path: &'a str) -> anyhow::Result { + let mut file = tokio::fs::File::open(path).await?; + let mut buffer = Vec::new(); + file.read_to_end(&mut buffer) + .await + .map_err(|e| anyhow!("{}", e))?; + Ok(String::from_utf8(buffer)?) + } +} diff --git a/tests/core/http.rs b/tests/core/http.rs new file mode 100644 index 0000000000..2a0d13a594 --- /dev/null +++ b/tests/core/http.rs @@ -0,0 +1,176 @@ +extern crate core; + +use std::panic; +use std::path::Path; +use std::str::FromStr; +use std::sync::atomic::{AtomicUsize, Ordering}; +use std::sync::Arc; + +use anyhow::anyhow; +use hyper::body::Bytes; +use reqwest::header::{HeaderName, HeaderValue}; +use serde_json::Value; +use tailcall::http::Response; +use tailcall::HttpIO; + +use super::runtime::{ExecutionMock, ExecutionSpec}; + +#[derive(Clone, Debug)] +pub struct Http { + mocks: Vec, + spec_path: String, +} + +impl Http { + pub fn new(spec: &ExecutionSpec) -> Self { + let mocks = spec + .mock + .as_ref() + .map(|mocks| { + mocks + .iter() + .map(|mock| ExecutionMock { + mock: mock.clone(), + actual_hits: Arc::new(AtomicUsize::default()), + }) + .collect() + }) + .unwrap_or_default(); + + let spec_path = spec + .path + .strip_prefix(std::env::current_dir().unwrap()) + .unwrap_or(&spec.path) + .to_string_lossy() + .into_owned(); + + Http { mocks, spec_path } + } + + pub fn test_hits(&self, path: impl AsRef) { + for mock in &self.mocks { + mock.test_hits(path.as_ref()); + } + } +} + +fn string_to_bytes(input: &str) -> Vec { + let mut bytes = Vec::new(); + let mut chars = input.chars().peekable(); + + while let Some(c) = chars.next() { + match c { + '\\' => match chars.next() { + Some('0') => bytes.push(0), + Some('n') => bytes.push(b'\n'), + Some('t') => bytes.push(b'\t'), + Some('r') => bytes.push(b'\r'), + Some('\\') => bytes.push(b'\\'), + Some('\"') => bytes.push(b'\"'), + Some('x') => { + let mut hex = chars.next().unwrap().to_string(); + hex.push(chars.next().unwrap()); + let byte = u8::from_str_radix(&hex, 16).unwrap(); + bytes.push(byte); + } + _ => panic!("Unsupported escape sequence"), + }, + _ => bytes.push(c as u8), + } + } + + bytes +} + +#[async_trait::async_trait] +impl HttpIO for Http { + async fn execute(&self, req: reqwest::Request) -> anyhow::Result> { + // Determine if the request is a GRPC request based on PORT + let is_grpc = req.url().as_str().contains("50051"); + + // Try to find a matching mock for the incoming request. + let execution_mock = self + .mocks + .iter() + .find(|mock| { + let mock_req = &mock.mock.request; + let method_match = req.method() == mock_req.0.method.clone().to_hyper(); + let url_match = req.url().as_str() == mock_req.0.url.clone().as_str(); + let req_body = match req.body() { + Some(body) => { + if let Some(bytes) = body.as_bytes() { + if let Ok(body_str) = std::str::from_utf8(bytes) { + Value::from(body_str) + } else { + Value::Null + } + } else { + Value::Null + } + } + None => Value::Null, + }; + let body_match = req_body == mock_req.0.body; + let headers_match = req + .headers() + .iter() + .filter(|(key, _)| *key != "content-type") + .all(|(key, value)| { + let header_name = key.to_string(); + + let header_value = value.to_str().unwrap(); + let mock_header_value = "".to_string(); + let mock_header_value = mock_req + .0 + .headers + .get(&header_name) + .unwrap_or(&mock_header_value); + header_value == mock_header_value + }); + method_match && url_match && headers_match && (body_match || is_grpc) + }) + .ok_or(anyhow!( + "No mock found for request: {:?} {} in {}", + req.method(), + req.url(), + self.spec_path + ))?; + + execution_mock.actual_hits.fetch_add(1, Ordering::Relaxed); + + // Clone the response from the mock to avoid borrowing issues. + let mock_response = execution_mock.mock.response.clone(); + + // Build the response with the status code from the mock. + let status_code = reqwest::StatusCode::from_u16(mock_response.0.status)?; + + if status_code.is_client_error() || status_code.is_server_error() { + return Err(anyhow::format_err!("Status code error")); + } + + let mut response = Response { status: status_code, ..Default::default() }; + + // Insert headers from the mock into the response. + for (key, value) in mock_response.0.headers { + let header_name = HeaderName::from_str(&key)?; + let header_value = HeaderValue::from_str(&value)?; + response.headers.insert(header_name, header_value); + } + + // Special Handling for GRPC + if let Some(body) = mock_response.0.text_body { + // Return plaintext body if specified + let body = string_to_bytes(&body); + response.body = Bytes::from_iter(body); + } else if is_grpc { + // Special Handling for GRPC + let body = string_to_bytes(mock_response.0.body.as_str().unwrap_or_default()); + response.body = Bytes::from_iter(body); + } else { + let body = serde_json::to_vec(&mock_response.0.body)?; + response.body = Bytes::from_iter(body); + } + + Ok(response) + } +} diff --git a/tests/core/mod.rs b/tests/core/mod.rs new file mode 100644 index 0000000000..71e3d53574 --- /dev/null +++ b/tests/core/mod.rs @@ -0,0 +1,7 @@ +mod env; +mod file; +mod http; +mod model; +mod parse; +mod runtime; +pub mod spec; diff --git a/tests/core/model.rs b/tests/core/model.rs new file mode 100644 index 0000000000..77167876a6 --- /dev/null +++ b/tests/core/model.rs @@ -0,0 +1,63 @@ +use std::collections::BTreeMap; + +use serde::{Deserialize, Serialize}; +use tailcall::http::Method; +use url::Url; + +#[derive(Serialize, Deserialize, Clone, Debug)] +#[serde(rename_all = "camelCase")] +pub enum Annotation { + Skip, + Only, +} + +#[derive(Serialize, Deserialize, Clone, Debug, Eq, PartialEq)] +pub struct UpstreamRequest(pub APIRequest); + +#[derive(Serialize, Deserialize, Clone, Debug)] +pub struct UpstreamResponse(pub APIResponse); + +#[derive(Serialize, Deserialize, Clone, Debug)] +pub struct Mock { + pub request: UpstreamRequest, + pub response: UpstreamResponse, + #[serde(default = "default_expected_hits")] + pub expected_hits: usize, +} + +#[derive(Serialize, Deserialize, Clone, Debug, Eq, PartialEq)] +pub struct APIRequest { + #[serde(default)] + pub method: Method, + pub url: Url, + #[serde(default)] + pub headers: BTreeMap, + #[serde(default)] + pub body: serde_json::Value, + #[serde(default)] + pub test_traces: bool, + #[serde(default)] + pub test_metrics: bool, +} + +#[derive(Serialize, Deserialize, Clone, Debug)] +#[serde(rename_all = "camelCase")] +pub struct APIResponse { + #[serde(default = "default_status")] + pub status: u16, + #[serde(default)] + pub headers: BTreeMap, + #[serde(default)] + pub body: serde_json::Value, + #[serde(default)] + #[serde(skip_serializing_if = "Option::is_none")] + pub text_body: Option, +} + +fn default_status() -> u16 { + 200 +} + +fn default_expected_hits() -> usize { + 1 +} diff --git a/tests/core/parse.rs b/tests/core/parse.rs new file mode 100644 index 0000000000..6ab08d26c0 --- /dev/null +++ b/tests/core/parse.rs @@ -0,0 +1,306 @@ +extern crate core; + +use std::borrow::Cow; +use std::collections::{BTreeMap, HashMap}; +use std::panic; +use std::path::Path; +use std::str::FromStr; +use std::sync::Arc; + +use anyhow::anyhow; +use markdown::mdast::Node; +use markdown::ParseOptions; +use tailcall::blueprint::Blueprint; +use tailcall::cache::InMemoryCache; +use tailcall::cli::javascript; +use tailcall::config::{ConfigModule, Source}; +use tailcall::http::AppContext; +use tailcall::runtime::TargetRuntime; +use tailcall::EnvIO; + +use super::file::File; +use super::http::Http; +use super::model::*; +use super::runtime::ExecutionSpec; + +struct Env { + env: HashMap, +} + +impl EnvIO for Env { + fn get(&self, key: &str) -> Option> { + self.env.get(key).map(Cow::from) + } +} + +impl Env { + pub fn init(map: HashMap) -> Self { + Self { env: map } + } +} + +impl ExecutionSpec { + pub async fn from_source(path: &Path, contents: String) -> anyhow::Result { + let ast = markdown::to_mdast(&contents, &ParseOptions::default()).unwrap(); + let mut children = ast + .children() + .unwrap_or_else(|| panic!("Failed to parse {:?}: empty file unexpected", path)) + .iter() + .peekable(); + + let mut name: Option = None; + let mut server: Vec<(Source, String)> = Vec::with_capacity(2); + let mut mock: Option> = None; + let mut env: Option> = None; + let mut files: BTreeMap = BTreeMap::new(); + let mut test: Option> = None; + let mut runner: Option = None; + let mut check_identity = false; + let mut sdl_error = false; + + while let Some(node) = children.next() { + match node { + Node::Heading(heading) => { + if heading.depth == 1 { + // Parse test name + if name.is_none() { + if let Some(Node::Text(text)) = heading.children.first() { + name = Some(text.value.clone()); + } else { + return Err(anyhow!( + "Unexpected content of level 1 heading in {:?}: {:#?}", + path, + heading + )); + } + } else { + return Err(anyhow!( + "Unexpected double-declaration of test name in {:?}", + path + )); + } + + // Consume optional test description + if let Some(Node::Paragraph(_)) = children.peek() { + let _ = children.next(); + } + } else if heading.depth == 2 { + if let Some(Node::Text(expect)) = heading.children.first() { + let split = expect.value.splitn(2, ':').collect::>(); + match split[..] { + [a, b] => { + check_identity = + a.contains("check_identity") && b.ends_with("true"); + sdl_error = a.contains("expect_validation_error") + && b.ends_with("true"); + } + _ => { + return Err(anyhow!( + "Unexpected header annotation {:?} in {:?}", + expect.value, + path, + )) + } + } + } + } else if heading.depth == 5 { + // Parse annotation + if runner.is_none() { + if let Some(Node::Text(text)) = heading.children.first() { + runner = Some(match text.value.as_str() { + "skip" => Annotation::Skip, + "only" => Annotation::Only, + _ => { + return Err(anyhow!( + "Unexpected runner annotation {:?} in {:?}", + text.value, + path, + )); + } + }); + } else { + return Err(anyhow!( + "Unexpected content of level 5 heading in {:?}: {:#?}", + path, + heading + )); + } + } else { + return Err(anyhow!( + "Unexpected double-declaration of runner annotation in {:?}", + path + )); + } + } else if heading.depth == 4 { + } else { + return Err(anyhow!( + "Unexpected level {} heading in {:?}: {:#?}", + heading.depth, + path, + heading + )); + } + } + Node::Code(code) => { + // Parse following code block + let (content, lang, meta) = { + ( + code.value.to_owned(), + code.lang.to_owned(), + code.meta.to_owned(), + ) + }; + if let Some(meta_str) = meta.as_ref().filter(|s| s.contains('@')) { + let temp_cleaned_meta = meta_str.replace('@', ""); + let name: &str = &temp_cleaned_meta; + if let Some(name) = name.strip_prefix("file:") { + if files.insert(name.to_string(), content).is_some() { + return Err(anyhow!( + "Double declaration of file {:?} in {:#?}", + name, + path + )); + } + } else { + let lang = match lang { + Some(x) => Ok(x), + None => Err(anyhow!( + "Unexpected code block with no specific language in {:?}", + path + )), + }?; + + let source = Source::from_str(&lang)?; + + match name { + "server" => { + // Server configs are only parsed if the test isn't skipped. + server.push((source, content)); + } + "mock" => { + if mock.is_none() { + mock = match source { + Source::Json => Ok(serde_json::from_str(&content)?), + Source::Yml => Ok(serde_yaml::from_str(&content)?), + _ => Err(anyhow!("Unexpected language in mock block in {:?} (only JSON and YAML are supported)", path)), + }?; + } else { + return Err(anyhow!("Unexpected number of mock blocks in {:?} (only one is allowed)", path)); + } + } + "env" => { + if env.is_none() { + env = match source { + Source::Json => Ok(serde_json::from_str(&content)?), + Source::Yml => Ok(serde_yaml::from_str(&content)?), + _ => Err(anyhow!("Unexpected language in env block in {:?} (only JSON and YAML are supported)", path)), + }?; + } else { + return Err(anyhow!("Unexpected number of env blocks in {:?} (only one is allowed)", path)); + } + } + "test" => { + if test.is_none() { + test = match source { + Source::Json => Ok(serde_json::from_str(&content)?), + Source::Yml => Ok(serde_yaml::from_str(&content)?), + _ => Err(anyhow!("Unexpected language in test block in {:?} (only JSON and YAML are supported)", path)), + }?; + } else { + return Err(anyhow!("Unexpected number of test blocks in {:?} (only one is allowed)", path)); + } + } + _ => { + return Err(anyhow!( + "Unexpected component {:?} in {:?}: {:#?}", + name, + path, + meta + )); + } + } + } + } else { + return Err(anyhow!( + "Unexpected content of code in {:?}: {:#?}", + path, + meta + )); + } + } + Node::Definition(d) => { + if let Some(title) = &d.title { + tracing::info!("Comment found in: {:?} with title: {}", path, title); + } + } + Node::ThematicBreak(_) => { + // skip this for and put execute logic in heading.depth + // above to escape ThematicBreaks like + // `---`, `***` or `___` + } + _ => return Err(anyhow!("Unexpected node in {:?}: {:#?}", path, node)), + } + } + + if server.is_empty() { + return Err(anyhow!( + "Unexpected blocks in {:?}: You must define a GraphQL Config in an execution test.", + path, + )); + } + + let spec = ExecutionSpec { + path: path.to_owned(), + name: name.unwrap_or_else(|| path.file_name().unwrap().to_str().unwrap().to_string()), + safe_name: path.file_name().unwrap().to_str().unwrap().to_string(), + + server, + mock, + env, + test, + files, + + runner, + + check_identity, + sdl_error, + }; + + anyhow::Ok(spec) + } + + pub async fn app_context( + &self, + config: &ConfigModule, + env: HashMap, + http_client: Arc, + ) -> Arc { + let blueprint = Blueprint::try_from(config).unwrap(); + let http = if let Some(script) = blueprint.server.script.clone() { + javascript::init_http(http_client, script) + } else { + http_client + }; + + let http2_only = http.clone(); + + let runtime = TargetRuntime { + http, + http2_only, + file: Arc::new(File::new(self.clone())), + env: Arc::new(Env::init(env)), + cache: Arc::new(InMemoryCache::new()), + extensions: Arc::new(vec![]), + }; + + let endpoints = config + .extensions + .endpoint_set + .clone() + .into_checked(&blueprint, runtime.clone()) + .await + .unwrap(); + + Arc::new(AppContext::new(blueprint, runtime, endpoints)) + } +} diff --git a/tests/core/runtime.rs b/tests/core/runtime.rs new file mode 100644 index 0000000000..1ccd61a6e1 --- /dev/null +++ b/tests/core/runtime.rs @@ -0,0 +1,108 @@ +extern crate core; + +use std::collections::{BTreeMap, HashMap}; +use std::path::{Path, PathBuf}; +use std::sync::atomic::{AtomicUsize, Ordering}; +use std::sync::Arc; + +use derive_setters::Setters; +use tailcall::blueprint; +use tailcall::cache::InMemoryCache; +use tailcall::cli::javascript; +use tailcall::config::Source; +use tailcall::runtime::TargetRuntime; + +use super::env::Env; +use super::file::TestFileIO; +use super::http::Http; +use super::model::*; + +#[derive(Clone, Setters)] +pub struct ExecutionSpec { + pub path: PathBuf, + pub name: String, + pub safe_name: String, + + pub server: Vec<(Source, String)>, + pub mock: Option>, + pub env: Option>, + pub test: Option>, + pub files: BTreeMap, + + // Annotations for the runner + pub runner: Option, + + pub check_identity: bool, + pub sdl_error: bool, +} + +#[derive(Clone, Debug)] +pub struct ExecutionMock { + pub mock: Mock, + pub actual_hits: Arc, +} + +impl ExecutionMock { + pub fn test_hits(&self, path: impl AsRef) { + let url = &self.mock.request.0.url; + let is_batch_graphql = url.path().starts_with("/graphql") + && self + .mock + .request + .0 + .body + .as_str() + .map(|s| s.contains(',')) + .unwrap_or_default(); + + // do not test hits for mocks for batch graphql requests + // since that requires having 2 mocks with different order of queries in + // single request and only one of that mocks is actually called during run. + // for other protocols there is no issues right now, because: + // - for http the keys are always sorted https://github.com/tailcallhq/tailcall/blob/51d8b7aff838f0f4c362d4ee9e39492ae1f51fdb/src/http/data_loader.rs#L71 + // - for grpc body is not used for matching the mock and grpc will use grouping based on id https://github.com/tailcallhq/tailcall/blob/733b641c41f17c60b15b36b025b4db99d0f9cdcd/tests/execution_spec.rs#L769 + if is_batch_graphql { + return; + } + + let expected_hits = self.mock.expected_hits; + let actual_hits = self.actual_hits.load(Ordering::Relaxed); + + assert_eq!( + expected_hits, + actual_hits, + "expected mock for {url} to be hit exactly {expected_hits} times, but it was hit {actual_hits} times for file: {:?}", + path.as_ref() + ); + } +} + +pub fn create_runtime( + http_client: Arc, + env: Option>, + script: Option, +) -> TargetRuntime { + let http = if let Some(script) = script.clone() { + javascript::init_http(http_client.clone(), script) + } else { + http_client.clone() + }; + + let http2 = if let Some(script) = script { + javascript::init_http(http_client.clone(), script) + } else { + http_client.clone() + }; + + let file = TestFileIO::init(); + let env = Env::init(env); + + TargetRuntime { + http, + http2_only: http2, + env: Arc::new(env), + file: Arc::new(file), + cache: Arc::new(InMemoryCache::new()), + extensions: Arc::new(vec![]), + } +} diff --git a/tests/snapshots/execution_spec__inline-index-list.md_test_0.snap b/tests/core/snapshots/add-field-index-list.md_0.snap similarity index 84% rename from tests/snapshots/execution_spec__inline-index-list.md_test_0.snap rename to tests/core/snapshots/add-field-index-list.md_0.snap index 29d33382cd..a5b7c188b6 100644 --- a/tests/snapshots/execution_spec__inline-index-list.md_test_0.snap +++ b/tests/core/snapshots/add-field-index-list.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__add-field-index-list.md_client.snap b/tests/core/snapshots/add-field-index-list.md_client.snap similarity index 87% rename from tests/snapshots/execution_spec__add-field-index-list.md_client.snap rename to tests/core/snapshots/add-field-index-list.md_client.snap index e61b7c1600..d5d22b778c 100644 --- a/tests/snapshots/execution_spec__add-field-index-list.md_client.snap +++ b/tests/core/snapshots/add-field-index-list.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__add-field-index-list.md_merged.snap b/tests/core/snapshots/add-field-index-list.md_merged.snap similarity index 89% rename from tests/snapshots/execution_spec__add-field-index-list.md_merged.snap rename to tests/core/snapshots/add-field-index-list.md_merged.snap index a99128757f..592c6f8c8f 100644 --- a/tests/snapshots/execution_spec__add-field-index-list.md_merged.snap +++ b/tests/core/snapshots/add-field-index-list.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream { diff --git a/tests/snapshots/execution_spec__add-field-many-list.md_client.snap b/tests/core/snapshots/add-field-many-list.md_client.snap similarity index 89% rename from tests/snapshots/execution_spec__add-field-many-list.md_client.snap rename to tests/core/snapshots/add-field-many-list.md_client.snap index 2456ca4d9f..f9e78bca84 100644 --- a/tests/snapshots/execution_spec__add-field-many-list.md_client.snap +++ b/tests/core/snapshots/add-field-many-list.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- type A { diff --git a/tests/snapshots/execution_spec__add-field-many-list.md_merged.snap b/tests/core/snapshots/add-field-many-list.md_merged.snap similarity index 91% rename from tests/snapshots/execution_spec__add-field-many-list.md_merged.snap rename to tests/core/snapshots/add-field-many-list.md_merged.snap index f01797ab15..e5802ae7b9 100644 --- a/tests/snapshots/execution_spec__add-field-many-list.md_merged.snap +++ b/tests/core/snapshots/add-field-many-list.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream { diff --git a/tests/snapshots/execution_spec__add-field-many.md_client.snap b/tests/core/snapshots/add-field-many.md_client.snap similarity index 89% rename from tests/snapshots/execution_spec__add-field-many.md_client.snap rename to tests/core/snapshots/add-field-many.md_client.snap index df32ac0aab..df7485155d 100644 --- a/tests/snapshots/execution_spec__add-field-many.md_client.snap +++ b/tests/core/snapshots/add-field-many.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__add-field-many.md_merged.snap b/tests/core/snapshots/add-field-many.md_merged.snap similarity index 92% rename from tests/snapshots/execution_spec__add-field-many.md_merged.snap rename to tests/core/snapshots/add-field-many.md_merged.snap index 108c262739..647189833f 100644 --- a/tests/snapshots/execution_spec__add-field-many.md_merged.snap +++ b/tests/core/snapshots/add-field-many.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream { diff --git a/tests/snapshots/execution_spec__add-field-modify.md_test_0.snap b/tests/core/snapshots/add-field-modify.md_0.snap similarity index 90% rename from tests/snapshots/execution_spec__add-field-modify.md_test_0.snap rename to tests/core/snapshots/add-field-modify.md_0.snap index 9b3aeaf49d..0e5c653400 100644 --- a/tests/snapshots/execution_spec__add-field-modify.md_test_0.snap +++ b/tests/core/snapshots/add-field-modify.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__add-field-modify.md_client.snap b/tests/core/snapshots/add-field-modify.md_client.snap similarity index 91% rename from tests/snapshots/execution_spec__add-field-modify.md_client.snap rename to tests/core/snapshots/add-field-modify.md_client.snap index 3c9c668b7c..fc6f9a2307 100644 --- a/tests/snapshots/execution_spec__add-field-modify.md_client.snap +++ b/tests/core/snapshots/add-field-modify.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- type Address { diff --git a/tests/snapshots/execution_spec__add-field-modify.md_merged.snap b/tests/core/snapshots/add-field-modify.md_merged.snap similarity index 93% rename from tests/snapshots/execution_spec__add-field-modify.md_merged.snap rename to tests/core/snapshots/add-field-modify.md_merged.snap index 4307019636..9c5aa370a1 100644 --- a/tests/snapshots/execution_spec__add-field-modify.md_merged.snap +++ b/tests/core/snapshots/add-field-modify.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream { diff --git a/tests/snapshots/execution_spec__add-field-with-composition.md_test_0.snap b/tests/core/snapshots/add-field-with-composition.md_0.snap similarity index 84% rename from tests/snapshots/execution_spec__add-field-with-composition.md_test_0.snap rename to tests/core/snapshots/add-field-with-composition.md_0.snap index d017028cc6..68e1ab14ee 100644 --- a/tests/snapshots/execution_spec__add-field-with-composition.md_test_0.snap +++ b/tests/core/snapshots/add-field-with-composition.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__add-field-with-composition.md_test_1.snap b/tests/core/snapshots/add-field-with-composition.md_1.snap similarity index 84% rename from tests/snapshots/execution_spec__add-field-with-composition.md_test_1.snap rename to tests/core/snapshots/add-field-with-composition.md_1.snap index d28ce3b731..cbe3b96cf9 100644 --- a/tests/snapshots/execution_spec__add-field-with-composition.md_test_1.snap +++ b/tests/core/snapshots/add-field-with-composition.md_1.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__add-field-with-composition.md_client.snap b/tests/core/snapshots/add-field-with-composition.md_client.snap similarity index 90% rename from tests/snapshots/execution_spec__add-field-with-composition.md_client.snap rename to tests/core/snapshots/add-field-with-composition.md_client.snap index 9c29a08749..4523b470a5 100644 --- a/tests/snapshots/execution_spec__add-field-with-composition.md_client.snap +++ b/tests/core/snapshots/add-field-with-composition.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- type Address { diff --git a/tests/snapshots/execution_spec__add-field-with-composition.md_merged.snap b/tests/core/snapshots/add-field-with-composition.md_merged.snap similarity index 92% rename from tests/snapshots/execution_spec__add-field-with-composition.md_merged.snap rename to tests/core/snapshots/add-field-with-composition.md_merged.snap index ee4ebae19d..973665cb76 100644 --- a/tests/snapshots/execution_spec__add-field-with-composition.md_merged.snap +++ b/tests/core/snapshots/add-field-with-composition.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream { diff --git a/tests/snapshots/execution_spec__add-field-with-modify.md_test_0.snap b/tests/core/snapshots/add-field-with-modify.md_0.snap similarity index 84% rename from tests/snapshots/execution_spec__add-field-with-modify.md_test_0.snap rename to tests/core/snapshots/add-field-with-modify.md_0.snap index 861c4f9743..f6d155936f 100644 --- a/tests/snapshots/execution_spec__add-field-with-modify.md_test_0.snap +++ b/tests/core/snapshots/add-field-with-modify.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__add-field-with-modify.md_test_1.snap b/tests/core/snapshots/add-field-with-modify.md_1.snap similarity index 84% rename from tests/snapshots/execution_spec__add-field-with-modify.md_test_1.snap rename to tests/core/snapshots/add-field-with-modify.md_1.snap index b5e02c082d..7dbe361ffc 100644 --- a/tests/snapshots/execution_spec__add-field-with-modify.md_test_1.snap +++ b/tests/core/snapshots/add-field-with-modify.md_1.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__add-field-with-modify.md_client.snap b/tests/core/snapshots/add-field-with-modify.md_client.snap similarity index 88% rename from tests/snapshots/execution_spec__add-field-with-modify.md_client.snap rename to tests/core/snapshots/add-field-with-modify.md_client.snap index f77eddebb2..742a75a643 100644 --- a/tests/snapshots/execution_spec__add-field-with-modify.md_client.snap +++ b/tests/core/snapshots/add-field-with-modify.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__add-field-with-modify.md_merged.snap b/tests/core/snapshots/add-field-with-modify.md_merged.snap similarity index 92% rename from tests/snapshots/execution_spec__add-field-with-modify.md_merged.snap rename to tests/core/snapshots/add-field-with-modify.md_merged.snap index 5ea9e91eca..cad2840a4c 100644 --- a/tests/snapshots/execution_spec__add-field-with-modify.md_merged.snap +++ b/tests/core/snapshots/add-field-with-modify.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream { diff --git a/tests/snapshots/execution_spec__add-field.md_test_0.snap b/tests/core/snapshots/add-field.md_0.snap similarity index 85% rename from tests/snapshots/execution_spec__add-field.md_test_0.snap rename to tests/core/snapshots/add-field.md_0.snap index bf508b8b0d..46dcd8c3b2 100644 --- a/tests/snapshots/execution_spec__add-field.md_test_0.snap +++ b/tests/core/snapshots/add-field.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__add-field.md_client.snap b/tests/core/snapshots/add-field.md_client.snap similarity index 89% rename from tests/snapshots/execution_spec__add-field.md_client.snap rename to tests/core/snapshots/add-field.md_client.snap index b858be18ec..2f1822decb 100644 --- a/tests/snapshots/execution_spec__add-field.md_client.snap +++ b/tests/core/snapshots/add-field.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- type Address { diff --git a/tests/snapshots/execution_spec__add-field.md_merged.snap b/tests/core/snapshots/add-field.md_merged.snap similarity index 90% rename from tests/snapshots/execution_spec__add-field.md_merged.snap rename to tests/core/snapshots/add-field.md_merged.snap index 869fcbf812..82d16a885b 100644 --- a/tests/snapshots/execution_spec__add-field.md_merged.snap +++ b/tests/core/snapshots/add-field.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream { diff --git a/tests/snapshots/execution_spec__apollo-tracing.md_test_0.snap b/tests/core/snapshots/apollo-tracing.md_0.snap similarity index 84% rename from tests/snapshots/execution_spec__apollo-tracing.md_test_0.snap rename to tests/core/snapshots/apollo-tracing.md_0.snap index d79142407b..d1aa07b391 100644 --- a/tests/snapshots/execution_spec__apollo-tracing.md_test_0.snap +++ b/tests/core/snapshots/apollo-tracing.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__apollo-tracing.md_client.snap b/tests/core/snapshots/apollo-tracing.md_client.snap similarity index 84% rename from tests/snapshots/execution_spec__apollo-tracing.md_client.snap rename to tests/core/snapshots/apollo-tracing.md_client.snap index e0c36c9133..bc438e3a5d 100644 --- a/tests/snapshots/execution_spec__apollo-tracing.md_client.snap +++ b/tests/core/snapshots/apollo-tracing.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__apollo-tracing.md_merged.snap b/tests/core/snapshots/apollo-tracing.md_merged.snap similarity index 86% rename from tests/snapshots/execution_spec__apollo-tracing.md_merged.snap rename to tests/core/snapshots/apollo-tracing.md_merged.snap index b21a8ec737..c65bafe30d 100644 --- a/tests/snapshots/execution_spec__apollo-tracing.md_merged.snap +++ b/tests/core/snapshots/apollo-tracing.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server(graphiql: true, hostname: "0.0.0.0", port: 8000) @upstream { diff --git a/tests/snapshots/execution_spec__auth-basic.md_test_0.snap b/tests/core/snapshots/auth-basic.md_0.snap similarity index 88% rename from tests/snapshots/execution_spec__auth-basic.md_test_0.snap rename to tests/core/snapshots/auth-basic.md_0.snap index 23b23fc4c6..19966dbd12 100644 --- a/tests/snapshots/execution_spec__auth-basic.md_test_0.snap +++ b/tests/core/snapshots/auth-basic.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__auth-jwt.md_test_1.snap b/tests/core/snapshots/auth-basic.md_1.snap similarity index 91% rename from tests/snapshots/execution_spec__auth-jwt.md_test_1.snap rename to tests/core/snapshots/auth-basic.md_1.snap index e5615af7a6..5fd8164e7c 100644 --- a/tests/snapshots/execution_spec__auth-jwt.md_test_1.snap +++ b/tests/core/snapshots/auth-basic.md_1.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__auth-basic.md_test_2.snap b/tests/core/snapshots/auth-basic.md_2.snap similarity index 91% rename from tests/snapshots/execution_spec__auth-basic.md_test_2.snap rename to tests/core/snapshots/auth-basic.md_2.snap index e6f8269b6c..1147bdbb16 100644 --- a/tests/snapshots/execution_spec__auth-basic.md_test_2.snap +++ b/tests/core/snapshots/auth-basic.md_2.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__auth-jwt.md_test_2.snap b/tests/core/snapshots/auth-basic.md_3.snap similarity index 92% rename from tests/snapshots/execution_spec__auth-jwt.md_test_2.snap rename to tests/core/snapshots/auth-basic.md_3.snap index 0ca6d0f640..5a8bbd2fd3 100644 --- a/tests/snapshots/execution_spec__auth-jwt.md_test_2.snap +++ b/tests/core/snapshots/auth-basic.md_3.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__auth-basic.md_test_4.snap b/tests/core/snapshots/auth-basic.md_4.snap similarity index 91% rename from tests/snapshots/execution_spec__auth-basic.md_test_4.snap rename to tests/core/snapshots/auth-basic.md_4.snap index e5615af7a6..5fd8164e7c 100644 --- a/tests/snapshots/execution_spec__auth-basic.md_test_4.snap +++ b/tests/core/snapshots/auth-basic.md_4.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__auth-jwt.md_test_4.snap b/tests/core/snapshots/auth-basic.md_5.snap similarity index 88% rename from tests/snapshots/execution_spec__auth-jwt.md_test_4.snap rename to tests/core/snapshots/auth-basic.md_5.snap index be4bc718b0..1afd85d51b 100644 --- a/tests/snapshots/execution_spec__auth-jwt.md_test_4.snap +++ b/tests/core/snapshots/auth-basic.md_5.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__auth-jwt.md_test_5.snap b/tests/core/snapshots/auth-basic.md_6.snap similarity index 91% rename from tests/snapshots/execution_spec__auth-jwt.md_test_5.snap rename to tests/core/snapshots/auth-basic.md_6.snap index e6f8269b6c..1147bdbb16 100644 --- a/tests/snapshots/execution_spec__auth-jwt.md_test_5.snap +++ b/tests/core/snapshots/auth-basic.md_6.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__auth-basic.md_client.snap b/tests/core/snapshots/auth-basic.md_client.snap similarity index 93% rename from tests/snapshots/execution_spec__auth-basic.md_client.snap rename to tests/core/snapshots/auth-basic.md_client.snap index f3f258d58b..6e5e77070f 100644 --- a/tests/snapshots/execution_spec__auth-basic.md_client.snap +++ b/tests/core/snapshots/auth-basic.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__auth-basic.md_merged.snap b/tests/core/snapshots/auth-basic.md_merged.snap similarity index 95% rename from tests/snapshots/execution_spec__auth-basic.md_merged.snap rename to tests/core/snapshots/auth-basic.md_merged.snap index 0f94953b0f..4e174cdbc4 100644 --- a/tests/snapshots/execution_spec__auth-basic.md_merged.snap +++ b/tests/core/snapshots/auth-basic.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server(graphiql: true, port: 8000) @upstream @link(id: "htpasswd", src: ".htpasswd", type: Htpasswd) { diff --git a/tests/snapshots/execution_spec__auth-jwt.md_test_0.snap b/tests/core/snapshots/auth-jwt.md_0.snap similarity index 88% rename from tests/snapshots/execution_spec__auth-jwt.md_test_0.snap rename to tests/core/snapshots/auth-jwt.md_0.snap index 23b23fc4c6..19966dbd12 100644 --- a/tests/snapshots/execution_spec__auth-jwt.md_test_0.snap +++ b/tests/core/snapshots/auth-jwt.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__auth-jwt.md_test_3.snap b/tests/core/snapshots/auth-jwt.md_1.snap similarity index 91% rename from tests/snapshots/execution_spec__auth-jwt.md_test_3.snap rename to tests/core/snapshots/auth-jwt.md_1.snap index e5615af7a6..5fd8164e7c 100644 --- a/tests/snapshots/execution_spec__auth-jwt.md_test_3.snap +++ b/tests/core/snapshots/auth-jwt.md_1.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__auth-basic.md_test_3.snap b/tests/core/snapshots/auth-jwt.md_2.snap similarity index 92% rename from tests/snapshots/execution_spec__auth-basic.md_test_3.snap rename to tests/core/snapshots/auth-jwt.md_2.snap index 0ca6d0f640..5a8bbd2fd3 100644 --- a/tests/snapshots/execution_spec__auth-basic.md_test_3.snap +++ b/tests/core/snapshots/auth-jwt.md_2.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__auth-basic.md_test_1.snap b/tests/core/snapshots/auth-jwt.md_3.snap similarity index 91% rename from tests/snapshots/execution_spec__auth-basic.md_test_1.snap rename to tests/core/snapshots/auth-jwt.md_3.snap index e5615af7a6..5fd8164e7c 100644 --- a/tests/snapshots/execution_spec__auth-basic.md_test_1.snap +++ b/tests/core/snapshots/auth-jwt.md_3.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__auth-basic.md_test_5.snap b/tests/core/snapshots/auth-jwt.md_4.snap similarity index 88% rename from tests/snapshots/execution_spec__auth-basic.md_test_5.snap rename to tests/core/snapshots/auth-jwt.md_4.snap index be4bc718b0..1afd85d51b 100644 --- a/tests/snapshots/execution_spec__auth-basic.md_test_5.snap +++ b/tests/core/snapshots/auth-jwt.md_4.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__auth-basic.md_test_6.snap b/tests/core/snapshots/auth-jwt.md_5.snap similarity index 91% rename from tests/snapshots/execution_spec__auth-basic.md_test_6.snap rename to tests/core/snapshots/auth-jwt.md_5.snap index e6f8269b6c..1147bdbb16 100644 --- a/tests/snapshots/execution_spec__auth-basic.md_test_6.snap +++ b/tests/core/snapshots/auth-jwt.md_5.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__auth-jwt.md_client.snap b/tests/core/snapshots/auth-jwt.md_client.snap similarity index 93% rename from tests/snapshots/execution_spec__auth-jwt.md_client.snap rename to tests/core/snapshots/auth-jwt.md_client.snap index f3f258d58b..6e5e77070f 100644 --- a/tests/snapshots/execution_spec__auth-jwt.md_client.snap +++ b/tests/core/snapshots/auth-jwt.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__auth-jwt.md_merged.snap b/tests/core/snapshots/auth-jwt.md_merged.snap similarity index 95% rename from tests/snapshots/execution_spec__auth-jwt.md_merged.snap rename to tests/core/snapshots/auth-jwt.md_merged.snap index 49a1a0bff5..9ea0b077da 100644 --- a/tests/snapshots/execution_spec__auth-jwt.md_merged.snap +++ b/tests/core/snapshots/auth-jwt.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server(graphiql: true, port: 8000) @upstream @link(id: "jwks", src: "jwks.json", type: Jwks) { diff --git a/tests/snapshots/execution_spec__auth.md_client.snap b/tests/core/snapshots/auth.md_client.snap similarity index 84% rename from tests/snapshots/execution_spec__auth.md_client.snap rename to tests/core/snapshots/auth.md_client.snap index b407a8d7e1..225f264c60 100644 --- a/tests/snapshots/execution_spec__auth.md_client.snap +++ b/tests/core/snapshots/auth.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__auth.md_merged.snap b/tests/core/snapshots/auth.md_merged.snap similarity index 88% rename from tests/snapshots/execution_spec__auth.md_merged.snap rename to tests/core/snapshots/auth.md_merged.snap index 8957ba9339..f89a8e3187 100644 --- a/tests/snapshots/execution_spec__auth.md_merged.snap +++ b/tests/core/snapshots/auth.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream @link(id: "htpasswd", src: ".htpasswd", type: Htpasswd) @link(id: "jwks", src: "jwks.json", type: Jwks) { diff --git a/tests/snapshots/execution_spec__batching-default.md_test_0.snap b/tests/core/snapshots/batching-default.md_0.snap similarity index 91% rename from tests/snapshots/execution_spec__batching-default.md_test_0.snap rename to tests/core/snapshots/batching-default.md_0.snap index c95cface17..f83fd2bba9 100644 --- a/tests/snapshots/execution_spec__batching-default.md_test_0.snap +++ b/tests/core/snapshots/batching-default.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__batching-post.md_client.snap b/tests/core/snapshots/batching-default.md_client.snap similarity index 90% rename from tests/snapshots/execution_spec__batching-post.md_client.snap rename to tests/core/snapshots/batching-default.md_client.snap index f8e5c29910..7ae47b261d 100644 --- a/tests/snapshots/execution_spec__batching-post.md_client.snap +++ b/tests/core/snapshots/batching-default.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__batching-default.md_merged.snap b/tests/core/snapshots/batching-default.md_merged.snap similarity index 93% rename from tests/snapshots/execution_spec__batching-default.md_merged.snap rename to tests/core/snapshots/batching-default.md_merged.snap index 20184ded3e..0ef8726355 100644 --- a/tests/snapshots/execution_spec__batching-default.md_merged.snap +++ b/tests/core/snapshots/batching-default.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "http://jsonplaceholder.typicode.com", batch: {delay: 10, headers: []}, httpCache: true) { diff --git a/tests/snapshots/execution_spec__upstream-batching.md_test_0.snap b/tests/core/snapshots/batching-disabled.md_0.snap similarity index 87% rename from tests/snapshots/execution_spec__upstream-batching.md_test_0.snap rename to tests/core/snapshots/batching-disabled.md_0.snap index c1db4d440d..e8bca1fdcc 100644 --- a/tests/snapshots/execution_spec__upstream-batching.md_test_0.snap +++ b/tests/core/snapshots/batching-disabled.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__batching-disabled.md_client.snap b/tests/core/snapshots/batching-disabled.md_client.snap similarity index 88% rename from tests/snapshots/execution_spec__batching-disabled.md_client.snap rename to tests/core/snapshots/batching-disabled.md_client.snap index e6b70532b1..29257d2d5f 100644 --- a/tests/snapshots/execution_spec__batching-disabled.md_client.snap +++ b/tests/core/snapshots/batching-disabled.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__batching-disabled.md_merged.snap b/tests/core/snapshots/batching-disabled.md_merged.snap similarity index 90% rename from tests/snapshots/execution_spec__batching-disabled.md_merged.snap rename to tests/core/snapshots/batching-disabled.md_merged.snap index 1d1421b372..30586519f5 100644 --- a/tests/snapshots/execution_spec__batching-disabled.md_merged.snap +++ b/tests/core/snapshots/batching-disabled.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "http://jsonplaceholder.typicode.com", batch: {delay: 0, headers: [], maxSize: 100}, httpCache: true) { diff --git a/tests/snapshots/execution_spec__batching-group-by-default.md_test_0.snap b/tests/core/snapshots/batching-group-by-default.md_0.snap similarity index 91% rename from tests/snapshots/execution_spec__batching-group-by-default.md_test_0.snap rename to tests/core/snapshots/batching-group-by-default.md_0.snap index c95cface17..f83fd2bba9 100644 --- a/tests/snapshots/execution_spec__batching-group-by-default.md_test_0.snap +++ b/tests/core/snapshots/batching-group-by-default.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__batching-default.md_client.snap b/tests/core/snapshots/batching-group-by-default.md_client.snap similarity index 90% rename from tests/snapshots/execution_spec__batching-default.md_client.snap rename to tests/core/snapshots/batching-group-by-default.md_client.snap index f8e5c29910..7ae47b261d 100644 --- a/tests/snapshots/execution_spec__batching-default.md_client.snap +++ b/tests/core/snapshots/batching-group-by-default.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__batching-group-by-default.md_merged.snap b/tests/core/snapshots/batching-group-by-default.md_merged.snap similarity index 93% rename from tests/snapshots/execution_spec__batching-group-by-default.md_merged.snap rename to tests/core/snapshots/batching-group-by-default.md_merged.snap index e0746b8214..7dc15f9633 100644 --- a/tests/snapshots/execution_spec__batching-group-by-default.md_merged.snap +++ b/tests/core/snapshots/batching-group-by-default.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "http://jsonplaceholder.typicode.com", batch: {delay: 1, headers: [], maxSize: 1000}, httpCache: true) { diff --git a/tests/snapshots/execution_spec__batching-group-by.md_test_0.snap b/tests/core/snapshots/batching-group-by.md_0.snap similarity index 91% rename from tests/snapshots/execution_spec__batching-group-by.md_test_0.snap rename to tests/core/snapshots/batching-group-by.md_0.snap index c95cface17..f83fd2bba9 100644 --- a/tests/snapshots/execution_spec__batching-group-by.md_test_0.snap +++ b/tests/core/snapshots/batching-group-by.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__batching-group-by.md_client.snap b/tests/core/snapshots/batching-group-by.md_client.snap similarity index 90% rename from tests/snapshots/execution_spec__batching-group-by.md_client.snap rename to tests/core/snapshots/batching-group-by.md_client.snap index f8e5c29910..7ae47b261d 100644 --- a/tests/snapshots/execution_spec__batching-group-by.md_client.snap +++ b/tests/core/snapshots/batching-group-by.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__batching-group-by.md_merged.snap b/tests/core/snapshots/batching-group-by.md_merged.snap similarity index 94% rename from tests/snapshots/execution_spec__batching-group-by.md_merged.snap rename to tests/core/snapshots/batching-group-by.md_merged.snap index a315e11c63..2b75106aca 100644 --- a/tests/snapshots/execution_spec__batching-group-by.md_merged.snap +++ b/tests/core/snapshots/batching-group-by.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server(port: 8000, queryValidation: false) @upstream(baseURL: "http://jsonplaceholder.typicode.com", batch: {delay: 1, headers: [], maxSize: 1000}, httpCache: true) { diff --git a/tests/snapshots/execution_spec__batching-post.md_test_0.snap b/tests/core/snapshots/batching-post.md_0.snap similarity index 88% rename from tests/snapshots/execution_spec__batching-post.md_test_0.snap rename to tests/core/snapshots/batching-post.md_0.snap index df16b720ba..43853b4346 100644 --- a/tests/snapshots/execution_spec__batching-post.md_test_0.snap +++ b/tests/core/snapshots/batching-post.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__batching-group-by-default.md_client.snap b/tests/core/snapshots/batching-post.md_client.snap similarity index 90% rename from tests/snapshots/execution_spec__batching-group-by-default.md_client.snap rename to tests/core/snapshots/batching-post.md_client.snap index f8e5c29910..7ae47b261d 100644 --- a/tests/snapshots/execution_spec__batching-group-by-default.md_client.snap +++ b/tests/core/snapshots/batching-post.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__batching-post.md_merged.snap b/tests/core/snapshots/batching-post.md_merged.snap similarity index 93% rename from tests/snapshots/execution_spec__batching-post.md_merged.snap rename to tests/core/snapshots/batching-post.md_merged.snap index 9233c413bd..34b9791fe7 100644 --- a/tests/snapshots/execution_spec__batching-post.md_merged.snap +++ b/tests/core/snapshots/batching-post.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server(port: 8000, queryValidation: false) @upstream(baseURL: "http://jsonplaceholder.typicode.com", batch: {delay: 1, headers: [], maxSize: 1000}, httpCache: true) { diff --git a/tests/snapshots/execution_spec__batching.md_test_0.snap b/tests/core/snapshots/batching.md_0.snap similarity index 90% rename from tests/snapshots/execution_spec__batching.md_test_0.snap rename to tests/core/snapshots/batching.md_0.snap index f4a82d3ebe..b1a1411d19 100644 --- a/tests/snapshots/execution_spec__batching.md_test_0.snap +++ b/tests/core/snapshots/batching.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__batching.md_test_1.snap b/tests/core/snapshots/batching.md_1.snap similarity index 85% rename from tests/snapshots/execution_spec__batching.md_test_1.snap rename to tests/core/snapshots/batching.md_1.snap index 5892866e24..4a83588a1a 100644 --- a/tests/snapshots/execution_spec__batching.md_test_1.snap +++ b/tests/core/snapshots/batching.md_1.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__batching.md_test_2.snap b/tests/core/snapshots/batching.md_2.snap similarity index 92% rename from tests/snapshots/execution_spec__batching.md_test_2.snap rename to tests/core/snapshots/batching.md_2.snap index 455e22a7d5..2d278c54f5 100644 --- a/tests/snapshots/execution_spec__batching.md_test_2.snap +++ b/tests/core/snapshots/batching.md_2.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__upstream-fail-request.md_client.snap b/tests/core/snapshots/batching.md_client.snap similarity index 86% rename from tests/snapshots/execution_spec__upstream-fail-request.md_client.snap rename to tests/core/snapshots/batching.md_client.snap index 84d2907e22..f8c9c2fa86 100644 --- a/tests/snapshots/execution_spec__upstream-fail-request.md_client.snap +++ b/tests/core/snapshots/batching.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__batching.md_merged.snap b/tests/core/snapshots/batching.md_merged.snap similarity index 87% rename from tests/snapshots/execution_spec__batching.md_merged.snap rename to tests/core/snapshots/batching.md_merged.snap index 7f4e597155..71f73427cb 100644 --- a/tests/snapshots/execution_spec__batching.md_merged.snap +++ b/tests/core/snapshots/batching.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server(batchRequests: true) @upstream { diff --git a/tests/snapshots/execution_spec__cache-control.md_test_0.snap b/tests/core/snapshots/cache-control.md_0.snap similarity index 89% rename from tests/snapshots/execution_spec__cache-control.md_test_0.snap rename to tests/core/snapshots/cache-control.md_0.snap index 7159134df4..c3c2762363 100644 --- a/tests/snapshots/execution_spec__cache-control.md_test_0.snap +++ b/tests/core/snapshots/cache-control.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__cache-control.md_test_1.snap b/tests/core/snapshots/cache-control.md_1.snap similarity index 89% rename from tests/snapshots/execution_spec__cache-control.md_test_1.snap rename to tests/core/snapshots/cache-control.md_1.snap index adae6faa84..c84152761a 100644 --- a/tests/snapshots/execution_spec__cache-control.md_test_1.snap +++ b/tests/core/snapshots/cache-control.md_1.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__cache-control.md_test_2.snap b/tests/core/snapshots/cache-control.md_2.snap similarity index 88% rename from tests/snapshots/execution_spec__cache-control.md_test_2.snap rename to tests/core/snapshots/cache-control.md_2.snap index 08931aa49c..5ca46d4fd2 100644 --- a/tests/snapshots/execution_spec__cache-control.md_test_2.snap +++ b/tests/core/snapshots/cache-control.md_2.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__cache-control.md_test_3.snap b/tests/core/snapshots/cache-control.md_3.snap similarity index 89% rename from tests/snapshots/execution_spec__cache-control.md_test_3.snap rename to tests/core/snapshots/cache-control.md_3.snap index fd928f7a26..33705363d3 100644 --- a/tests/snapshots/execution_spec__cache-control.md_test_3.snap +++ b/tests/core/snapshots/cache-control.md_3.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__graphql-datasource-errors.md_client.snap b/tests/core/snapshots/cache-control.md_client.snap similarity index 87% rename from tests/snapshots/execution_spec__graphql-datasource-errors.md_client.snap rename to tests/core/snapshots/cache-control.md_client.snap index 89319b393a..7c0bdf72e9 100644 --- a/tests/snapshots/execution_spec__graphql-datasource-errors.md_client.snap +++ b/tests/core/snapshots/cache-control.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__cache-control.md_merged.snap b/tests/core/snapshots/cache-control.md_merged.snap similarity index 90% rename from tests/snapshots/execution_spec__cache-control.md_merged.snap rename to tests/core/snapshots/cache-control.md_merged.snap index 14b21d132d..ce75b519b4 100644 --- a/tests/snapshots/execution_spec__cache-control.md_merged.snap +++ b/tests/core/snapshots/cache-control.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server(headers: {cacheControl: true}) @upstream { diff --git a/tests/snapshots/execution_spec__caching-collision.md_test_0.snap b/tests/core/snapshots/caching-collision.md_0.snap similarity index 99% rename from tests/snapshots/execution_spec__caching-collision.md_test_0.snap rename to tests/core/snapshots/caching-collision.md_0.snap index 5aa7c651c5..78dc9d88b8 100644 --- a/tests/snapshots/execution_spec__caching-collision.md_test_0.snap +++ b/tests/core/snapshots/caching-collision.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__caching-collision.md_client.snap b/tests/core/snapshots/caching-collision.md_client.snap similarity index 87% rename from tests/snapshots/execution_spec__caching-collision.md_client.snap rename to tests/core/snapshots/caching-collision.md_client.snap index d22ceed81c..97f888869d 100644 --- a/tests/snapshots/execution_spec__caching-collision.md_client.snap +++ b/tests/core/snapshots/caching-collision.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- type Bar { diff --git a/tests/snapshots/execution_spec__caching-collision.md_merged.snap b/tests/core/snapshots/caching-collision.md_merged.snap similarity index 91% rename from tests/snapshots/execution_spec__caching-collision.md_merged.snap rename to tests/core/snapshots/caching-collision.md_merged.snap index 7f298ffb61..39aa88d47e 100644 --- a/tests/snapshots/execution_spec__caching-collision.md_merged.snap +++ b/tests/core/snapshots/caching-collision.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "http://example.com", batch: {delay: 1, headers: [], maxSize: 1000}) { diff --git a/tests/snapshots/execution_spec__caching.md_test_0.snap b/tests/core/snapshots/caching.md_0.snap similarity index 85% rename from tests/snapshots/execution_spec__caching.md_test_0.snap rename to tests/core/snapshots/caching.md_0.snap index e793e96b14..2121b43f17 100644 --- a/tests/snapshots/execution_spec__caching.md_test_0.snap +++ b/tests/core/snapshots/caching.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__caching.md_test_2.snap b/tests/core/snapshots/caching.md_1.snap similarity index 95% rename from tests/snapshots/execution_spec__caching.md_test_2.snap rename to tests/core/snapshots/caching.md_1.snap index c158551d3d..40625200f5 100644 --- a/tests/snapshots/execution_spec__caching.md_test_2.snap +++ b/tests/core/snapshots/caching.md_1.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__caching.md_test_1.snap b/tests/core/snapshots/caching.md_2.snap similarity index 95% rename from tests/snapshots/execution_spec__caching.md_test_1.snap rename to tests/core/snapshots/caching.md_2.snap index c158551d3d..40625200f5 100644 --- a/tests/snapshots/execution_spec__caching.md_test_1.snap +++ b/tests/core/snapshots/caching.md_2.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__caching.md_client.snap b/tests/core/snapshots/caching.md_client.snap similarity index 90% rename from tests/snapshots/execution_spec__caching.md_client.snap rename to tests/core/snapshots/caching.md_client.snap index 4184399572..4b27eea358 100644 --- a/tests/snapshots/execution_spec__caching.md_client.snap +++ b/tests/core/snapshots/caching.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__caching.md_merged.snap b/tests/core/snapshots/caching.md_merged.snap similarity index 94% rename from tests/snapshots/execution_spec__caching.md_merged.snap rename to tests/core/snapshots/caching.md_merged.snap index 141c0ff2e2..c1bff907a4 100644 --- a/tests/snapshots/execution_spec__caching.md_merged.snap +++ b/tests/core/snapshots/caching.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "http://example.com", batch: {delay: 1, headers: [], maxSize: 1000}) { diff --git a/tests/snapshots/execution_spec__graphql-dataloader-batch-request.md_test_0.snap b/tests/core/snapshots/call-graphql-datasource.md_0.snap similarity index 95% rename from tests/snapshots/execution_spec__graphql-dataloader-batch-request.md_test_0.snap rename to tests/core/snapshots/call-graphql-datasource.md_0.snap index a225bd7fb9..b4420e10c7 100644 --- a/tests/snapshots/execution_spec__graphql-dataloader-batch-request.md_test_0.snap +++ b/tests/core/snapshots/call-graphql-datasource.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__call-graphql-datasource.md_client.snap b/tests/core/snapshots/call-graphql-datasource.md_client.snap similarity index 92% rename from tests/snapshots/execution_spec__call-graphql-datasource.md_client.snap rename to tests/core/snapshots/call-graphql-datasource.md_client.snap index 284c9f66fb..95d3e97b5f 100644 --- a/tests/snapshots/execution_spec__call-graphql-datasource.md_client.snap +++ b/tests/core/snapshots/call-graphql-datasource.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__call-graphql-datasource.md_merged.snap b/tests/core/snapshots/call-graphql-datasource.md_merged.snap similarity index 95% rename from tests/snapshots/execution_spec__call-graphql-datasource.md_merged.snap rename to tests/core/snapshots/call-graphql-datasource.md_merged.snap index 691c98df60..ec344567c4 100644 --- a/tests/snapshots/execution_spec__call-graphql-datasource.md_merged.snap +++ b/tests/core/snapshots/call-graphql-datasource.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server(graphiql: true, hostname: "0.0.0.0", port: 8000) @upstream(baseURL: "http://jsonplaceholder.typicode.com", httpCache: true) { diff --git a/tests/snapshots/execution_spec__call-multiple-steps-piping.md_test_0.snap b/tests/core/snapshots/call-multiple-steps-piping.md_0.snap similarity index 83% rename from tests/snapshots/execution_spec__call-multiple-steps-piping.md_test_0.snap rename to tests/core/snapshots/call-multiple-steps-piping.md_0.snap index 3303eba69f..dc07f0ac53 100644 --- a/tests/snapshots/execution_spec__call-multiple-steps-piping.md_test_0.snap +++ b/tests/core/snapshots/call-multiple-steps-piping.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__call-multiple-steps-piping.md_test_1.snap b/tests/core/snapshots/call-multiple-steps-piping.md_1.snap similarity index 83% rename from tests/snapshots/execution_spec__call-multiple-steps-piping.md_test_1.snap rename to tests/core/snapshots/call-multiple-steps-piping.md_1.snap index 5796f20b8a..dcd399b30f 100644 --- a/tests/snapshots/execution_spec__call-multiple-steps-piping.md_test_1.snap +++ b/tests/core/snapshots/call-multiple-steps-piping.md_1.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__call-multiple-steps-piping.md_client.snap b/tests/core/snapshots/call-multiple-steps-piping.md_client.snap similarity index 92% rename from tests/snapshots/execution_spec__call-multiple-steps-piping.md_client.snap rename to tests/core/snapshots/call-multiple-steps-piping.md_client.snap index 1d35d1781c..deea0f695a 100644 --- a/tests/snapshots/execution_spec__call-multiple-steps-piping.md_client.snap +++ b/tests/core/snapshots/call-multiple-steps-piping.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__call-multiple-steps-piping.md_merged.snap b/tests/core/snapshots/call-multiple-steps-piping.md_merged.snap similarity index 96% rename from tests/snapshots/execution_spec__call-multiple-steps-piping.md_merged.snap rename to tests/core/snapshots/call-multiple-steps-piping.md_merged.snap index bef1dfcb25..d9d2d3a8ef 100644 --- a/tests/snapshots/execution_spec__call-multiple-steps-piping.md_merged.snap +++ b/tests/core/snapshots/call-multiple-steps-piping.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream { diff --git a/tests/snapshots/execution_spec__mutation.md_test_0.snap b/tests/core/snapshots/call-mutation.md_0.snap similarity index 86% rename from tests/snapshots/execution_spec__mutation.md_test_0.snap rename to tests/core/snapshots/call-mutation.md_0.snap index 3d78c855be..a0b72d835b 100644 --- a/tests/snapshots/execution_spec__mutation.md_test_0.snap +++ b/tests/core/snapshots/call-mutation.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__call-mutation.md_test_1.snap b/tests/core/snapshots/call-mutation.md_1.snap similarity index 92% rename from tests/snapshots/execution_spec__call-mutation.md_test_1.snap rename to tests/core/snapshots/call-mutation.md_1.snap index 3a76bb8893..ac831dbf76 100644 --- a/tests/snapshots/execution_spec__call-mutation.md_test_1.snap +++ b/tests/core/snapshots/call-mutation.md_1.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__call-mutation.md_test_2.snap b/tests/core/snapshots/call-mutation.md_2.snap similarity index 86% rename from tests/snapshots/execution_spec__call-mutation.md_test_2.snap rename to tests/core/snapshots/call-mutation.md_2.snap index d4f83b0a6c..e2c0d0eb8a 100644 --- a/tests/snapshots/execution_spec__call-mutation.md_test_2.snap +++ b/tests/core/snapshots/call-mutation.md_2.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__call-mutation.md_test_3.snap b/tests/core/snapshots/call-mutation.md_3.snap similarity index 86% rename from tests/snapshots/execution_spec__call-mutation.md_test_3.snap rename to tests/core/snapshots/call-mutation.md_3.snap index 835e659056..2e8dd036cd 100644 --- a/tests/snapshots/execution_spec__call-mutation.md_test_3.snap +++ b/tests/core/snapshots/call-mutation.md_3.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__call-mutation.md_test_4.snap b/tests/core/snapshots/call-mutation.md_4.snap similarity index 86% rename from tests/snapshots/execution_spec__call-mutation.md_test_4.snap rename to tests/core/snapshots/call-mutation.md_4.snap index 7ca89a4e51..e082082e7d 100644 --- a/tests/snapshots/execution_spec__call-mutation.md_test_4.snap +++ b/tests/core/snapshots/call-mutation.md_4.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__call-mutation.md_client.snap b/tests/core/snapshots/call-mutation.md_client.snap similarity index 96% rename from tests/snapshots/execution_spec__call-mutation.md_client.snap rename to tests/core/snapshots/call-mutation.md_client.snap index fc2aa7d84a..bea3b07d85 100644 --- a/tests/snapshots/execution_spec__call-mutation.md_client.snap +++ b/tests/core/snapshots/call-mutation.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__call-mutation.md_merged.snap b/tests/core/snapshots/call-mutation.md_merged.snap similarity index 97% rename from tests/snapshots/execution_spec__call-mutation.md_merged.snap rename to tests/core/snapshots/call-mutation.md_merged.snap index 8f65b57362..4684f682f2 100644 --- a/tests/snapshots/execution_spec__call-mutation.md_merged.snap +++ b/tests/core/snapshots/call-mutation.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "http://jsonplaceholder.typicode.com") { diff --git a/tests/snapshots/execution_spec__call-operator.md_test_0.snap b/tests/core/snapshots/call-operator.md_0.snap similarity index 88% rename from tests/snapshots/execution_spec__call-operator.md_test_0.snap rename to tests/core/snapshots/call-operator.md_0.snap index 1c66149129..70bb1cdebb 100644 --- a/tests/snapshots/execution_spec__call-operator.md_test_0.snap +++ b/tests/core/snapshots/call-operator.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__call-operator.md_test_1.snap b/tests/core/snapshots/call-operator.md_1.snap similarity index 88% rename from tests/snapshots/execution_spec__call-operator.md_test_1.snap rename to tests/core/snapshots/call-operator.md_1.snap index cc3001b654..8b3a950db1 100644 --- a/tests/snapshots/execution_spec__call-operator.md_test_1.snap +++ b/tests/core/snapshots/call-operator.md_1.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__call-operator.md_test_10.snap b/tests/core/snapshots/call-operator.md_10.snap similarity index 92% rename from tests/snapshots/execution_spec__call-operator.md_test_10.snap rename to tests/core/snapshots/call-operator.md_10.snap index e5000b46b8..87b277bf3c 100644 --- a/tests/snapshots/execution_spec__call-operator.md_test_10.snap +++ b/tests/core/snapshots/call-operator.md_10.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__call-operator.md_test_11.snap b/tests/core/snapshots/call-operator.md_11.snap similarity index 92% rename from tests/snapshots/execution_spec__call-operator.md_test_11.snap rename to tests/core/snapshots/call-operator.md_11.snap index 4e597f1483..e90dc644de 100644 --- a/tests/snapshots/execution_spec__call-operator.md_test_11.snap +++ b/tests/core/snapshots/call-operator.md_11.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__call-operator.md_test_12.snap b/tests/core/snapshots/call-operator.md_12.snap similarity index 90% rename from tests/snapshots/execution_spec__call-operator.md_test_12.snap rename to tests/core/snapshots/call-operator.md_12.snap index 4efab928b1..c37773a9b8 100644 --- a/tests/snapshots/execution_spec__call-operator.md_test_12.snap +++ b/tests/core/snapshots/call-operator.md_12.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__call-operator.md_test_2.snap b/tests/core/snapshots/call-operator.md_2.snap similarity index 88% rename from tests/snapshots/execution_spec__call-operator.md_test_2.snap rename to tests/core/snapshots/call-operator.md_2.snap index 1847d21126..cd98048d91 100644 --- a/tests/snapshots/execution_spec__call-operator.md_test_2.snap +++ b/tests/core/snapshots/call-operator.md_2.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__call-operator.md_test_3.snap b/tests/core/snapshots/call-operator.md_3.snap similarity index 89% rename from tests/snapshots/execution_spec__call-operator.md_test_3.snap rename to tests/core/snapshots/call-operator.md_3.snap index a3d0e94825..00eff50b9a 100644 --- a/tests/snapshots/execution_spec__call-operator.md_test_3.snap +++ b/tests/core/snapshots/call-operator.md_3.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__call-operator.md_test_4.snap b/tests/core/snapshots/call-operator.md_4.snap similarity index 89% rename from tests/snapshots/execution_spec__call-operator.md_test_4.snap rename to tests/core/snapshots/call-operator.md_4.snap index a3d0e94825..00eff50b9a 100644 --- a/tests/snapshots/execution_spec__call-operator.md_test_4.snap +++ b/tests/core/snapshots/call-operator.md_4.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__call-operator.md_test_5.snap b/tests/core/snapshots/call-operator.md_5.snap similarity index 89% rename from tests/snapshots/execution_spec__call-operator.md_test_5.snap rename to tests/core/snapshots/call-operator.md_5.snap index 7ab7c5fe98..806ab8a84d 100644 --- a/tests/snapshots/execution_spec__call-operator.md_test_5.snap +++ b/tests/core/snapshots/call-operator.md_5.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__call-operator.md_test_6.snap b/tests/core/snapshots/call-operator.md_6.snap similarity index 89% rename from tests/snapshots/execution_spec__call-operator.md_test_6.snap rename to tests/core/snapshots/call-operator.md_6.snap index b5d6ba9f8b..660a3716c6 100644 --- a/tests/snapshots/execution_spec__call-operator.md_test_6.snap +++ b/tests/core/snapshots/call-operator.md_6.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__call-operator.md_test_7.snap b/tests/core/snapshots/call-operator.md_7.snap similarity index 89% rename from tests/snapshots/execution_spec__call-operator.md_test_7.snap rename to tests/core/snapshots/call-operator.md_7.snap index fb0e7a0ddc..226a9c3e3a 100644 --- a/tests/snapshots/execution_spec__call-operator.md_test_7.snap +++ b/tests/core/snapshots/call-operator.md_7.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__call-operator.md_test_8.snap b/tests/core/snapshots/call-operator.md_8.snap similarity index 90% rename from tests/snapshots/execution_spec__call-operator.md_test_8.snap rename to tests/core/snapshots/call-operator.md_8.snap index 2da02e70d2..555ce24bfc 100644 --- a/tests/snapshots/execution_spec__call-operator.md_test_8.snap +++ b/tests/core/snapshots/call-operator.md_8.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__grpc-url-from-upstream.md_test_0.snap b/tests/core/snapshots/call-operator.md_9.snap similarity index 89% rename from tests/snapshots/execution_spec__grpc-url-from-upstream.md_test_0.snap rename to tests/core/snapshots/call-operator.md_9.snap index 93c8d4001e..f4f2990d59 100644 --- a/tests/snapshots/execution_spec__grpc-url-from-upstream.md_test_0.snap +++ b/tests/core/snapshots/call-operator.md_9.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__call-operator.md_client.snap b/tests/core/snapshots/call-operator.md_client.snap similarity index 97% rename from tests/snapshots/execution_spec__call-operator.md_client.snap rename to tests/core/snapshots/call-operator.md_client.snap index 013632b707..03ace5505d 100644 --- a/tests/snapshots/execution_spec__call-operator.md_client.snap +++ b/tests/core/snapshots/call-operator.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__call-operator.md_merged.snap b/tests/core/snapshots/call-operator.md_merged.snap similarity index 98% rename from tests/snapshots/execution_spec__call-operator.md_merged.snap rename to tests/core/snapshots/call-operator.md_merged.snap index 1308ff5d7b..ad316db56f 100644 --- a/tests/snapshots/execution_spec__call-operator.md_merged.snap +++ b/tests/core/snapshots/call-operator.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server(graphiql: true, hostname: "0.0.0.0", port: 8000) @upstream(baseURL: "http://jsonplaceholder.typicode.com", httpCache: true) @link(id: "news", src: "news.proto", type: Protobuf) { diff --git a/tests/snapshots/execution_spec__cors-allow-cred-false.md_test_0.snap b/tests/core/snapshots/cors-allow-cred-false.md_0.snap similarity index 90% rename from tests/snapshots/execution_spec__cors-allow-cred-false.md_test_0.snap rename to tests/core/snapshots/cors-allow-cred-false.md_0.snap index e08057de7f..396411301d 100644 --- a/tests/snapshots/execution_spec__cors-allow-cred-false.md_test_0.snap +++ b/tests/core/snapshots/cors-allow-cred-false.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__cors-allow-cred-false.md_client.snap b/tests/core/snapshots/cors-allow-cred-false.md_client.snap similarity index 83% rename from tests/snapshots/execution_spec__cors-allow-cred-false.md_client.snap rename to tests/core/snapshots/cors-allow-cred-false.md_client.snap index 48b4b87db4..de202e546c 100644 --- a/tests/snapshots/execution_spec__cors-allow-cred-false.md_client.snap +++ b/tests/core/snapshots/cors-allow-cred-false.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__cors-allow-cred-false.md_merged.snap b/tests/core/snapshots/cors-allow-cred-false.md_merged.snap similarity index 93% rename from tests/snapshots/execution_spec__cors-allow-cred-false.md_merged.snap rename to tests/core/snapshots/cors-allow-cred-false.md_merged.snap index 9e105b4f23..3d1469055a 100644 --- a/tests/snapshots/execution_spec__cors-allow-cred-false.md_merged.snap +++ b/tests/core/snapshots/cors-allow-cred-false.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server(headers: {cors: {allowHeaders: ["Authorization"], allowMethods: ["POST", "OPTIONS"], allowOrigins: ["abc.com", "xyz.com"], allowPrivateNetwork: true, maxAge: 23, vary: ["origin", "access-control-request-method", "access-control-request-headers"]}}) @upstream(baseURL: "http://example.com", batch: {delay: 1, headers: [], maxSize: 1000}) { diff --git a/tests/snapshots/execution_spec__cors-allow-cred-true.md_test_0.snap b/tests/core/snapshots/cors-allow-cred-true.md_0.snap similarity index 90% rename from tests/snapshots/execution_spec__cors-allow-cred-true.md_test_0.snap rename to tests/core/snapshots/cors-allow-cred-true.md_0.snap index 459b7941a2..0d277c5d44 100644 --- a/tests/snapshots/execution_spec__cors-allow-cred-true.md_test_0.snap +++ b/tests/core/snapshots/cors-allow-cred-true.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__cors-allow-cred-true.md_client.snap b/tests/core/snapshots/cors-allow-cred-true.md_client.snap similarity index 83% rename from tests/snapshots/execution_spec__cors-allow-cred-true.md_client.snap rename to tests/core/snapshots/cors-allow-cred-true.md_client.snap index 48b4b87db4..de202e546c 100644 --- a/tests/snapshots/execution_spec__cors-allow-cred-true.md_client.snap +++ b/tests/core/snapshots/cors-allow-cred-true.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__cors-allow-cred-true.md_merged.snap b/tests/core/snapshots/cors-allow-cred-true.md_merged.snap similarity index 93% rename from tests/snapshots/execution_spec__cors-allow-cred-true.md_merged.snap rename to tests/core/snapshots/cors-allow-cred-true.md_merged.snap index eaeef0f412..93e6b8bb82 100644 --- a/tests/snapshots/execution_spec__cors-allow-cred-true.md_merged.snap +++ b/tests/core/snapshots/cors-allow-cred-true.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server(headers: {cors: {allowCredentials: true, allowMethods: ["OPTIONS", "POST", "GET"], allowOrigins: ["abc.com", "xyz.com"], exposeHeaders: [""], maxAge: 23, vary: ["origin", "access-control-request-method", "access-control-request-headers"]}}) @upstream(baseURL: "http://example.com", batch: {delay: 1, headers: [], maxSize: 1000}) { diff --git a/tests/snapshots/execution_spec__cors-allow-cred-vary.md_test_0.snap b/tests/core/snapshots/cors-allow-cred-vary.md_0.snap similarity index 91% rename from tests/snapshots/execution_spec__cors-allow-cred-vary.md_test_0.snap rename to tests/core/snapshots/cors-allow-cred-vary.md_0.snap index e20d306310..027484ed4f 100644 --- a/tests/snapshots/execution_spec__cors-allow-cred-vary.md_test_0.snap +++ b/tests/core/snapshots/cors-allow-cred-vary.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__cors-allow-cred-vary.md_client.snap b/tests/core/snapshots/cors-allow-cred-vary.md_client.snap similarity index 83% rename from tests/snapshots/execution_spec__cors-allow-cred-vary.md_client.snap rename to tests/core/snapshots/cors-allow-cred-vary.md_client.snap index 48b4b87db4..de202e546c 100644 --- a/tests/snapshots/execution_spec__cors-allow-cred-vary.md_client.snap +++ b/tests/core/snapshots/cors-allow-cred-vary.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__cors-allow-cred-vary.md_merged.snap b/tests/core/snapshots/cors-allow-cred-vary.md_merged.snap similarity index 93% rename from tests/snapshots/execution_spec__cors-allow-cred-vary.md_merged.snap rename to tests/core/snapshots/cors-allow-cred-vary.md_merged.snap index eaeef0f412..93e6b8bb82 100644 --- a/tests/snapshots/execution_spec__cors-allow-cred-vary.md_merged.snap +++ b/tests/core/snapshots/cors-allow-cred-vary.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server(headers: {cors: {allowCredentials: true, allowMethods: ["OPTIONS", "POST", "GET"], allowOrigins: ["abc.com", "xyz.com"], exposeHeaders: [""], maxAge: 23, vary: ["origin", "access-control-request-method", "access-control-request-headers"]}}) @upstream(baseURL: "http://example.com", batch: {delay: 1, headers: [], maxSize: 1000}) { diff --git a/tests/snapshots/execution_spec__custom-headers.md_test_0.snap b/tests/core/snapshots/custom-headers.md_0.snap similarity index 87% rename from tests/snapshots/execution_spec__custom-headers.md_test_0.snap rename to tests/core/snapshots/custom-headers.md_0.snap index 235aef02a4..4dc49a862b 100644 --- a/tests/snapshots/execution_spec__custom-headers.md_test_0.snap +++ b/tests/core/snapshots/custom-headers.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__custom-headers.md_client.snap b/tests/core/snapshots/custom-headers.md_client.snap similarity index 84% rename from tests/snapshots/execution_spec__custom-headers.md_client.snap rename to tests/core/snapshots/custom-headers.md_client.snap index 14b224be11..ac555c1a8a 100644 --- a/tests/snapshots/execution_spec__custom-headers.md_client.snap +++ b/tests/core/snapshots/custom-headers.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__custom-headers.md_merged.snap b/tests/core/snapshots/custom-headers.md_merged.snap similarity index 87% rename from tests/snapshots/execution_spec__custom-headers.md_merged.snap rename to tests/core/snapshots/custom-headers.md_merged.snap index 747626e649..9ef0fa4ce6 100644 --- a/tests/snapshots/execution_spec__custom-headers.md_merged.snap +++ b/tests/core/snapshots/custom-headers.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server(headers: {custom: [{key: "x-id", value: "1"}, {key: "x-name", value: "John Doe"}]}) @upstream { diff --git a/tests/snapshots/execution_spec__env-value.md_test_0.snap b/tests/core/snapshots/env-value.md_0.snap similarity index 94% rename from tests/snapshots/execution_spec__env-value.md_test_0.snap rename to tests/core/snapshots/env-value.md_0.snap index b232cce8f1..2c2d8a3107 100644 --- a/tests/snapshots/execution_spec__env-value.md_test_0.snap +++ b/tests/core/snapshots/env-value.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__env-value.md_client.snap b/tests/core/snapshots/env-value.md_client.snap similarity index 89% rename from tests/snapshots/execution_spec__env-value.md_client.snap rename to tests/core/snapshots/env-value.md_client.snap index d35d947756..17da57e235 100644 --- a/tests/snapshots/execution_spec__env-value.md_client.snap +++ b/tests/core/snapshots/env-value.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__env-value.md_merged.snap b/tests/core/snapshots/env-value.md_merged.snap similarity index 91% rename from tests/snapshots/execution_spec__env-value.md_merged.snap rename to tests/core/snapshots/env-value.md_merged.snap index 2d23ab3ce3..bd648ec48a 100644 --- a/tests/snapshots/execution_spec__env-value.md_merged.snap +++ b/tests/core/snapshots/env-value.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "http://jsonplaceholder.typicode.com") { diff --git a/tests/snapshots/execution_spec__auth-protected-without-auth.md_errors.snap b/tests/core/snapshots/execution_spec__auth-protected-without-auth.md_errors.snap similarity index 87% rename from tests/snapshots/execution_spec__auth-protected-without-auth.md_errors.snap rename to tests/core/snapshots/execution_spec__auth-protected-without-auth.md_errors.snap index d0e4e6a07e..7330dede2f 100644 --- a/tests/snapshots/execution_spec__auth-protected-without-auth.md_errors.snap +++ b/tests/core/snapshots/execution_spec__auth-protected-without-auth.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__cors-invalid-expose-headers.md_errors.snap b/tests/core/snapshots/execution_spec__cors-invalid-expose-headers.md_errors.snap similarity index 90% rename from tests/snapshots/execution_spec__cors-invalid-expose-headers.md_errors.snap rename to tests/core/snapshots/execution_spec__cors-invalid-expose-headers.md_errors.snap index de6cc86eaf..746e69d015 100644 --- a/tests/snapshots/execution_spec__cors-invalid-expose-headers.md_errors.snap +++ b/tests/core/snapshots/execution_spec__cors-invalid-expose-headers.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__cors-invalid-headers.md_errors.snap b/tests/core/snapshots/execution_spec__cors-invalid-headers.md_errors.snap similarity index 90% rename from tests/snapshots/execution_spec__cors-invalid-headers.md_errors.snap rename to tests/core/snapshots/execution_spec__cors-invalid-headers.md_errors.snap index 8e53f12774..581594e0b9 100644 --- a/tests/snapshots/execution_spec__cors-invalid-headers.md_errors.snap +++ b/tests/core/snapshots/execution_spec__cors-invalid-headers.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__cors-invalid-methods.md_errors.snap b/tests/core/snapshots/execution_spec__cors-invalid-methods.md_errors.snap similarity index 90% rename from tests/snapshots/execution_spec__cors-invalid-methods.md_errors.snap rename to tests/core/snapshots/execution_spec__cors-invalid-methods.md_errors.snap index 67f1a0067c..f4c9b4b2f7 100644 --- a/tests/snapshots/execution_spec__cors-invalid-methods.md_errors.snap +++ b/tests/core/snapshots/execution_spec__cors-invalid-methods.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__cors-invalid-origins.md_errors.snap b/tests/core/snapshots/execution_spec__cors-invalid-origins.md_errors.snap similarity index 90% rename from tests/snapshots/execution_spec__cors-invalid-origins.md_errors.snap rename to tests/core/snapshots/execution_spec__cors-invalid-origins.md_errors.snap index 6f2ad8bacb..d8799954bb 100644 --- a/tests/snapshots/execution_spec__cors-invalid-origins.md_errors.snap +++ b/tests/core/snapshots/execution_spec__cors-invalid-origins.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__experimental-headers-error.md_errors.snap b/tests/core/snapshots/execution_spec__experimental-headers-error.md_errors.snap similarity index 96% rename from tests/snapshots/execution_spec__experimental-headers-error.md_errors.snap rename to tests/core/snapshots/execution_spec__experimental-headers-error.md_errors.snap index 4fedc6112a..ec99849386 100644 --- a/tests/snapshots/execution_spec__experimental-headers-error.md_errors.snap +++ b/tests/core/snapshots/execution_spec__experimental-headers-error.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__input-type-protected-error.md_errors.snap b/tests/core/snapshots/execution_spec__input-type-protected-error.md_errors.snap similarity index 91% rename from tests/snapshots/execution_spec__input-type-protected-error.md_errors.snap rename to tests/core/snapshots/execution_spec__input-type-protected-error.md_errors.snap index eebe6efca2..e09e747a24 100644 --- a/tests/snapshots/execution_spec__input-type-protected-error.md_errors.snap +++ b/tests/core/snapshots/execution_spec__input-type-protected-error.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__test-add-field-error.md_errors.snap b/tests/core/snapshots/execution_spec__test-add-field-error.md_errors.snap similarity index 86% rename from tests/snapshots/execution_spec__test-add-field-error.md_errors.snap rename to tests/core/snapshots/execution_spec__test-add-field-error.md_errors.snap index e45af7b013..7a9527f963 100644 --- a/tests/snapshots/execution_spec__test-add-field-error.md_errors.snap +++ b/tests/core/snapshots/execution_spec__test-add-field-error.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__test-all-blueprint-errors.md_errors.snap b/tests/core/snapshots/execution_spec__test-all-blueprint-errors.md_errors.snap similarity index 94% rename from tests/snapshots/execution_spec__test-all-blueprint-errors.md_errors.snap rename to tests/core/snapshots/execution_spec__test-all-blueprint-errors.md_errors.snap index f2633f4d1b..3c93b4b9e6 100644 --- a/tests/snapshots/execution_spec__test-all-blueprint-errors.md_errors.snap +++ b/tests/core/snapshots/execution_spec__test-all-blueprint-errors.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__test-batch-operator-post.md_errors.snap b/tests/core/snapshots/execution_spec__test-batch-operator-post.md_errors.snap similarity index 85% rename from tests/snapshots/execution_spec__test-batch-operator-post.md_errors.snap rename to tests/core/snapshots/execution_spec__test-batch-operator-post.md_errors.snap index f2dc1a4b64..3ac6e3e721 100644 --- a/tests/snapshots/execution_spec__test-batch-operator-post.md_errors.snap +++ b/tests/core/snapshots/execution_spec__test-batch-operator-post.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__test-call-operator-errors.md_errors.snap b/tests/core/snapshots/execution_spec__test-call-operator-errors.md_errors.snap similarity index 97% rename from tests/snapshots/execution_spec__test-call-operator-errors.md_errors.snap rename to tests/core/snapshots/execution_spec__test-call-operator-errors.md_errors.snap index f15ff3cc55..98a5f21455 100644 --- a/tests/snapshots/execution_spec__test-call-operator-errors.md_errors.snap +++ b/tests/core/snapshots/execution_spec__test-call-operator-errors.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__test-dbl-usage-many.md_errors.snap b/tests/core/snapshots/execution_spec__test-dbl-usage-many.md_errors.snap similarity index 89% rename from tests/snapshots/execution_spec__test-dbl-usage-many.md_errors.snap rename to tests/core/snapshots/execution_spec__test-dbl-usage-many.md_errors.snap index 47857501de..80e4e564e2 100644 --- a/tests/snapshots/execution_spec__test-dbl-usage-many.md_errors.snap +++ b/tests/core/snapshots/execution_spec__test-dbl-usage-many.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__test-dbl-usage.md_errors.snap b/tests/core/snapshots/execution_spec__test-dbl-usage.md_errors.snap similarity index 82% rename from tests/snapshots/execution_spec__test-dbl-usage.md_errors.snap rename to tests/core/snapshots/execution_spec__test-dbl-usage.md_errors.snap index 6d918ea3e7..421e08ba6a 100644 --- a/tests/snapshots/execution_spec__test-dbl-usage.md_errors.snap +++ b/tests/core/snapshots/execution_spec__test-dbl-usage.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__test-directives-undef-null-fields.md_errors.snap b/tests/core/snapshots/execution_spec__test-directives-undef-null-fields.md_errors.snap similarity index 98% rename from tests/snapshots/execution_spec__test-directives-undef-null-fields.md_errors.snap rename to tests/core/snapshots/execution_spec__test-directives-undef-null-fields.md_errors.snap index bcae45f721..adb506ebde 100644 --- a/tests/snapshots/execution_spec__test-directives-undef-null-fields.md_errors.snap +++ b/tests/core/snapshots/execution_spec__test-directives-undef-null-fields.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__test-duplicated-link.md_errors.snap b/tests/core/snapshots/execution_spec__test-duplicated-link.md_errors.snap similarity index 94% rename from tests/snapshots/execution_spec__test-duplicated-link.md_errors.snap rename to tests/core/snapshots/execution_spec__test-duplicated-link.md_errors.snap index f8b2bc554d..3f990dc863 100644 --- a/tests/snapshots/execution_spec__test-duplicated-link.md_errors.snap +++ b/tests/core/snapshots/execution_spec__test-duplicated-link.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__test-empty-link.md_errors.snap b/tests/core/snapshots/execution_spec__test-empty-link.md_errors.snap similarity index 90% rename from tests/snapshots/execution_spec__test-empty-link.md_errors.snap rename to tests/core/snapshots/execution_spec__test-empty-link.md_errors.snap index b993f4b651..6ee4deb1d6 100644 --- a/tests/snapshots/execution_spec__test-empty-link.md_errors.snap +++ b/tests/core/snapshots/execution_spec__test-empty-link.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__test-expr-error.md_errors.snap b/tests/core/snapshots/execution_spec__test-expr-error.md_errors.snap similarity index 85% rename from tests/snapshots/execution_spec__test-expr-error.md_errors.snap rename to tests/core/snapshots/execution_spec__test-expr-error.md_errors.snap index cabe555d2b..cb7db5f40f 100644 --- a/tests/snapshots/execution_spec__test-expr-error.md_errors.snap +++ b/tests/core/snapshots/execution_spec__test-expr-error.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__test-expr-with-add-field.md_errors.snap b/tests/core/snapshots/execution_spec__test-expr-with-add-field.md_errors.snap similarity index 86% rename from tests/snapshots/execution_spec__test-expr-with-add-field.md_errors.snap rename to tests/core/snapshots/execution_spec__test-expr-with-add-field.md_errors.snap index fc73329a0b..0d8830eac9 100644 --- a/tests/snapshots/execution_spec__test-expr-with-add-field.md_errors.snap +++ b/tests/core/snapshots/execution_spec__test-expr-with-add-field.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__test-expr-with-inline.md_errors.snap b/tests/core/snapshots/execution_spec__test-expr-with-inline.md_errors.snap similarity index 86% rename from tests/snapshots/execution_spec__test-expr-with-inline.md_errors.snap rename to tests/core/snapshots/execution_spec__test-expr-with-inline.md_errors.snap index fc73329a0b..0d8830eac9 100644 --- a/tests/snapshots/execution_spec__test-expr-with-inline.md_errors.snap +++ b/tests/core/snapshots/execution_spec__test-expr-with-inline.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__test-field-already-implemented-from-Interface.md_errors.snap b/tests/core/snapshots/execution_spec__test-field-already-implemented-from-Interface.md_errors.snap similarity index 94% rename from tests/snapshots/execution_spec__test-field-already-implemented-from-Interface.md_errors.snap rename to tests/core/snapshots/execution_spec__test-field-already-implemented-from-Interface.md_errors.snap index c4b553e388..e0af5a9a50 100644 --- a/tests/snapshots/execution_spec__test-field-already-implemented-from-Interface.md_errors.snap +++ b/tests/core/snapshots/execution_spec__test-field-already-implemented-from-Interface.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__test-graphqlsource-no-base-url.md_errors.snap b/tests/core/snapshots/execution_spec__test-graphqlsource-no-base-url.md_errors.snap similarity index 84% rename from tests/snapshots/execution_spec__test-graphqlsource-no-base-url.md_errors.snap rename to tests/core/snapshots/execution_spec__test-graphqlsource-no-base-url.md_errors.snap index bc36b86753..852880f9b7 100644 --- a/tests/snapshots/execution_spec__test-graphqlsource-no-base-url.md_errors.snap +++ b/tests/core/snapshots/execution_spec__test-graphqlsource-no-base-url.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__test-groupby-without-batching.md_errors.snap b/tests/core/snapshots/execution_spec__test-groupby-without-batching.md_errors.snap similarity index 86% rename from tests/snapshots/execution_spec__test-groupby-without-batching.md_errors.snap rename to tests/core/snapshots/execution_spec__test-groupby-without-batching.md_errors.snap index c9ef38fe04..4a3c7ded8c 100644 --- a/tests/snapshots/execution_spec__test-groupby-without-batching.md_errors.snap +++ b/tests/core/snapshots/execution_spec__test-groupby-without-batching.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__test-grpc-group-by.md_errors.snap b/tests/core/snapshots/execution_spec__test-grpc-group-by.md_errors.snap similarity index 84% rename from tests/snapshots/execution_spec__test-grpc-group-by.md_errors.snap rename to tests/core/snapshots/execution_spec__test-grpc-group-by.md_errors.snap index e3e33bf635..a4356bd249 100644 --- a/tests/snapshots/execution_spec__test-grpc-group-by.md_errors.snap +++ b/tests/core/snapshots/execution_spec__test-grpc-group-by.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__test-grpc-invalid-method-format.md_errors.snap b/tests/core/snapshots/execution_spec__test-grpc-invalid-method-format.md_errors.snap similarity index 87% rename from tests/snapshots/execution_spec__test-grpc-invalid-method-format.md_errors.snap rename to tests/core/snapshots/execution_spec__test-grpc-invalid-method-format.md_errors.snap index 7b685f0d1f..c2ca8b345f 100644 --- a/tests/snapshots/execution_spec__test-grpc-invalid-method-format.md_errors.snap +++ b/tests/core/snapshots/execution_spec__test-grpc-invalid-method-format.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__test-grpc-invalid-proto-id.md_errors.snap b/tests/core/snapshots/execution_spec__test-grpc-invalid-proto-id.md_errors.snap similarity index 85% rename from tests/snapshots/execution_spec__test-grpc-invalid-proto-id.md_errors.snap rename to tests/core/snapshots/execution_spec__test-grpc-invalid-proto-id.md_errors.snap index 3aa8391073..36ee7add79 100644 --- a/tests/snapshots/execution_spec__test-grpc-invalid-proto-id.md_errors.snap +++ b/tests/core/snapshots/execution_spec__test-grpc-invalid-proto-id.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__test-grpc-missing-fields.md_errors.snap b/tests/core/snapshots/execution_spec__test-grpc-missing-fields.md_errors.snap similarity index 85% rename from tests/snapshots/execution_spec__test-grpc-missing-fields.md_errors.snap rename to tests/core/snapshots/execution_spec__test-grpc-missing-fields.md_errors.snap index dc4ebb9de1..cdde712544 100644 --- a/tests/snapshots/execution_spec__test-grpc-missing-fields.md_errors.snap +++ b/tests/core/snapshots/execution_spec__test-grpc-missing-fields.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__test-grpc-nested-data.md_errors.snap b/tests/core/snapshots/execution_spec__test-grpc-nested-data.md_errors.snap similarity index 85% rename from tests/snapshots/execution_spec__test-grpc-nested-data.md_errors.snap rename to tests/core/snapshots/execution_spec__test-grpc-nested-data.md_errors.snap index bd11735e2e..b9d433c606 100644 --- a/tests/snapshots/execution_spec__test-grpc-nested-data.md_errors.snap +++ b/tests/core/snapshots/execution_spec__test-grpc-nested-data.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__test-grpc-nested-optional.md_errors.snap b/tests/core/snapshots/execution_spec__test-grpc-nested-optional.md_errors.snap similarity index 86% rename from tests/snapshots/execution_spec__test-grpc-nested-optional.md_errors.snap rename to tests/core/snapshots/execution_spec__test-grpc-nested-optional.md_errors.snap index fe84415c1b..ab65e0dab1 100644 --- a/tests/snapshots/execution_spec__test-grpc-nested-optional.md_errors.snap +++ b/tests/core/snapshots/execution_spec__test-grpc-nested-optional.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__test-grpc-optional.md_errors.snap b/tests/core/snapshots/execution_spec__test-grpc-optional.md_errors.snap similarity index 85% rename from tests/snapshots/execution_spec__test-grpc-optional.md_errors.snap rename to tests/core/snapshots/execution_spec__test-grpc-optional.md_errors.snap index 3cdfc67390..6b515cedaf 100644 --- a/tests/snapshots/execution_spec__test-grpc-optional.md_errors.snap +++ b/tests/core/snapshots/execution_spec__test-grpc-optional.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__test-grpc-proto-path.md_errors.snap b/tests/core/snapshots/execution_spec__test-grpc-proto-path.md_errors.snap similarity index 81% rename from tests/snapshots/execution_spec__test-grpc-proto-path.md_errors.snap rename to tests/core/snapshots/execution_spec__test-grpc-proto-path.md_errors.snap index 17bddadb47..34febb43e4 100644 --- a/tests/snapshots/execution_spec__test-grpc-proto-path.md_errors.snap +++ b/tests/core/snapshots/execution_spec__test-grpc-proto-path.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__test-grpc-service-method.md_errors.snap b/tests/core/snapshots/execution_spec__test-grpc-service-method.md_errors.snap similarity index 84% rename from tests/snapshots/execution_spec__test-grpc-service-method.md_errors.snap rename to tests/core/snapshots/execution_spec__test-grpc-service-method.md_errors.snap index 04fdd54c29..95599fc658 100644 --- a/tests/snapshots/execution_spec__test-grpc-service-method.md_errors.snap +++ b/tests/core/snapshots/execution_spec__test-grpc-service-method.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__test-grpc-service.md_errors.snap b/tests/core/snapshots/execution_spec__test-grpc-service.md_errors.snap similarity index 86% rename from tests/snapshots/execution_spec__test-grpc-service.md_errors.snap rename to tests/core/snapshots/execution_spec__test-grpc-service.md_errors.snap index 42cbd1e0b1..269001ba60 100644 --- a/tests/snapshots/execution_spec__test-grpc-service.md_errors.snap +++ b/tests/core/snapshots/execution_spec__test-grpc-service.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__test-hostname-faliure.md_errors.snap b/tests/core/snapshots/execution_spec__test-hostname-faliure.md_errors.snap similarity index 86% rename from tests/snapshots/execution_spec__test-hostname-faliure.md_errors.snap rename to tests/core/snapshots/execution_spec__test-hostname-faliure.md_errors.snap index 8b0b7b6c27..2c6ac4d613 100644 --- a/tests/snapshots/execution_spec__test-hostname-faliure.md_errors.snap +++ b/tests/core/snapshots/execution_spec__test-hostname-faliure.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__test-http-with-add-field.md_errors.snap b/tests/core/snapshots/execution_spec__test-http-with-add-field.md_errors.snap similarity index 86% rename from tests/snapshots/execution_spec__test-http-with-add-field.md_errors.snap rename to tests/core/snapshots/execution_spec__test-http-with-add-field.md_errors.snap index 017b01bafc..f1751bc827 100644 --- a/tests/snapshots/execution_spec__test-http-with-add-field.md_errors.snap +++ b/tests/core/snapshots/execution_spec__test-http-with-add-field.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__test-http-with-inline.md_errors.snap b/tests/core/snapshots/execution_spec__test-http-with-inline.md_errors.snap similarity index 86% rename from tests/snapshots/execution_spec__test-http-with-inline.md_errors.snap rename to tests/core/snapshots/execution_spec__test-http-with-inline.md_errors.snap index 017b01bafc..f1751bc827 100644 --- a/tests/snapshots/execution_spec__test-http-with-inline.md_errors.snap +++ b/tests/core/snapshots/execution_spec__test-http-with-inline.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__test-inline-error.md_errors.snap b/tests/core/snapshots/execution_spec__test-inline-error.md_errors.snap similarity index 86% rename from tests/snapshots/execution_spec__test-inline-error.md_errors.snap rename to tests/core/snapshots/execution_spec__test-inline-error.md_errors.snap index e45af7b013..7a9527f963 100644 --- a/tests/snapshots/execution_spec__test-inline-error.md_errors.snap +++ b/tests/core/snapshots/execution_spec__test-inline-error.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__test-invalid-query-in-http.md_errors.snap b/tests/core/snapshots/execution_spec__test-invalid-query-in-http.md_errors.snap similarity index 86% rename from tests/snapshots/execution_spec__test-invalid-query-in-http.md_errors.snap rename to tests/core/snapshots/execution_spec__test-invalid-query-in-http.md_errors.snap index fa5aebd26e..0f574af714 100644 --- a/tests/snapshots/execution_spec__test-invalid-query-in-http.md_errors.snap +++ b/tests/core/snapshots/execution_spec__test-invalid-query-in-http.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__test-invalid-server.md_errors.snap b/tests/core/snapshots/execution_spec__test-invalid-server.md_errors.snap similarity index 86% rename from tests/snapshots/execution_spec__test-invalid-server.md_errors.snap rename to tests/core/snapshots/execution_spec__test-invalid-server.md_errors.snap index 57ecd5ae61..07613bc3f8 100644 --- a/tests/snapshots/execution_spec__test-invalid-server.md_errors.snap +++ b/tests/core/snapshots/execution_spec__test-invalid-server.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__test-js-multiple-scripts.md_errors.snap b/tests/core/snapshots/execution_spec__test-js-multiple-scripts.md_errors.snap similarity index 83% rename from tests/snapshots/execution_spec__test-js-multiple-scripts.md_errors.snap rename to tests/core/snapshots/execution_spec__test-js-multiple-scripts.md_errors.snap index 206a18f222..8dd40ad345 100644 --- a/tests/snapshots/execution_spec__test-js-multiple-scripts.md_errors.snap +++ b/tests/core/snapshots/execution_spec__test-js-multiple-scripts.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__test-lack-resolver.md_errors.snap b/tests/core/snapshots/execution_spec__test-lack-resolver.md_errors.snap similarity index 84% rename from tests/snapshots/execution_spec__test-lack-resolver.md_errors.snap rename to tests/core/snapshots/execution_spec__test-lack-resolver.md_errors.snap index 871cee918c..e3e60e1cbf 100644 --- a/tests/snapshots/execution_spec__test-lack-resolver.md_errors.snap +++ b/tests/core/snapshots/execution_spec__test-lack-resolver.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__test-missing-argument-on-all-resolvers.md_errors.snap b/tests/core/snapshots/execution_spec__test-missing-argument-on-all-resolvers.md_errors.snap similarity index 96% rename from tests/snapshots/execution_spec__test-missing-argument-on-all-resolvers.md_errors.snap rename to tests/core/snapshots/execution_spec__test-missing-argument-on-all-resolvers.md_errors.snap index a6a5f3d206..bd0885307f 100644 --- a/tests/snapshots/execution_spec__test-missing-argument-on-all-resolvers.md_errors.snap +++ b/tests/core/snapshots/execution_spec__test-missing-argument-on-all-resolvers.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__test-missing-mutation-resolver.md_errors.snap b/tests/core/snapshots/execution_spec__test-missing-mutation-resolver.md_errors.snap similarity index 84% rename from tests/snapshots/execution_spec__test-missing-mutation-resolver.md_errors.snap rename to tests/core/snapshots/execution_spec__test-missing-mutation-resolver.md_errors.snap index 3966a45d53..dd5c76b19e 100644 --- a/tests/snapshots/execution_spec__test-missing-mutation-resolver.md_errors.snap +++ b/tests/core/snapshots/execution_spec__test-missing-mutation-resolver.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__test-missing-query-resolver.md_errors.snap b/tests/core/snapshots/execution_spec__test-missing-query-resolver.md_errors.snap similarity index 90% rename from tests/snapshots/execution_spec__test-missing-query-resolver.md_errors.snap rename to tests/core/snapshots/execution_spec__test-missing-query-resolver.md_errors.snap index 6187eac79e..f1ee6ca5be 100644 --- a/tests/snapshots/execution_spec__test-missing-query-resolver.md_errors.snap +++ b/tests/core/snapshots/execution_spec__test-missing-query-resolver.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__test-missing-root-types.md_errors.snap b/tests/core/snapshots/execution_spec__test-missing-root-types.md_errors.snap similarity index 89% rename from tests/snapshots/execution_spec__test-missing-root-types.md_errors.snap rename to tests/core/snapshots/execution_spec__test-missing-root-types.md_errors.snap index c869459b6a..60b7f03d34 100644 --- a/tests/snapshots/execution_spec__test-missing-root-types.md_errors.snap +++ b/tests/core/snapshots/execution_spec__test-missing-root-types.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__test-missing-schema-query.md_errors.snap b/tests/core/snapshots/execution_spec__test-missing-schema-query.md_errors.snap similarity index 81% rename from tests/snapshots/execution_spec__test-missing-schema-query.md_errors.snap rename to tests/core/snapshots/execution_spec__test-missing-schema-query.md_errors.snap index f416522410..1ef6c7ae5c 100644 --- a/tests/snapshots/execution_spec__test-missing-schema-query.md_errors.snap +++ b/tests/core/snapshots/execution_spec__test-missing-schema-query.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__test-multiple-resolvable-directives-on-field.md_errors.snap b/tests/core/snapshots/execution_spec__test-multiple-resolvable-directives-on-field.md_errors.snap similarity index 90% rename from tests/snapshots/execution_spec__test-multiple-resolvable-directives-on-field.md_errors.snap rename to tests/core/snapshots/execution_spec__test-multiple-resolvable-directives-on-field.md_errors.snap index fb1240fd5f..7e7969e515 100644 --- a/tests/snapshots/execution_spec__test-multiple-resolvable-directives-on-field.md_errors.snap +++ b/tests/core/snapshots/execution_spec__test-multiple-resolvable-directives-on-field.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__test-no-base-url.md_errors.snap b/tests/core/snapshots/execution_spec__test-no-base-url.md_errors.snap similarity index 83% rename from tests/snapshots/execution_spec__test-no-base-url.md_errors.snap rename to tests/core/snapshots/execution_spec__test-no-base-url.md_errors.snap index 06ed886ca0..0414d880a4 100644 --- a/tests/snapshots/execution_spec__test-no-base-url.md_errors.snap +++ b/tests/core/snapshots/execution_spec__test-no-base-url.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__test-response-header-value.md_errors.snap b/tests/core/snapshots/execution_spec__test-response-header-value.md_errors.snap similarity index 87% rename from tests/snapshots/execution_spec__test-response-header-value.md_errors.snap rename to tests/core/snapshots/execution_spec__test-response-header-value.md_errors.snap index e525f70886..d319669132 100644 --- a/tests/snapshots/execution_spec__test-response-header-value.md_errors.snap +++ b/tests/core/snapshots/execution_spec__test-response-header-value.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__test-response-headers-multi.md_errors.snap b/tests/core/snapshots/execution_spec__test-response-headers-multi.md_errors.snap similarity index 96% rename from tests/snapshots/execution_spec__test-response-headers-multi.md_errors.snap rename to tests/core/snapshots/execution_spec__test-response-headers-multi.md_errors.snap index d12fe47ea0..e7de957c9f 100644 --- a/tests/snapshots/execution_spec__test-response-headers-multi.md_errors.snap +++ b/tests/core/snapshots/execution_spec__test-response-headers-multi.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__test-response-headers-name.md_errors.snap b/tests/core/snapshots/execution_spec__test-response-headers-name.md_errors.snap similarity index 87% rename from tests/snapshots/execution_spec__test-response-headers-name.md_errors.snap rename to tests/core/snapshots/execution_spec__test-response-headers-name.md_errors.snap index 29374aeb1d..a611958fd3 100644 --- a/tests/snapshots/execution_spec__test-response-headers-name.md_errors.snap +++ b/tests/core/snapshots/execution_spec__test-response-headers-name.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__test-undefined-query.md_errors.snap b/tests/core/snapshots/execution_spec__test-undefined-query.md_errors.snap similarity index 95% rename from tests/snapshots/execution_spec__test-undefined-query.md_errors.snap rename to tests/core/snapshots/execution_spec__test-undefined-query.md_errors.snap index 8460380609..bb7fe8faa3 100644 --- a/tests/snapshots/execution_spec__test-undefined-query.md_errors.snap +++ b/tests/core/snapshots/execution_spec__test-undefined-query.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__undeclared-type-no-base-url.md_errors.snap b/tests/core/snapshots/execution_spec__undeclared-type-no-base-url.md_errors.snap similarity index 90% rename from tests/snapshots/execution_spec__undeclared-type-no-base-url.md_errors.snap rename to tests/core/snapshots/execution_spec__undeclared-type-no-base-url.md_errors.snap index cc4954cc2b..ac8d461198 100644 --- a/tests/snapshots/execution_spec__undeclared-type-no-base-url.md_errors.snap +++ b/tests/core/snapshots/execution_spec__undeclared-type-no-base-url.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__undeclared-type.md_errors.snap b/tests/core/snapshots/execution_spec__undeclared-type.md_errors.snap similarity index 83% rename from tests/snapshots/execution_spec__undeclared-type.md_errors.snap rename to tests/core/snapshots/execution_spec__undeclared-type.md_errors.snap index e345dd5eb6..fe591d2f33 100644 --- a/tests/snapshots/execution_spec__undeclared-type.md_errors.snap +++ b/tests/core/snapshots/execution_spec__undeclared-type.md_errors.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: errors --- [ diff --git a/tests/snapshots/execution_spec__experimental-headers.md_test_0.snap b/tests/core/snapshots/experimental-headers.md_0.snap similarity index 91% rename from tests/snapshots/execution_spec__experimental-headers.md_test_0.snap rename to tests/core/snapshots/experimental-headers.md_0.snap index 768f30d2d9..559c15b572 100644 --- a/tests/snapshots/execution_spec__experimental-headers.md_test_0.snap +++ b/tests/core/snapshots/experimental-headers.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__experimental-headers.md_client.snap b/tests/core/snapshots/experimental-headers.md_client.snap similarity index 86% rename from tests/snapshots/execution_spec__experimental-headers.md_client.snap rename to tests/core/snapshots/experimental-headers.md_client.snap index 42fce3979b..9561d92458 100644 --- a/tests/snapshots/execution_spec__experimental-headers.md_client.snap +++ b/tests/core/snapshots/experimental-headers.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__experimental-headers.md_merged.snap b/tests/core/snapshots/experimental-headers.md_merged.snap similarity index 89% rename from tests/snapshots/execution_spec__experimental-headers.md_merged.snap rename to tests/core/snapshots/experimental-headers.md_merged.snap index 60411da506..9fdcd5e3d0 100644 --- a/tests/snapshots/execution_spec__experimental-headers.md_merged.snap +++ b/tests/core/snapshots/experimental-headers.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server(headers: {experimental: ["X-experimental", "x-tailcall"]}) @upstream { diff --git a/tests/snapshots/execution_spec__graphql-dataloader-no-batch-request.md_test_0.snap b/tests/core/snapshots/graphql-dataloader-batch-request.md_0.snap similarity index 95% rename from tests/snapshots/execution_spec__graphql-dataloader-no-batch-request.md_test_0.snap rename to tests/core/snapshots/graphql-dataloader-batch-request.md_0.snap index a225bd7fb9..b4420e10c7 100644 --- a/tests/snapshots/execution_spec__graphql-dataloader-no-batch-request.md_test_0.snap +++ b/tests/core/snapshots/graphql-dataloader-batch-request.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__graphql-dataloader-batch-request.md_client.snap b/tests/core/snapshots/graphql-dataloader-batch-request.md_client.snap similarity index 89% rename from tests/snapshots/execution_spec__graphql-dataloader-batch-request.md_client.snap rename to tests/core/snapshots/graphql-dataloader-batch-request.md_client.snap index 8e25456c09..1b6afcdb98 100644 --- a/tests/snapshots/execution_spec__graphql-dataloader-batch-request.md_client.snap +++ b/tests/core/snapshots/graphql-dataloader-batch-request.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__graphql-dataloader-batch-request.md_merged.snap b/tests/core/snapshots/graphql-dataloader-batch-request.md_merged.snap similarity index 93% rename from tests/snapshots/execution_spec__graphql-dataloader-batch-request.md_merged.snap rename to tests/core/snapshots/graphql-dataloader-batch-request.md_merged.snap index 47f1d039d4..2f76478dfa 100644 --- a/tests/snapshots/execution_spec__graphql-dataloader-batch-request.md_merged.snap +++ b/tests/core/snapshots/graphql-dataloader-batch-request.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(batch: {delay: 1, headers: []}) { diff --git a/tests/snapshots/execution_spec__call-graphql-datasource.md_test_0.snap b/tests/core/snapshots/graphql-dataloader-no-batch-request.md_0.snap similarity index 95% rename from tests/snapshots/execution_spec__call-graphql-datasource.md_test_0.snap rename to tests/core/snapshots/graphql-dataloader-no-batch-request.md_0.snap index a225bd7fb9..b4420e10c7 100644 --- a/tests/snapshots/execution_spec__call-graphql-datasource.md_test_0.snap +++ b/tests/core/snapshots/graphql-dataloader-no-batch-request.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__graphql-dataloader-no-batch-request.md_client.snap b/tests/core/snapshots/graphql-dataloader-no-batch-request.md_client.snap similarity index 89% rename from tests/snapshots/execution_spec__graphql-dataloader-no-batch-request.md_client.snap rename to tests/core/snapshots/graphql-dataloader-no-batch-request.md_client.snap index 8e25456c09..1b6afcdb98 100644 --- a/tests/snapshots/execution_spec__graphql-dataloader-no-batch-request.md_client.snap +++ b/tests/core/snapshots/graphql-dataloader-no-batch-request.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__graphql-dataloader-no-batch-request.md_merged.snap b/tests/core/snapshots/graphql-dataloader-no-batch-request.md_merged.snap similarity index 92% rename from tests/snapshots/execution_spec__graphql-dataloader-no-batch-request.md_merged.snap rename to tests/core/snapshots/graphql-dataloader-no-batch-request.md_merged.snap index 51de60d0a5..16af3a561a 100644 --- a/tests/snapshots/execution_spec__graphql-dataloader-no-batch-request.md_merged.snap +++ b/tests/core/snapshots/graphql-dataloader-no-batch-request.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(batch: {delay: 1, headers: []}) { diff --git a/tests/snapshots/execution_spec__graphql-datasource-errors.md_test_0.snap b/tests/core/snapshots/graphql-datasource-errors.md_0.snap similarity index 92% rename from tests/snapshots/execution_spec__graphql-datasource-errors.md_test_0.snap rename to tests/core/snapshots/graphql-datasource-errors.md_0.snap index e68bb4b23a..a14dce54cb 100644 --- a/tests/snapshots/execution_spec__graphql-datasource-errors.md_test_0.snap +++ b/tests/core/snapshots/graphql-datasource-errors.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__graphql-datasource-errors.md_test_1.snap b/tests/core/snapshots/graphql-datasource-errors.md_1.snap similarity index 92% rename from tests/snapshots/execution_spec__graphql-datasource-errors.md_test_1.snap rename to tests/core/snapshots/graphql-datasource-errors.md_1.snap index d983fdbd76..02f11ae658 100644 --- a/tests/snapshots/execution_spec__graphql-datasource-errors.md_test_1.snap +++ b/tests/core/snapshots/graphql-datasource-errors.md_1.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__cache-control.md_client.snap b/tests/core/snapshots/graphql-datasource-errors.md_client.snap similarity index 87% rename from tests/snapshots/execution_spec__cache-control.md_client.snap rename to tests/core/snapshots/graphql-datasource-errors.md_client.snap index 89319b393a..7c0bdf72e9 100644 --- a/tests/snapshots/execution_spec__cache-control.md_client.snap +++ b/tests/core/snapshots/graphql-datasource-errors.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__graphql-datasource-errors.md_merged.snap b/tests/core/snapshots/graphql-datasource-errors.md_merged.snap similarity index 88% rename from tests/snapshots/execution_spec__graphql-datasource-errors.md_merged.snap rename to tests/core/snapshots/graphql-datasource-errors.md_merged.snap index 466f43fe72..8dfbfa8b10 100644 --- a/tests/snapshots/execution_spec__graphql-datasource-errors.md_merged.snap +++ b/tests/core/snapshots/graphql-datasource-errors.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream { diff --git a/tests/snapshots/execution_spec__graphql-datasource-mutation.md_test_0.snap b/tests/core/snapshots/graphql-datasource-mutation.md_0.snap similarity index 86% rename from tests/snapshots/execution_spec__graphql-datasource-mutation.md_test_0.snap rename to tests/core/snapshots/graphql-datasource-mutation.md_0.snap index 97ad7a4f99..4a1861c0e1 100644 --- a/tests/snapshots/execution_spec__graphql-datasource-mutation.md_test_0.snap +++ b/tests/core/snapshots/graphql-datasource-mutation.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__graphql-datasource-mutation.md_client.snap b/tests/core/snapshots/graphql-datasource-mutation.md_client.snap similarity index 91% rename from tests/snapshots/execution_spec__graphql-datasource-mutation.md_client.snap rename to tests/core/snapshots/graphql-datasource-mutation.md_client.snap index 3845056745..8e51a31357 100644 --- a/tests/snapshots/execution_spec__graphql-datasource-mutation.md_client.snap +++ b/tests/core/snapshots/graphql-datasource-mutation.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__graphql-datasource-mutation.md_merged.snap b/tests/core/snapshots/graphql-datasource-mutation.md_merged.snap similarity index 93% rename from tests/snapshots/execution_spec__graphql-datasource-mutation.md_merged.snap rename to tests/core/snapshots/graphql-datasource-mutation.md_merged.snap index fff4739cac..3cd8c33c5b 100644 --- a/tests/snapshots/execution_spec__graphql-datasource-mutation.md_merged.snap +++ b/tests/core/snapshots/graphql-datasource-mutation.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream { diff --git a/tests/snapshots/execution_spec__graphql-datasource-no-args.md_test_0.snap b/tests/core/snapshots/graphql-datasource-no-args.md_0.snap similarity index 89% rename from tests/snapshots/execution_spec__graphql-datasource-no-args.md_test_0.snap rename to tests/core/snapshots/graphql-datasource-no-args.md_0.snap index 91f1cbd53b..d4d493733f 100644 --- a/tests/snapshots/execution_spec__graphql-datasource-no-args.md_test_0.snap +++ b/tests/core/snapshots/graphql-datasource-no-args.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__graphql-datasource-no-args.md_client.snap b/tests/core/snapshots/graphql-datasource-no-args.md_client.snap similarity index 87% rename from tests/snapshots/execution_spec__graphql-datasource-no-args.md_client.snap rename to tests/core/snapshots/graphql-datasource-no-args.md_client.snap index 98911cf9c6..a9b226f953 100644 --- a/tests/snapshots/execution_spec__graphql-datasource-no-args.md_client.snap +++ b/tests/core/snapshots/graphql-datasource-no-args.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__graphql-datasource-no-args.md_merged.snap b/tests/core/snapshots/graphql-datasource-no-args.md_merged.snap similarity index 86% rename from tests/snapshots/execution_spec__graphql-datasource-no-args.md_merged.snap rename to tests/core/snapshots/graphql-datasource-no-args.md_merged.snap index bc23a3c9fb..c43eb701d7 100644 --- a/tests/snapshots/execution_spec__graphql-datasource-no-args.md_merged.snap +++ b/tests/core/snapshots/graphql-datasource-no-args.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream { diff --git a/tests/snapshots/execution_spec__graphql-datasource-with-args.md_test_0.snap b/tests/core/snapshots/graphql-datasource-with-args.md_0.snap similarity index 86% rename from tests/snapshots/execution_spec__graphql-datasource-with-args.md_test_0.snap rename to tests/core/snapshots/graphql-datasource-with-args.md_0.snap index b438022b0f..27bf57106e 100644 --- a/tests/snapshots/execution_spec__graphql-datasource-with-args.md_test_0.snap +++ b/tests/core/snapshots/graphql-datasource-with-args.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__graphql-datasource-with-args.md_test_1.snap b/tests/core/snapshots/graphql-datasource-with-args.md_1.snap similarity index 88% rename from tests/snapshots/execution_spec__graphql-datasource-with-args.md_test_1.snap rename to tests/core/snapshots/graphql-datasource-with-args.md_1.snap index 519a90479e..ccb0082d47 100644 --- a/tests/snapshots/execution_spec__graphql-datasource-with-args.md_test_1.snap +++ b/tests/core/snapshots/graphql-datasource-with-args.md_1.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__graphql-datasource-with-args.md_client.snap b/tests/core/snapshots/graphql-datasource-with-args.md_client.snap similarity index 89% rename from tests/snapshots/execution_spec__graphql-datasource-with-args.md_client.snap rename to tests/core/snapshots/graphql-datasource-with-args.md_client.snap index 06aac8d40c..692a59db2d 100644 --- a/tests/snapshots/execution_spec__graphql-datasource-with-args.md_client.snap +++ b/tests/core/snapshots/graphql-datasource-with-args.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__graphql-datasource-with-args.md_merged.snap b/tests/core/snapshots/graphql-datasource-with-args.md_merged.snap similarity index 92% rename from tests/snapshots/execution_spec__graphql-datasource-with-args.md_merged.snap rename to tests/core/snapshots/graphql-datasource-with-args.md_merged.snap index f0617c3429..e84cc42c8a 100644 --- a/tests/snapshots/execution_spec__graphql-datasource-with-args.md_merged.snap +++ b/tests/core/snapshots/graphql-datasource-with-args.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream { diff --git a/tests/snapshots/execution_spec__grpc-batch.md_test_0.snap b/tests/core/snapshots/grpc-batch.md_0.snap similarity index 88% rename from tests/snapshots/execution_spec__grpc-batch.md_test_0.snap rename to tests/core/snapshots/grpc-batch.md_0.snap index eff3d79f5a..7239944846 100644 --- a/tests/snapshots/execution_spec__grpc-batch.md_test_0.snap +++ b/tests/core/snapshots/grpc-batch.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__grpc-batch.md_client.snap b/tests/core/snapshots/grpc-batch.md_client.snap similarity index 92% rename from tests/snapshots/execution_spec__grpc-batch.md_client.snap rename to tests/core/snapshots/grpc-batch.md_client.snap index 5d27fe0949..da34171517 100644 --- a/tests/snapshots/execution_spec__grpc-batch.md_client.snap +++ b/tests/core/snapshots/grpc-batch.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__grpc-batch.md_merged.snap b/tests/core/snapshots/grpc-batch.md_merged.snap similarity index 95% rename from tests/snapshots/execution_spec__grpc-batch.md_merged.snap rename to tests/core/snapshots/grpc-batch.md_merged.snap index e2ce486579..14626ab137 100644 --- a/tests/snapshots/execution_spec__grpc-batch.md_merged.snap +++ b/tests/core/snapshots/grpc-batch.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server(graphiql: true, port: 8000) @upstream(batch: {delay: 10, headers: []}, httpCache: true) @link(id: "news", src: "news.proto", type: Protobuf) { diff --git a/tests/snapshots/execution_spec__grpc-error.md_test_0.snap b/tests/core/snapshots/grpc-error.md_0.snap similarity index 92% rename from tests/snapshots/execution_spec__grpc-error.md_test_0.snap rename to tests/core/snapshots/grpc-error.md_0.snap index 089e1439d2..e69720283c 100644 --- a/tests/snapshots/execution_spec__grpc-error.md_test_0.snap +++ b/tests/core/snapshots/grpc-error.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__grpc-error.md_client.snap b/tests/core/snapshots/grpc-error.md_client.snap similarity index 92% rename from tests/snapshots/execution_spec__grpc-error.md_client.snap rename to tests/core/snapshots/grpc-error.md_client.snap index 5d27fe0949..da34171517 100644 --- a/tests/snapshots/execution_spec__grpc-error.md_client.snap +++ b/tests/core/snapshots/grpc-error.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__grpc-simple.md_merged.snap b/tests/core/snapshots/grpc-error.md_merged.snap similarity index 95% rename from tests/snapshots/execution_spec__grpc-simple.md_merged.snap rename to tests/core/snapshots/grpc-error.md_merged.snap index 9e1de964db..54e5f0b144 100644 --- a/tests/snapshots/execution_spec__grpc-simple.md_merged.snap +++ b/tests/core/snapshots/grpc-error.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server(graphiql: true, port: 8000) @upstream(batch: {delay: 10, headers: []}, httpCache: true) @link(id: "news", src: "news.proto", type: Protobuf) { diff --git a/tests/snapshots/execution_spec__grpc-simple.md_test_0.snap b/tests/core/snapshots/grpc-override-url-from-upstream.md_0.snap similarity index 89% rename from tests/snapshots/execution_spec__grpc-simple.md_test_0.snap rename to tests/core/snapshots/grpc-override-url-from-upstream.md_0.snap index 93c8d4001e..f4f2990d59 100644 --- a/tests/snapshots/execution_spec__grpc-simple.md_test_0.snap +++ b/tests/core/snapshots/grpc-override-url-from-upstream.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__grpc-override-url-from-upstream.md_client.snap b/tests/core/snapshots/grpc-override-url-from-upstream.md_client.snap similarity index 92% rename from tests/snapshots/execution_spec__grpc-override-url-from-upstream.md_client.snap rename to tests/core/snapshots/grpc-override-url-from-upstream.md_client.snap index 5d27fe0949..da34171517 100644 --- a/tests/snapshots/execution_spec__grpc-override-url-from-upstream.md_client.snap +++ b/tests/core/snapshots/grpc-override-url-from-upstream.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__grpc-override-url-from-upstream.md_merged.snap b/tests/core/snapshots/grpc-override-url-from-upstream.md_merged.snap similarity index 95% rename from tests/snapshots/execution_spec__grpc-override-url-from-upstream.md_merged.snap rename to tests/core/snapshots/grpc-override-url-from-upstream.md_merged.snap index 6daa62a280..a42f6b7991 100644 --- a/tests/snapshots/execution_spec__grpc-override-url-from-upstream.md_merged.snap +++ b/tests/core/snapshots/grpc-override-url-from-upstream.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server(graphiql: true, port: 8000) @upstream(baseURL: "http://not-a-valid-grpc-url.com", batch: {delay: 10, headers: []}, httpCache: true) @link(id: "news", src: "news.proto", type: Protobuf) { diff --git a/tests/snapshots/execution_spec__grpc-proto-with-same-package.md_test_0.snap b/tests/core/snapshots/grpc-proto-with-same-package.md_0.snap similarity index 88% rename from tests/snapshots/execution_spec__grpc-proto-with-same-package.md_test_0.snap rename to tests/core/snapshots/grpc-proto-with-same-package.md_0.snap index 9b046b6ceb..faaf53b6bd 100644 --- a/tests/snapshots/execution_spec__grpc-proto-with-same-package.md_test_0.snap +++ b/tests/core/snapshots/grpc-proto-with-same-package.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__grpc-proto-with-same-package.md_client.snap b/tests/core/snapshots/grpc-proto-with-same-package.md_client.snap similarity index 88% rename from tests/snapshots/execution_spec__grpc-proto-with-same-package.md_client.snap rename to tests/core/snapshots/grpc-proto-with-same-package.md_client.snap index a909f59e7d..4629912e16 100644 --- a/tests/snapshots/execution_spec__grpc-proto-with-same-package.md_client.snap +++ b/tests/core/snapshots/grpc-proto-with-same-package.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- type Bar { diff --git a/tests/snapshots/execution_spec__grpc-proto-with-same-package.md_merged.snap b/tests/core/snapshots/grpc-proto-with-same-package.md_merged.snap similarity index 92% rename from tests/snapshots/execution_spec__grpc-proto-with-same-package.md_merged.snap rename to tests/core/snapshots/grpc-proto-with-same-package.md_merged.snap index f35c9b06e8..885b23f062 100644 --- a/tests/snapshots/execution_spec__grpc-proto-with-same-package.md_merged.snap +++ b/tests/core/snapshots/grpc-proto-with-same-package.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server(graphiql: true, port: 8000) @upstream(baseURL: "http://localhost:50051") @link(src: "foo.proto", type: Protobuf) @link(src: "bar.proto", type: Protobuf) { diff --git a/tests/snapshots/execution_spec__call-operator.md_test_9.snap b/tests/core/snapshots/grpc-simple.md_0.snap similarity index 89% rename from tests/snapshots/execution_spec__call-operator.md_test_9.snap rename to tests/core/snapshots/grpc-simple.md_0.snap index 93c8d4001e..f4f2990d59 100644 --- a/tests/snapshots/execution_spec__call-operator.md_test_9.snap +++ b/tests/core/snapshots/grpc-simple.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__grpc-simple.md_client.snap b/tests/core/snapshots/grpc-simple.md_client.snap similarity index 92% rename from tests/snapshots/execution_spec__grpc-simple.md_client.snap rename to tests/core/snapshots/grpc-simple.md_client.snap index 5d27fe0949..da34171517 100644 --- a/tests/snapshots/execution_spec__grpc-simple.md_client.snap +++ b/tests/core/snapshots/grpc-simple.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__grpc-error.md_merged.snap b/tests/core/snapshots/grpc-simple.md_merged.snap similarity index 95% rename from tests/snapshots/execution_spec__grpc-error.md_merged.snap rename to tests/core/snapshots/grpc-simple.md_merged.snap index 9e1de964db..54e5f0b144 100644 --- a/tests/snapshots/execution_spec__grpc-error.md_merged.snap +++ b/tests/core/snapshots/grpc-simple.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server(graphiql: true, port: 8000) @upstream(batch: {delay: 10, headers: []}, httpCache: true) @link(id: "news", src: "news.proto", type: Protobuf) { diff --git a/tests/snapshots/execution_spec__grpc-override-url-from-upstream.md_test_0.snap b/tests/core/snapshots/grpc-url-from-upstream.md_0.snap similarity index 89% rename from tests/snapshots/execution_spec__grpc-override-url-from-upstream.md_test_0.snap rename to tests/core/snapshots/grpc-url-from-upstream.md_0.snap index 93c8d4001e..f4f2990d59 100644 --- a/tests/snapshots/execution_spec__grpc-override-url-from-upstream.md_test_0.snap +++ b/tests/core/snapshots/grpc-url-from-upstream.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/core/snapshots/grpc-url-from-upstream.md_client.snap b/tests/core/snapshots/grpc-url-from-upstream.md_client.snap new file mode 100644 index 0000000000..da34171517 --- /dev/null +++ b/tests/core/snapshots/grpc-url-from-upstream.md_client.snap @@ -0,0 +1,42 @@ +--- +source: tests/core/spec.rs +expression: client +--- +scalar Date + +scalar Email + +scalar Empty + +scalar JSON + +type News { + body: String + id: Int + postImage: String + title: String +} + +type NewsData { + news: [News]! +} + +input NewsInput { + body: String + id: Int + postImage: String + title: String +} + +scalar PhoneNumber + +type Query { + news: NewsData! + newsById(news: NewsInput!): News! +} + +scalar Url + +schema { + query: Query +} diff --git a/tests/snapshots/execution_spec__grpc-url-from-upstream.md_merged.snap b/tests/core/snapshots/grpc-url-from-upstream.md_merged.snap similarity index 95% rename from tests/snapshots/execution_spec__grpc-url-from-upstream.md_merged.snap rename to tests/core/snapshots/grpc-url-from-upstream.md_merged.snap index c2dcaef997..0ad2090a9f 100644 --- a/tests/snapshots/execution_spec__grpc-url-from-upstream.md_merged.snap +++ b/tests/core/snapshots/grpc-url-from-upstream.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server(graphiql: true, port: 8000) @upstream(baseURL: "http://localhost:50051", batch: {delay: 10, headers: []}, httpCache: true) @link(id: "news", src: "news.proto", type: Protobuf) { diff --git a/tests/snapshots/execution_spec__https.md_test_0.snap b/tests/core/snapshots/https.md_0.snap similarity index 86% rename from tests/snapshots/execution_spec__https.md_test_0.snap rename to tests/core/snapshots/https.md_0.snap index 0204fa30dc..a085a7c561 100644 --- a/tests/snapshots/execution_spec__https.md_test_0.snap +++ b/tests/core/snapshots/https.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__simple-query.md_client.snap b/tests/core/snapshots/https.md_client.snap similarity index 86% rename from tests/snapshots/execution_spec__simple-query.md_client.snap rename to tests/core/snapshots/https.md_client.snap index 2ae445a996..fd73bea4ae 100644 --- a/tests/snapshots/execution_spec__simple-query.md_client.snap +++ b/tests/core/snapshots/https.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__https.md_merged.snap b/tests/core/snapshots/https.md_merged.snap similarity index 89% rename from tests/snapshots/execution_spec__https.md_merged.snap rename to tests/core/snapshots/https.md_merged.snap index cec4e53890..68c4914d04 100644 --- a/tests/snapshots/execution_spec__https.md_merged.snap +++ b/tests/core/snapshots/https.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "https://jsonplaceholder.typicode.com") { diff --git a/tests/snapshots/execution_spec__inline-field.md_test_0.snap b/tests/core/snapshots/inline-field.md_0.snap similarity index 86% rename from tests/snapshots/execution_spec__inline-field.md_test_0.snap rename to tests/core/snapshots/inline-field.md_0.snap index d6c346a175..9b27f8fefd 100644 --- a/tests/snapshots/execution_spec__inline-field.md_test_0.snap +++ b/tests/core/snapshots/inline-field.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__inline-field.md_client.snap b/tests/core/snapshots/inline-field.md_client.snap similarity index 86% rename from tests/snapshots/execution_spec__inline-field.md_client.snap rename to tests/core/snapshots/inline-field.md_client.snap index e0ba3147d9..db581c1494 100644 --- a/tests/snapshots/execution_spec__inline-field.md_client.snap +++ b/tests/core/snapshots/inline-field.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__inline-field.md_merged.snap b/tests/core/snapshots/inline-field.md_merged.snap similarity index 91% rename from tests/snapshots/execution_spec__inline-field.md_merged.snap rename to tests/core/snapshots/inline-field.md_merged.snap index a4b6f89a4e..7251879bf9 100644 --- a/tests/snapshots/execution_spec__inline-field.md_merged.snap +++ b/tests/core/snapshots/inline-field.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream { diff --git a/tests/snapshots/execution_spec__omit-index-list.md_test_0.snap b/tests/core/snapshots/inline-index-list.md_0.snap similarity index 84% rename from tests/snapshots/execution_spec__omit-index-list.md_test_0.snap rename to tests/core/snapshots/inline-index-list.md_0.snap index 29d33382cd..a5b7c188b6 100644 --- a/tests/snapshots/execution_spec__omit-index-list.md_test_0.snap +++ b/tests/core/snapshots/inline-index-list.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__omit-index-list.md_client.snap b/tests/core/snapshots/inline-index-list.md_client.snap similarity index 84% rename from tests/snapshots/execution_spec__omit-index-list.md_client.snap rename to tests/core/snapshots/inline-index-list.md_client.snap index f36f868741..6e9d6172f2 100644 --- a/tests/snapshots/execution_spec__omit-index-list.md_client.snap +++ b/tests/core/snapshots/inline-index-list.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__omit-index-list.md_merged.snap b/tests/core/snapshots/inline-index-list.md_merged.snap similarity index 89% rename from tests/snapshots/execution_spec__omit-index-list.md_merged.snap rename to tests/core/snapshots/inline-index-list.md_merged.snap index 7191b8d138..75482b2360 100644 --- a/tests/snapshots/execution_spec__omit-index-list.md_merged.snap +++ b/tests/core/snapshots/inline-index-list.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream { diff --git a/tests/snapshots/execution_spec__inline-many-list.md_client.snap b/tests/core/snapshots/inline-many-list.md_client.snap similarity index 87% rename from tests/snapshots/execution_spec__inline-many-list.md_client.snap rename to tests/core/snapshots/inline-many-list.md_client.snap index 64b314c987..019b06f8e1 100644 --- a/tests/snapshots/execution_spec__inline-many-list.md_client.snap +++ b/tests/core/snapshots/inline-many-list.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__inline-many-list.md_merged.snap b/tests/core/snapshots/inline-many-list.md_merged.snap similarity index 92% rename from tests/snapshots/execution_spec__inline-many-list.md_merged.snap rename to tests/core/snapshots/inline-many-list.md_merged.snap index 54bba824b0..948144023f 100644 --- a/tests/snapshots/execution_spec__inline-many-list.md_merged.snap +++ b/tests/core/snapshots/inline-many-list.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream { diff --git a/tests/snapshots/execution_spec__inline-many.md_client.snap b/tests/core/snapshots/inline-many.md_client.snap similarity index 88% rename from tests/snapshots/execution_spec__inline-many.md_client.snap rename to tests/core/snapshots/inline-many.md_client.snap index 9ea4260639..a063ed8484 100644 --- a/tests/snapshots/execution_spec__inline-many.md_client.snap +++ b/tests/core/snapshots/inline-many.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__inline-many.md_merged.snap b/tests/core/snapshots/inline-many.md_merged.snap similarity index 93% rename from tests/snapshots/execution_spec__inline-many.md_merged.snap rename to tests/core/snapshots/inline-many.md_merged.snap index 43058f4640..480ebd722d 100644 --- a/tests/snapshots/execution_spec__inline-many.md_merged.snap +++ b/tests/core/snapshots/inline-many.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream { diff --git a/tests/snapshots/execution_spec__io-cache.md_test_0.snap b/tests/core/snapshots/io-cache.md_0.snap similarity index 96% rename from tests/snapshots/execution_spec__io-cache.md_test_0.snap rename to tests/core/snapshots/io-cache.md_0.snap index de60e84792..78ec8aca42 100644 --- a/tests/snapshots/execution_spec__io-cache.md_test_0.snap +++ b/tests/core/snapshots/io-cache.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__io-cache.md_client.snap b/tests/core/snapshots/io-cache.md_client.snap similarity index 90% rename from tests/snapshots/execution_spec__io-cache.md_client.snap rename to tests/core/snapshots/io-cache.md_client.snap index 5572c8f8f5..322138d3b6 100644 --- a/tests/snapshots/execution_spec__io-cache.md_client.snap +++ b/tests/core/snapshots/io-cache.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__io-cache.md_merged.snap b/tests/core/snapshots/io-cache.md_merged.snap similarity index 92% rename from tests/snapshots/execution_spec__io-cache.md_merged.snap rename to tests/core/snapshots/io-cache.md_merged.snap index 6929ce8a9d..7669ff0baa 100644 --- a/tests/snapshots/execution_spec__io-cache.md_merged.snap +++ b/tests/core/snapshots/io-cache.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server(graphiql: true, hostname: "0.0.0.0", port: 8000) @upstream(baseURL: "http://jsonplaceholder.typicode.com", httpCache: true) { diff --git a/tests/snapshots/execution_spec__jsonplaceholder-call-post.md_test_0.snap b/tests/core/snapshots/jsonplaceholder-call-post.md_0.snap similarity index 89% rename from tests/snapshots/execution_spec__jsonplaceholder-call-post.md_test_0.snap rename to tests/core/snapshots/jsonplaceholder-call-post.md_0.snap index 6d55adcbc2..64e4c375c5 100644 --- a/tests/snapshots/execution_spec__jsonplaceholder-call-post.md_test_0.snap +++ b/tests/core/snapshots/jsonplaceholder-call-post.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__jsonplaceholder-call-post.md_client.snap b/tests/core/snapshots/jsonplaceholder-call-post.md_client.snap similarity index 91% rename from tests/snapshots/execution_spec__jsonplaceholder-call-post.md_client.snap rename to tests/core/snapshots/jsonplaceholder-call-post.md_client.snap index 71337782f0..d7e7d165cd 100644 --- a/tests/snapshots/execution_spec__jsonplaceholder-call-post.md_client.snap +++ b/tests/core/snapshots/jsonplaceholder-call-post.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__jsonplaceholder-call-post.md_merged.snap b/tests/core/snapshots/jsonplaceholder-call-post.md_merged.snap similarity index 94% rename from tests/snapshots/execution_spec__jsonplaceholder-call-post.md_merged.snap rename to tests/core/snapshots/jsonplaceholder-call-post.md_merged.snap index a063169729..a5a42cbbac 100644 --- a/tests/snapshots/execution_spec__jsonplaceholder-call-post.md_merged.snap +++ b/tests/core/snapshots/jsonplaceholder-call-post.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server(graphiql: true, hostname: "0.0.0.0", port: 8000) @upstream(baseURL: "http://jsonplaceholder.typicode.com", batch: {delay: 100, headers: []}, httpCache: true) { diff --git a/tests/snapshots/execution_spec__modified-field.md_test_0.snap b/tests/core/snapshots/modified-field.md_0.snap similarity index 86% rename from tests/snapshots/execution_spec__modified-field.md_test_0.snap rename to tests/core/snapshots/modified-field.md_0.snap index d5de6f93fe..f932b05da0 100644 --- a/tests/snapshots/execution_spec__modified-field.md_test_0.snap +++ b/tests/core/snapshots/modified-field.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__modified-field.md_client.snap b/tests/core/snapshots/modified-field.md_client.snap similarity index 86% rename from tests/snapshots/execution_spec__modified-field.md_client.snap rename to tests/core/snapshots/modified-field.md_client.snap index 44d5e21293..bd0fb67424 100644 --- a/tests/snapshots/execution_spec__modified-field.md_client.snap +++ b/tests/core/snapshots/modified-field.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__modified-field.md_merged.snap b/tests/core/snapshots/modified-field.md_merged.snap similarity index 87% rename from tests/snapshots/execution_spec__modified-field.md_merged.snap rename to tests/core/snapshots/modified-field.md_merged.snap index 0398a0e420..8983ed6a45 100644 --- a/tests/snapshots/execution_spec__modified-field.md_merged.snap +++ b/tests/core/snapshots/modified-field.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream { diff --git a/tests/snapshots/execution_spec__mutation-put.md_test_0.snap b/tests/core/snapshots/mutation-put.md_0.snap similarity index 86% rename from tests/snapshots/execution_spec__mutation-put.md_test_0.snap rename to tests/core/snapshots/mutation-put.md_0.snap index a6295cacfd..df1c1b3a6d 100644 --- a/tests/snapshots/execution_spec__mutation-put.md_test_0.snap +++ b/tests/core/snapshots/mutation-put.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__mutation-put.md_client.snap b/tests/core/snapshots/mutation-put.md_client.snap similarity index 93% rename from tests/snapshots/execution_spec__mutation-put.md_client.snap rename to tests/core/snapshots/mutation-put.md_client.snap index 0578daf7b9..5e1c62be04 100644 --- a/tests/snapshots/execution_spec__mutation-put.md_client.snap +++ b/tests/core/snapshots/mutation-put.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__mutation-put.md_merged.snap b/tests/core/snapshots/mutation-put.md_merged.snap similarity index 94% rename from tests/snapshots/execution_spec__mutation-put.md_merged.snap rename to tests/core/snapshots/mutation-put.md_merged.snap index 4024b6fdc8..065cde9ea8 100644 --- a/tests/snapshots/execution_spec__mutation-put.md_merged.snap +++ b/tests/core/snapshots/mutation-put.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "http://jsonplaceholder.typicode.com") { diff --git a/tests/snapshots/execution_spec__call-mutation.md_test_0.snap b/tests/core/snapshots/mutation.md_0.snap similarity index 86% rename from tests/snapshots/execution_spec__call-mutation.md_test_0.snap rename to tests/core/snapshots/mutation.md_0.snap index 3d78c855be..a0b72d835b 100644 --- a/tests/snapshots/execution_spec__call-mutation.md_test_0.snap +++ b/tests/core/snapshots/mutation.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__mutation.md_client.snap b/tests/core/snapshots/mutation.md_client.snap similarity index 93% rename from tests/snapshots/execution_spec__mutation.md_client.snap rename to tests/core/snapshots/mutation.md_client.snap index ae0e38b646..9ee31d491b 100644 --- a/tests/snapshots/execution_spec__mutation.md_client.snap +++ b/tests/core/snapshots/mutation.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__mutation.md_merged.snap b/tests/core/snapshots/mutation.md_merged.snap similarity index 93% rename from tests/snapshots/execution_spec__mutation.md_merged.snap rename to tests/core/snapshots/mutation.md_merged.snap index 235d2494bd..3e58b3f436 100644 --- a/tests/snapshots/execution_spec__mutation.md_merged.snap +++ b/tests/core/snapshots/mutation.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "http://jsonplaceholder.typicode.com") { diff --git a/tests/snapshots/execution_spec__n-plus-one-list.md_test_0.snap b/tests/core/snapshots/n-plus-one-list.md_0.snap similarity index 95% rename from tests/snapshots/execution_spec__n-plus-one-list.md_test_0.snap rename to tests/core/snapshots/n-plus-one-list.md_0.snap index 65c5d2bcca..f25f1dd6ba 100644 --- a/tests/snapshots/execution_spec__n-plus-one-list.md_test_0.snap +++ b/tests/core/snapshots/n-plus-one-list.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__n-plus-one.md_client.snap b/tests/core/snapshots/n-plus-one-list.md_client.snap similarity index 89% rename from tests/snapshots/execution_spec__n-plus-one.md_client.snap rename to tests/core/snapshots/n-plus-one-list.md_client.snap index 2c8578f544..908564ca06 100644 --- a/tests/snapshots/execution_spec__n-plus-one.md_client.snap +++ b/tests/core/snapshots/n-plus-one-list.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- type Bar { diff --git a/tests/snapshots/execution_spec__n-plus-one.md_merged.snap b/tests/core/snapshots/n-plus-one-list.md_merged.snap similarity index 94% rename from tests/snapshots/execution_spec__n-plus-one.md_merged.snap rename to tests/core/snapshots/n-plus-one-list.md_merged.snap index e87c02bc48..53889d91c3 100644 --- a/tests/snapshots/execution_spec__n-plus-one.md_merged.snap +++ b/tests/core/snapshots/n-plus-one-list.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "http://example.com", batch: {delay: 1, headers: [], maxSize: 1000}) { diff --git a/tests/snapshots/execution_spec__n-plus-one.md_test_0.snap b/tests/core/snapshots/n-plus-one.md_0.snap similarity index 93% rename from tests/snapshots/execution_spec__n-plus-one.md_test_0.snap rename to tests/core/snapshots/n-plus-one.md_0.snap index a55ce69948..4293f81a84 100644 --- a/tests/snapshots/execution_spec__n-plus-one.md_test_0.snap +++ b/tests/core/snapshots/n-plus-one.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__n-plus-one-list.md_client.snap b/tests/core/snapshots/n-plus-one.md_client.snap similarity index 89% rename from tests/snapshots/execution_spec__n-plus-one-list.md_client.snap rename to tests/core/snapshots/n-plus-one.md_client.snap index 2c8578f544..908564ca06 100644 --- a/tests/snapshots/execution_spec__n-plus-one-list.md_client.snap +++ b/tests/core/snapshots/n-plus-one.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- type Bar { diff --git a/tests/snapshots/execution_spec__n-plus-one-list.md_merged.snap b/tests/core/snapshots/n-plus-one.md_merged.snap similarity index 94% rename from tests/snapshots/execution_spec__n-plus-one-list.md_merged.snap rename to tests/core/snapshots/n-plus-one.md_merged.snap index e87c02bc48..53889d91c3 100644 --- a/tests/snapshots/execution_spec__n-plus-one-list.md_merged.snap +++ b/tests/core/snapshots/n-plus-one.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "http://example.com", batch: {delay: 1, headers: [], maxSize: 1000}) { diff --git a/tests/snapshots/execution_spec__nested-objects.md_test_0.snap b/tests/core/snapshots/nested-objects.md_0.snap similarity index 89% rename from tests/snapshots/execution_spec__nested-objects.md_test_0.snap rename to tests/core/snapshots/nested-objects.md_0.snap index dd63e5c9e4..81e0aa2d2f 100644 --- a/tests/snapshots/execution_spec__nested-objects.md_test_0.snap +++ b/tests/core/snapshots/nested-objects.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__nested-objects.md_client.snap b/tests/core/snapshots/nested-objects.md_client.snap similarity index 90% rename from tests/snapshots/execution_spec__nested-objects.md_client.snap rename to tests/core/snapshots/nested-objects.md_client.snap index 4669dee5d6..51c3f1f41b 100644 --- a/tests/snapshots/execution_spec__nested-objects.md_client.snap +++ b/tests/core/snapshots/nested-objects.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- type Address { diff --git a/tests/snapshots/execution_spec__nested-objects.md_merged.snap b/tests/core/snapshots/nested-objects.md_merged.snap similarity index 90% rename from tests/snapshots/execution_spec__nested-objects.md_merged.snap rename to tests/core/snapshots/nested-objects.md_merged.snap index b8aceb5041..f2617d9e54 100644 --- a/tests/snapshots/execution_spec__nested-objects.md_merged.snap +++ b/tests/core/snapshots/nested-objects.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream { diff --git a/tests/snapshots/execution_spec__nesting-level3.md_test_0.snap b/tests/core/snapshots/nesting-level3.md_0.snap similarity index 94% rename from tests/snapshots/execution_spec__nesting-level3.md_test_0.snap rename to tests/core/snapshots/nesting-level3.md_0.snap index ece7a634dc..bf53033aef 100644 --- a/tests/snapshots/execution_spec__nesting-level3.md_test_0.snap +++ b/tests/core/snapshots/nesting-level3.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__nesting-level3.md_client.snap b/tests/core/snapshots/nesting-level3.md_client.snap similarity index 92% rename from tests/snapshots/execution_spec__nesting-level3.md_client.snap rename to tests/core/snapshots/nesting-level3.md_client.snap index 13a4d21006..d628fab7b1 100644 --- a/tests/snapshots/execution_spec__nesting-level3.md_client.snap +++ b/tests/core/snapshots/nesting-level3.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__nesting-level3.md_merged.snap b/tests/core/snapshots/nesting-level3.md_merged.snap similarity index 94% rename from tests/snapshots/execution_spec__nesting-level3.md_merged.snap rename to tests/core/snapshots/nesting-level3.md_merged.snap index d918d257fb..4dc614c158 100644 --- a/tests/snapshots/execution_spec__nesting-level3.md_merged.snap +++ b/tests/core/snapshots/nesting-level3.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "http://jsonplaceholder.typicode.com") { diff --git a/tests/snapshots/execution_spec__nullable-arg-query.md_test_0.snap b/tests/core/snapshots/nullable-arg-query.md_0.snap similarity index 94% rename from tests/snapshots/execution_spec__nullable-arg-query.md_test_0.snap rename to tests/core/snapshots/nullable-arg-query.md_0.snap index fd978fb9e7..416637ca30 100644 --- a/tests/snapshots/execution_spec__nullable-arg-query.md_test_0.snap +++ b/tests/core/snapshots/nullable-arg-query.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__nullable-arg-query.md_test_1.snap b/tests/core/snapshots/nullable-arg-query.md_1.snap similarity index 86% rename from tests/snapshots/execution_spec__nullable-arg-query.md_test_1.snap rename to tests/core/snapshots/nullable-arg-query.md_1.snap index 529312c684..fba365192d 100644 --- a/tests/snapshots/execution_spec__nullable-arg-query.md_test_1.snap +++ b/tests/core/snapshots/nullable-arg-query.md_1.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__nullable-arg-query.md_client.snap b/tests/core/snapshots/nullable-arg-query.md_client.snap similarity index 87% rename from tests/snapshots/execution_spec__nullable-arg-query.md_client.snap rename to tests/core/snapshots/nullable-arg-query.md_client.snap index 525afe50fa..d0ed27e549 100644 --- a/tests/snapshots/execution_spec__nullable-arg-query.md_client.snap +++ b/tests/core/snapshots/nullable-arg-query.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__nullable-arg-query.md_merged.snap b/tests/core/snapshots/nullable-arg-query.md_merged.snap similarity index 89% rename from tests/snapshots/execution_spec__nullable-arg-query.md_merged.snap rename to tests/core/snapshots/nullable-arg-query.md_merged.snap index 9472d30879..1ca244272c 100644 --- a/tests/snapshots/execution_spec__nullable-arg-query.md_merged.snap +++ b/tests/core/snapshots/nullable-arg-query.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream { diff --git a/tests/snapshots/execution_spec__add-field-index-list.md_test_0.snap b/tests/core/snapshots/omit-index-list.md_0.snap similarity index 84% rename from tests/snapshots/execution_spec__add-field-index-list.md_test_0.snap rename to tests/core/snapshots/omit-index-list.md_0.snap index 29d33382cd..a5b7c188b6 100644 --- a/tests/snapshots/execution_spec__add-field-index-list.md_test_0.snap +++ b/tests/core/snapshots/omit-index-list.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__inline-index-list.md_client.snap b/tests/core/snapshots/omit-index-list.md_client.snap similarity index 84% rename from tests/snapshots/execution_spec__inline-index-list.md_client.snap rename to tests/core/snapshots/omit-index-list.md_client.snap index f36f868741..6e9d6172f2 100644 --- a/tests/snapshots/execution_spec__inline-index-list.md_client.snap +++ b/tests/core/snapshots/omit-index-list.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__inline-index-list.md_merged.snap b/tests/core/snapshots/omit-index-list.md_merged.snap similarity index 89% rename from tests/snapshots/execution_spec__inline-index-list.md_merged.snap rename to tests/core/snapshots/omit-index-list.md_merged.snap index 7191b8d138..75482b2360 100644 --- a/tests/snapshots/execution_spec__inline-index-list.md_merged.snap +++ b/tests/core/snapshots/omit-index-list.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream { diff --git a/tests/snapshots/execution_spec__omit-many.md_client.snap b/tests/core/snapshots/omit-many.md_client.snap similarity index 88% rename from tests/snapshots/execution_spec__omit-many.md_client.snap rename to tests/core/snapshots/omit-many.md_client.snap index 45c10a3331..6517675baa 100644 --- a/tests/snapshots/execution_spec__omit-many.md_client.snap +++ b/tests/core/snapshots/omit-many.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__omit-many.md_merged.snap b/tests/core/snapshots/omit-many.md_merged.snap similarity index 93% rename from tests/snapshots/execution_spec__omit-many.md_merged.snap rename to tests/core/snapshots/omit-many.md_merged.snap index 65cc21941b..8a9c853868 100644 --- a/tests/snapshots/execution_spec__omit-many.md_merged.snap +++ b/tests/core/snapshots/omit-many.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream { diff --git a/tests/snapshots/execution_spec__resolved-by-parent.md_test_0.snap b/tests/core/snapshots/omit-resolved-by-parent.md_0.snap similarity index 86% rename from tests/snapshots/execution_spec__resolved-by-parent.md_test_0.snap rename to tests/core/snapshots/omit-resolved-by-parent.md_0.snap index 83acf38a17..33ee8d1664 100644 --- a/tests/snapshots/execution_spec__resolved-by-parent.md_test_0.snap +++ b/tests/core/snapshots/omit-resolved-by-parent.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__resolved-by-parent.md_client.snap b/tests/core/snapshots/omit-resolved-by-parent.md_client.snap similarity index 86% rename from tests/snapshots/execution_spec__resolved-by-parent.md_client.snap rename to tests/core/snapshots/omit-resolved-by-parent.md_client.snap index e0ba3147d9..db581c1494 100644 --- a/tests/snapshots/execution_spec__resolved-by-parent.md_client.snap +++ b/tests/core/snapshots/omit-resolved-by-parent.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__resolved-by-parent.md_merged.snap b/tests/core/snapshots/omit-resolved-by-parent.md_merged.snap similarity index 90% rename from tests/snapshots/execution_spec__resolved-by-parent.md_merged.snap rename to tests/core/snapshots/omit-resolved-by-parent.md_merged.snap index e44b9d28da..54c1285f98 100644 --- a/tests/snapshots/execution_spec__resolved-by-parent.md_merged.snap +++ b/tests/core/snapshots/omit-resolved-by-parent.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream { diff --git a/tests/snapshots/execution_spec__recursive-type-json.md_test_0.snap b/tests/core/snapshots/recursive-type-json.md_0.snap similarity index 92% rename from tests/snapshots/execution_spec__recursive-type-json.md_test_0.snap rename to tests/core/snapshots/recursive-type-json.md_0.snap index bc1aea6a46..5d3fb5e67d 100644 --- a/tests/snapshots/execution_spec__recursive-type-json.md_test_0.snap +++ b/tests/core/snapshots/recursive-type-json.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__recursive-type-json.md_client.snap b/tests/core/snapshots/recursive-type-json.md_client.snap similarity index 88% rename from tests/snapshots/execution_spec__recursive-type-json.md_client.snap rename to tests/core/snapshots/recursive-type-json.md_client.snap index b1fff57326..0ba4af7c68 100644 --- a/tests/snapshots/execution_spec__recursive-type-json.md_client.snap +++ b/tests/core/snapshots/recursive-type-json.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__recursive-type-json.md_merged.snap b/tests/core/snapshots/recursive-type-json.md_merged.snap similarity index 89% rename from tests/snapshots/execution_spec__recursive-type-json.md_merged.snap rename to tests/core/snapshots/recursive-type-json.md_merged.snap index 530f94d61d..1920b7efbb 100644 --- a/tests/snapshots/execution_spec__recursive-type-json.md_merged.snap +++ b/tests/core/snapshots/recursive-type-json.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "https://jsonplaceholder.typicode.com", httpCache: true) { diff --git a/tests/snapshots/execution_spec__recursive-types.md_test_0.snap b/tests/core/snapshots/recursive-types.md_0.snap similarity index 92% rename from tests/snapshots/execution_spec__recursive-types.md_test_0.snap rename to tests/core/snapshots/recursive-types.md_0.snap index bc1aea6a46..5d3fb5e67d 100644 --- a/tests/snapshots/execution_spec__recursive-types.md_test_0.snap +++ b/tests/core/snapshots/recursive-types.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__recursive-types.md_client.snap b/tests/core/snapshots/recursive-types.md_client.snap similarity index 87% rename from tests/snapshots/execution_spec__recursive-types.md_client.snap rename to tests/core/snapshots/recursive-types.md_client.snap index 51246a10f0..c68cd69419 100644 --- a/tests/snapshots/execution_spec__recursive-types.md_client.snap +++ b/tests/core/snapshots/recursive-types.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__recursive-types.md_merged.snap b/tests/core/snapshots/recursive-types.md_merged.snap similarity index 88% rename from tests/snapshots/execution_spec__recursive-types.md_merged.snap rename to tests/core/snapshots/recursive-types.md_merged.snap index a18ea152d0..87b42e1376 100644 --- a/tests/snapshots/execution_spec__recursive-types.md_merged.snap +++ b/tests/core/snapshots/recursive-types.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "https://jsonplaceholder.typicode.com") { diff --git a/tests/snapshots/execution_spec__ref-other-nested.md_test_0.snap b/tests/core/snapshots/ref-other-nested.md_0.snap similarity index 89% rename from tests/snapshots/execution_spec__ref-other-nested.md_test_0.snap rename to tests/core/snapshots/ref-other-nested.md_0.snap index a0257a5d85..98cad028b7 100644 --- a/tests/snapshots/execution_spec__ref-other-nested.md_test_0.snap +++ b/tests/core/snapshots/ref-other-nested.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__ref-other-nested.md_client.snap b/tests/core/snapshots/ref-other-nested.md_client.snap similarity index 89% rename from tests/snapshots/execution_spec__ref-other-nested.md_client.snap rename to tests/core/snapshots/ref-other-nested.md_client.snap index 372a3a0aa5..0157e58887 100644 --- a/tests/snapshots/execution_spec__ref-other-nested.md_client.snap +++ b/tests/core/snapshots/ref-other-nested.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__ref-other-nested.md_merged.snap b/tests/core/snapshots/ref-other-nested.md_merged.snap similarity index 92% rename from tests/snapshots/execution_spec__ref-other-nested.md_merged.snap rename to tests/core/snapshots/ref-other-nested.md_merged.snap index 6b55f012b0..173f670347 100644 --- a/tests/snapshots/execution_spec__ref-other-nested.md_merged.snap +++ b/tests/core/snapshots/ref-other-nested.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "https://jsonplaceholder.typicode.com") { diff --git a/tests/snapshots/execution_spec__ref-other.md_test_0.snap b/tests/core/snapshots/ref-other.md_0.snap similarity index 88% rename from tests/snapshots/execution_spec__ref-other.md_test_0.snap rename to tests/core/snapshots/ref-other.md_0.snap index e1803e092c..73bdac00d5 100644 --- a/tests/snapshots/execution_spec__ref-other.md_test_0.snap +++ b/tests/core/snapshots/ref-other.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__ref-other.md_client.snap b/tests/core/snapshots/ref-other.md_client.snap similarity index 88% rename from tests/snapshots/execution_spec__ref-other.md_client.snap rename to tests/core/snapshots/ref-other.md_client.snap index f43d59fc36..1e285d9604 100644 --- a/tests/snapshots/execution_spec__ref-other.md_client.snap +++ b/tests/core/snapshots/ref-other.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__ref-other.md_merged.snap b/tests/core/snapshots/ref-other.md_merged.snap similarity index 88% rename from tests/snapshots/execution_spec__ref-other.md_merged.snap rename to tests/core/snapshots/ref-other.md_merged.snap index 36e2544bb7..90053056f7 100644 --- a/tests/snapshots/execution_spec__ref-other.md_merged.snap +++ b/tests/core/snapshots/ref-other.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "https://jsonplaceholder.typicode.com") { diff --git a/tests/snapshots/execution_spec__rename-field.md_test_0.snap b/tests/core/snapshots/rename-field.md_0.snap similarity index 86% rename from tests/snapshots/execution_spec__rename-field.md_test_0.snap rename to tests/core/snapshots/rename-field.md_0.snap index 2a1942ca5c..2db7000d43 100644 --- a/tests/snapshots/execution_spec__rename-field.md_test_0.snap +++ b/tests/core/snapshots/rename-field.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__rename-field.md_test_1.snap b/tests/core/snapshots/rename-field.md_1.snap similarity index 86% rename from tests/snapshots/execution_spec__rename-field.md_test_1.snap rename to tests/core/snapshots/rename-field.md_1.snap index 4543945b2e..76cb55bf18 100644 --- a/tests/snapshots/execution_spec__rename-field.md_test_1.snap +++ b/tests/core/snapshots/rename-field.md_1.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__rename-field.md_client.snap b/tests/core/snapshots/rename-field.md_client.snap similarity index 86% rename from tests/snapshots/execution_spec__rename-field.md_client.snap rename to tests/core/snapshots/rename-field.md_client.snap index 24798b8ae8..dc9cb4bcd1 100644 --- a/tests/snapshots/execution_spec__rename-field.md_client.snap +++ b/tests/core/snapshots/rename-field.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__rename-field.md_merged.snap b/tests/core/snapshots/rename-field.md_merged.snap similarity index 91% rename from tests/snapshots/execution_spec__rename-field.md_merged.snap rename to tests/core/snapshots/rename-field.md_merged.snap index c8f3ec81bf..919ae1a4a1 100644 --- a/tests/snapshots/execution_spec__rename-field.md_merged.snap +++ b/tests/core/snapshots/rename-field.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream { diff --git a/tests/snapshots/execution_spec__request-to-upstream-batching.md_test_0.snap b/tests/core/snapshots/request-to-upstream-batching.md_0.snap similarity index 91% rename from tests/snapshots/execution_spec__request-to-upstream-batching.md_test_0.snap rename to tests/core/snapshots/request-to-upstream-batching.md_0.snap index ae3cd214fb..910fe79ff4 100644 --- a/tests/snapshots/execution_spec__request-to-upstream-batching.md_test_0.snap +++ b/tests/core/snapshots/request-to-upstream-batching.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__request-to-upstream-batching.md_client.snap b/tests/core/snapshots/request-to-upstream-batching.md_client.snap similarity index 87% rename from tests/snapshots/execution_spec__request-to-upstream-batching.md_client.snap rename to tests/core/snapshots/request-to-upstream-batching.md_client.snap index 33012a438b..a39792ca85 100644 --- a/tests/snapshots/execution_spec__request-to-upstream-batching.md_client.snap +++ b/tests/core/snapshots/request-to-upstream-batching.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__request-to-upstream-batching.md_merged.snap b/tests/core/snapshots/request-to-upstream-batching.md_merged.snap similarity index 91% rename from tests/snapshots/execution_spec__request-to-upstream-batching.md_merged.snap rename to tests/core/snapshots/request-to-upstream-batching.md_merged.snap index 26e703dfec..b72e0d430f 100644 --- a/tests/snapshots/execution_spec__request-to-upstream-batching.md_merged.snap +++ b/tests/core/snapshots/request-to-upstream-batching.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server(batchRequests: true) @upstream(batch: {delay: 1, headers: [], maxSize: 100}) { diff --git a/tests/snapshots/execution_spec__resolve-with-headers.md_test_0.snap b/tests/core/snapshots/resolve-with-headers.md_0.snap similarity index 86% rename from tests/snapshots/execution_spec__resolve-with-headers.md_test_0.snap rename to tests/core/snapshots/resolve-with-headers.md_0.snap index 194dde9025..918dbaba7a 100644 --- a/tests/snapshots/execution_spec__resolve-with-headers.md_test_0.snap +++ b/tests/core/snapshots/resolve-with-headers.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__resolve-with-headers.md_client.snap b/tests/core/snapshots/resolve-with-headers.md_client.snap similarity index 88% rename from tests/snapshots/execution_spec__resolve-with-headers.md_client.snap rename to tests/core/snapshots/resolve-with-headers.md_client.snap index e5a89fac93..b80ed2b615 100644 --- a/tests/snapshots/execution_spec__resolve-with-headers.md_client.snap +++ b/tests/core/snapshots/resolve-with-headers.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__resolve-with-headers.md_merged.snap b/tests/core/snapshots/resolve-with-headers.md_merged.snap similarity index 90% rename from tests/snapshots/execution_spec__resolve-with-headers.md_merged.snap rename to tests/core/snapshots/resolve-with-headers.md_merged.snap index 0a81622568..2ef60df846 100644 --- a/tests/snapshots/execution_spec__resolve-with-headers.md_merged.snap +++ b/tests/core/snapshots/resolve-with-headers.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(allowedHeaders: ["authorization"]) { diff --git a/tests/snapshots/execution_spec__resolve-with-vars.md_test_0.snap b/tests/core/snapshots/resolve-with-vars.md_0.snap similarity index 87% rename from tests/snapshots/execution_spec__resolve-with-vars.md_test_0.snap rename to tests/core/snapshots/resolve-with-vars.md_0.snap index 9e1032ec3c..47bfa75fff 100644 --- a/tests/snapshots/execution_spec__resolve-with-vars.md_test_0.snap +++ b/tests/core/snapshots/resolve-with-vars.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__resolve-with-vars.md_client.snap b/tests/core/snapshots/resolve-with-vars.md_client.snap similarity index 86% rename from tests/snapshots/execution_spec__resolve-with-vars.md_client.snap rename to tests/core/snapshots/resolve-with-vars.md_client.snap index f8f18cc475..e7f00943cb 100644 --- a/tests/snapshots/execution_spec__resolve-with-vars.md_client.snap +++ b/tests/core/snapshots/resolve-with-vars.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__resolve-with-vars.md_merged.snap b/tests/core/snapshots/resolve-with-vars.md_merged.snap similarity index 90% rename from tests/snapshots/execution_spec__resolve-with-vars.md_merged.snap rename to tests/core/snapshots/resolve-with-vars.md_merged.snap index fce4f2eaa2..a3cc637dd8 100644 --- a/tests/snapshots/execution_spec__resolve-with-vars.md_merged.snap +++ b/tests/core/snapshots/resolve-with-vars.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server(vars: [{key: "id", value: "1"}]) @upstream { diff --git a/tests/snapshots/execution_spec__omit-resolved-by-parent.md_test_0.snap b/tests/core/snapshots/resolved-by-parent.md_0.snap similarity index 86% rename from tests/snapshots/execution_spec__omit-resolved-by-parent.md_test_0.snap rename to tests/core/snapshots/resolved-by-parent.md_0.snap index 83acf38a17..33ee8d1664 100644 --- a/tests/snapshots/execution_spec__omit-resolved-by-parent.md_test_0.snap +++ b/tests/core/snapshots/resolved-by-parent.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__omit-resolved-by-parent.md_client.snap b/tests/core/snapshots/resolved-by-parent.md_client.snap similarity index 86% rename from tests/snapshots/execution_spec__omit-resolved-by-parent.md_client.snap rename to tests/core/snapshots/resolved-by-parent.md_client.snap index e0ba3147d9..db581c1494 100644 --- a/tests/snapshots/execution_spec__omit-resolved-by-parent.md_client.snap +++ b/tests/core/snapshots/resolved-by-parent.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__omit-resolved-by-parent.md_merged.snap b/tests/core/snapshots/resolved-by-parent.md_merged.snap similarity index 90% rename from tests/snapshots/execution_spec__omit-resolved-by-parent.md_merged.snap rename to tests/core/snapshots/resolved-by-parent.md_merged.snap index e44b9d28da..54c1285f98 100644 --- a/tests/snapshots/execution_spec__omit-resolved-by-parent.md_merged.snap +++ b/tests/core/snapshots/resolved-by-parent.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream { diff --git a/tests/snapshots/execution_spec__rest-api-error.md_test_0.snap b/tests/core/snapshots/rest-api-error.md_0.snap similarity index 92% rename from tests/snapshots/execution_spec__rest-api-error.md_test_0.snap rename to tests/core/snapshots/rest-api-error.md_0.snap index dce9c4ce8d..71f1df3c32 100644 --- a/tests/snapshots/execution_spec__rest-api-error.md_test_0.snap +++ b/tests/core/snapshots/rest-api-error.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__rest-api-post.md_client.snap b/tests/core/snapshots/rest-api-error.md_client.snap similarity index 87% rename from tests/snapshots/execution_spec__rest-api-post.md_client.snap rename to tests/core/snapshots/rest-api-error.md_client.snap index b2c75a55b8..b6fca1b4e8 100644 --- a/tests/snapshots/execution_spec__rest-api-post.md_client.snap +++ b/tests/core/snapshots/rest-api-error.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__rest-api-error.md_merged.snap b/tests/core/snapshots/rest-api-error.md_merged.snap similarity index 90% rename from tests/snapshots/execution_spec__rest-api-error.md_merged.snap rename to tests/core/snapshots/rest-api-error.md_merged.snap index 82c5c02b37..7ef5777788 100644 --- a/tests/snapshots/execution_spec__rest-api-error.md_merged.snap +++ b/tests/core/snapshots/rest-api-error.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "http://jsonplaceholder.typicode.com") @link(src: "operation-user.graphql", type: Operation) { diff --git a/tests/snapshots/execution_spec__rest-api-post.md_test_0.snap b/tests/core/snapshots/rest-api-post.md_0.snap similarity index 82% rename from tests/snapshots/execution_spec__rest-api-post.md_test_0.snap rename to tests/core/snapshots/rest-api-post.md_0.snap index 3bb91ee518..cc6597baac 100644 --- a/tests/snapshots/execution_spec__rest-api-post.md_test_0.snap +++ b/tests/core/snapshots/rest-api-post.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__rest-api-error.md_client.snap b/tests/core/snapshots/rest-api-post.md_client.snap similarity index 87% rename from tests/snapshots/execution_spec__rest-api-error.md_client.snap rename to tests/core/snapshots/rest-api-post.md_client.snap index b2c75a55b8..b6fca1b4e8 100644 --- a/tests/snapshots/execution_spec__rest-api-error.md_client.snap +++ b/tests/core/snapshots/rest-api-post.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__rest-api-post.md_merged.snap b/tests/core/snapshots/rest-api-post.md_merged.snap similarity index 90% rename from tests/snapshots/execution_spec__rest-api-post.md_merged.snap rename to tests/core/snapshots/rest-api-post.md_merged.snap index 82c5c02b37..7ef5777788 100644 --- a/tests/snapshots/execution_spec__rest-api-post.md_merged.snap +++ b/tests/core/snapshots/rest-api-post.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "http://jsonplaceholder.typicode.com") @link(src: "operation-user.graphql", type: Operation) { diff --git a/tests/snapshots/execution_spec__rest-api.md_test_0.snap b/tests/core/snapshots/rest-api.md_0.snap similarity index 82% rename from tests/snapshots/execution_spec__rest-api.md_test_0.snap rename to tests/core/snapshots/rest-api.md_0.snap index 3bb91ee518..cc6597baac 100644 --- a/tests/snapshots/execution_spec__rest-api.md_test_0.snap +++ b/tests/core/snapshots/rest-api.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__rest-api.md_client.snap b/tests/core/snapshots/rest-api.md_client.snap similarity index 87% rename from tests/snapshots/execution_spec__rest-api.md_client.snap rename to tests/core/snapshots/rest-api.md_client.snap index b2c75a55b8..b6fca1b4e8 100644 --- a/tests/snapshots/execution_spec__rest-api.md_client.snap +++ b/tests/core/snapshots/rest-api.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__rest-api.md_merged.snap b/tests/core/snapshots/rest-api.md_merged.snap similarity index 90% rename from tests/snapshots/execution_spec__rest-api.md_merged.snap rename to tests/core/snapshots/rest-api.md_merged.snap index 82c5c02b37..7ef5777788 100644 --- a/tests/snapshots/execution_spec__rest-api.md_merged.snap +++ b/tests/core/snapshots/rest-api.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "http://jsonplaceholder.typicode.com") @link(src: "operation-user.graphql", type: Operation) { diff --git a/tests/snapshots/execution_spec__with-args-url.md_test_0.snap b/tests/core/snapshots/showcase.md_0.snap similarity index 85% rename from tests/snapshots/execution_spec__with-args-url.md_test_0.snap rename to tests/core/snapshots/showcase.md_0.snap index c1d6f66212..13a20b3310 100644 --- a/tests/snapshots/execution_spec__with-args-url.md_test_0.snap +++ b/tests/core/snapshots/showcase.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__showcase.md_test_1.snap b/tests/core/snapshots/showcase.md_1.snap similarity index 87% rename from tests/snapshots/execution_spec__showcase.md_test_1.snap rename to tests/core/snapshots/showcase.md_1.snap index b8e6363028..6dfc7e9df6 100644 --- a/tests/snapshots/execution_spec__showcase.md_test_1.snap +++ b/tests/core/snapshots/showcase.md_1.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__showcase.md_test_2.snap b/tests/core/snapshots/showcase.md_2.snap similarity index 87% rename from tests/snapshots/execution_spec__showcase.md_test_2.snap rename to tests/core/snapshots/showcase.md_2.snap index 33505dda26..fe3dc5a3b5 100644 --- a/tests/snapshots/execution_spec__showcase.md_test_2.snap +++ b/tests/core/snapshots/showcase.md_2.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__showcase.md_test_3.snap b/tests/core/snapshots/showcase.md_3.snap similarity index 91% rename from tests/snapshots/execution_spec__showcase.md_test_3.snap rename to tests/core/snapshots/showcase.md_3.snap index 645d519413..b178f82042 100644 --- a/tests/snapshots/execution_spec__showcase.md_test_3.snap +++ b/tests/core/snapshots/showcase.md_3.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__simple-graphql.md_test_1.snap b/tests/core/snapshots/showcase.md_4.snap similarity index 89% rename from tests/snapshots/execution_spec__simple-graphql.md_test_1.snap rename to tests/core/snapshots/showcase.md_4.snap index 1b88aa8980..543411ada6 100644 --- a/tests/snapshots/execution_spec__simple-graphql.md_test_1.snap +++ b/tests/core/snapshots/showcase.md_4.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__showcase.md_client.snap b/tests/core/snapshots/showcase.md_client.snap similarity index 87% rename from tests/snapshots/execution_spec__showcase.md_client.snap rename to tests/core/snapshots/showcase.md_client.snap index 9f20789b0a..7d841d7546 100644 --- a/tests/snapshots/execution_spec__showcase.md_client.snap +++ b/tests/core/snapshots/showcase.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__showcase.md_merged.snap b/tests/core/snapshots/showcase.md_merged.snap similarity index 88% rename from tests/snapshots/execution_spec__showcase.md_merged.snap rename to tests/core/snapshots/showcase.md_merged.snap index 403c78fe18..dcc936a453 100644 --- a/tests/snapshots/execution_spec__showcase.md_merged.snap +++ b/tests/core/snapshots/showcase.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server(showcase: true) @upstream { diff --git a/tests/snapshots/execution_spec__simple-graphql.md_test_0.snap b/tests/core/snapshots/simple-graphql.md_0.snap similarity index 85% rename from tests/snapshots/execution_spec__simple-graphql.md_test_0.snap rename to tests/core/snapshots/simple-graphql.md_0.snap index c1d6f66212..13a20b3310 100644 --- a/tests/snapshots/execution_spec__simple-graphql.md_test_0.snap +++ b/tests/core/snapshots/simple-graphql.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__showcase.md_test_4.snap b/tests/core/snapshots/simple-graphql.md_1.snap similarity index 89% rename from tests/snapshots/execution_spec__showcase.md_test_4.snap rename to tests/core/snapshots/simple-graphql.md_1.snap index 1b88aa8980..543411ada6 100644 --- a/tests/snapshots/execution_spec__showcase.md_test_4.snap +++ b/tests/core/snapshots/simple-graphql.md_1.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__batching.md_client.snap b/tests/core/snapshots/simple-graphql.md_client.snap similarity index 86% rename from tests/snapshots/execution_spec__batching.md_client.snap rename to tests/core/snapshots/simple-graphql.md_client.snap index 84d2907e22..f8c9c2fa86 100644 --- a/tests/snapshots/execution_spec__batching.md_client.snap +++ b/tests/core/snapshots/simple-graphql.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__simple-graphql.md_merged.snap b/tests/core/snapshots/simple-graphql.md_merged.snap similarity index 86% rename from tests/snapshots/execution_spec__simple-graphql.md_merged.snap rename to tests/core/snapshots/simple-graphql.md_merged.snap index 822924f58f..fb720f6f46 100644 --- a/tests/snapshots/execution_spec__simple-graphql.md_merged.snap +++ b/tests/core/snapshots/simple-graphql.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream { diff --git a/tests/snapshots/execution_spec__simple-query.md_test_0.snap b/tests/core/snapshots/simple-query.md_0.snap similarity index 85% rename from tests/snapshots/execution_spec__simple-query.md_test_0.snap rename to tests/core/snapshots/simple-query.md_0.snap index fd37d2e038..d24c105fb6 100644 --- a/tests/snapshots/execution_spec__simple-query.md_test_0.snap +++ b/tests/core/snapshots/simple-query.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__https.md_client.snap b/tests/core/snapshots/simple-query.md_client.snap similarity index 86% rename from tests/snapshots/execution_spec__https.md_client.snap rename to tests/core/snapshots/simple-query.md_client.snap index 2ae445a996..fd73bea4ae 100644 --- a/tests/snapshots/execution_spec__https.md_client.snap +++ b/tests/core/snapshots/simple-query.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__simple-query.md_merged.snap b/tests/core/snapshots/simple-query.md_merged.snap similarity index 87% rename from tests/snapshots/execution_spec__simple-query.md_merged.snap rename to tests/core/snapshots/simple-query.md_merged.snap index e68b264eed..4582691ba7 100644 --- a/tests/snapshots/execution_spec__simple-query.md_merged.snap +++ b/tests/core/snapshots/simple-query.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "http://jsonplaceholder.typicode.com") { diff --git a/tests/snapshots/execution_spec__test-add-field-list.md_client.snap b/tests/core/snapshots/test-add-field-list.md_client.snap similarity index 88% rename from tests/snapshots/execution_spec__test-add-field-list.md_client.snap rename to tests/core/snapshots/test-add-field-list.md_client.snap index e61e1d995e..63732a49c6 100644 --- a/tests/snapshots/execution_spec__test-add-field-list.md_client.snap +++ b/tests/core/snapshots/test-add-field-list.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- type A { diff --git a/tests/snapshots/execution_spec__test-add-field-list.md_merged.snap b/tests/core/snapshots/test-add-field-list.md_merged.snap similarity index 89% rename from tests/snapshots/execution_spec__test-add-field-list.md_merged.snap rename to tests/core/snapshots/test-add-field-list.md_merged.snap index 41c71c9237..10f3b9ca79 100644 --- a/tests/snapshots/execution_spec__test-add-field-list.md_merged.snap +++ b/tests/core/snapshots/test-add-field-list.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { diff --git a/tests/snapshots/execution_spec__test-add-field.md_client.snap b/tests/core/snapshots/test-add-field.md_client.snap similarity index 88% rename from tests/snapshots/execution_spec__test-add-field.md_client.snap rename to tests/core/snapshots/test-add-field.md_client.snap index a0399c6f79..3926ab5706 100644 --- a/tests/snapshots/execution_spec__test-add-field.md_client.snap +++ b/tests/core/snapshots/test-add-field.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- type A { diff --git a/tests/snapshots/execution_spec__test-add-field.md_merged.snap b/tests/core/snapshots/test-add-field.md_merged.snap similarity index 89% rename from tests/snapshots/execution_spec__test-add-field.md_merged.snap rename to tests/core/snapshots/test-add-field.md_merged.snap index 3b67cb64aa..095fa8a918 100644 --- a/tests/snapshots/execution_spec__test-add-field.md_merged.snap +++ b/tests/core/snapshots/test-add-field.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { diff --git a/tests/snapshots/execution_spec__test-add-link-to-empty-config.md_client.snap b/tests/core/snapshots/test-add-link-to-empty-config.md_client.snap similarity index 86% rename from tests/snapshots/execution_spec__test-add-link-to-empty-config.md_client.snap rename to tests/core/snapshots/test-add-link-to-empty-config.md_client.snap index f88af82b65..bd1061e7db 100644 --- a/tests/snapshots/execution_spec__test-add-link-to-empty-config.md_client.snap +++ b/tests/core/snapshots/test-add-link-to-empty-config.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__test-add-link-to-empty-config.md_merged.snap b/tests/core/snapshots/test-add-link-to-empty-config.md_merged.snap similarity index 83% rename from tests/snapshots/execution_spec__test-add-link-to-empty-config.md_merged.snap rename to tests/core/snapshots/test-add-link-to-empty-config.md_merged.snap index b4caf4570a..724d3e15ed 100644 --- a/tests/snapshots/execution_spec__test-add-link-to-empty-config.md_merged.snap +++ b/tests/core/snapshots/test-add-link-to-empty-config.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream @link(src: "link-expr.graphql", type: Config) @link(src: "link-enum.graphql", type: Config) { diff --git a/tests/core/snapshots/test-batching-group-by.md_client.snap b/tests/core/snapshots/test-batching-group-by.md_client.snap new file mode 100644 index 0000000000..7ae47b261d --- /dev/null +++ b/tests/core/snapshots/test-batching-group-by.md_client.snap @@ -0,0 +1,36 @@ +--- +source: tests/core/spec.rs +expression: client +--- +scalar Date + +scalar Email + +scalar Empty + +scalar JSON + +scalar PhoneNumber + +type Post { + body: String + id: Int + title: String + user: User + userId: Int! +} + +type Query { + posts: [Post] +} + +scalar Url + +type User { + id: Int + name: String +} + +schema { + query: Query +} diff --git a/tests/snapshots/execution_spec__test-batching-group-by.md_merged.snap b/tests/core/snapshots/test-batching-group-by.md_merged.snap similarity index 93% rename from tests/snapshots/execution_spec__test-batching-group-by.md_merged.snap rename to tests/core/snapshots/test-batching-group-by.md_merged.snap index ef9d73c5ea..10cc028bb6 100644 --- a/tests/snapshots/execution_spec__test-batching-group-by.md_merged.snap +++ b/tests/core/snapshots/test-batching-group-by.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server(port: 4000) @upstream(baseURL: "http://abc.com", batch: {delay: 1, headers: [], maxSize: 1000}) { diff --git a/tests/snapshots/execution_spec__test-cache.md_client.snap b/tests/core/snapshots/test-cache.md_client.snap similarity index 86% rename from tests/snapshots/execution_spec__test-cache.md_client.snap rename to tests/core/snapshots/test-cache.md_client.snap index 84d2907e22..f8c9c2fa86 100644 --- a/tests/snapshots/execution_spec__test-cache.md_client.snap +++ b/tests/core/snapshots/test-cache.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__test-cache.md_merged.snap b/tests/core/snapshots/test-cache.md_merged.snap similarity index 88% rename from tests/snapshots/execution_spec__test-cache.md_merged.snap rename to tests/core/snapshots/test-cache.md_merged.snap index 769c557d4d..2bf0365875 100644 --- a/tests/snapshots/execution_spec__test-cache.md_merged.snap +++ b/tests/core/snapshots/test-cache.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { diff --git a/tests/snapshots/execution_spec__test-conflict-allowed-headers.md_merged.snap b/tests/core/snapshots/test-conflict-allowed-headers.md_merged.snap similarity index 83% rename from tests/snapshots/execution_spec__test-conflict-allowed-headers.md_merged.snap rename to tests/core/snapshots/test-conflict-allowed-headers.md_merged.snap index 264403bbf5..2fb2f3849c 100644 --- a/tests/snapshots/execution_spec__test-conflict-allowed-headers.md_merged.snap +++ b/tests/core/snapshots/test-conflict-allowed-headers.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(allowedHeaders: ["a", "b", "c", "d"]) { diff --git a/tests/snapshots/execution_spec__test-conflict-vars.md_merged.snap b/tests/core/snapshots/test-conflict-vars.md_merged.snap similarity index 86% rename from tests/snapshots/execution_spec__test-conflict-vars.md_merged.snap rename to tests/core/snapshots/test-conflict-vars.md_merged.snap index 58fe751643..eda8f9a1d5 100644 --- a/tests/snapshots/execution_spec__test-conflict-vars.md_merged.snap +++ b/tests/core/snapshots/test-conflict-vars.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server(vars: [{key: "a", value: "b"}, {key: "c", value: "d"}, {key: "p", value: "q"}]) @upstream { diff --git a/tests/snapshots/execution_spec__test-custom-scalar.md_client.snap b/tests/core/snapshots/test-custom-scalar.md_client.snap similarity index 85% rename from tests/snapshots/execution_spec__test-custom-scalar.md_client.snap rename to tests/core/snapshots/test-custom-scalar.md_client.snap index 2e238aa2c0..f15f9a6a3d 100644 --- a/tests/snapshots/execution_spec__test-custom-scalar.md_client.snap +++ b/tests/core/snapshots/test-custom-scalar.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__test-custom-scalar.md_merged.snap b/tests/core/snapshots/test-custom-scalar.md_merged.snap similarity index 85% rename from tests/snapshots/execution_spec__test-custom-scalar.md_merged.snap rename to tests/core/snapshots/test-custom-scalar.md_merged.snap index 4ef1b123aa..01e731dc0a 100644 --- a/tests/snapshots/execution_spec__test-custom-scalar.md_merged.snap +++ b/tests/core/snapshots/test-custom-scalar.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { diff --git a/tests/snapshots/execution_spec__test-custom-types.md_client.snap b/tests/core/snapshots/test-custom-types.md_client.snap similarity index 92% rename from tests/snapshots/execution_spec__test-custom-types.md_client.snap rename to tests/core/snapshots/test-custom-types.md_client.snap index f0d4ac3e87..a7308e2bf3 100644 --- a/tests/snapshots/execution_spec__test-custom-types.md_client.snap +++ b/tests/core/snapshots/test-custom-types.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__test-custom-types.md_merged.snap b/tests/core/snapshots/test-custom-types.md_merged.snap similarity index 93% rename from tests/snapshots/execution_spec__test-custom-types.md_merged.snap rename to tests/core/snapshots/test-custom-types.md_merged.snap index 6ec581a1d0..4c4cbc5a39 100644 --- a/tests/snapshots/execution_spec__test-custom-types.md_merged.snap +++ b/tests/core/snapshots/test-custom-types.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "http://jsonplaceholder.typicode.com") { diff --git a/tests/snapshots/execution_spec__test-description-many.md_client.snap b/tests/core/snapshots/test-description-many.md_client.snap similarity index 88% rename from tests/snapshots/execution_spec__test-description-many.md_client.snap rename to tests/core/snapshots/test-description-many.md_client.snap index 4df606385d..c21889cb2e 100644 --- a/tests/snapshots/execution_spec__test-description-many.md_client.snap +++ b/tests/core/snapshots/test-description-many.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- type Bar { diff --git a/tests/snapshots/execution_spec__test-description-many.md_merged.snap b/tests/core/snapshots/test-description-many.md_merged.snap similarity index 88% rename from tests/snapshots/execution_spec__test-description-many.md_merged.snap rename to tests/core/snapshots/test-description-many.md_merged.snap index bea9751ea9..a8e2022521 100644 --- a/tests/snapshots/execution_spec__test-description-many.md_merged.snap +++ b/tests/core/snapshots/test-description-many.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { diff --git a/tests/snapshots/execution_spec__test-enum-default.md_test_0.snap b/tests/core/snapshots/test-enum-default.md_0.snap similarity index 92% rename from tests/snapshots/execution_spec__test-enum-default.md_test_0.snap rename to tests/core/snapshots/test-enum-default.md_0.snap index 6a14caece7..d177f0791f 100644 --- a/tests/snapshots/execution_spec__test-enum-default.md_test_0.snap +++ b/tests/core/snapshots/test-enum-default.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__test-enum-default.md_client.snap b/tests/core/snapshots/test-enum-default.md_client.snap similarity index 90% rename from tests/snapshots/execution_spec__test-enum-default.md_client.snap rename to tests/core/snapshots/test-enum-default.md_client.snap index 3bf9fcb1dc..45aa5dcbe8 100644 --- a/tests/snapshots/execution_spec__test-enum-default.md_client.snap +++ b/tests/core/snapshots/test-enum-default.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__test-enum-default.md_merged.snap b/tests/core/snapshots/test-enum-default.md_merged.snap similarity index 93% rename from tests/snapshots/execution_spec__test-enum-default.md_merged.snap rename to tests/core/snapshots/test-enum-default.md_merged.snap index 0ae232ebb6..fedfe3b663 100644 --- a/tests/snapshots/execution_spec__test-enum-default.md_merged.snap +++ b/tests/core/snapshots/test-enum-default.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server(graphiql: true, port: 8080) @upstream(baseURL: "http://localhost:50051", batch: {delay: 10, headers: []}, httpCache: true) @link(id: "news", src: "./service.proto", type: Protobuf) { diff --git a/tests/snapshots/execution_spec__test-enum-merge.md_merged.snap b/tests/core/snapshots/test-enum-merge.md_merged.snap similarity index 86% rename from tests/snapshots/execution_spec__test-enum-merge.md_merged.snap rename to tests/core/snapshots/test-enum-merge.md_merged.snap index 99d8747536..f204828260 100644 --- a/tests/snapshots/execution_spec__test-enum-merge.md_merged.snap +++ b/tests/core/snapshots/test-enum-merge.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { diff --git a/tests/snapshots/execution_spec__test-enum.md_test_0.snap b/tests/core/snapshots/test-enum.md_0.snap similarity index 83% rename from tests/snapshots/execution_spec__test-enum.md_test_0.snap rename to tests/core/snapshots/test-enum.md_0.snap index 1faa1c2e5e..63a4be352d 100644 --- a/tests/snapshots/execution_spec__test-enum.md_test_0.snap +++ b/tests/core/snapshots/test-enum.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__test-enum.md_test_1.snap b/tests/core/snapshots/test-enum.md_1.snap similarity index 83% rename from tests/snapshots/execution_spec__test-enum.md_test_1.snap rename to tests/core/snapshots/test-enum.md_1.snap index 7c41e7a967..444b7bb300 100644 --- a/tests/snapshots/execution_spec__test-enum.md_test_1.snap +++ b/tests/core/snapshots/test-enum.md_1.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__test-enum.md_test_2.snap b/tests/core/snapshots/test-enum.md_2.snap similarity index 92% rename from tests/snapshots/execution_spec__test-enum.md_test_2.snap rename to tests/core/snapshots/test-enum.md_2.snap index a2ba8f23dc..c19c038cf7 100644 --- a/tests/snapshots/execution_spec__test-enum.md_test_2.snap +++ b/tests/core/snapshots/test-enum.md_2.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__test-enum.md_client.snap b/tests/core/snapshots/test-enum.md_client.snap similarity index 86% rename from tests/snapshots/execution_spec__test-enum.md_client.snap rename to tests/core/snapshots/test-enum.md_client.snap index c4809642b5..5f025dcda8 100644 --- a/tests/snapshots/execution_spec__test-enum.md_client.snap +++ b/tests/core/snapshots/test-enum.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__test-enum.md_merged.snap b/tests/core/snapshots/test-enum.md_merged.snap similarity index 86% rename from tests/snapshots/execution_spec__test-enum.md_merged.snap rename to tests/core/snapshots/test-enum.md_merged.snap index 23b88305d1..eca36df1c1 100644 --- a/tests/snapshots/execution_spec__test-enum.md_merged.snap +++ b/tests/core/snapshots/test-enum.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "http://localhost:8080") { diff --git a/tests/snapshots/execution_spec__test-expr-with-mustache.md_test_0.snap b/tests/core/snapshots/test-expr-with-mustache.md_0.snap similarity index 92% rename from tests/snapshots/execution_spec__test-expr-with-mustache.md_test_0.snap rename to tests/core/snapshots/test-expr-with-mustache.md_0.snap index 6968e94c17..0f772f2f1c 100644 --- a/tests/snapshots/execution_spec__test-expr-with-mustache.md_test_0.snap +++ b/tests/core/snapshots/test-expr-with-mustache.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__test-expr-with-mustache.md_client.snap b/tests/core/snapshots/test-expr-with-mustache.md_client.snap similarity index 89% rename from tests/snapshots/execution_spec__test-expr-with-mustache.md_client.snap rename to tests/core/snapshots/test-expr-with-mustache.md_client.snap index c35daebf5a..563b3e26f4 100644 --- a/tests/snapshots/execution_spec__test-expr-with-mustache.md_client.snap +++ b/tests/core/snapshots/test-expr-with-mustache.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- type A { diff --git a/tests/snapshots/execution_spec__test-expr-with-mustache.md_merged.snap b/tests/core/snapshots/test-expr-with-mustache.md_merged.snap similarity index 94% rename from tests/snapshots/execution_spec__test-expr-with-mustache.md_merged.snap rename to tests/core/snapshots/test-expr-with-mustache.md_merged.snap index fcacfe4956..6f192d0dee 100644 --- a/tests/snapshots/execution_spec__test-expr-with-mustache.md_merged.snap +++ b/tests/core/snapshots/test-expr-with-mustache.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream { diff --git a/tests/snapshots/execution_spec__test-expr.md_client.snap b/tests/core/snapshots/test-expr.md_client.snap similarity index 84% rename from tests/snapshots/execution_spec__test-expr.md_client.snap rename to tests/core/snapshots/test-expr.md_client.snap index 60f26910ce..246536f601 100644 --- a/tests/snapshots/execution_spec__test-expr.md_client.snap +++ b/tests/core/snapshots/test-expr.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__test-expr.md_merged.snap b/tests/core/snapshots/test-expr.md_merged.snap similarity index 80% rename from tests/snapshots/execution_spec__test-expr.md_merged.snap rename to tests/core/snapshots/test-expr.md_merged.snap index d62956f25c..de0ae43f5d 100644 --- a/tests/snapshots/execution_spec__test-expr.md_merged.snap +++ b/tests/core/snapshots/test-expr.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream { diff --git a/tests/snapshots/execution_spec__test-graphqlsource.md_client.snap b/tests/core/snapshots/test-graphqlsource.md_client.snap similarity index 89% rename from tests/snapshots/execution_spec__test-graphqlsource.md_client.snap rename to tests/core/snapshots/test-graphqlsource.md_client.snap index 4672cc580f..17bdbf61cc 100644 --- a/tests/snapshots/execution_spec__test-graphqlsource.md_client.snap +++ b/tests/core/snapshots/test-graphqlsource.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__test-graphqlsource.md_merged.snap b/tests/core/snapshots/test-graphqlsource.md_merged.snap similarity index 92% rename from tests/snapshots/execution_spec__test-graphqlsource.md_merged.snap rename to tests/core/snapshots/test-graphqlsource.md_merged.snap index 4a4e706f31..c4d9375595 100644 --- a/tests/snapshots/execution_spec__test-graphqlsource.md_merged.snap +++ b/tests/core/snapshots/test-graphqlsource.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "http://localhost:8000/graphql") { diff --git a/tests/snapshots/execution_spec__test-grpc.md_client.snap b/tests/core/snapshots/test-grpc.md_client.snap similarity index 93% rename from tests/snapshots/execution_spec__test-grpc.md_client.snap rename to tests/core/snapshots/test-grpc.md_client.snap index d439ec7a60..72b8b8dccc 100644 --- a/tests/snapshots/execution_spec__test-grpc.md_client.snap +++ b/tests/core/snapshots/test-grpc.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__test-grpc.md_merged.snap b/tests/core/snapshots/test-grpc.md_merged.snap similarity index 95% rename from tests/snapshots/execution_spec__test-grpc.md_merged.snap rename to tests/core/snapshots/test-grpc.md_merged.snap index 3adb497b75..425c09a8d3 100644 --- a/tests/snapshots/execution_spec__test-grpc.md_merged.snap +++ b/tests/core/snapshots/test-grpc.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server(port: 8000) @upstream(baseURL: "http://localhost:50051", batch: {delay: 10, headers: [], maxSize: 1000}) @link(id: "news", src: "news.proto", type: Protobuf) { diff --git a/tests/snapshots/execution_spec__test-http-baseurl.md_client.snap b/tests/core/snapshots/test-http-baseurl.md_client.snap similarity index 85% rename from tests/snapshots/execution_spec__test-http-baseurl.md_client.snap rename to tests/core/snapshots/test-http-baseurl.md_client.snap index c00421d8f4..9387751799 100644 --- a/tests/snapshots/execution_spec__test-http-baseurl.md_client.snap +++ b/tests/core/snapshots/test-http-baseurl.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__test-http-baseurl.md_merged.snap b/tests/core/snapshots/test-http-baseurl.md_merged.snap similarity index 86% rename from tests/snapshots/execution_spec__test-http-baseurl.md_merged.snap rename to tests/core/snapshots/test-http-baseurl.md_merged.snap index 65cf378264..342c76e8a3 100644 --- a/tests/snapshots/execution_spec__test-http-baseurl.md_merged.snap +++ b/tests/core/snapshots/test-http-baseurl.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "http://abc.com") { diff --git a/tests/snapshots/execution_spec__test-http-headers.md_client.snap b/tests/core/snapshots/test-http-headers.md_client.snap similarity index 84% rename from tests/snapshots/execution_spec__test-http-headers.md_client.snap rename to tests/core/snapshots/test-http-headers.md_client.snap index 98032c71c4..374d170a70 100644 --- a/tests/snapshots/execution_spec__test-http-headers.md_client.snap +++ b/tests/core/snapshots/test-http-headers.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__test-http-headers.md_merged.snap b/tests/core/snapshots/test-http-headers.md_merged.snap similarity index 85% rename from tests/snapshots/execution_spec__test-http-headers.md_merged.snap rename to tests/core/snapshots/test-http-headers.md_merged.snap index 8f082a2028..b94cdc26fb 100644 --- a/tests/snapshots/execution_spec__test-http-headers.md_merged.snap +++ b/tests/core/snapshots/test-http-headers.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "http://localhost:4000") { diff --git a/tests/snapshots/execution_spec__test-http-tmpl.md_client.snap b/tests/core/snapshots/test-http-tmpl.md_client.snap similarity index 89% rename from tests/snapshots/execution_spec__test-http-tmpl.md_client.snap rename to tests/core/snapshots/test-http-tmpl.md_client.snap index c0736cc312..5f5cff8b2f 100644 --- a/tests/snapshots/execution_spec__test-http-tmpl.md_client.snap +++ b/tests/core/snapshots/test-http-tmpl.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__test-http-tmpl.md_merged.snap b/tests/core/snapshots/test-http-tmpl.md_merged.snap similarity index 91% rename from tests/snapshots/execution_spec__test-http-tmpl.md_merged.snap rename to tests/core/snapshots/test-http-tmpl.md_merged.snap index deb80e3441..0ad2f3d3be 100644 --- a/tests/snapshots/execution_spec__test-http-tmpl.md_merged.snap +++ b/tests/core/snapshots/test-http-tmpl.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { diff --git a/tests/snapshots/execution_spec__test-http-with-mustache-expr.md_test_0.snap b/tests/core/snapshots/test-http-with-mustache-expr.md_0.snap similarity index 89% rename from tests/snapshots/execution_spec__test-http-with-mustache-expr.md_test_0.snap rename to tests/core/snapshots/test-http-with-mustache-expr.md_0.snap index 299eae2a4d..1f4ae40457 100644 --- a/tests/snapshots/execution_spec__test-http-with-mustache-expr.md_test_0.snap +++ b/tests/core/snapshots/test-http-with-mustache-expr.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__test-http-with-mustache-expr.md_client.snap b/tests/core/snapshots/test-http-with-mustache-expr.md_client.snap similarity index 88% rename from tests/snapshots/execution_spec__test-http-with-mustache-expr.md_client.snap rename to tests/core/snapshots/test-http-with-mustache-expr.md_client.snap index c8498e4143..3ab88b233b 100644 --- a/tests/snapshots/execution_spec__test-http-with-mustache-expr.md_client.snap +++ b/tests/core/snapshots/test-http-with-mustache-expr.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- type A { diff --git a/tests/snapshots/execution_spec__test-http-with-mustache-expr.md_merged.snap b/tests/core/snapshots/test-http-with-mustache-expr.md_merged.snap similarity index 90% rename from tests/snapshots/execution_spec__test-http-with-mustache-expr.md_merged.snap rename to tests/core/snapshots/test-http-with-mustache-expr.md_merged.snap index b7b1b080e8..c94d63a06f 100644 --- a/tests/snapshots/execution_spec__test-http-with-mustache-expr.md_merged.snap +++ b/tests/core/snapshots/test-http-with-mustache-expr.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream { diff --git a/tests/snapshots/execution_spec__test-http.md_client.snap b/tests/core/snapshots/test-http.md_client.snap similarity index 86% rename from tests/snapshots/execution_spec__test-http.md_client.snap rename to tests/core/snapshots/test-http.md_client.snap index c1d625a8c9..1d4b0f34bb 100644 --- a/tests/snapshots/execution_spec__test-http.md_client.snap +++ b/tests/core/snapshots/test-http.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__test-http.md_merged.snap b/tests/core/snapshots/test-http.md_merged.snap similarity index 86% rename from tests/snapshots/execution_spec__test-http.md_merged.snap rename to tests/core/snapshots/test-http.md_merged.snap index 7e75c573bb..3cc961ecb4 100644 --- a/tests/snapshots/execution_spec__test-http.md_merged.snap +++ b/tests/core/snapshots/test-http.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { diff --git a/tests/snapshots/execution_spec__test-omit.md_client.snap b/tests/core/snapshots/test-inline-list.md_client.snap similarity index 85% rename from tests/snapshots/execution_spec__test-omit.md_client.snap rename to tests/core/snapshots/test-inline-list.md_client.snap index 01443ed483..9308d7eedc 100644 --- a/tests/snapshots/execution_spec__test-omit.md_client.snap +++ b/tests/core/snapshots/test-inline-list.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- type B { diff --git a/tests/snapshots/execution_spec__test-inline-list.md_merged.snap b/tests/core/snapshots/test-inline-list.md_merged.snap similarity index 90% rename from tests/snapshots/execution_spec__test-inline-list.md_merged.snap rename to tests/core/snapshots/test-inline-list.md_merged.snap index edfd9e8fcd..ec95563c26 100644 --- a/tests/snapshots/execution_spec__test-inline-list.md_merged.snap +++ b/tests/core/snapshots/test-inline-list.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { diff --git a/tests/snapshots/execution_spec__test-inline-list.md_client.snap b/tests/core/snapshots/test-inline.md_client.snap similarity index 85% rename from tests/snapshots/execution_spec__test-inline-list.md_client.snap rename to tests/core/snapshots/test-inline.md_client.snap index 01443ed483..9308d7eedc 100644 --- a/tests/snapshots/execution_spec__test-inline-list.md_client.snap +++ b/tests/core/snapshots/test-inline.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- type B { diff --git a/tests/snapshots/execution_spec__test-inline.md_merged.snap b/tests/core/snapshots/test-inline.md_merged.snap similarity index 90% rename from tests/snapshots/execution_spec__test-inline.md_merged.snap rename to tests/core/snapshots/test-inline.md_merged.snap index 358851e6ca..cdb38002a2 100644 --- a/tests/snapshots/execution_spec__test-inline.md_merged.snap +++ b/tests/core/snapshots/test-inline.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { diff --git a/tests/snapshots/execution_spec__test-interface-result.md_client.snap b/tests/core/snapshots/test-interface-result.md_client.snap similarity index 88% rename from tests/snapshots/execution_spec__test-interface-result.md_client.snap rename to tests/core/snapshots/test-interface-result.md_client.snap index bb4dfdd777..f374cc4b72 100644 --- a/tests/snapshots/execution_spec__test-interface-result.md_client.snap +++ b/tests/core/snapshots/test-interface-result.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- type B implements IA { diff --git a/tests/snapshots/execution_spec__test-interface-result.md_merged.snap b/tests/core/snapshots/test-interface-result.md_merged.snap similarity index 88% rename from tests/snapshots/execution_spec__test-interface-result.md_merged.snap rename to tests/core/snapshots/test-interface-result.md_merged.snap index 3412106bcb..f8322407d6 100644 --- a/tests/snapshots/execution_spec__test-interface-result.md_merged.snap +++ b/tests/core/snapshots/test-interface-result.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { diff --git a/tests/snapshots/execution_spec__test-interface.md_client.snap b/tests/core/snapshots/test-interface.md_client.snap similarity index 88% rename from tests/snapshots/execution_spec__test-interface.md_client.snap rename to tests/core/snapshots/test-interface.md_client.snap index cda634864d..c62d23aa48 100644 --- a/tests/snapshots/execution_spec__test-interface.md_client.snap +++ b/tests/core/snapshots/test-interface.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- type B implements IA { diff --git a/tests/snapshots/execution_spec__test-interface.md_merged.snap b/tests/core/snapshots/test-interface.md_merged.snap similarity index 88% rename from tests/snapshots/execution_spec__test-interface.md_merged.snap rename to tests/core/snapshots/test-interface.md_merged.snap index 062f7daea9..a01ce94e07 100644 --- a/tests/snapshots/execution_spec__test-interface.md_merged.snap +++ b/tests/core/snapshots/test-interface.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { diff --git a/tests/snapshots/execution_spec__test-js-request-reponse.md_test_0.snap b/tests/core/snapshots/test-js-request-reponse.md_0.snap similarity index 84% rename from tests/snapshots/execution_spec__test-js-request-reponse.md_test_0.snap rename to tests/core/snapshots/test-js-request-reponse.md_0.snap index 8c91ac6997..feebdc4cda 100644 --- a/tests/snapshots/execution_spec__test-js-request-reponse.md_test_0.snap +++ b/tests/core/snapshots/test-js-request-reponse.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__test-js-request-reponse.md_client.snap b/tests/core/snapshots/test-js-request-reponse.md_client.snap similarity index 85% rename from tests/snapshots/execution_spec__test-js-request-reponse.md_client.snap rename to tests/core/snapshots/test-js-request-reponse.md_client.snap index 1d9cea2dc3..234db86478 100644 --- a/tests/snapshots/execution_spec__test-js-request-reponse.md_client.snap +++ b/tests/core/snapshots/test-js-request-reponse.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__test-js-request-reponse.md_merged.snap b/tests/core/snapshots/test-js-request-reponse.md_merged.snap similarity index 89% rename from tests/snapshots/execution_spec__test-js-request-reponse.md_merged.snap rename to tests/core/snapshots/test-js-request-reponse.md_merged.snap index 3102d752cb..74acf0b4ff 100644 --- a/tests/snapshots/execution_spec__test-js-request-reponse.md_merged.snap +++ b/tests/core/snapshots/test-js-request-reponse.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream @link(src: "test.js", type: Script) { diff --git a/tests/snapshots/execution_spec__test-merge-batch.md_merged.snap b/tests/core/snapshots/test-merge-batch.md_merged.snap similarity index 85% rename from tests/snapshots/execution_spec__test-merge-batch.md_merged.snap rename to tests/core/snapshots/test-merge-batch.md_merged.snap index e1884682b8..c5fc6e4c4a 100644 --- a/tests/snapshots/execution_spec__test-merge-batch.md_merged.snap +++ b/tests/core/snapshots/test-merge-batch.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(batch: {delay: 5, headers: ["a", "b", "c"], maxSize: 100}) { diff --git a/tests/snapshots/execution_spec__test-merge-nested.md_merged.snap b/tests/core/snapshots/test-merge-nested.md_merged.snap similarity index 87% rename from tests/snapshots/execution_spec__test-merge-nested.md_merged.snap rename to tests/core/snapshots/test-merge-nested.md_merged.snap index 781472cc03..55c1e360a9 100644 --- a/tests/snapshots/execution_spec__test-merge-nested.md_merged.snap +++ b/tests/core/snapshots/test-merge-nested.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "http://abc.com") { diff --git a/tests/snapshots/execution_spec__test-merge-query.md_merged.snap b/tests/core/snapshots/test-merge-query.md_merged.snap similarity index 88% rename from tests/snapshots/execution_spec__test-merge-query.md_merged.snap rename to tests/core/snapshots/test-merge-query.md_merged.snap index 9e2dc2990a..56a1e62198 100644 --- a/tests/snapshots/execution_spec__test-merge-query.md_merged.snap +++ b/tests/core/snapshots/test-merge-query.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server(port: 8000) @upstream(baseURL: "http://abc.com", proxy: {url: "http://localhost:3000"}) { diff --git a/tests/snapshots/execution_spec__test-merge-right-with-link-config.md_client.snap b/tests/core/snapshots/test-merge-right-with-link-config.md_client.snap similarity index 85% rename from tests/snapshots/execution_spec__test-merge-right-with-link-config.md_client.snap rename to tests/core/snapshots/test-merge-right-with-link-config.md_client.snap index ca6c4ff3a0..40d931b741 100644 --- a/tests/snapshots/execution_spec__test-merge-right-with-link-config.md_client.snap +++ b/tests/core/snapshots/test-merge-right-with-link-config.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__test-merge-right-with-link-config.md_merged.snap b/tests/core/snapshots/test-merge-right-with-link-config.md_merged.snap similarity index 86% rename from tests/snapshots/execution_spec__test-merge-right-with-link-config.md_merged.snap rename to tests/core/snapshots/test-merge-right-with-link-config.md_merged.snap index 095502b241..752503e827 100644 --- a/tests/snapshots/execution_spec__test-merge-right-with-link-config.md_merged.snap +++ b/tests/core/snapshots/test-merge-right-with-link-config.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(allowedHeaders: ["Authorization"]) @link(src: "stripe-types.graphql", type: Config) { diff --git a/tests/snapshots/execution_spec__test-merge-server-sdl.md_client.snap b/tests/core/snapshots/test-merge-server-sdl.md_client.snap similarity index 86% rename from tests/snapshots/execution_spec__test-merge-server-sdl.md_client.snap rename to tests/core/snapshots/test-merge-server-sdl.md_client.snap index c1d625a8c9..1d4b0f34bb 100644 --- a/tests/snapshots/execution_spec__test-merge-server-sdl.md_client.snap +++ b/tests/core/snapshots/test-merge-server-sdl.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__test-merge-server-sdl.md_merged.snap b/tests/core/snapshots/test-merge-server-sdl.md_merged.snap similarity index 86% rename from tests/snapshots/execution_spec__test-merge-server-sdl.md_merged.snap rename to tests/core/snapshots/test-merge-server-sdl.md_merged.snap index 7e75c573bb..3cc961ecb4 100644 --- a/tests/snapshots/execution_spec__test-merge-server-sdl.md_merged.snap +++ b/tests/core/snapshots/test-merge-server-sdl.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { diff --git a/tests/snapshots/execution_spec__test-merge-union.md_merged.snap b/tests/core/snapshots/test-merge-union.md_merged.snap similarity index 90% rename from tests/snapshots/execution_spec__test-merge-union.md_merged.snap rename to tests/core/snapshots/test-merge-union.md_merged.snap index 38474eedf0..05a24d2691 100644 --- a/tests/snapshots/execution_spec__test-merge-union.md_merged.snap +++ b/tests/core/snapshots/test-merge-union.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { diff --git a/tests/snapshots/execution_spec__test-modify.md_client.snap b/tests/core/snapshots/test-modify.md_client.snap similarity index 86% rename from tests/snapshots/execution_spec__test-modify.md_client.snap rename to tests/core/snapshots/test-modify.md_client.snap index b97d9f3764..8d46ada4a5 100644 --- a/tests/snapshots/execution_spec__test-modify.md_client.snap +++ b/tests/core/snapshots/test-modify.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__test-modify.md_merged.snap b/tests/core/snapshots/test-modify.md_merged.snap similarity index 87% rename from tests/snapshots/execution_spec__test-modify.md_merged.snap rename to tests/core/snapshots/test-modify.md_merged.snap index 501b1177ad..88436fcb55 100644 --- a/tests/snapshots/execution_spec__test-modify.md_merged.snap +++ b/tests/core/snapshots/test-modify.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { diff --git a/tests/snapshots/execution_spec__test-multi-interface.md_client.snap b/tests/core/snapshots/test-multi-interface.md_client.snap similarity index 89% rename from tests/snapshots/execution_spec__test-multi-interface.md_client.snap rename to tests/core/snapshots/test-multi-interface.md_client.snap index 213b5f84eb..b3e62e99f4 100644 --- a/tests/snapshots/execution_spec__test-multi-interface.md_client.snap +++ b/tests/core/snapshots/test-multi-interface.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- type B implements IA & IB { diff --git a/tests/snapshots/execution_spec__test-multi-interface.md_merged.snap b/tests/core/snapshots/test-multi-interface.md_merged.snap similarity index 89% rename from tests/snapshots/execution_spec__test-multi-interface.md_merged.snap rename to tests/core/snapshots/test-multi-interface.md_merged.snap index fe90985a1c..f7edbcebf6 100644 --- a/tests/snapshots/execution_spec__test-multi-interface.md_merged.snap +++ b/tests/core/snapshots/test-multi-interface.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { diff --git a/tests/snapshots/execution_spec__test-nested-input.md_client.snap b/tests/core/snapshots/test-nested-input.md_client.snap similarity index 89% rename from tests/snapshots/execution_spec__test-nested-input.md_client.snap rename to tests/core/snapshots/test-nested-input.md_client.snap index 32cdd95884..5ea104885a 100644 --- a/tests/snapshots/execution_spec__test-nested-input.md_client.snap +++ b/tests/core/snapshots/test-nested-input.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- input A { diff --git a/tests/snapshots/execution_spec__test-nested-input.md_merged.snap b/tests/core/snapshots/test-nested-input.md_merged.snap similarity index 87% rename from tests/snapshots/execution_spec__test-nested-input.md_merged.snap rename to tests/core/snapshots/test-nested-input.md_merged.snap index 83a238a9cf..13f30f666d 100644 --- a/tests/snapshots/execution_spec__test-nested-input.md_merged.snap +++ b/tests/core/snapshots/test-nested-input.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream { diff --git a/tests/snapshots/execution_spec__test-nested-link.md_client.snap b/tests/core/snapshots/test-nested-link.md_client.snap similarity index 90% rename from tests/snapshots/execution_spec__test-nested-link.md_client.snap rename to tests/core/snapshots/test-nested-link.md_client.snap index 6ecb97cbf0..7d41dd312a 100644 --- a/tests/snapshots/execution_spec__test-nested-link.md_client.snap +++ b/tests/core/snapshots/test-nested-link.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__test-nested-link.md_merged.snap b/tests/core/snapshots/test-nested-link.md_merged.snap similarity index 79% rename from tests/snapshots/execution_spec__test-nested-link.md_merged.snap rename to tests/core/snapshots/test-nested-link.md_merged.snap index b7fd3efe85..7c13bd430b 100644 --- a/tests/snapshots/execution_spec__test-nested-link.md_merged.snap +++ b/tests/core/snapshots/test-nested-link.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream @link(src: "graphql-with-link.graphql", type: Config) { diff --git a/tests/snapshots/execution_spec__test-nested-value.md_client.snap b/tests/core/snapshots/test-nested-value.md_client.snap similarity index 88% rename from tests/snapshots/execution_spec__test-nested-value.md_client.snap rename to tests/core/snapshots/test-nested-value.md_client.snap index e7c1878cbe..fc6739e632 100644 --- a/tests/snapshots/execution_spec__test-nested-value.md_client.snap +++ b/tests/core/snapshots/test-nested-value.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__test-nested-value.md_merged.snap b/tests/core/snapshots/test-nested-value.md_merged.snap similarity index 91% rename from tests/snapshots/execution_spec__test-nested-value.md_merged.snap rename to tests/core/snapshots/test-nested-value.md_merged.snap index e2f70ce7e5..954ba8405b 100644 --- a/tests/snapshots/execution_spec__test-nested-value.md_merged.snap +++ b/tests/core/snapshots/test-nested-value.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { diff --git a/tests/snapshots/execution_spec__test-null-in-object.md_test_0.snap b/tests/core/snapshots/test-null-in-array.md_0.snap similarity index 83% rename from tests/snapshots/execution_spec__test-null-in-object.md_test_0.snap rename to tests/core/snapshots/test-null-in-array.md_0.snap index 611acae330..4d68912c6b 100644 --- a/tests/snapshots/execution_spec__test-null-in-object.md_test_0.snap +++ b/tests/core/snapshots/test-null-in-array.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__test-null-in-array.md_client.snap b/tests/core/snapshots/test-null-in-array.md_client.snap similarity index 87% rename from tests/snapshots/execution_spec__test-null-in-array.md_client.snap rename to tests/core/snapshots/test-null-in-array.md_client.snap index 285311d5cb..b452d72d74 100644 --- a/tests/snapshots/execution_spec__test-null-in-array.md_client.snap +++ b/tests/core/snapshots/test-null-in-array.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- type Company { diff --git a/tests/snapshots/execution_spec__test-null-in-array.md_merged.snap b/tests/core/snapshots/test-null-in-array.md_merged.snap similarity index 86% rename from tests/snapshots/execution_spec__test-null-in-array.md_merged.snap rename to tests/core/snapshots/test-null-in-array.md_merged.snap index 36cf068b16..d11138e7df 100644 --- a/tests/snapshots/execution_spec__test-null-in-array.md_merged.snap +++ b/tests/core/snapshots/test-null-in-array.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream { diff --git a/tests/snapshots/execution_spec__test-null-in-array.md_test_0.snap b/tests/core/snapshots/test-null-in-object.md_0.snap similarity index 83% rename from tests/snapshots/execution_spec__test-null-in-array.md_test_0.snap rename to tests/core/snapshots/test-null-in-object.md_0.snap index 611acae330..4d68912c6b 100644 --- a/tests/snapshots/execution_spec__test-null-in-array.md_test_0.snap +++ b/tests/core/snapshots/test-null-in-object.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__test-null-in-object.md_client.snap b/tests/core/snapshots/test-null-in-object.md_client.snap similarity index 87% rename from tests/snapshots/execution_spec__test-null-in-object.md_client.snap rename to tests/core/snapshots/test-null-in-object.md_client.snap index 3cf48f41f5..b2bd05a708 100644 --- a/tests/snapshots/execution_spec__test-null-in-object.md_client.snap +++ b/tests/core/snapshots/test-null-in-object.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- type Company { diff --git a/tests/snapshots/execution_spec__test-null-in-object.md_merged.snap b/tests/core/snapshots/test-null-in-object.md_merged.snap similarity index 86% rename from tests/snapshots/execution_spec__test-null-in-object.md_merged.snap rename to tests/core/snapshots/test-null-in-object.md_merged.snap index 877f21dbc2..e5a749bb3e 100644 --- a/tests/snapshots/execution_spec__test-null-in-object.md_merged.snap +++ b/tests/core/snapshots/test-null-in-object.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream { diff --git a/tests/snapshots/execution_spec__test-inline.md_client.snap b/tests/core/snapshots/test-omit-list.md_client.snap similarity index 85% rename from tests/snapshots/execution_spec__test-inline.md_client.snap rename to tests/core/snapshots/test-omit-list.md_client.snap index 01443ed483..9308d7eedc 100644 --- a/tests/snapshots/execution_spec__test-inline.md_client.snap +++ b/tests/core/snapshots/test-omit-list.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- type B { diff --git a/tests/snapshots/execution_spec__test-omit-list.md_merged.snap b/tests/core/snapshots/test-omit-list.md_merged.snap similarity index 90% rename from tests/snapshots/execution_spec__test-omit-list.md_merged.snap rename to tests/core/snapshots/test-omit-list.md_merged.snap index 7ba329d6e4..672f7a5282 100644 --- a/tests/snapshots/execution_spec__test-omit-list.md_merged.snap +++ b/tests/core/snapshots/test-omit-list.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { diff --git a/tests/snapshots/execution_spec__test-omit-list.md_client.snap b/tests/core/snapshots/test-omit.md_client.snap similarity index 85% rename from tests/snapshots/execution_spec__test-omit-list.md_client.snap rename to tests/core/snapshots/test-omit.md_client.snap index 01443ed483..9308d7eedc 100644 --- a/tests/snapshots/execution_spec__test-omit-list.md_client.snap +++ b/tests/core/snapshots/test-omit.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- type B { diff --git a/tests/snapshots/execution_spec__test-omit.md_merged.snap b/tests/core/snapshots/test-omit.md_merged.snap similarity index 89% rename from tests/snapshots/execution_spec__test-omit.md_merged.snap rename to tests/core/snapshots/test-omit.md_merged.snap index f15e34f235..bb6a6a4f07 100644 --- a/tests/snapshots/execution_spec__test-omit.md_merged.snap +++ b/tests/core/snapshots/test-omit.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { diff --git a/tests/snapshots/execution_spec__test-params-as-body.md_test_0.snap b/tests/core/snapshots/test-params-as-body.md_0.snap similarity index 86% rename from tests/snapshots/execution_spec__test-params-as-body.md_test_0.snap rename to tests/core/snapshots/test-params-as-body.md_0.snap index 2a22411572..79e85dfc9a 100644 --- a/tests/snapshots/execution_spec__test-params-as-body.md_test_0.snap +++ b/tests/core/snapshots/test-params-as-body.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__test-params-as-body.md_client.snap b/tests/core/snapshots/test-params-as-body.md_client.snap similarity index 88% rename from tests/snapshots/execution_spec__test-params-as-body.md_client.snap rename to tests/core/snapshots/test-params-as-body.md_client.snap index c1991a68eb..926203748b 100644 --- a/tests/snapshots/execution_spec__test-params-as-body.md_client.snap +++ b/tests/core/snapshots/test-params-as-body.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__test-params-as-body.md_merged.snap b/tests/core/snapshots/test-params-as-body.md_merged.snap similarity index 90% rename from tests/snapshots/execution_spec__test-params-as-body.md_merged.snap rename to tests/core/snapshots/test-params-as-body.md_merged.snap index fdd1b67bac..8d9f37e2a6 100644 --- a/tests/snapshots/execution_spec__test-params-as-body.md_merged.snap +++ b/tests/core/snapshots/test-params-as-body.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server(graphiql: true, port: 8000) @upstream(baseURL: "http://jsonplaceholder.typicode.com") { diff --git a/tests/snapshots/execution_spec__test-query-documentation.md_client.snap b/tests/core/snapshots/test-query-documentation.md_client.snap similarity index 85% rename from tests/snapshots/execution_spec__test-query-documentation.md_client.snap rename to tests/core/snapshots/test-query-documentation.md_client.snap index 1516100009..bfbe74a5fb 100644 --- a/tests/snapshots/execution_spec__test-query-documentation.md_client.snap +++ b/tests/core/snapshots/test-query-documentation.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__test-query-documentation.md_merged.snap b/tests/core/snapshots/test-query-documentation.md_merged.snap similarity index 86% rename from tests/snapshots/execution_spec__test-query-documentation.md_merged.snap rename to tests/core/snapshots/test-query-documentation.md_merged.snap index ecbc0275e9..10a23ea587 100644 --- a/tests/snapshots/execution_spec__test-query-documentation.md_merged.snap +++ b/tests/core/snapshots/test-query-documentation.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { diff --git a/tests/snapshots/execution_spec__test-query.md_client.snap b/tests/core/snapshots/test-query.md_client.snap similarity index 84% rename from tests/snapshots/execution_spec__test-query.md_client.snap rename to tests/core/snapshots/test-query.md_client.snap index 98032c71c4..374d170a70 100644 --- a/tests/snapshots/execution_spec__test-query.md_client.snap +++ b/tests/core/snapshots/test-query.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__test-query.md_merged.snap b/tests/core/snapshots/test-query.md_merged.snap similarity index 84% rename from tests/snapshots/execution_spec__test-query.md_merged.snap rename to tests/core/snapshots/test-query.md_merged.snap index a6285a3b09..a1301a03b5 100644 --- a/tests/snapshots/execution_spec__test-query.md_merged.snap +++ b/tests/core/snapshots/test-query.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { diff --git a/tests/snapshots/execution_spec__test-ref-other.md_client.snap b/tests/core/snapshots/test-ref-other.md_client.snap similarity index 88% rename from tests/snapshots/execution_spec__test-ref-other.md_client.snap rename to tests/core/snapshots/test-ref-other.md_client.snap index 848d82384b..78c6f4d5f1 100644 --- a/tests/snapshots/execution_spec__test-ref-other.md_client.snap +++ b/tests/core/snapshots/test-ref-other.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__test-ref-other.md_merged.snap b/tests/core/snapshots/test-ref-other.md_merged.snap similarity index 88% rename from tests/snapshots/execution_spec__test-ref-other.md_merged.snap rename to tests/core/snapshots/test-ref-other.md_merged.snap index 6ae6460ed4..d70cae6042 100644 --- a/tests/snapshots/execution_spec__test-ref-other.md_merged.snap +++ b/tests/core/snapshots/test-ref-other.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server(port: 8000) @upstream(baseURL: "http://jsonplaceholder.typicode.com") { diff --git a/tests/snapshots/execution_spec__test-response-header-merge.md_merged.snap b/tests/core/snapshots/test-response-header-merge.md_merged.snap similarity index 88% rename from tests/snapshots/execution_spec__test-response-header-merge.md_merged.snap rename to tests/core/snapshots/test-response-header-merge.md_merged.snap index 7645fea9ce..d8808602d5 100644 --- a/tests/snapshots/execution_spec__test-response-header-merge.md_merged.snap +++ b/tests/core/snapshots/test-response-header-merge.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server(headers: {custom: [{key: "a", value: "a"}, {key: "a", value: "b"}]}) @upstream { diff --git a/tests/snapshots/execution_spec__test-scalars.md_test_0.snap b/tests/core/snapshots/test-scalars.md_0.snap similarity index 84% rename from tests/snapshots/execution_spec__test-scalars.md_test_0.snap rename to tests/core/snapshots/test-scalars.md_0.snap index 2b6b008df5..f9589339d0 100644 --- a/tests/snapshots/execution_spec__test-scalars.md_test_0.snap +++ b/tests/core/snapshots/test-scalars.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__test-scalars.md_test_1.snap b/tests/core/snapshots/test-scalars.md_1.snap similarity index 84% rename from tests/snapshots/execution_spec__test-scalars.md_test_1.snap rename to tests/core/snapshots/test-scalars.md_1.snap index b1a613afcf..500fc09ad1 100644 --- a/tests/snapshots/execution_spec__test-scalars.md_test_1.snap +++ b/tests/core/snapshots/test-scalars.md_1.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__test-scalars.md_test_2.snap b/tests/core/snapshots/test-scalars.md_2.snap similarity index 85% rename from tests/snapshots/execution_spec__test-scalars.md_test_2.snap rename to tests/core/snapshots/test-scalars.md_2.snap index e4afce338b..4f94abe2af 100644 --- a/tests/snapshots/execution_spec__test-scalars.md_test_2.snap +++ b/tests/core/snapshots/test-scalars.md_2.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__test-scalars.md_test_3.snap b/tests/core/snapshots/test-scalars.md_3.snap similarity index 85% rename from tests/snapshots/execution_spec__test-scalars.md_test_3.snap rename to tests/core/snapshots/test-scalars.md_3.snap index 372f6a74b0..e40c6e03cc 100644 --- a/tests/snapshots/execution_spec__test-scalars.md_test_3.snap +++ b/tests/core/snapshots/test-scalars.md_3.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__test-scalars.md_test_4.snap b/tests/core/snapshots/test-scalars.md_4.snap similarity index 93% rename from tests/snapshots/execution_spec__test-scalars.md_test_4.snap rename to tests/core/snapshots/test-scalars.md_4.snap index a59ad47ddc..f05fab41e1 100644 --- a/tests/snapshots/execution_spec__test-scalars.md_test_4.snap +++ b/tests/core/snapshots/test-scalars.md_4.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__test-scalars.md_test_6.snap b/tests/core/snapshots/test-scalars.md_5.snap similarity index 93% rename from tests/snapshots/execution_spec__test-scalars.md_test_6.snap rename to tests/core/snapshots/test-scalars.md_5.snap index b8191a4710..8b0ea58a37 100644 --- a/tests/snapshots/execution_spec__test-scalars.md_test_6.snap +++ b/tests/core/snapshots/test-scalars.md_5.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__test-scalars.md_test_5.snap b/tests/core/snapshots/test-scalars.md_6.snap similarity index 93% rename from tests/snapshots/execution_spec__test-scalars.md_test_5.snap rename to tests/core/snapshots/test-scalars.md_6.snap index b8191a4710..8b0ea58a37 100644 --- a/tests/snapshots/execution_spec__test-scalars.md_test_5.snap +++ b/tests/core/snapshots/test-scalars.md_6.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__test-scalars.md_test_7.snap b/tests/core/snapshots/test-scalars.md_7.snap similarity index 93% rename from tests/snapshots/execution_spec__test-scalars.md_test_7.snap rename to tests/core/snapshots/test-scalars.md_7.snap index 63f505d5ad..31a1a3502f 100644 --- a/tests/snapshots/execution_spec__test-scalars.md_test_7.snap +++ b/tests/core/snapshots/test-scalars.md_7.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__test-scalars.md_test_8.snap b/tests/core/snapshots/test-scalars.md_8.snap similarity index 93% rename from tests/snapshots/execution_spec__test-scalars.md_test_8.snap rename to tests/core/snapshots/test-scalars.md_8.snap index 064486f525..4ab684e59e 100644 --- a/tests/snapshots/execution_spec__test-scalars.md_test_8.snap +++ b/tests/core/snapshots/test-scalars.md_8.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__test-scalars.md_client.snap b/tests/core/snapshots/test-scalars.md_client.snap similarity index 89% rename from tests/snapshots/execution_spec__test-scalars.md_client.snap rename to tests/core/snapshots/test-scalars.md_client.snap index 8e71d5cb24..12653f5f33 100644 --- a/tests/snapshots/execution_spec__test-scalars.md_client.snap +++ b/tests/core/snapshots/test-scalars.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__test-scalars.md_merged.snap b/tests/core/snapshots/test-scalars.md_merged.snap similarity index 93% rename from tests/snapshots/execution_spec__test-scalars.md_merged.snap rename to tests/core/snapshots/test-scalars.md_merged.snap index 0c1d7d83a1..69c62c196e 100644 --- a/tests/snapshots/execution_spec__test-scalars.md_merged.snap +++ b/tests/core/snapshots/test-scalars.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server(graphiql: true, hostname: "localhost", port: 8000) @upstream { diff --git a/tests/snapshots/execution_spec__test-server-base-types.md_merged.snap b/tests/core/snapshots/test-server-base-types.md_merged.snap similarity index 86% rename from tests/snapshots/execution_spec__test-server-base-types.md_merged.snap rename to tests/core/snapshots/test-server-base-types.md_merged.snap index bf786889b4..7174daba96 100644 --- a/tests/snapshots/execution_spec__test-server-base-types.md_merged.snap +++ b/tests/core/snapshots/test-server-base-types.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server(port: 8000) @upstream(baseURL: "http://abc.com", proxy: {url: "http://localhost:3000"}) { diff --git a/tests/snapshots/execution_spec__test-server-vars.md_client.snap b/tests/core/snapshots/test-server-vars.md_client.snap similarity index 84% rename from tests/snapshots/execution_spec__test-server-vars.md_client.snap rename to tests/core/snapshots/test-server-vars.md_client.snap index 98032c71c4..374d170a70 100644 --- a/tests/snapshots/execution_spec__test-server-vars.md_client.snap +++ b/tests/core/snapshots/test-server-vars.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__test-server-vars.md_merged.snap b/tests/core/snapshots/test-server-vars.md_merged.snap similarity index 86% rename from tests/snapshots/execution_spec__test-server-vars.md_merged.snap rename to tests/core/snapshots/test-server-vars.md_merged.snap index cc35cd7bd6..4f83424678 100644 --- a/tests/snapshots/execution_spec__test-server-vars.md_merged.snap +++ b/tests/core/snapshots/test-server-vars.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server(vars: [{key: "foo", value: "bar"}]) @upstream(baseURL: "http://jsonplacheholder.typicode.com") { diff --git a/tests/snapshots/execution_spec__test-set-cookie-headers.md_test_0.snap b/tests/core/snapshots/test-set-cookie-headers.md_0.snap similarity index 89% rename from tests/snapshots/execution_spec__test-set-cookie-headers.md_test_0.snap rename to tests/core/snapshots/test-set-cookie-headers.md_0.snap index 9d0f9afeec..3353c44cf4 100644 --- a/tests/snapshots/execution_spec__test-set-cookie-headers.md_test_0.snap +++ b/tests/core/snapshots/test-set-cookie-headers.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__test-set-cookie-headers.md_client.snap b/tests/core/snapshots/test-set-cookie-headers.md_client.snap similarity index 90% rename from tests/snapshots/execution_spec__test-set-cookie-headers.md_client.snap rename to tests/core/snapshots/test-set-cookie-headers.md_client.snap index ea1bbf5089..cb11214253 100644 --- a/tests/snapshots/execution_spec__test-set-cookie-headers.md_client.snap +++ b/tests/core/snapshots/test-set-cookie-headers.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__test-set-cookie-headers.md_merged.snap b/tests/core/snapshots/test-set-cookie-headers.md_merged.snap similarity index 92% rename from tests/snapshots/execution_spec__test-set-cookie-headers.md_merged.snap rename to tests/core/snapshots/test-set-cookie-headers.md_merged.snap index b97ade4116..8660783954 100644 --- a/tests/snapshots/execution_spec__test-set-cookie-headers.md_merged.snap +++ b/tests/core/snapshots/test-set-cookie-headers.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server(headers: {setCookies: true}, graphiql: true, hostname: "0.0.0.0", port: 8080) @upstream(baseURL: "http://jsonplaceholder.typicode.com") { diff --git a/tests/snapshots/execution_spec__test-static-value.md_test_0.snap b/tests/core/snapshots/test-static-value.md_0.snap similarity index 86% rename from tests/snapshots/execution_spec__test-static-value.md_test_0.snap rename to tests/core/snapshots/test-static-value.md_0.snap index 0204fa30dc..a085a7c561 100644 --- a/tests/snapshots/execution_spec__test-static-value.md_test_0.snap +++ b/tests/core/snapshots/test-static-value.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__test-static-value.md_client.snap b/tests/core/snapshots/test-static-value.md_client.snap similarity index 86% rename from tests/snapshots/execution_spec__test-static-value.md_client.snap rename to tests/core/snapshots/test-static-value.md_client.snap index 2ae445a996..fd73bea4ae 100644 --- a/tests/snapshots/execution_spec__test-static-value.md_client.snap +++ b/tests/core/snapshots/test-static-value.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__test-static-value.md_merged.snap b/tests/core/snapshots/test-static-value.md_merged.snap similarity index 87% rename from tests/snapshots/execution_spec__test-static-value.md_merged.snap rename to tests/core/snapshots/test-static-value.md_merged.snap index 3ff90146b1..d4fb7c0f4c 100644 --- a/tests/snapshots/execution_spec__test-static-value.md_merged.snap +++ b/tests/core/snapshots/test-static-value.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream { diff --git a/tests/snapshots/execution_spec__test-tag.md_client.snap b/tests/core/snapshots/test-tag.md_client.snap similarity index 91% rename from tests/snapshots/execution_spec__test-tag.md_client.snap rename to tests/core/snapshots/test-tag.md_client.snap index c2704ce434..c38b4b5100 100644 --- a/tests/snapshots/execution_spec__test-tag.md_client.snap +++ b/tests/core/snapshots/test-tag.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__test-tag.md_merged.snap b/tests/core/snapshots/test-tag.md_merged.snap similarity index 93% rename from tests/snapshots/execution_spec__test-tag.md_merged.snap rename to tests/core/snapshots/test-tag.md_merged.snap index 6cd46d4019..f08a7d791d 100644 --- a/tests/snapshots/execution_spec__test-tag.md_merged.snap +++ b/tests/core/snapshots/test-tag.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { diff --git a/tests/snapshots/execution_spec__test-union.md_client.snap b/tests/core/snapshots/test-union.md_client.snap similarity index 88% rename from tests/snapshots/execution_spec__test-union.md_client.snap rename to tests/core/snapshots/test-union.md_client.snap index e9e1e630b0..fa316b3e59 100644 --- a/tests/snapshots/execution_spec__test-union.md_client.snap +++ b/tests/core/snapshots/test-union.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- type Bar { diff --git a/tests/snapshots/execution_spec__test-union.md_merged.snap b/tests/core/snapshots/test-union.md_merged.snap similarity index 89% rename from tests/snapshots/execution_spec__test-union.md_merged.snap rename to tests/core/snapshots/test-union.md_merged.snap index 2973f0c44f..ac9b0682f9 100644 --- a/tests/snapshots/execution_spec__test-union.md_merged.snap +++ b/tests/core/snapshots/test-union.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { diff --git a/tests/snapshots/execution_spec__test-upstream-headers.md_test_0.snap b/tests/core/snapshots/test-upstream-headers.md_0.snap similarity index 88% rename from tests/snapshots/execution_spec__test-upstream-headers.md_test_0.snap rename to tests/core/snapshots/test-upstream-headers.md_0.snap index 3042345c09..db824d6b4b 100644 --- a/tests/snapshots/execution_spec__test-upstream-headers.md_test_0.snap +++ b/tests/core/snapshots/test-upstream-headers.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__test-upstream-headers.md_client.snap b/tests/core/snapshots/test-upstream-headers.md_client.snap similarity index 85% rename from tests/snapshots/execution_spec__test-upstream-headers.md_client.snap rename to tests/core/snapshots/test-upstream-headers.md_client.snap index ef9095a633..5ba4bd7bd2 100644 --- a/tests/snapshots/execution_spec__test-upstream-headers.md_client.snap +++ b/tests/core/snapshots/test-upstream-headers.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__test-upstream-headers.md_merged.snap b/tests/core/snapshots/test-upstream-headers.md_merged.snap similarity index 87% rename from tests/snapshots/execution_spec__test-upstream-headers.md_merged.snap rename to tests/core/snapshots/test-upstream-headers.md_merged.snap index 41a9495bfe..eca1e38232 100644 --- a/tests/snapshots/execution_spec__test-upstream-headers.md_merged.snap +++ b/tests/core/snapshots/test-upstream-headers.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(allowedHeaders: ["X-bar", "x-foo"], baseURL: "http://jsonplaceholder.typicode.com") { diff --git a/tests/snapshots/execution_spec__test-upstream.md_client.snap b/tests/core/snapshots/test-upstream.md_client.snap similarity index 84% rename from tests/snapshots/execution_spec__test-upstream.md_client.snap rename to tests/core/snapshots/test-upstream.md_client.snap index 60f26910ce..246536f601 100644 --- a/tests/snapshots/execution_spec__test-upstream.md_client.snap +++ b/tests/core/snapshots/test-upstream.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__test-upstream.md_merged.snap b/tests/core/snapshots/test-upstream.md_merged.snap similarity index 86% rename from tests/snapshots/execution_spec__test-upstream.md_merged.snap rename to tests/core/snapshots/test-upstream.md_merged.snap index e4413038b9..1bf8df4afc 100644 --- a/tests/snapshots/execution_spec__test-upstream.md_merged.snap +++ b/tests/core/snapshots/test-upstream.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(proxy: {url: "http://localhost:8085"}) { diff --git a/tests/snapshots/execution_spec__batching-disabled.md_test_0.snap b/tests/core/snapshots/upstream-batching.md_0.snap similarity index 87% rename from tests/snapshots/execution_spec__batching-disabled.md_test_0.snap rename to tests/core/snapshots/upstream-batching.md_0.snap index c1db4d440d..e8bca1fdcc 100644 --- a/tests/snapshots/execution_spec__batching-disabled.md_test_0.snap +++ b/tests/core/snapshots/upstream-batching.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__upstream-batching.md_client.snap b/tests/core/snapshots/upstream-batching.md_client.snap similarity index 87% rename from tests/snapshots/execution_spec__upstream-batching.md_client.snap rename to tests/core/snapshots/upstream-batching.md_client.snap index 89319b393a..7c0bdf72e9 100644 --- a/tests/snapshots/execution_spec__upstream-batching.md_client.snap +++ b/tests/core/snapshots/upstream-batching.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__upstream-batching.md_merged.snap b/tests/core/snapshots/upstream-batching.md_merged.snap similarity index 91% rename from tests/snapshots/execution_spec__upstream-batching.md_merged.snap rename to tests/core/snapshots/upstream-batching.md_merged.snap index 5aa162b29f..96bc34ca2a 100644 --- a/tests/snapshots/execution_spec__upstream-batching.md_merged.snap +++ b/tests/core/snapshots/upstream-batching.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(batch: {delay: 1, headers: [], maxSize: 100}) { diff --git a/tests/snapshots/execution_spec__upstream-fail-request.md_test_0.snap b/tests/core/snapshots/upstream-fail-request.md_0.snap similarity index 91% rename from tests/snapshots/execution_spec__upstream-fail-request.md_test_0.snap rename to tests/core/snapshots/upstream-fail-request.md_0.snap index 0973768ee0..95fd0e3582 100644 --- a/tests/snapshots/execution_spec__upstream-fail-request.md_test_0.snap +++ b/tests/core/snapshots/upstream-fail-request.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__simple-graphql.md_client.snap b/tests/core/snapshots/upstream-fail-request.md_client.snap similarity index 86% rename from tests/snapshots/execution_spec__simple-graphql.md_client.snap rename to tests/core/snapshots/upstream-fail-request.md_client.snap index 84d2907e22..f8c9c2fa86 100644 --- a/tests/snapshots/execution_spec__simple-graphql.md_client.snap +++ b/tests/core/snapshots/upstream-fail-request.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__upstream-fail-request.md_merged.snap b/tests/core/snapshots/upstream-fail-request.md_merged.snap similarity index 86% rename from tests/snapshots/execution_spec__upstream-fail-request.md_merged.snap rename to tests/core/snapshots/upstream-fail-request.md_merged.snap index 822924f58f..fb720f6f46 100644 --- a/tests/snapshots/execution_spec__upstream-fail-request.md_merged.snap +++ b/tests/core/snapshots/upstream-fail-request.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream { diff --git a/tests/snapshots/execution_spec__showcase.md_test_0.snap b/tests/core/snapshots/with-args-url.md_0.snap similarity index 85% rename from tests/snapshots/execution_spec__showcase.md_test_0.snap rename to tests/core/snapshots/with-args-url.md_0.snap index c1d6f66212..13a20b3310 100644 --- a/tests/snapshots/execution_spec__showcase.md_test_0.snap +++ b/tests/core/snapshots/with-args-url.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__with-args-url.md_client.snap b/tests/core/snapshots/with-args-url.md_client.snap similarity index 87% rename from tests/snapshots/execution_spec__with-args-url.md_client.snap rename to tests/core/snapshots/with-args-url.md_client.snap index 33012a438b..a39792ca85 100644 --- a/tests/snapshots/execution_spec__with-args-url.md_client.snap +++ b/tests/core/snapshots/with-args-url.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__with-args-url.md_merged.snap b/tests/core/snapshots/with-args-url.md_merged.snap similarity index 89% rename from tests/snapshots/execution_spec__with-args-url.md_merged.snap rename to tests/core/snapshots/with-args-url.md_merged.snap index 44df311d08..90a785cd57 100644 --- a/tests/snapshots/execution_spec__with-args-url.md_merged.snap +++ b/tests/core/snapshots/with-args-url.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "http://jsonplaceholder.typicode.com") { diff --git a/tests/snapshots/execution_spec__with-args.md_test_0.snap b/tests/core/snapshots/with-args.md_0.snap similarity index 87% rename from tests/snapshots/execution_spec__with-args.md_test_0.snap rename to tests/core/snapshots/with-args.md_0.snap index 9e1032ec3c..47bfa75fff 100644 --- a/tests/snapshots/execution_spec__with-args.md_test_0.snap +++ b/tests/core/snapshots/with-args.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__with-args.md_client.snap b/tests/core/snapshots/with-args.md_client.snap similarity index 86% rename from tests/snapshots/execution_spec__with-args.md_client.snap rename to tests/core/snapshots/with-args.md_client.snap index 3842039749..4b24b72bbe 100644 --- a/tests/snapshots/execution_spec__with-args.md_client.snap +++ b/tests/core/snapshots/with-args.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__with-args.md_merged.snap b/tests/core/snapshots/with-args.md_merged.snap similarity index 88% rename from tests/snapshots/execution_spec__with-args.md_merged.snap rename to tests/core/snapshots/with-args.md_merged.snap index 4b29d398a0..8d4d6edafd 100644 --- a/tests/snapshots/execution_spec__with-args.md_merged.snap +++ b/tests/core/snapshots/with-args.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream { diff --git a/tests/snapshots/execution_spec__with-nesting.md_test_0.snap b/tests/core/snapshots/with-nesting.md_0.snap similarity index 91% rename from tests/snapshots/execution_spec__with-nesting.md_test_0.snap rename to tests/core/snapshots/with-nesting.md_0.snap index e99fb28e7e..29d1a1dfea 100644 --- a/tests/snapshots/execution_spec__with-nesting.md_test_0.snap +++ b/tests/core/snapshots/with-nesting.md_0.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: response --- { diff --git a/tests/snapshots/execution_spec__with-nesting.md_client.snap b/tests/core/snapshots/with-nesting.md_client.snap similarity index 91% rename from tests/snapshots/execution_spec__with-nesting.md_client.snap rename to tests/core/snapshots/with-nesting.md_client.snap index b7c8c5e8bc..762317c8a7 100644 --- a/tests/snapshots/execution_spec__with-nesting.md_client.snap +++ b/tests/core/snapshots/with-nesting.md_client.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: client --- scalar Date diff --git a/tests/snapshots/execution_spec__with-nesting.md_merged.snap b/tests/core/snapshots/with-nesting.md_merged.snap similarity index 92% rename from tests/snapshots/execution_spec__with-nesting.md_merged.snap rename to tests/core/snapshots/with-nesting.md_merged.snap index 99a69a6c1c..5a3a7c2cb0 100644 --- a/tests/snapshots/execution_spec__with-nesting.md_merged.snap +++ b/tests/core/snapshots/with-nesting.md_merged.snap @@ -1,5 +1,5 @@ --- -source: tests/execution_spec.rs +source: tests/core/spec.rs expression: merged --- schema @server @upstream(baseURL: "http://jsonplaceholder.typicode.com") { diff --git a/tests/core/spec.rs b/tests/core/spec.rs new file mode 100644 index 0000000000..1d8ff01960 --- /dev/null +++ b/tests/core/spec.rs @@ -0,0 +1,323 @@ +extern crate core; + +use std::collections::BTreeMap; +use std::path::Path; +use std::sync::Arc; +use std::{fs, panic}; + +use anyhow::Context; +use colored::Colorize; +use futures_util::future::join_all; +use hyper::{Body, Request}; +use serde::{Deserialize, Serialize}; +use tailcall::async_graphql_hyper::{GraphQLBatchRequest, GraphQLRequest}; +use tailcall::blueprint::Blueprint; +use tailcall::config::reader::ConfigReader; +use tailcall::config::{Config, ConfigModule, Source}; +use tailcall::http::{handle_request, AppContext}; +use tailcall::merge_right::MergeRight; +use tailcall::print_schema::print_schema; +use tailcall::valid::{Cause, ValidationError, Validator as _}; + +use super::file::File; +use super::http::Http; +use super::model::*; +use super::runtime::ExecutionSpec; +use crate::core::runtime; + +#[derive(Debug, Default, Deserialize, Serialize, PartialEq)] +struct SDLError { + message: String, + trace: Vec, + description: Option, +} + +impl<'a> From> for SDLError { + fn from(value: Cause<&'a str>) -> Self { + SDLError { + message: value.message.to_string(), + trace: value.trace.iter().map(|e| e.to_string()).collect(), + description: None, + } + } +} + +impl From> for SDLError { + fn from(value: Cause) -> Self { + SDLError { + message: value.message.to_string(), + trace: value.trace.iter().map(|e| e.to_string()).collect(), + description: value.description, + } + } +} + +async fn is_sdl_error(spec: ExecutionSpec, mock_http_client: Arc) -> bool { + if spec.sdl_error { + // errors: errors are expected, make sure they match + let (source, content) = &spec.server[0]; + + if !matches!(source, Source::GraphQL) { + panic!("Cannot use \"sdl error\" directive with a non-GraphQL server block."); + } + + let config = Config::from_sdl(content).to_result(); + + let config = match config { + Ok(config) => { + let mut runtime = runtime::create_runtime(mock_http_client, spec.env.clone(), None); + runtime.file = Arc::new(File::new(spec.clone())); + let reader = ConfigReader::init(runtime); + match reader.resolve(config, spec.path.parent()).await { + Ok(config) => Blueprint::try_from(&config), + Err(e) => Err(ValidationError::new(e.to_string())), + } + } + Err(e) => Err(e), + }; + + match config { + Ok(_) => { + tracing::error!("\terror FAIL"); + panic!( + "Spec {} {:?} with \"sdl error\" directive did not have a validation error.", + spec.name, spec.path + ); + } + Err(cause) => { + let errors: Vec = + cause.as_vec().iter().map(|e| e.to_owned().into()).collect(); + + let snapshot_name = format!("execution_spec__{}_errors", spec.safe_name); + + insta::assert_json_snapshot!(snapshot_name, errors); + } + }; + + return true; + } + false +} + +async fn check_server_config(spec: ExecutionSpec) -> Vec { + let mut server: Vec = Vec::with_capacity(spec.server.len()); + + for (i, (source, content)) in spec.server.iter().enumerate() { + let config = Config::from_source(source.to_owned(), content).unwrap_or_else(|e| { + panic!( + "Couldn't parse GraphQL in server definition #{} of {:#?}: {}", + i + 1, + spec.path, + e + ) + }); + + let config = Config::default().merge_right(config); + + // TODO: we should probably figure out a way to do this for every test + // but GraphQL identity checking is very hard, since a lot depends on the code + // style the re-serializing check gives us some of the advantages of the + // identity check too, but we are missing out on some by having it only + // enabled for either new tests that request it or old graphql_spec + // tests that were explicitly written with it in mind + if spec.check_identity { + if matches!(source, Source::GraphQL) { + let identity = config.to_sdl(); + + // \r is added automatically in windows, it's safe to replace it with \n + let content = content.replace("\r\n", "\n"); + + let path_str = spec.path.display().to_string(); + + let identity = tailcall_prettier::format( + identity, + tailcall_prettier::Parser::detect(path_str.as_str()).unwrap(), + ) + .await + .unwrap(); + + let content = tailcall_prettier::format( + content, + tailcall_prettier::Parser::detect(path_str.as_str()).unwrap(), + ) + .await + .unwrap(); + + pretty_assertions::assert_eq!( + identity, + content, + "Identity check failed for {:#?}", + spec.path, + ); + } else { + panic!( + "Spec {:#?} has \"check identity\" enabled, but its config isn't in GraphQL.", + spec.path + ); + } + } + + server.push(config); + } + server +} + +async fn run_query_tests_on_spec( + spec: ExecutionSpec, + server: Vec, + mock_http_client: Arc, +) { + if let Some(tests) = spec.test.as_ref() { + let app_ctx = spec + .app_context( + server.first().unwrap(), + spec.env.clone().unwrap_or_default(), + mock_http_client.clone(), + ) + .await; + + // test: Run test specs + + for (i, test) in tests.iter().enumerate() { + let response = run_test(app_ctx.clone(), test) + .await + .context(spec.path.to_str().unwrap().to_string()) + .unwrap(); + + let mut headers: BTreeMap = BTreeMap::new(); + + for (key, value) in response.headers() { + headers.insert(key.to_string(), value.to_str().unwrap().to_string()); + } + + let response: APIResponse = APIResponse { + status: response.status().clone().as_u16(), + headers, + body: serde_json::from_slice( + &hyper::body::to_bytes(response.into_body()).await.unwrap(), + ) + .unwrap_or(serde_json::Value::Null), + text_body: None, + }; + + let snapshot_name = format!("{}_{}", spec.safe_name, i); + + insta::assert_json_snapshot!(snapshot_name, response); + } + + mock_http_client.test_hits(&spec.path); + } +} + +async fn test_spec(spec: ExecutionSpec) { + // insta settings + let mut insta_settings = insta::Settings::clone_current(); + insta_settings.set_prepend_module_to_snapshot(false); + let _guard = insta::Settings::bind_to_scope(&insta_settings); + + let mock_http_client = Arc::new(Http::new(&spec)); + + // check sdl error if any + if is_sdl_error(spec.clone(), mock_http_client.clone()).await { + return; + } + + // Parse and validate all server configs + check for identity + let server = check_server_config(spec.clone()).await; + + // merged: Run merged specs + let merged = server + .iter() + .fold(Config::default(), |acc, c| acc.merge_right(c.clone())) + .to_sdl(); + + let snapshot_name = format!("{}_merged", spec.safe_name); + + insta::assert_snapshot!(snapshot_name, merged); + + // Resolve all configs + let mut runtime = runtime::create_runtime(mock_http_client.clone(), spec.env.clone(), None); + runtime.file = Arc::new(File::new(spec.clone())); + let reader = ConfigReader::init(runtime); + + let server: Vec = join_all( + server + .into_iter() + .map(|config| reader.resolve(config, spec.path.parent())), + ) + .await + .into_iter() + .enumerate() + .map(|(i, result)| { + result.unwrap_or_else(|e| { + panic!( + "Couldn't resolve GraphQL in server definition #{} of {:#?}: {}", + i + 1, + spec.path, + e + ) + }) + }) + .collect(); + + // client: Check if client spec matches snapshot + if server.len() == 1 { + let config = &server[0]; + + let client = print_schema( + (Blueprint::try_from(config) + .context(format!("file: {}", spec.path.to_str().unwrap())) + .unwrap()) + .to_schema(), + ); + let snapshot_name = format!("{}_client", spec.safe_name); + + insta::assert_snapshot!(snapshot_name, client); + } + + // run query tests + run_query_tests_on_spec(spec, server, mock_http_client).await; +} + +pub async fn load_and_test_execution_spec(path: &Path) -> anyhow::Result<()> { + let contents = fs::read_to_string(path)?; + let spec: ExecutionSpec = ExecutionSpec::from_source(path, contents) + .await + .with_context(|| path.display().to_string())?; + + match spec.runner { + Some(Annotation::Skip) => { + println!("{} ... {}", spec.path.display(), "skipped".blue()); + } + Some(Annotation::Only) => {} + None => test_spec(spec).await, + } + + Ok(()) +} + +async fn run_test( + app_ctx: Arc, + request: &APIRequest, +) -> anyhow::Result> { + let query_string = serde_json::to_string(&request.body).expect("body is required"); + let method = request.method.clone(); + let headers = request.headers.clone(); + let url = request.url.clone(); + let req = headers + .into_iter() + .fold( + Request::builder() + .method(method.to_hyper()) + .uri(url.as_str()), + |acc, (key, value)| acc.header(key, value), + ) + .body(Body::from(query_string))?; + + // TODO: reuse logic from server.rs to select the correct handler + if app_ctx.blueprint.server.enable_batch_requests { + handle_request::(req, app_ctx).await + } else { + handle_request::(req, app_ctx).await + } +} diff --git a/tests/execution_spec.rs b/tests/execution_spec.rs index 9175e4789f..7d279ecf2f 100644 --- a/tests/execution_spec.rs +++ b/tests/execution_spec.rs @@ -1,1099 +1,12 @@ -extern crate core; +mod core; -mod telemetry; +use core::spec::load_and_test_execution_spec; +use std::path::Path; -use std::borrow::Cow; -use std::collections::{BTreeMap, HashMap}; -use std::path::{Path, PathBuf}; -use std::str::FromStr; -use std::sync::atomic::{AtomicUsize, Ordering}; -use std::sync::{Arc, Once}; -use std::{fs, panic}; +fn run_execution_spec(path: &Path) -> datatest_stable::Result<()> { + let result = tokio_test::block_on(load_and_test_execution_spec(path)); -use anyhow::{anyhow, Context}; -use derive_setters::Setters; -use futures_util::future::join_all; -use hyper::body::Bytes; -use hyper::{Body, Request}; -use markdown::mdast::Node; -use markdown::ParseOptions; -use reqwest::header::{HeaderName, HeaderValue}; -use serde::{Deserialize, Serialize}; -use serde_json::Value; -use tailcall::async_graphql_hyper::{GraphQLBatchRequest, GraphQLRequest}; -use tailcall::blueprint::{self, Blueprint}; -use tailcall::cache::InMemoryCache; -use tailcall::cli::javascript; -use tailcall::cli::metrics::init_metrics; -use tailcall::config::reader::ConfigReader; -use tailcall::config::{Config, ConfigModule, Source}; -use tailcall::http::{handle_request, AppContext, Method, Response}; -use tailcall::merge_right::MergeRight; -use tailcall::print_schema::print_schema; -use tailcall::runtime::TargetRuntime; -use tailcall::valid::{Cause, ValidationError, Validator as _}; -use tailcall::{EnvIO, FileIO, HttpIO}; -use telemetry::in_memory::InMemoryTelemetry; -use telemetry::init::init_opentelemetry; -use url::Url; - -#[cfg(test)] -pub mod test { - use std::borrow::Cow; - use std::collections::HashMap; - use std::sync::Arc; - - use anyhow::anyhow; - use tailcall::cache::InMemoryCache; - use tailcall::cli::javascript; - use tailcall::runtime::TargetRuntime; - use tokio::io::{AsyncReadExt, AsyncWriteExt}; - - use crate::{blueprint, EnvIO, FileIO, MockHttpClient}; - - #[derive(Clone)] - struct TestFileIO {} - - impl TestFileIO { - fn init() -> Self { - TestFileIO {} - } - } - - #[async_trait::async_trait] - impl FileIO for TestFileIO { - async fn write<'a>(&'a self, path: &'a str, content: &'a [u8]) -> anyhow::Result<()> { - let mut file = tokio::fs::File::create(path).await?; - file.write_all(content) - .await - .map_err(|e| anyhow!("{}", e))?; - Ok(()) - } - - async fn read<'a>(&'a self, path: &'a str) -> anyhow::Result { - let mut file = tokio::fs::File::open(path).await?; - let mut buffer = Vec::new(); - file.read_to_end(&mut buffer) - .await - .map_err(|e| anyhow!("{}", e))?; - Ok(String::from_utf8(buffer)?) - } - } - - #[derive(Clone)] - struct TestEnvIO { - vars: HashMap, - } - - impl EnvIO for TestEnvIO { - fn get(&self, key: &str) -> Option> { - self.vars.get(key).map(Cow::from) - } - } - - impl TestEnvIO { - pub fn init(vars: Option>) -> Self { - Self { vars: vars.unwrap_or_default() } - } - } - - pub fn create_runtime( - http_client: Arc, - env: Option>, - script: Option, - ) -> TargetRuntime { - let http = if let Some(script) = script.clone() { - javascript::init_http(http_client.clone(), script) - } else { - http_client.clone() - }; - - let http2 = if let Some(script) = script { - javascript::init_http(http_client.clone(), script) - } else { - http_client.clone() - }; - - let file = TestFileIO::init(); - let env = TestEnvIO::init(env); - - TargetRuntime { - http, - http2_only: http2, - env: Arc::new(env), - file: Arc::new(file), - cache: Arc::new(InMemoryCache::new()), - extensions: Arc::new(vec![]), - } - } -} - -static INIT: Once = Once::new(); - -#[derive(Serialize, Deserialize, Clone, Debug)] -#[serde(rename_all = "camelCase")] -enum Annotation { - Skip, - Only, -} - -#[derive(Serialize, Deserialize, Clone, Debug, Eq, PartialEq)] -struct APIRequest { - #[serde(default)] - method: Method, - url: Url, - #[serde(default)] - headers: BTreeMap, - #[serde(default)] - body: serde_json::Value, - #[serde(default)] - assert_traces: bool, - #[serde(default)] - assert_metrics: bool, -} - -#[derive(Serialize, Deserialize, Clone, Debug)] -#[serde(rename_all = "camelCase")] -struct APIResponse { - #[serde(default = "default_status")] - status: u16, - #[serde(default)] - headers: BTreeMap, - #[serde(default)] - body: serde_json::Value, - #[serde(default)] - #[serde(skip_serializing_if = "Option::is_none")] - text_body: Option, -} - -pub struct Env { - env: HashMap, -} - -impl EnvIO for Env { - fn get(&self, key: &str) -> Option> { - self.env.get(key).map(Cow::from) - } -} - -impl Env { - pub fn init(map: HashMap) -> Self { - Self { env: map } - } -} - -fn default_status() -> u16 { - 200 -} - -fn default_expected_hits() -> usize { - 1 -} - -#[derive(Serialize, Deserialize, Clone, Debug, Eq, PartialEq)] -struct UpstreamRequest(APIRequest); - -#[derive(Serialize, Deserialize, Clone, Debug)] -struct UpstreamResponse(APIResponse); - -#[derive(Serialize, Deserialize, Clone, Debug)] -#[serde(rename_all = "camelCase")] -enum ConfigSource { - File(String), - Inline(Config), -} - -#[derive(Serialize, Deserialize, Clone, Debug)] -struct Mock { - request: UpstreamRequest, - response: UpstreamResponse, - #[serde(default = "default_expected_hits")] - expected_hits: usize, -} - -#[derive(Debug, Default, Deserialize, Serialize, PartialEq)] -struct SDLError { - message: String, - trace: Vec, - description: Option, -} - -impl<'a> From> for SDLError { - fn from(value: Cause<&'a str>) -> Self { - SDLError { - message: value.message.to_string(), - trace: value.trace.iter().map(|e| e.to_string()).collect(), - description: None, - } - } -} - -impl From> for SDLError { - fn from(value: Cause) -> Self { - SDLError { - message: value.message.to_string(), - trace: value.trace.iter().map(|e| e.to_string()).collect(), - description: value.description, - } - } -} - -#[derive(Clone, Setters)] -struct ExecutionSpec { - path: PathBuf, - name: String, - safe_name: String, - - server: Vec<(Source, String)>, - mock: Option>, - env: Option>, - test: Option>, - files: BTreeMap, - - // Annotations for the runner - runner: Option, - - check_identity: bool, - sdl_error: bool, -} - -impl ExecutionSpec { - async fn cargo_read(path: &str) -> anyhow::Result> { - let dir_path = PathBuf::from(env!("CARGO_MANIFEST_DIR")) - .join(path) - .canonicalize()?; - let mut files = Vec::new(); - - for entry in fs::read_dir(&dir_path)? { - let path = entry?.path(); - if path.is_dir() { - continue; - } - if path.is_file() { - if let Some(ext) = path.extension().and_then(|x| x.to_str()) { - if ext == "md" { - let contents = fs::read_to_string(&path)?; - let spec: ExecutionSpec = Self::from_source(&path, contents) - .await - .map_err(|err| err.context(path.to_str().unwrap().to_string()))?; - - files.push(spec.path(path)); - } - } - } - } - - assert!( - !files.is_empty(), - "No files found in {}", - dir_path.to_str().unwrap_or_default() - ); - Ok(files) - } - - fn filter_specs(specs: Vec) -> Vec { - let mut only_specs = Vec::new(); - let mut filtered_specs = Vec::new(); - - for spec in specs { - match spec.runner { - Some(Annotation::Skip) => { - tracing::warn!("{} {} ... skipped", spec.name, spec.path.display()) - } - Some(Annotation::Only) => only_specs.push(spec), - None => filtered_specs.push(spec), - } - } - - // If any spec has the Only annotation, use those; otherwise, use the filtered - // list. - if !only_specs.is_empty() { - only_specs - } else { - filtered_specs - } - } - - async fn from_source(path: &Path, contents: String) -> anyhow::Result { - INIT.call_once(|| {}); - - let ast = markdown::to_mdast(&contents, &ParseOptions::default()).unwrap(); - let mut children = ast - .children() - .unwrap_or_else(|| panic!("Failed to parse {:?}: empty file unexpected", path)) - .iter() - .peekable(); - - let mut name: Option = None; - let mut server: Vec<(Source, String)> = Vec::with_capacity(2); - let mut mock: Option> = None; - let mut env: Option> = None; - let mut files: BTreeMap = BTreeMap::new(); - let mut test: Option> = None; - let mut runner: Option = None; - let mut check_identity = false; - let mut sdl_error = false; - - while let Some(node) = children.next() { - match node { - Node::Heading(heading) => { - if heading.depth == 1 { - // Parse test name - if name.is_none() { - if let Some(Node::Text(text)) = heading.children.first() { - name = Some(text.value.clone()); - } else { - return Err(anyhow!( - "Unexpected content of level 1 heading in {:?}: {:#?}", - path, - heading - )); - } - } else { - return Err(anyhow!( - "Unexpected double-declaration of test name in {:?}", - path - )); - } - - // Consume optional test description - if let Some(Node::Paragraph(_)) = children.peek() { - let _ = children.next(); - } - } else if heading.depth == 2 { - if let Some(Node::Text(expect)) = heading.children.first() { - let split = expect.value.splitn(2, ':').collect::>(); - match split[..] { - [a, b] => { - check_identity = - a.contains("check_identity") && b.ends_with("true"); - sdl_error = a.contains("expect_validation_error") - && b.ends_with("true"); - } - _ => { - return Err(anyhow!( - "Unexpected header annotation {:?} in {:?}", - expect.value, - path, - )) - } - } - } - } else if heading.depth == 5 { - // Parse annotation - if runner.is_none() { - if let Some(Node::Text(text)) = heading.children.first() { - runner = Some(match text.value.as_str() { - "skip" => Annotation::Skip, - "only" => Annotation::Only, - _ => { - return Err(anyhow!( - "Unexpected runner annotation {:?} in {:?}", - text.value, - path, - )); - } - }); - } else { - return Err(anyhow!( - "Unexpected content of level 5 heading in {:?}: {:#?}", - path, - heading - )); - } - } else { - return Err(anyhow!( - "Unexpected double-declaration of runner annotation in {:?}", - path - )); - } - } else if heading.depth == 4 { - } else { - return Err(anyhow!( - "Unexpected level {} heading in {:?}: {:#?}", - heading.depth, - path, - heading - )); - } - } - Node::Code(code) => { - // Parse following code block - let (content, lang, meta) = { - ( - code.value.to_owned(), - code.lang.to_owned(), - code.meta.to_owned(), - ) - }; - if let Some(meta_str) = meta.as_ref().filter(|s| s.contains('@')) { - let temp_cleaned_meta = meta_str.replace('@', ""); - let name: &str = &temp_cleaned_meta; - if let Some(name) = name.strip_prefix("file:") { - if files.insert(name.to_string(), content).is_some() { - return Err(anyhow!( - "Double declaration of file {:?} in {:#?}", - name, - path - )); - } - } else { - let lang = match lang { - Some(x) => Ok(x), - None => Err(anyhow!( - "Unexpected code block with no specific language in {:?}", - path - )), - }?; - - let source = Source::from_str(&lang)?; - - match name { - "server" => { - // Server configs are only parsed if the test isn't skipped. - server.push((source, content)); - } - "mock" => { - if mock.is_none() { - mock = match source { - Source::Json => Ok(serde_json::from_str(&content)?), - Source::Yml => Ok(serde_yaml::from_str(&content)?), - _ => Err(anyhow!("Unexpected language in mock block in {:?} (only JSON and YAML are supported)", path)), - }?; - } else { - return Err(anyhow!("Unexpected number of mock blocks in {:?} (only one is allowed)", path)); - } - } - "env" => { - if env.is_none() { - env = match source { - Source::Json => Ok(serde_json::from_str(&content)?), - Source::Yml => Ok(serde_yaml::from_str(&content)?), - _ => Err(anyhow!("Unexpected language in env block in {:?} (only JSON and YAML are supported)", path)), - }?; - } else { - return Err(anyhow!("Unexpected number of env blocks in {:?} (only one is allowed)", path)); - } - } - "test" => { - if test.is_none() { - test = match source { - Source::Json => Ok(serde_json::from_str(&content)?), - Source::Yml => Ok(serde_yaml::from_str(&content)?), - _ => Err(anyhow!("Unexpected language in test block in {:?} (only JSON and YAML are supported)", path)), - }?; - } else { - return Err(anyhow!("Unexpected number of test blocks in {:?} (only one is allowed)", path)); - } - } - _ => { - return Err(anyhow!( - "Unexpected component {:?} in {:?}: {:#?}", - name, - path, - meta - )); - } - } - } - } else { - return Err(anyhow!( - "Unexpected content of code in {:?}: {:#?}", - path, - meta - )); - } - } - Node::Definition(d) => { - if let Some(title) = &d.title { - tracing::info!("Comment found in: {:?} with title: {}", path, title); - } - } - Node::ThematicBreak(_) => { - // skip this for and put execute logic in heading.depth - // above to escape ThematicBreaks like - // `---`, `***` or `___` - } - _ => return Err(anyhow!("Unexpected node in {:?}: {:#?}", path, node)), - } - } - - if server.is_empty() { - return Err(anyhow!( - "Unexpected blocks in {:?}: You must define a GraphQL Config in an execution test.", - path, - )); - } - - let spec = ExecutionSpec { - path: path.to_owned(), - name: name.unwrap_or_else(|| path.file_name().unwrap().to_str().unwrap().to_string()), - safe_name: path.file_name().unwrap().to_str().unwrap().to_string(), - - server, - mock, - env, - test, - files, - - runner, - check_identity, - sdl_error, - }; - - anyhow::Ok(spec) - } - - async fn app_context( - &self, - config: &ConfigModule, - env: HashMap, - http_client: Arc, - ) -> Arc { - let blueprint = Blueprint::try_from(config).unwrap(); - let http = if let Some(script) = blueprint.server.script.clone() { - javascript::init_http(http_client, script) - } else { - http_client - }; - - let http2_only = http.clone(); - - let runtime = TargetRuntime { - http, - http2_only, - file: Arc::new(MockFileSystem::new(self.clone())), - env: Arc::new(Env::init(env)), - cache: Arc::new(InMemoryCache::new()), - extensions: Arc::new(vec![]), - }; - - // TODO: move inside tailcall core if possible - init_metrics(&runtime).unwrap(); - - let endpoints = config - .extensions - .endpoint_set - .clone() - .into_checked(&blueprint, runtime.clone()) - .await - .unwrap(); - - Arc::new(AppContext::new(blueprint, runtime, endpoints)) - } -} - -#[derive(Clone, Debug)] -struct ExecutionMock { - mock: Mock, - actual_hits: Arc, -} - -impl ExecutionMock { - fn assert_hits(&self, path: impl AsRef) { - let url = &self.mock.request.0.url; - let is_batch_graphql = url.path().starts_with("/graphql") - && self - .mock - .request - .0 - .body - .as_str() - .map(|s| s.contains(',')) - .unwrap_or_default(); - - // do not assert hits for mocks for batch graphql requests - // since that requires having 2 mocks with different order of queries in - // single request and only one of that mocks is actually called during run. - // for other protocols there is no issues right now, because: - // - for http the keys are always sorted https://github.com/tailcallhq/tailcall/blob/51d8b7aff838f0f4c362d4ee9e39492ae1f51fdb/src/http/data_loader.rs#L71 - // - for grpc body is not used for matching the mock and grpc will use grouping based on id https://github.com/tailcallhq/tailcall/blob/733b641c41f17c60b15b36b025b4db99d0f9cdcd/tests/execution_spec.rs#L769 - if is_batch_graphql { - return; - } - - let expected_hits = self.mock.expected_hits; - let actual_hits = self.actual_hits.load(Ordering::Relaxed); - - assert_eq!( - expected_hits, - actual_hits, - "expected mock for {url} to be hit exactly {expected_hits} times, but it was hit {actual_hits} times for file: {:?}", - path.as_ref() - ); - } + Ok(result?) } -#[derive(Clone, Debug)] -pub struct MockHttpClient { - mocks: Vec, - spec_path: String, -} - -impl MockHttpClient { - fn new(spec: &ExecutionSpec) -> Self { - let mocks = spec - .mock - .as_ref() - .map(|mocks| { - mocks - .iter() - .map(|mock| ExecutionMock { - mock: mock.clone(), - actual_hits: Arc::new(AtomicUsize::default()), - }) - .collect() - }) - .unwrap_or_default(); - - let spec_path = spec - .path - .strip_prefix(std::env::current_dir().unwrap()) - .unwrap_or(&spec.path) - .to_string_lossy() - .into_owned(); - - MockHttpClient { mocks, spec_path } - } - - fn assert_hits(&self, path: impl AsRef) { - for mock in &self.mocks { - mock.assert_hits(path.as_ref()); - } - } -} - -fn string_to_bytes(input: &str) -> Vec { - let mut bytes = Vec::new(); - let mut chars = input.chars().peekable(); - - while let Some(c) = chars.next() { - match c { - '\\' => match chars.next() { - Some('0') => bytes.push(0), - Some('n') => bytes.push(b'\n'), - Some('t') => bytes.push(b'\t'), - Some('r') => bytes.push(b'\r'), - Some('\\') => bytes.push(b'\\'), - Some('\"') => bytes.push(b'\"'), - Some('x') => { - let mut hex = chars.next().unwrap().to_string(); - hex.push(chars.next().unwrap()); - let byte = u8::from_str_radix(&hex, 16).unwrap(); - bytes.push(byte); - } - _ => panic!("Unsupported escape sequence"), - }, - _ => bytes.push(c as u8), - } - } - - bytes -} - -#[async_trait::async_trait] -impl HttpIO for MockHttpClient { - async fn execute(&self, req: reqwest::Request) -> anyhow::Result> { - // Determine if the request is a GRPC request based on PORT - let is_grpc = req.url().as_str().contains("50051"); - - // Try to find a matching mock for the incoming request. - let execution_mock = self - .mocks - .iter() - .find(|mock| { - let mock_req = &mock.mock.request; - let method_match = req.method() == mock_req.0.method.clone().to_hyper(); - let url_match = req.url().as_str() == mock_req.0.url.clone().as_str(); - let req_body = match req.body() { - Some(body) => { - if let Some(bytes) = body.as_bytes() { - if let Ok(body_str) = std::str::from_utf8(bytes) { - Value::from(body_str) - } else { - Value::Null - } - } else { - Value::Null - } - } - None => Value::Null, - }; - let body_match = req_body == mock_req.0.body; - let headers_match = req - .headers() - .iter() - .filter(|(key, _)| *key != "content-type") - .all(|(key, value)| { - let header_name = key.to_string(); - - let header_value = value.to_str().unwrap(); - let mock_header_value = "".to_string(); - let mock_header_value = mock_req - .0 - .headers - .get(&header_name) - .unwrap_or(&mock_header_value); - header_value == mock_header_value - }); - method_match && url_match && headers_match && (body_match || is_grpc) - }) - .ok_or(anyhow!( - "No mock found for request: {:?} {} in {}", - req.method(), - req.url(), - self.spec_path - ))?; - - execution_mock.actual_hits.fetch_add(1, Ordering::Relaxed); - - // Clone the response from the mock to avoid borrowing issues. - let mock_response = execution_mock.mock.response.clone(); - - // Build the response with the status code from the mock. - let status_code = reqwest::StatusCode::from_u16(mock_response.0.status)?; - - if status_code.is_client_error() || status_code.is_server_error() { - return Err(anyhow::format_err!("Status code error")); - } - - let mut response = Response { status: status_code, ..Default::default() }; - - // Insert headers from the mock into the response. - for (key, value) in mock_response.0.headers { - let header_name = HeaderName::from_str(&key)?; - let header_value = HeaderValue::from_str(&value)?; - response.headers.insert(header_name, header_value); - } - - // Special Handling for GRPC - if let Some(body) = mock_response.0.text_body { - // Return plaintext body if specified - let body = string_to_bytes(&body); - response.body = Bytes::from_iter(body); - } else if is_grpc { - // Special Handling for GRPC - let body = string_to_bytes(mock_response.0.body.as_str().unwrap_or_default()); - response.body = Bytes::from_iter(body); - } else { - let body = serde_json::to_vec(&mock_response.0.body)?; - response.body = Bytes::from_iter(body); - } - - Ok(response) - } -} - -struct MockFileSystem { - spec: ExecutionSpec, -} - -impl MockFileSystem { - fn new(spec: ExecutionSpec) -> MockFileSystem { - MockFileSystem { spec } - } -} - -#[async_trait::async_trait] -impl FileIO for MockFileSystem { - async fn write<'a>(&'a self, _path: &'a str, _content: &'a [u8]) -> anyhow::Result<()> { - Err(anyhow!("Cannot write to a file in an execution spec")) - } - - async fn read<'a>(&'a self, path: &'a str) -> anyhow::Result { - let base = PathBuf::from(path); - let path = base - .file_name() - .context("Invalid file path")? - .to_str() - .context("Invalid OsString")?; - match self.spec.files.get(path) { - Some(x) => Ok(x.to_owned()), - None => Err(anyhow!("No such file or directory (os error 2)")), - } - } -} - -async fn test_spec(spec: ExecutionSpec, opentelemetry: &InMemoryTelemetry) { - let mock_http_client = Arc::new(MockHttpClient::new(&spec)); - // Parse and validate all server configs + check for identity - - if spec.sdl_error { - // errors: errors are expected, make sure they match - let (source, content) = &spec.server[0]; - - if !matches!(source, Source::GraphQL) { - panic!("Cannot use \"sdl error\" directive with a non-GraphQL server block."); - } - - let config = Config::from_sdl(content).to_result(); - - let config = match config { - Ok(config) => { - let mut runtime = test::create_runtime(mock_http_client, spec.env.clone(), None); - runtime.file = Arc::new(MockFileSystem::new(spec.clone())); - let reader = ConfigReader::init(runtime); - match reader.resolve(config, spec.path.parent()).await { - Ok(config) => Blueprint::try_from(&config), - Err(e) => Err(ValidationError::new(e.to_string())), - } - } - Err(e) => Err(e), - }; - - match config { - Ok(_) => { - tracing::error!("\terror FAIL"); - panic!( - "Spec {} {:?} with \"sdl error\" directive did not have a validation error.", - spec.name, spec.path - ); - } - Err(cause) => { - let errors: Vec = - cause.as_vec().iter().map(|e| e.to_owned().into()).collect(); - - let snapshot_name = format!("{}_errors", spec.safe_name); - - insta::assert_json_snapshot!(snapshot_name, errors); - } - }; - - return; - } - - let mut server: Vec = Vec::with_capacity(spec.server.len()); - - for (i, (source, content)) in spec.server.iter().enumerate() { - let config = Config::from_source(source.to_owned(), content).unwrap_or_else(|e| { - panic!( - "Couldn't parse GraphQL in server definition #{} of {:#?}: {}", - i + 1, - spec.path, - e - ) - }); - - let config = Config::default().merge_right(config); - - // TODO: we should probably figure out a way to do this for every test - // but GraphQL identity checking is very hard, since a lot depends on the code - // style the re-serializing check gives us some of the advantages of the - // identity check too, but we are missing out on some by having it only - // enabled for either new tests that request it or old graphql_spec - // tests that were explicitly written with it in mind - if spec.check_identity { - if matches!(source, Source::GraphQL) { - let identity = config.to_sdl(); - - // \r is added automatically in windows, it's safe to replace it with \n - let content = content.replace("\r\n", "\n"); - - let path_str = spec.path.display().to_string(); - - let identity = tailcall_prettier::format( - identity, - tailcall_prettier::Parser::detect(path_str.as_str()).unwrap(), - ) - .await - .unwrap(); - - let content = tailcall_prettier::format( - content, - tailcall_prettier::Parser::detect(path_str.as_str()).unwrap(), - ) - .await - .unwrap(); - - pretty_assertions::assert_eq!( - identity, - content, - "Identity check failed for {:#?}", - spec.path, - ); - } else { - panic!( - "Spec {:#?} has \"check identity\" enabled, but its config isn't in GraphQL.", - spec.path - ); - } - } - - server.push(config); - } - - // merged: Run merged specs - - let merged = server - .iter() - .fold(Config::default(), |acc, c| acc.merge_right(c.clone())) - .to_sdl(); - - let snapshot_name = format!("{}_merged", spec.safe_name); - - insta::assert_snapshot!(snapshot_name, merged); - // Resolve all configs - let mut runtime = test::create_runtime(mock_http_client.clone(), spec.env.clone(), None); - runtime.file = Arc::new(MockFileSystem::new(spec.clone())); - let reader = ConfigReader::init(runtime); - - let server: Vec = join_all( - server - .into_iter() - .map(|config| reader.resolve(config, spec.path.parent())), - ) - .await - .into_iter() - .enumerate() - .map(|(i, result)| { - result.unwrap_or_else(|e| { - panic!( - "Couldn't resolve GraphQL in server definition #{} of {:#?}: {}", - i + 1, - spec.path, - e - ) - }) - }) - .collect(); - - if server.len() == 1 { - let config = &server[0]; - - // client: Check if client spec matches snapshot - let client = print_schema( - (Blueprint::try_from(config) - .context(format!("file: {}", spec.path.to_str().unwrap())) - .unwrap()) - .to_schema(), - ); - let snapshot_name = format!("{}_client", spec.safe_name); - - insta::assert_snapshot!(snapshot_name, client); - } - - if let Some(test_spec) = spec.test.as_ref() { - let app_ctx = spec - .app_context( - server.first().unwrap(), - spec.env.clone().unwrap_or_default(), - mock_http_client.clone(), - ) - .await; - - // test: Run test specs - for (i, test) in test_spec.iter().enumerate() { - opentelemetry.reset(); - - let response = run_test(app_ctx.clone(), test) - .await - .context(spec.path.to_str().unwrap().to_string()) - .unwrap(); - - let mut headers: BTreeMap = BTreeMap::new(); - - for (key, value) in response.headers() { - headers.insert(key.to_string(), value.to_str().unwrap().to_string()); - } - - let response: APIResponse = APIResponse { - status: response.status().clone().as_u16(), - headers, - body: serde_json::from_slice( - &hyper::body::to_bytes(response.into_body()).await.unwrap(), - ) - .unwrap_or(serde_json::Value::Null), - text_body: None, - }; - - let snapshot_name = format!("{}_test_{}", spec.safe_name, i); - - insta::assert_json_snapshot!(snapshot_name, response); - - if test.assert_traces { - let snapshot_name = format!("{}_assert_traces_{}", spec.safe_name, i); - insta::assert_json_snapshot!(snapshot_name, opentelemetry.get_traces().unwrap()); - } - - if test.assert_metrics { - let snapshot_name = format!("{}_assert_metrics_{}", spec.safe_name, i); - insta::assert_json_snapshot!( - snapshot_name, - opentelemetry.get_metrics().await.unwrap() - ); - } - } - - mock_http_client.assert_hits(&spec.path); - } - - tracing::info!("{} ... ok", spec.path.display()); -} - -#[tokio::test] -async fn test() -> anyhow::Result<()> { - let opentelemetry = init_opentelemetry(); - // Explicitly only run one test if specified in command line args - // This is used by test-convertor to auto-apply the snapshots of incompatible - // fail-annotated http specs - - let args: Vec = std::env::args().collect(); - let expected_arg = ["insta", "i"]; - - let index = args - .iter() - .position(|arg| expected_arg.contains(&arg.as_str())) - .unwrap_or(usize::MAX); - - let spec = if index == usize::MAX { - let spec = ExecutionSpec::cargo_read("tests/execution").await?; - ExecutionSpec::filter_specs(spec) - } else { - let mut vec = vec![]; - let insta_values: Vec<&String> = args.iter().skip(index + 1).collect(); - for arg in insta_values { - let path = PathBuf::from(arg) - .canonicalize() - .unwrap_or_else(|_| panic!("Failed to parse explicit test path {:?}", arg)); - - let contents = fs::read_to_string(&path)?; - let spec: ExecutionSpec = ExecutionSpec::from_source(&path, contents) - .await - .map_err(|err| err.context(path.to_str().unwrap().to_string()))?; - vec.push(spec); - } - vec - }; - - for spec in spec.into_iter() { - test_spec(spec, &opentelemetry).await; - } - - Ok(()) -} - -async fn run_test( - app_ctx: Arc, - request: &APIRequest, -) -> anyhow::Result> { - let query_string = serde_json::to_string(&request.body).expect("body is required"); - let method = request.method.clone(); - let headers = request.headers.clone(); - let url = request.url.clone(); - let req = headers - .into_iter() - .fold( - Request::builder() - .method(method.to_hyper()) - .uri(url.as_str()), - |acc, (key, value)| acc.header(key, value), - ) - .body(Body::from(query_string))?; - - // TODO: reuse logic from server.rs to select the correct handler - if app_ctx.blueprint.server.enable_batch_requests { - handle_request::(req, app_ctx).await - } else { - handle_request::(req, app_ctx).await - } -} +datatest_stable::harness!(run_execution_spec, "tests/execution", r"^.*\.md$"); diff --git a/tests/snapshots/execution_spec__grpc-url-from-upstream.md_client.snap b/tests/snapshots/execution_spec__grpc-url-from-upstream.md_client.snap deleted file mode 100644 index 5d27fe0949..0000000000 --- a/tests/snapshots/execution_spec__grpc-url-from-upstream.md_client.snap +++ /dev/null @@ -1,42 +0,0 @@ ---- -source: tests/execution_spec.rs -expression: client ---- -scalar Date - -scalar Email - -scalar Empty - -scalar JSON - -type News { - body: String - id: Int - postImage: String - title: String -} - -type NewsData { - news: [News]! -} - -input NewsInput { - body: String - id: Int - postImage: String - title: String -} - -scalar PhoneNumber - -type Query { - news: NewsData! - newsById(news: NewsInput!): News! -} - -scalar Url - -schema { - query: Query -} diff --git a/tests/snapshots/execution_spec__test-batching-group-by.md_client.snap b/tests/snapshots/execution_spec__test-batching-group-by.md_client.snap deleted file mode 100644 index f8e5c29910..0000000000 --- a/tests/snapshots/execution_spec__test-batching-group-by.md_client.snap +++ /dev/null @@ -1,36 +0,0 @@ ---- -source: tests/execution_spec.rs -expression: client ---- -scalar Date - -scalar Email - -scalar Empty - -scalar JSON - -scalar PhoneNumber - -type Post { - body: String - id: Int - title: String - user: User - userId: Int! -} - -type Query { - posts: [Post] -} - -scalar Url - -type User { - id: Int - name: String -} - -schema { - query: Query -}