Skip to content

Commit

Permalink
Add REST index page
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Jun 7, 2024
1 parent 8f9df5f commit 42dac02
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/integration/TestREST_JSON.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 42dac02

Please sign in to comment.