1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test
Gonéri Le Bouder fc3064471b virt_net: idempotency of create/stop actions (#53276)
Currently, if we try to stop or start a network two time in a row, the
second call will fail. With this patch:

- we don't recreate a network, if it exists
- we only stop a network if it's active, and so we avoid an exception
  saying the network is not active

* test: mock libvirt

* add integration tests for virt_net

* test: enable virt_net test on RedHat 7 and 8

* ci: use the unsupported alias

* tests that require privileged mode are run in VM

* virt_net/create raise unexpected libvirt exception

* import mock from units.compat

* virt_net: do not call create() on "active" network

* virt_net func test: only clean up the libvirt packages

* test: virt_net: don't use assert_called()

* virt_net: add the destructive alias

* move the test in virt_net dir

* test/virt_net: clean up the network at the end
2019-03-28 21:42:35 +05:30
..
cache Update ansible-test sanity command. (#31958) 2017-10-26 00:21:46 -07:00
env Add env command to ansible-test and run in CI. (#50176) 2018-12-20 22:08:57 -08:00
integration virt_net: idempotency of create/stop actions (#53276) 2019-03-28 21:42:35 +05:30
legacy Cleanup yaml files with incorrect task attrs (#53813) 2019-03-15 13:05:09 -04:00
results Collect data from integration test runs. (#28650) 2017-08-25 18:14:47 -04:00
runner Add workspace module for azure (#53731) 2019-03-27 17:04:40 -07:00
sanity Add a force_replace_host flag to win_domain_membership (#53542) 2019-03-28 14:36:26 +10:00
units virt_net: idempotency of create/stop actions (#53276) 2019-03-28 21:42:35 +05:30
utils Slightly increase non-coverage unit test timeout. 2019-03-21 09:30:43 -07:00