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

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

Add in e2e tests for `not_ownership` attribute #279

Closed Ktmi closed 5 months ago

Ktmi commented 5 months ago

The not_ownership attribute was recently added to pathfinder, and integrated into mef_eline, but no work has been done to cover this code with end to end tests. A simple test we can probably do, based on my local tests is:

  1. Create a 3 by 3 torus topology.
  2. Mark all the links which loop around the torus as being owned by border.
  3. Create an evc from one corner of the grid to the other, the shortest path should need to go over the border.
  4. Check that the evc was successfully created, has a valid path, and that path passes through the border.
  5. Create another evc, with similar specifications to the previous one, but include in its mandatory metrics, "not_ownership": ["border"]
  6. Check that the evc was successfully created, has a valid path, and that the path does not pass through the border.