From fc3258aef051b8b5e863e39893d04520d3f1ca14 Mon Sep 17 00:00:00 2001 From: AmaliMatharaarachchi Date: Mon, 1 Apr 2024 10:27:32 +0530 Subject: [PATCH] add gql default test --- .../src/test/resources/tests/api/GraphQL.feature | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/cucumber-tests/src/test/resources/tests/api/GraphQL.feature b/test/cucumber-tests/src/test/resources/tests/api/GraphQL.feature index dc3b2502b..ea144361a 100644 --- a/test/cucumber-tests/src/test/resources/tests/api/GraphQL.feature +++ b/test/cucumber-tests/src/test/resources/tests/api/GraphQL.feature @@ -19,6 +19,13 @@ Feature: Generating APK conf for GraphQL API | 429 | | 500 | And the response body should contain "\"name\":\"string\"" + Then I set headers + | Authorization | bearer ${accessToken} | + And I send "POST" request to "https://default.gw.wso2.com:9095/graphql" with body "{\"query\":\"{ allHumans { name } }\"}" + And I eventually receive 200 response code, not accepting + | 429 | + | 500 | + And the response body should contain "\"name\":\"string\"" Scenario: Undeploy API Given The system is ready