Till Maas
64879e74d9
Merge pull request #73 from tyll/black-squash
...
Use black as formatter and enable flake8/pylint
2018-07-20 13:16:20 +02:00
Till Maas
e32033f995
Use black as formatter and enable flake8/pylint
2018-07-18 17:23:18 +02:00
Till Maas
9b3d2d3ad8
Add simple test for bridges
2018-07-16 08:26:50 +02:00
Till Maas
d370966ee2
Add test to take interface down
2018-07-09 14:39:40 +02:00
Till Maas
5f30c5b5e3
Use set_facts to set default provider
...
This avoids symlinks that do not work on Windows:
https://github.com/linux-system-roles/network/pull/64#issuecomment-401740870
2018-07-09 11:56:01 +02:00
Till Maas
053dd62720
tests_ethernet: run with initscripts provider, too
2018-06-29 16:06:43 +02:00
Till Maas
488c59a5f5
Rename/symlink accidentally checked-in files
2018-06-28 16:55:37 +02:00
Till Maas
fce335d79e
tests_ethernet: Use correct test IP range
2018-06-28 16:31:35 +02:00
Shannon Mascarenhas
70e69226c1
Add test for disabling autoconnect
2018-05-30 08:25:25 -05:00
Till Maas
0fc1b5bbb5
Add test to remove Ethernet profile
2018-05-25 19:52:10 +02:00
Till Maas
598e487971
Only run tests with python2 or python3 binary
...
Also fail, when the tests did not run with at least one of them.
2018-05-25 19:51:09 +02:00
Till Maas
47c7b638f0
Test whether python commands can be executed
...
This changes the test to rely on whether the binaries are available
regardless of how they were installed or from which package.
2018-05-25 19:50:07 +02:00
Till Maas
b01ab7fd50
Add integration test for Ethernet device
2018-05-24 15:14:04 +02:00
Till Maas
910f399665
Add helper scripts to get coverage data
2018-05-24 15:14:04 +02:00
Till Maas
ff2f35cb8a
Add helper tasks for integration tests
2018-05-23 18:55:21 +02:00
Till Maas
791d271d0b
Use "is succeeded" instead of | succeeded
...
This removes this deprecation warning:
[DEPRECATION WARNING]: Using tests as filters is deprecated. Instead of
using `result|succeeded` instead use `result is succeeded`. This feature
will be removed in version 2.9. Deprecation warnings can be disabled by
setting deprecation_warnings=False in ansible.cfg.
2018-05-23 18:29:31 +02:00
Till Maas
0bb66af883
Add basic test for Utils.check_output()
2018-05-23 18:29:31 +02:00
Till Maas
83f2521d5e
Fix python3 missing "cmp" keyword for list.sort()
...
This fixes this exception on Python3:
TypeError: 'cmp' is an invalid keyword argument for this function
2018-05-23 18:29:31 +02:00
Till Maas
8157a89456
Install pygobject and NetworkManager-libnm if possible
...
This avoids skipping tests that require pygobject/libnm
2018-05-23 18:29:31 +02:00
Till Maas
fa13ea2388
Fix exception on Python3 in _link_read_permaddress
...
Bytestrings need to be decoded. Just use UTF-8 here, since everyone
should be using it. Also add a test case to catch this. The exception
was:
TypeError: cannot use a string pattern on a bytes-like object
2018-05-23 18:29:31 +02:00
Till Maas
8e6f1bf96b
Move unit tests to tests dir
2018-05-16 20:18:05 +02:00
Till Maas
3e6e536248
Avoid symlink loop and nonstandard top level roles directory - move to tests
2018-05-16 20:03:05 +02:00
Till Maas
4ead3cfea8
Move tests to /tests directory and rename to new naming scheme
...
Ansible Galaxy and
https://fedoraproject.org/wiki/CI/Standard_Test_Interface suggest to use
a /tests directory and a names matching test*.yml.
2018-05-16 19:48:23 +02:00