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

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

Fixed requirements for enabling #277

Closed Alopalao closed 5 months ago

Alopalao commented 5 months ago

Closes #276

Summary

Depends on topology PR #181 An interface cannot be enabled if its switch is disabled. Fixed

Test results

Trying to run 'hello' command on MongoDB...
Ran 'hello' command on MongoDB successfully. It's ready!
+ python3 -m pytest tests/ -k 'test_050_enabling_interface_persistent or test_060_enabling_and_disabling_all_interfaces_on_a_switch_persistent or test_070_disabling_interface_persistent or test_080_disabling_all_interfaces_on_a_switch_persistent or test_020_enable_of_lldp' --reruns 0 -r fEr
============================= 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
collected 255 items / 250 deselected / 5 selected

tests/test_e2e_05_topology.py ....                                       [ 80%]
tests/test_e2e_30_of_lldp.py .                                           [100%]
+ python3 -m pytest tests/ -k test_140_delete_switch --reruns 0 -r fEr
============================= 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
collected 256 items / 255 deselected / 1 selected

tests/test_e2e_05_topology.py .                                          [100%]
Alopalao commented 5 months ago

Added a test for the API to delete a switch.