ironic/ironic/tests/unit/drivers/modules
Pavlo Shchelokovskyy 308e414a57 Introduce keystoneauth adapters for clients
Currently ironic explicitly or implicitly sets the API urls
for most services in the config.
This is quite fragile and we should move to discovery from
the keystone catalog eventually.

To support this, this patch registers `keystoneauth1.adapter.Adapter`
options to all config sections for service clients auth.
Among others it exports `interfaces` option that we set to
['internal', 'public'] by default.
Other exported options are `service_type`, `service_name`, `region_name`
and `endpoint_override`.
The latter will eventually be used by all clients to specify a specific
endpoint to use (for example in noauth mode).

Effectively this patch starts to move all clients code to load client
configuration from config for all of auth, session and adapter.

The first to move is [service_catalog] section, with [conductor]api_url
option being deprecated in favor of [service_catalog]endpoint_override.
A sane default of 'service_type' = 'baremetal' is set for this config
section as well.

More patches moving other clients to consume these new options and
deprecate some other options will follow.

Change-Id: I1283ef3b4d736ac089df0cc74a5850a93b24b6ab
Partial-Bug: #1699547
Related-Bug: #1699542
2017-08-22 06:07:19 +00:00
..
cimc Improve tests for driver's parse_driver_info() 2016-06-27 16:15:05 -05:00
drac Fix DRAC classic driver double manage/provide 2017-08-18 14:40:18 +00:00
ilo Add the new capabilities to the iLO InspectInterface 2017-08-17 05:01:20 -07:00
irmc iRMC: Support volume boot for iRMC virtual media boot interface 2017-08-10 22:21:55 +09:00
network Refactor VIFPortIDMixin: factor out common methods 2017-07-27 18:08:35 +01:00
oneview Use more specific asserts in tests 2017-08-04 08:42:39 +02:00
redfish Make redfish power interface wait for the power state change 2017-06-29 16:47:08 +02:00
storage Logic for skipping deployment with BFV 2017-06-22 19:11:50 +00:00
ucs Fix unit tests with UcsSdk installed 2017-02-10 19:57:42 +00:00
__init__.py Move unit tests to correct directory 2015-09-30 17:47:19 -07:00
test_agent.py Merge "BFV Deploy skip minor logging, logic, and test fixes" 2017-08-04 12:57:37 +00:00
test_agent_base_vendor.py Optimize node locking on heartbeat 2017-08-02 07:43:51 +00:00
test_agent_client.py Remove iSCSI deploy support for IPA Mitaka 2017-02-01 21:53:25 +00:00
test_console_utils.py Make IP address of socat console configurable 2017-07-07 13:14:03 +08:00
test_deploy_utils.py Introduce keystoneauth adapters for clients 2017-08-22 06:07:19 +00:00
test_image_cache.py Fetch Glance endpoint from Keystone if it's not provided in the configuration 2017-06-23 16:42:40 +02:00
test_inspector.py Remove SSH-based driver interfaces and drivers 2017-08-01 12:39:39 +00:00
test_ipmitool.py Use more specific asserts in tests 2017-08-04 08:42:39 +02:00
test_iscsi_deploy.py Introduce keystoneauth adapters for clients 2017-08-22 06:07:19 +00:00
test_noop.py Create dummy interfaces for use with hardware types 2016-11-10 16:52:06 +01:00
test_pxe.py Merge "Add a flag to always perform persistent boot on PXE interface" 2017-08-10 15:44:34 +00:00
test_snmp.py Make SNMP UDP transport settings configurable 2017-08-18 14:42:21 +00:00