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

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

Add e2e test for instruction type `goto_table` #266

Closed gretelliz closed 11 months ago

gretelliz commented 11 months ago

This is related to PR https://github.com/kytos-ng/sdntrace_cp/pull/108.

Summary

Add cases for intra-EVC and inter-EVCs with flows with goto_table. Add the amlight_looped topology as a subclass of AmlightTopo in helpers.py. This add 2 loops in the switches Amlight1 and Amlight4. Add test_e2e_42_sdntrace.py that uses amlight_looped.

Local Tests

+ python3 -m pytest --timeout=180 tests/test_e2e_42_sdntrace.py
============================= test session starts ==============================
platform linux -- Python 3.9.2, pytest-7.2.0, pluggy-1.3.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 2 items

tests/test_e2e_42_sdntrace.py ..                                         [100%]

=============================== warnings summary ===============================
test_e2e_42_sdntrace.py: 84 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_42_sdntrace.py: 84 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 -------------------------------
================= 2 passed, 168 warnings in 158.00s (0:02:38) ==================

End-to-End Tests

N/A