summaryrefslogtreecommitdiff
path: root/tests/topotests/example-test
AgeCommit message (Collapse)Author
2021-05-11tests: Unify directory naming for topotestsDonatas Abraitis
Change every `-` to `_` in directory names. This is to avoid mixing _ and -. Just for consistency and directory sorting properly. Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
2021-03-01tests: Run `black` against tests again to clean up formattingDonald Sharp
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2021-01-21tests: pytest markers in topotest templatesDavid Schweizer
Signed-off-by: David Schweizer <dschweizer@opensourcerouting.org>
2020-09-18tests: use .items instead of .iteritems in topotestsMark Stapp
Avoid py2-only .iteritems() api. Signed-off-by: Mark Stapp <mjs@voltanet.io>
2020-04-03tests: Run python formatter (black) for topotestsreformat
Mostly ' => ", whitespace changes. Using https://github.com/psf/black Signed-off-by: reformat <reformat@nobody.nobody>
2018-11-27template: add router check testRafael Zalamena
Show test developers that they can check if routers are running by calling tgen.routers_have_failure().
2018-11-27template: update test templateRafael Zalamena
Use the new logger and implement a default memory leak test/report.
2018-11-27template: allow test to be run without pytestRafael Zalamena
Update the PYTHONPATH for standalone runs and pass all command line arguments to pytest main. Also set the executable bit to the python scripts file.
2018-11-27template: change the default dot fileRafael Zalamena
Make it look like the RIP(ng) dot files with authentic shapes and colors for routers and switches.
2018-11-27topogen: use shorter names for equipmentsRafael Zalamena
After some feedback from mwinter@, the names of equipments are now shorter to make it easier to type them and to keep consistency with mininet documentation. While here, update the template and make it use optional name parameters for clarity.
2018-11-27topotest: add guidelinesRafael Zalamena
This is the beginning of the guidelines file. It will contain all necessary instructions to help people write topology tests.
2018-11-27example: add missing __init__.pyRafael Zalamena
Adding the __init__.py file makes python and its linter recognize that the test makes part of the package, this makes us save a few lines of code to make the linter and auto complete engines happy.
2018-11-27topogen: first code importRafael Zalamena
Topogen (Topology Generator) is a helper that wraps around Topotest to simplify some of the boilerplate code. This abstraction will help the development of new tests and new APIs without breaking the existing ones. It also makes the relation of objects clearer, since we no longer touch the Mininet API directly, which in turn also makes us less vulnerable to external API changes.
2018-11-27example-test: Add simple example pytest for documentation (and exclude it ↵Martin Winter
from running in pytest.ini)