The first test return code can shifted from 200 (OK) to 201 (created)
depending on the order that functional tests are run,
but also with or without lighty support.
JIRA: TRNSPRTPCE-442
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I6bbc291acd0bc1a5f6bc3337fab8d7ebbe03400f
# Load port mapping
def test_01_load_port_mapping(self):
response = test_utils.put_jsonrequest(test_utils.URL_FULL_PORTMAPPING, self.port_mapping_data)
- self.assertEqual(response.status_code, requests.codes.ok)
+ self.assertIn(response.status_code, (requests.codes.ok, requests.codes.created))
time.sleep(2)
# Load simple bidirectional topology