Closed viniarck closed 1 year ago
@gretelliz e2e test test_070_run_sdntrace_untagged_vlan is still failing on CI, can you fix this?
test_070_run_sdntrace_untagged_vlan
tests/test_e2e_40_sdntrace.py::TestE2ESDNTrace::test_070_run_sdntrace_untagged_vlan: 2023-04-10,06:45:44.852582 - 2023-04-10,06:45:46.065119 cls = <tests.test_e2e_40_sdntrace.TestE2ESDNTrace object at 0x7f1bad746fa0> def test_070_run_sdntrace_untagged_vlan(cls): """Run SDNTrace to test /traces endpoint when vlan is untagged in evc""" cls.create_evc("untagged", interface_a="00:00:00:00:00:00:00:02:1", interface_z="00:00:00:00:00:00:00:03:1") payload = [ { "trace": { "switch": { "dpid": "00:00:00:00:00:00:00:02", "in_port": 1 } } } ] api_url = KYTOS_API + '/amlight/sdntrace_cp/traces' response = requests.put(api_url, json=payload) assert response.status_code == 200, response.text data = response.json() list_results = data["result"] > assert len(list_results[0]) == 2 E AssertionError: assert 1 == 2 E + where 1 = len([{'dpid': '00:00:00:00:00:00:00:02', 'out': None, 'port': 1, 'time': '2023-04-10 06:45:45.992499', ...}]) tests/test_e2e_40_sdntrace.py:797: AssertionError rerun: 1 tests/test_e2e_40_sdntrace.py::TestE2ESDNTrace::test_070_run_sdntrace_untagged_vlan: 2023-04-10,06:45:46.241127 - 2023-04-10,06:45:46.424571 cls = <tests.test_e2e_40_sdntrace.TestE2ESDNTrace object at 0x7f1bad746fa0> def test_070_run_sdntrace_untagged_vlan(cls): """Run SDNTrace to test /traces endpoint when vlan is untagged in evc""" > cls.create_evc("untagged", interface_a="00:00:00:00:00:00:00:02:1", interface_z="00:00:00:00:00:00:00:03:1") tests/test_e2e_40_sdntrace.py:779: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ vlan_id = 'untagged', interface_a = '00:00:00:00:00:00:00:02:1' interface_z = '00:00:00:00:00:00:00:03:1' @staticmethod def create_evc(vlan_id, interface_a="00:00:00:00:00:00:00:01:1", interface_z="00:00:00:00:00:00:00:0a:1"): payload = { "name": "Vlan_%s" % vlan_id, "enabled": True, "dynamic_backup_path": True, "uni_a": { "interface_id": interface_a, "tag": {"tag_type": 1, "value": vlan_id} }, "uni_z": { "interface_id": interface_z, "tag": {"tag_type": 1, "value": vlan_id} } } api_url = KYTOS_API + '/kytos/mef_eline/v2/evc/' response = requests.post(api_url, json=payload) > assert response.status_code == 201, response.text E AssertionError: {"code":409,"description":"The EVC already exists.","name":"Conflict"} E E assert 409 == 201 E + where 409 = <Response [409]>.status_code tests/test_e2e_40_sdntrace.py:46: AssertionError tests/test_e2e_40_sdntrace.py::TestE2ESDNTrace::test_070_run_sdntrace_untagged_vlan: 2023-04-10,06:45:46.515972 - 2023-04-10,06:45:46.569[379](https://gitlab.ampath.net/kytos/kytos-end-to-end-tester/-/jobs/42821#L379) =========================== rerun test summary info ============================ RERUN tests/test_e2e_40_sdntrace.py::TestE2ESDNTrace::test_070_run_sdntrace_untagged_vlan RERUN tests/test_e2e_40_sdntrace.py::TestE2ESDNTrace::test_070_run_sdntrace_untagged_vlan =========================== short test summary info ============================ FAILED tests/test_e2e_40_sdntrace.py::TestE2ESDNTrace::test_070_run_sdntrace_untagged_vlan - AssertionError: {"code":[409](https://gitlab.ampath.net/kytos/kytos-end-to-end-tester/-/jobs/42821#L409),"description":"The EVC already exists.","name":"Conflict"} assert 409 == 201 + where 409 = <Response [409]>.status_code = 1 failed, 202 passed, 2 skipped, 17 xfailed, 5 xpassed, 799 warnings, 2 rerun in 11492.58s (3:11:32) =
@gretelliz e2e test
test_070_run_sdntrace_untagged_vlan
is still failing on CI, can you fix this?