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
Monty Taylor 0f893027c4 Add a module_utils OpenStack Cloud constructor (#20974)
Start using this to construct shade OpenStack Cloud objects in a
consistent manner. This will let us centralize things like dealing with
password arguments and whatnot. It also allows us to introduce the
ability to pass a fully formed config dict directly to the module.

Migrate all OpenStack modules to use openstack_cloud_from_module.

Have it return the shade library since it's responsible for
importing shade and shade is needed for the exceptions.

Only pull specific OpenStack arguments for the constructor

Rather than passing **module.params to the shade constructor, pull out
only the values that make sense. This should prevent the issues with
module parameters stepping on shade parameters.

Replace module.params.pop with module.params.get

We don't need to pop these anymore since the shade constructor is now
using opt-in values.

Using real urls is ungood. Use example.com domains. Also, get rid of the
antiquated port numbers.
2018-02-15 15:20:49 +01:00
..
cloud Add a module_utils OpenStack Cloud constructor (#20974) 2018-02-15 15:20:49 +01:00
monitoring Unit tests: share common code (#31456) 2017-11-17 09:17:07 -08:00
net_tools nmcli: Allow setting ipv4.dhcp-client-id parameter (#34268) 2018-01-29 17:02:46 -06:00
network Add unit tests for edgeos_command (#35861) 2018-02-14 09:27:03 -05:00
packaging rhn_channel/register: Porting tests to pytest (#33719) 2017-12-12 07:25:49 -08:00
remote_management Python 2.6 str.format() compatibility fixes. 2018-01-10 14:08:11 -08:00
system Fixes #35629 (#35668) 2018-02-05 15:47:14 -06:00
web_infrastructure Fix jenkins_plugin test for no net situations (#30568) 2017-09-19 13:12:45 -07:00
__init__.py Some algorithmic unittests for the apt and docker modules 2016-04-27 07:23:31 -07:00
conftest.py Porting tests to pytest (#33387) 2017-12-05 12:43:13 -08:00
utils.py Unit tests: share common code (#31456) 2017-11-17 09:17:07 -08:00