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/units/modules
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
..
cloud virt_net: idempotency of create/stop actions (#53276) 2019-03-28 21:42:35 +05:30
crypto New LUKS devices management module (#48991) 2019-02-15 09:25:14 +00:00
files Fixes #34893 (#40166) 2018-05-16 11:09:32 -05:00
messaging Rabbitmq user permission fixes (#49404) 2018-12-07 13:19:08 +00:00
monitoring Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
net_tools Added support for infoblox member object (#53174) 2019-03-12 17:48:51 +05:30
network Lenovo cnos vrf (#54188) 2019-03-28 19:19:37 +05:30
notification Add support for hex color in slack module (#49804) 2018-12-12 08:41:49 +00:00
packaging rename rhsm_repository_release to rhsm_release (#53430) 2019-03-21 10:21:45 -05:00
remote_management Fix test_oneview_ethernet_network unit test. 2019-03-20 22:13:26 -07:00
source_control Add Bitbucket Pipelines variable module (#54049) 2019-03-22 13:17:08 +01:00
storage Fix .encode('hex') call for python3 (#53343) 2019-03-27 16:03:58 +00:00
system Added support for iptables module iprange (#53732) (#53732) 2019-03-18 13:05:04 +00:00
web_infrastructure Python 3.8 collections compatibility fixes. 2018-10-08 11:26:37 -07:00
__init__.py Some algorithmic unittests for the apt and docker modules 2016-04-27 07:23:31 -07:00
conftest.py Python 3.8 collections compatibility fixes. 2018-10-08 11:26:37 -07:00
utils.py Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00