95c08bbb29
Print an error if the number of errors is unexpected
2022-03-24 20:12:36 +00:00
2e2f63e1dd
Fix reporting of YAML tests; send retval based on the bitflags of tests passing/failing
2022-03-24 15:15:26 +00:00
672dd65f11
Rename validator/ to config/
2022-03-24 13:56:04 +00:00
c37faecd3f
Buffer output, print when errors occur. Introduce debug/quiet flags
2022-03-22 20:11:32 +00:00
4cb07cf2da
Add -d and -q flags
2022-03-22 19:52:19 +00:00
7bf940be0a
Become a bit stricter: do full-line pattern match, and update unit tests to capture the full error output
2022-03-22 15:10:40 +00:00
551b06bb67
Move the output around - first print the unexpected messages, only then fail the assertions
2022-03-21 10:23:49 +00:00
ba22b1aad8
Refactor for *_get_by_name()
...
They now all return a list [ifname, iface]. If no interface was found
they return None,None. If one was found, they return the (string) name
and the dictionary with interface contents.
2022-03-21 08:47:05 +00:00
e46cf3d3a8
Make the test.errors.count value explicit, update tests which had an implicit count
2022-03-20 19:44:29 +00:00
1ff3ae95cc
Fully move yamltest to unittest framework, assert errors instead of printing them
2022-03-20 19:27:23 +00:00
3291c60d9a
Start refactoring YAML tests into unittest framework
2022-03-20 18:59:40 +00:00
2036795ef1
Move unittest YAML files into their own directory, pending more python unit tests in a followup commit
2022-03-20 16:59:13 +00:00
6d3de72c00
A completely empty config is a valid config
2022-03-15 20:52:09 +00:00
5c61259edd
Add copyright and license
2022-03-13 21:08:32 +00:00
ec93195832
Print unittest description in case it's available
2022-03-13 19:58:17 +00:00
95c8be553f
Simple unit tester, with a few example tests
2022-03-13 17:20:10 +00:00