CLIClient(username='', password='', tenant_name='', uri='', cli_dir='', insecure=False, prefix='', user_domain_name=None, user_domain_id=None, project_domain_name=None, project_domain_id=None, *args, **kwargs)[source]¶Class to use OpenStack official python client CLI’s with auth
| Parameters: |
|
|---|
ceilometer(action, flags='', params='', fail_ok=False, endpoint_type='publicURL', merge_stderr=False)[source]¶Executes ceilometer command for the given action.
| Parameters: |
|
|---|
cinder(action, flags='', params='', fail_ok=False, endpoint_type='publicURL', merge_stderr=False)[source]¶Executes cinder command for the given action.
| Parameters: |
|
|---|
cmd_with_auth(cmd, action, flags='', params='', fail_ok=False, merge_stderr=False)[source]¶Executes given command with auth attributes appended.
| Parameters: |
|
|---|
glance(action, flags='', params='', fail_ok=False, endpoint_type='publicURL', merge_stderr=False)[source]¶Executes glance command for the given action.
| Parameters: |
|
|---|
heat(action, flags='', params='', fail_ok=False, endpoint_type='publicURL', merge_stderr=False)[source]¶Executes heat command for the given action.
| Parameters: |
|
|---|
keystone(action, flags='', params='', fail_ok=False, merge_stderr=False)[source]¶Executes keystone command for the given action.
| Parameters: |
|
|---|
neutron(action, flags='', params='', fail_ok=False, endpoint_type='publicURL', merge_stderr=False)[source]¶Executes neutron command for the given action.
| Parameters: |
|
|---|
nova(action, flags='', params='', fail_ok=False, endpoint_type='publicURL', merge_stderr=False)[source]¶Executes nova command for the given action.
| Parameters: |
|
|---|
nova_manage(action, flags='', params='', fail_ok=False, merge_stderr=False)[source]¶Executes nova-manage command for the given action.
| Parameters: |
|
|---|
openstack(action, flags='', params='', fail_ok=False, merge_stderr=False)[source]¶Executes openstack command for the given action.
| Parameters: |
|
|---|
sahara(action, flags='', params='', fail_ok=False, endpoint_type='publicURL', merge_stderr=True)[source]¶Executes sahara command for the given action.
| Parameters: |
|
|---|
swift(action, flags='', params='', fail_ok=False, endpoint_type='publicURL', merge_stderr=False)[source]¶Executes swift command for the given action.
| Parameters: |
|
|---|
ClientTestBase(*args, **kwargs)[source]¶Base test class for testing the OpenStack client CLI interfaces.
execute(cmd, action, flags='', params='', fail_ok=False, merge_stderr=False, cli_dir='/usr/bin', prefix='')[source]¶Executes specified command for the given action.
| Parameters: |
|
|---|
Collection of utilities for parsing CLI clients output.
details(output_lines, with_label=False)[source]¶Return dict with details of first item (table) found in output.
details_multiple(output_lines, with_label=False)[source]¶Return list of dicts with item details from cli output tables.
If with_label is True, key ‘__label’ is added to each items dict. For more about ‘label’ see OutputParser.tables().
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.