The Python 2.7 Support has been removed by:
https://review.opendev.org/#/c/704096/
So remove hacking rules for compatibility between python 2 and 3
Change-Id: I0e78b982b79674520c7695c0cca7352677d7b7a0
The --endpoint-type option has been deprecated in Cinder for several
years and was just recently removed. It was missed that the tempest lib
CLI code was still using that to specify the public URL. This updates
the Cinder CLI handling to use the more conventional --os-endpoint-type.
Change-Id: Icb81710a6b905d80c2e75b29be449dc029e01bdd
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
Closes-bug: #1783885
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
In base module execute functional has exist repeat definition.
result and result_err use proc.communicate() value, the result
and result_err value '' out of use.
Change-Id: I1e1fc208b30f8bb367171e42cf688255fd9864f9
Signed-off-by: Yuanbin.Chen <cybing4@gmail.com>
Switch to --os-project-name instead of --os-tenant-name, and pass
also --os-identity-api-version.
All the clients which are wrapped by some method of the CLIClient class
and which use cmd_with_auth support the newly introduced flags at least
since Liberty.
Only exception: the keystone client, which was removed in Newton, so
it is not supported anyway (and it has not been fixed).
Closes-Bug: #1721553
Change-Id: I6d34e76b4089be024093a75f9e467d273d80f1c2
Currently it's impossible to provide related parameters
to the class, which leads to clients functional tests
failures.
Change-Id: I50490428f85e264e6b5e3b7c83ff768a986cb8c8
Closes-bug: #1719687
This commit makes to use sequence directly instead of using
len(SEQUENCE). The original code works correctly, and it's really
straight forward. However, PEP8 recommends like below[1]. And it
makes code more simple, too.
```
For sequences, (strings, lists, tuples), use the fact that empty
sequences are false.
Yes: if not seq:
if seq:
No: if len(seq):
if not len(seq):
```
[1] https://www.python.org/dev/peps/pep-0008/#programming-recommendations
Change-Id: I8d41e16d82b1b3860a98e5217cb7a541fc83b907
The constants of log levels were added in the 1.8 version of
the oslo.log library. So we can replace all usage of system
logging module with log module from oslo.log.
Change-Id: Ide50502f020eb1309648f4f9fc8a9c17aa1a1d9c
In some case cli command should be called with prefix, e.g. for set
some environment variables like this `env LC_ALL=en_US.UTF-8`. Now
CLIClient has optional argument in constructor - prefix, which will
applying before each call
Change-Id: I1ce5fb322bd75a5499666e184b68ea6e26835a55
The changed actually modified the cinder client's argument,
and the option juts exists in relatively new cinder clients.
This reverts commit 1a68176a71.
Change-Id: I8f34714cd6e075bacbc416c369965fd3059ad066
We are trying to remove deprecated option:
--endpoint-type in https://review.openstack.org/#/c/317795/
so we should use --os-endpoint-type for nova now.
Change-Id: Ibd6fccdbd2af47eeeecda903e317d80eb77374cc
We are trying to remove deprecated option:
--endpoint-type in https://review.openstack.org/#/c/317795/
so we should use --os-endpoint-type for nova now.
Change-Id: I2010424a38ba6b817235b507769893413ec27b34
This commit migrates all of the code from tempest-lib as of it's
current HEAD, 6ad0ce42c2791a28125d38b40e7dcddf32dbeed7. The only
changes made to the tempest-lib code is to update the imports and
other references to tempest_lib. Since in it's new home it should
be tempest.lib.
Partially implements bp tempest-lib-reintegration
Change-Id: Iadc1b61953a86fa9de34e285a0bb083b1ba06fa8