From 82607d0628669554a7482a36176eed31e319b734 Mon Sep 17 00:00:00 2001 From: Arpit Mohan Date: Fri, 14 Apr 2023 16:36:50 +0530 Subject: [PATCH] chore: Upgrading graphql dependency (#21809) This PR upgrades the Graphql dependency to the latest stable release. Co-authored-by: Sumit Kumar --- app/server/appsmith-plugins/graphqlPlugin/pom.xml | 2 +- .../test/java/com/external/plugins/GraphQLPluginTest.java | 6 +++--- app/server/appsmith-server/pom.xml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/server/appsmith-plugins/graphqlPlugin/pom.xml b/app/server/appsmith-plugins/graphqlPlugin/pom.xml index ff23fda2ad..4a469ef6e5 100644 --- a/app/server/appsmith-plugins/graphqlPlugin/pom.xml +++ b/app/server/appsmith-plugins/graphqlPlugin/pom.xml @@ -92,7 +92,7 @@ com.graphql-java graphql-java - 19.0 + 20.1 provided diff --git a/app/server/appsmith-plugins/graphqlPlugin/src/test/java/com/external/plugins/GraphQLPluginTest.java b/app/server/appsmith-plugins/graphqlPlugin/src/test/java/com/external/plugins/GraphQLPluginTest.java index e087200085..e81b988aac 100644 --- a/app/server/appsmith-plugins/graphqlPlugin/src/test/java/com/external/plugins/GraphQLPluginTest.java +++ b/app/server/appsmith-plugins/graphqlPlugin/src/test/java/com/external/plugins/GraphQLPluginTest.java @@ -277,9 +277,9 @@ public class GraphQLPluginTest { StepVerifier.create(resultMono) .verifyErrorSatisfies(error -> { assertTrue(error instanceof AppsmithPluginException); - String expectedMessage = "Invalid GraphQL body: Invalid Syntax : There are more tokens in the " + - "query that have not been consumed offending token '}' at line 8 column 1"; - assertTrue(expectedMessage.equals(error.getMessage())); + String expectedMessage = "Invalid GraphQL body: Invalid syntax encountered. There are extra " + + "tokens in the text that have not been consumed. Offending token '}' at line 8 column 1"; + assertEquals(expectedMessage, error.getMessage()); }); } diff --git a/app/server/appsmith-server/pom.xml b/app/server/appsmith-server/pom.xml index 708f6f22d7..e27c80dccc 100644 --- a/app/server/appsmith-server/pom.xml +++ b/app/server/appsmith-server/pom.xml @@ -51,7 +51,7 @@ com.graphql-java graphql-java - 19.0 + 20.1 org.slf4j