Rework shell tests
This is the first step in reworking the shell argument handling, clean up and add tests to ensure functionality doesn't change. * Rework shell tests to break down global options and auth options. * Make tests table-driven * Remove 'os_' from 'cacert' and 'default_domain' internal option names Change-Id: Icf69c7e84f3f44b366fe64b6bbf4e3fe958eb302
This commit is contained in:
@@ -52,8 +52,8 @@ def run(opts):
|
||||
# NOTE(dtroyer): This converts from the usual OpenStack way to the single
|
||||
# requests argument and is an app-specific thing because
|
||||
# we want to be like OpenStackClient.
|
||||
if opts.os_cacert:
|
||||
verify = opts.os_cacert
|
||||
if opts.cacert:
|
||||
verify = opts.cacert
|
||||
else:
|
||||
verify = not opts.insecure
|
||||
|
||||
|
Reference in New Issue
Block a user