ansible/test/units/modules/cloud
Monty Taylor 4848652c7a 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.

(cherry picked from commit 0f893027c4)
2018-02-15 17:59:05 +01:00
..
amazon [cloud] kinesis stream server side encryption - fixes #30269 (#30689) 2018-01-17 13:23:27 -05:00
google test/: PEP8 compliancy (#24803) 2017-05-30 18:05:19 +01:00
openstack Add a module_utils OpenStack Cloud constructor (#20974) 2018-02-15 17:59:05 +01:00
__init__.py Relocate module unit tests. (#18812) 2016-12-08 11:35:20 -05:00