From 42dac021abb60a8f39090df90485827054ffe6d1 Mon Sep 17 00:00:00 2001 From: Miguel Caballer Date: Fri, 7 Jun 2024 12:38:29 +0200 Subject: [PATCH] Add REST index page --- test/integration/TestREST_JSON.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/integration/TestREST_JSON.py b/test/integration/TestREST_JSON.py index 30b26124..032503e6 100755 --- a/test/integration/TestREST_JSON.py +++ b/test/integration/TestREST_JSON.py @@ -131,6 +131,13 @@ def wait_inf_state(self, state, timeout, incorrect_states=None, vm_ids=None): return all_ok + def test_10_index(self): + resp = self.create_request("GET", "/") + self.assertEqual(resp.status_code, 200, + msg="ERROR getting IM index:" + resp.text) + res = json.loads(resp.text) + self.assertEqual(res['openapi'], '3.0.0') + def test_20_create(self): radl = read_file_as_string('../files/test_simple.json') resp = self.create_request("POST", "/infrastructures",