summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli/test_service_https.py
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-03-04 05:37:33 +0100
committerGitHub <noreply@github.com>2023-03-04 05:37:33 +0100
commit493af3f3417cef5c9898f242a2b885e63e3bdeef (patch)
treeb9536a832d7693f2f35d90fc75b58ff57be4d640 /smoketest/scripts/cli/test_service_https.py
parente5eb4f332f03df51d64d51e7f38ee561f298188c (diff)
parent7ab3b9e021e7ce1c56b9f252a04400a37fd33e71 (diff)
downloadvyos-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/test_service_https.py')
-rwxr-xr-xsmoketest/scripts/cli/test_service_https.py3
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.