From 6093c541d96446157af56bf921a6afe88ae7c14e Mon Sep 17 00:00:00 2001 From: Kofo Okesola Date: Tue, 20 Jun 2023 09:53:04 +0100 Subject: [PATCH] removed unused test --- .../rest_datasource/rest_datasource_test.go | 73 ------------------- 1 file changed, 73 deletions(-) diff --git a/pkg/engine/datasource/rest_datasource/rest_datasource_test.go b/pkg/engine/datasource/rest_datasource/rest_datasource_test.go index 2332a4080..ff9c02dc6 100644 --- a/pkg/engine/datasource/rest_datasource/rest_datasource_test.go +++ b/pkg/engine/datasource/rest_datasource/rest_datasource_test.go @@ -1177,79 +1177,6 @@ func TestFastHttpJsonDataSourcePlanning(t *testing.T) { DisableResolveFieldPositions: true, }, )) - t.Run("get request with int argument query param no normalization", datasourcetesting.RunTestWithoutNormalization(schema, intArgumentOperation, "ArgumentQuery", - &plan.SynchronousResponsePlan{ - Response: &resolve.GraphQLResponse{ - Data: &resolve.Object{ - Fetch: &resolve.SingleFetch{ - BufferId: 0, - Input: `{"query_params":[{"name":"limit","value":$$0$$}],"method":"GET","url":"https://example.com/friend"}`, - DataSource: &Source{}, - Variables: resolve.NewVariables( - &resolve.ContextVariable{ - Path: []string{"a"}, - Renderer: resolve.NewPlainVariableRendererWithValidation(`{"type":["integer","null"]}`), - }, - ), - DataSourceIdentifier: []byte("rest_datasource.Source"), - DisableDataLoader: true, - }, - Fields: []*resolve.Field{ - { - BufferID: 0, - HasBuffer: true, - Name: []byte("withIntArgument"), - Value: &resolve.Object{ - Nullable: true, - Fields: []*resolve.Field{ - { - Name: []byte("name"), - Value: &resolve.String{ - Path: []string{"name"}, - Nullable: true, - }, - }, - }, - }, - }, - }, - }, - }, - }, - plan.Configuration{ - DataSources: []plan.DataSourceConfiguration{ - { - RootNodes: []plan.TypeField{ - { - TypeName: "Query", - FieldNames: []string{"withIntArgument"}, - }, - }, - Custom: ConfigJSON(Configuration{ - Fetch: FetchConfiguration{ - URL: "https://example.com/friend", - Method: "GET", - Query: []QueryConfiguration{ - { - Name: "limit", - Value: "{{ .arguments.limit }}", - }, - }, - }, - }), - Factory: &Factory{}, - }, - }, - Fields: []plan.FieldConfiguration{ - { - TypeName: "Query", - FieldName: "withIntArgument", - DisableDefaultMapping: true, - }, - }, - DisableResolveFieldPositions: true, - }, - )) t.Run("get request with non null string as query param", datasourcetesting.RunTest(schema, intArgumentOperationNonNullableInt, "ArgumentQuery", &plan.SynchronousResponsePlan{ Response: &resolve.GraphQLResponse{