diff options
author | John Estabrook <jestabro@vyos.io> | 2022-10-21 08:41:26 -0500 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2022-10-21 08:46:25 -0500 |
commit | 89fbe73b9fb9ad178a2a35bdf9c7c477dc72f054 (patch) | |
tree | 185852648551dd188f23da46c8e6c867ecfdd4de /smoketest/scripts | |
parent | c8dbd6ce6cd466bd7903987e58b885f0e92d1691 (diff) | |
download | vyos-1x-89fbe73b9fb9ad178a2a35bdf9c7c477dc72f054.tar.gz vyos-1x-89fbe73b9fb9ad178a2a35bdf9c7c477dc72f054.zip |
graphql: T4768: change name of api child node from 'gql' to 'graphql'
Diffstat (limited to 'smoketest/scripts')
-rwxr-xr-x | smoketest/scripts/cli/test_service_https.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/smoketest/scripts/cli/test_service_https.py b/smoketest/scripts/cli/test_service_https.py index 72c1d4e43..719125f0f 100755 --- a/smoketest/scripts/cli/test_service_https.py +++ b/smoketest/scripts/cli/test_service_https.py @@ -143,10 +143,10 @@ class TestHTTPSService(VyOSUnitTestSHIM.TestCase): # caught by the resolver, and returns success 'False', so one must # check the return value. - self.cli_set(base_path + ['api', 'gql']) + self.cli_set(base_path + ['api', 'graphql']) self.cli_commit() - gql_url = f'https://{address}/graphql' + graphql_url = f'https://{address}/graphql' query_valid_key = f""" {{ @@ -160,7 +160,7 @@ class TestHTTPSService(VyOSUnitTestSHIM.TestCase): }} """ - r = request('POST', gql_url, verify=False, headers=headers, json={'query': query_valid_key}) + r = request('POST', graphql_url, verify=False, headers=headers, json={'query': query_valid_key}) success = r.json()['data']['SystemStatus']['success'] self.assertTrue(success) @@ -176,7 +176,7 @@ class TestHTTPSService(VyOSUnitTestSHIM.TestCase): } """ - r = request('POST', gql_url, verify=False, headers=headers, json={'query': query_invalid_key}) + r = request('POST', graphql_url, verify=False, headers=headers, json={'query': query_invalid_key}) success = r.json()['data']['SystemStatus']['success'] self.assertFalse(success) @@ -192,7 +192,7 @@ class TestHTTPSService(VyOSUnitTestSHIM.TestCase): } """ - r = request('POST', gql_url, verify=False, headers=headers, json={'query': query_no_key}) + r = request('POST', graphql_url, verify=False, headers=headers, json={'query': query_no_key}) self.assertEqual(r.status_code, 400) if __name__ == '__main__': |