Summary| Tags| Feature: tests/schema.feature| Schema
Scenario: [1:7] List queries and mutations
ms: 1276
>>
Background:
4
* url UrlBaseAdmin + '/graphql/'
3
22:35:46.284 >> lock acquired, begin callSingle: ../resource/utility.js 22:35:46.658 << lock released, cached callSingle: ../resource/utility.js
5
* configure headers = authHeader
3
8
Given text query =
0
query IntrospectionQuery { __schema { queryType { fields { name } } mutationType { fields { name } } } }
25
And request { query: '#(query)' }
82
26
When method post
1182
22:35:47.611 request: 1 > POST https://candyrack-testing.digismoothie.app/merchant-admin/graphql/ 1 > Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJodHRwczovL3Zpa3RvcnFhLXRlc3RpbmcubXlzaG9waWZ5LmNvbSIsImRlc3QiOiJodHRwczovL3Zpa3RvcnFhLXRlc3RpbmcubXlzaG9waWZ5LmNvbSJ9.zovCNDYLLEom5GWQJzr30hyc-nnrHTPv1FozxrzUi5s 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 249 1 > Host: candyrack-testing.digismoothie.app 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_212) 1 > Accept-Encoding: gzip,deflate { "query": "query IntrospectionQuery {\n __schema {\n queryType {\n fields {\n name\n }\n }\n mutationType {\n fields {\n name\n }\n }\n }\n}" } 22:35:47.999 response time in milliseconds: 386 1 < 200 1 < Date: Sat, 22 Oct 2022 22:35:47 GMT 1 < Content-Type: application/json 1 < Connection: keep-alive 1 < Referrer-Policy: same-origin 1 < Strict-Transport-Security: max-age=3600 1 < Vary: Accept-Encoding 1 < X-Content-Type-Options: nosniff 1 < Via: 1.1 vegur 1 < CF-Cache-Status: DYNAMIC 1 < Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=YY90LJzM%2B9XuhxujvDlKy3bgRiP%2FHUpUepErTj7wkHmfEXRuqs714%2BPxLMFq5T4GJmiPPvfhd8SLnCjDhGWxQQuLMRnZr2L0EvAgOiG3tT0j6Fn0vgSjg5NwXwx9gCAlasGSyDo8qLEGxrNtEQMM%2F7MZYnQD"}],"group":"cf-nel","max_age":604800} 1 < NEL: {"success_fraction":0,"report_to":"cf-nel","max_age":604800} 1 < Server: cloudflare 1 < CF-RAY: 75e5b5482a982897-DFW 1 < alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400 { "data": { "__schema": { "queryType": { "fields": [ { "name": "allTemplates" }, { "name": "randomProduct" }, { "name": "themeState" }, { "name": "appSubscription" }, { "name": "placementSettings" } ] }, "mutationType": { "fields": [ { "name": "changePlacementSettings" }, { "name": "changeAppSubscription" }, { "name": "enableAppEmbedBlock" }, { "name": "createOffer" } ] } } } }
27
Then status 200
0
# pretty print the response
30
* print 'response:', response
5
22:35:48.005 [print] response: { "data": { "__schema": { "queryType": { "fields": [ { "name": "allTemplates" }, { "name": "randomProduct" }, { "name": "themeState" }, { "name": "appSubscription" }, { "name": "placementSettings" } ] }, "mutationType": { "fields": [ { "name": "changePlacementSettings" }, { "name": "changeAppSubscription" }, { "name": "enableAppEmbedBlock" }, { "name": "createOffer" } ] } } } }