Closed viniarck closed 1 year ago
@viniarck, PR_85 is now merged. So, this test shouldn't fail again.
Right. Appreciated your help. Please, keep an eye on the tests and if after today's execution it's passing you can close this issue.
@gretelliz, e2e tests are still failing can you fix the errors?
tests/test_e2e_40_sdntrace.py::TestE2ESDNTrace::test_070_run_sdntrace_untagged_vlan: 2023-04-06,06:44:55.816490 - 2023-04-06,06:44:57.836634
cls = <tests.test_e2e_40_sdntrace.TestE2ESDNTrace object at 0x7fb08a90b430>
def test_070_run_sdntrace_untagged_vlan(cls):
"""Run SDNTrace to test /traces endpoint when vlan is untagged in evc"""
cls.create_evc("untagged")
payload = [
{
"trace": {
"switch": {
"dpid": "00:00:00:00:00:00:00:01",
"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
E AssertionError: {"code":500,"description":"The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.","name":"Internal Server Error"}
E
E assert 500 == 200
E + where 500 = <Response [500]>.status_code
tests/test_e2e_40_sdntrace.py:793: AssertionError
rerun: 1
tests/test_e2e_40_sdntrace.py::TestE2ESDNTrace::test_070_run_sdntrace_untagged_vlan: 2023-04-06,06:44:57.889713 - 2023-04-06,06:44:57.955504
cls = <tests.test_e2e_40_sdntrace.TestE2ESDNTrace object at 0x7fb08a90b430>
def test_070_run_sdntrace_untagged_vlan(cls):
"""Run SDNTrace to test /traces endpoint when vlan is untagged in evc"""
> cls.create_evc("untagged")
tests/test_e2e_40_sdntrace.py:779:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
vlan_id = 'untagged', interface_a = '00:00:00:00:00:00:00:01:1'
interface_z = '00:00:00:00:00:00:00:0a: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](https://gitlab.ampath.net/kytos/kytos-end-to-end-tester/-/jobs/42602#L409),"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-06,06:44:58.019760 - 2023-04-06,06:44:58.081101
=========================== 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,"description":"The EVC already exists.","name":"Conflict"}
assert 409 == 201
+ where 409 = <Response [409]>.status_code
The following e2e tests failed on April 5.
Most seem related to the fact that https://github.com/kytos-ng/sdntrace_cp/pull/85 hasn't landed but its e2e tests did. @gretelliz can you double check it and make sure that it won't fail on today's nightly execution? Thanks.