kytos-ng / kytos-end-to-end-tests

Kytos End-to-End Tests
0 stars 10 forks source link

Remove circuits to avoid HTTP 409. #258

Closed gretelliz closed 11 months ago

gretelliz commented 11 months ago

Closes #239

Summary

This is to remove the circuits with teardown_method to avoid the error HTTP 409 The EVC already exists in the test suite TestE2ESDNTrace.

gretelliz commented 11 months ago

Tests are passing after several runs.

+ python3 -m pytest --timeout=180 tests/test_e2e_40_sdntrace.py
============================= test session starts ==============================
platform linux -- Python 3.9.2, pytest-7.2.0, pluggy-1.2.0
rootdir: /tests
plugins: rerunfailures-10.2, timeout-2.1.0, anyio-3.6.2
timeout: 180.0s
timeout method: signal
timeout func_only: False
collected 12 items

tests/test_e2e_40_sdntrace.py ............                               [100%]

=============================== warnings summary ===============================
test_e2e_40_sdntrace.py: 49 warnings
  /usr/lib/python3/dist-packages/mininet/node.py:1121: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
    return ( StrictVersion( cls.OVSVersion ) <

test_e2e_40_sdntrace.py: 49 warnings
  /usr/lib/python3/dist-packages/mininet/node.py:1122: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
    StrictVersion( '1.10' ) )

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
------------------------------- start/stop times -------------------------------
================= 12 passed, 98 warnings in 645.92s (0:10:45) ==================
viniarck commented 11 months ago

Tests are passing after several runs.

+ python3 -m pytest --timeout=180 tests/test_e2e_40_sdntrace.py
============================= test session starts ==============================
platform linux -- Python 3.9.2, pytest-7.2.0, pluggy-1.2.0
rootdir: /tests
plugins: rerunfailures-10.2, timeout-2.1.0, anyio-3.6.2
timeout: 180.0s
timeout method: signal
timeout func_only: False
collected 12 items

tests/test_e2e_40_sdntrace.py ............                               [100%]

=============================== warnings summary ===============================
test_e2e_40_sdntrace.py: 49 warnings
  /usr/lib/python3/dist-packages/mininet/node.py:1121: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
    return ( StrictVersion( cls.OVSVersion ) <

test_e2e_40_sdntrace.py: 49 warnings
  /usr/lib/python3/dist-packages/mininet/node.py:1122: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
    StrictVersion( '1.10' ) )

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
------------------------------- start/stop times -------------------------------
================= 12 passed, 98 warnings in 645.92s (0:10:45) ==================

Great.

self.net.wait_switches_connect() comment hasn't been addressed though.

gretelliz commented 11 months ago

@viniarck, I have to do a push, Thank you.

viniarck commented 11 months ago

@viniarck, I have to do a push, Thank you.

Cool. It'll leave it pre-approved. Once it's introduced, and if tests are passing you can merge this, OK? Thanks.