selftests/cli: use lorem-text instead of static lorem ipsum
This replaces static strings with generated ones from lorem-text library. To make tests reproducible we have to se seed for random. This is pretty common so this adds context function for it to toolbox. Toolbox was labeled as common tasks run on router. Now this changes it to just generic common toolbox and splits it to three submodules. There is module for Alpine Linux as well as for OpenWrt. Then there is one additional module for utilities needed in tests implementation.
Showing
- nsfarm/toolbox/__init__.py 12 additions, 0 deletionsnsfarm/toolbox/__init__.py
- nsfarm/toolbox/alpine.py 2 additions, 0 deletionsnsfarm/toolbox/alpine.py
- nsfarm/toolbox/openwrt.py 2 additions, 2 deletionsnsfarm/toolbox/openwrt.py
- nsfarm/toolbox/tests.py 15 additions, 0 deletionsnsfarm/toolbox/tests.py
- requirements.txt 1 addition, 0 deletionsrequirements.txt
- selftests/cli/test_aggregate.py 20 additions, 27 deletionsselftests/cli/test_aggregate.py
- selftests/cli/test_shell.py 6 additions, 13 deletionsselftests/cli/test_shell.py
- tests/sentinel/test_running.py 1 addition, 1 deletiontests/sentinel/test_running.py
- tests/test_bootup.py 1 addition, 1 deletiontests/test_bootup.py
nsfarm/toolbox/__init__.py
0 → 100644
nsfarm/toolbox/alpine.py
0 → 100644
nsfarm/toolbox/tests.py
0 → 100644
... | ... | @@ -4,3 +4,4 @@ pyserial |
pylxd | ||
dateutils | ||
selenium | ||
lorem-text |
Please register or sign in to comment