Change-Id: Ib21107a2dae58a0bf7874cf6f430f7ef73fff3bf
Signed-off-by: Sam Hague <shague@redhat.com>
*** Settings ***
Documentation Openstack library. This library is useful for tests to create network, subnet, router and vm instances
Library Collections
*** Settings ***
Documentation Openstack library. This library is useful for tests to create network, subnet, router and vm instances
Library Collections
Library OperatingSystem
Library RequestsLibrary
Library SSHLibrary
Library OperatingSystem
Library RequestsLibrary
Library SSHLibrary
OpenStack CLI
[Arguments] ${cmd}
[Documentation] Run the given OpenStack ${cmd} and log the output.
OpenStack CLI
[Arguments] ${cmd}
[Documentation] Run the given OpenStack ${cmd} and log the output.
- ${rc} ${output} = OperatingSystem.Run And Return Rc And Output ${cmd}
- BuiltIn.Log ${output}
- BuiltIn.Should Be True '${rc}' == '0'
- [Return] ${output}
+ ${result} = Process.Run Process ${cmd} shell=True
+ BuiltIn.Log ${result.stdout}
+ BuiltIn.Log ${result.stderr}
+ BuiltIn.Should Be True '${result.rc}' == '0'
+ [Return] ${result.stdout}
OpenStack CLI With No Log
[Arguments] ${cmd}
[Documentation] Run the given OpenStack ${cmd} and do not log the output.
OpenStack CLI With No Log
[Arguments] ${cmd}
[Documentation] Run the given OpenStack ${cmd} and do not log the output.
- ${rc} ${output} = OperatingSystem.Run And Return Rc And Output ${cmd}
- BuiltIn.Should Be True '${rc}' == '0'
- [Return] ${output}
+ ${result} = Process.Run Process ${cmd} shell=True
+ BuiltIn.Should Be True '${result.rc}' == '0'
+ [Return] ${result.stdout}
OpenStack Cleanup All
[Documentation] Cleanup all Openstack resources with best effort. The keyword will query for all resources
OpenStack Cleanup All
[Documentation] Cleanup all Openstack resources with best effort. The keyword will query for all resources