diff options
author | Christian Breunig <christian@breunig.cc> | 2023-03-04 05:37:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-04 05:37:33 +0100 |
commit | 493af3f3417cef5c9898f242a2b885e63e3bdeef (patch) | |
tree | b9536a832d7693f2f35d90fc75b58ff57be4d640 /smoketest/scripts/cli | |
parent | e5eb4f332f03df51d64d51e7f38ee561f298188c (diff) | |
parent | 7ab3b9e021e7ce1c56b9f252a04400a37fd33e71 (diff) | |
download | vyos-1x-493af3f3417cef5c9898f242a2b885e63e3bdeef.tar.gz vyos-1x-493af3f3417cef5c9898f242a2b885e63e3bdeef.zip |
Merge pull request #1862 from jestabro/schema-generate
graphql: T5040: generate schema on installation, rather than dynamically
Diffstat (limited to 'smoketest/scripts/cli')
-rwxr-xr-x | smoketest/scripts/cli/test_service_https.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/smoketest/scripts/cli/test_service_https.py b/smoketest/scripts/cli/test_service_https.py index 0f4b1393c..1adf1f5cf 100755 --- a/smoketest/scripts/cli/test_service_https.py +++ b/smoketest/scripts/cli/test_service_https.py @@ -193,7 +193,8 @@ class TestHTTPSService(VyOSUnitTestSHIM.TestCase): """ r = request('POST', graphql_url, verify=False, headers=headers, json={'query': query_no_key}) - self.assertEqual(r.status_code, 400) + success = r.json()['data']['SystemStatus']['success'] + self.assertFalse(success) # GraphQL token authentication test: request token; pass in header # of query. |