| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.
Change-Id: If1de2f48da1fd6ed3f96c98b8dce9eace4f8095d
Signed-off-by: Sean McGinnis <sean.mcginnis@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 introduces flake8-import-order to check import orders
automatically. We shouldn't do it manually.
Depends-On: Ia2140f5566ce169b076ffa5c9ebfbdbfc41e5bed
Change-Id: Iff75ebec42b295870edd1c04001adfb17460a682
|
| |
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
CLI execute tests execute a command with an invalid option name and
expect the option name to be echoed back. The output of the command
is not platform independent, it is different for instance on macosx.
Actually invoking the command is not a good practise in unit
tests as even in positive case the command may be installed in a
different path or have a different output.
Changing the tests so that they use mock on subprocess.Popen instead.
Closes-bug 1583205
Change-Id: I9c509359250d2eeb8942e1335e9f3d769e84415a
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The recent commit I45d73891f3c0829a2378a032dfc02e5ac0ee34b7
deduplicated the base test class methods from the tempest.lib
reintegration. However the surviving base class was put in the wrong
namespace. The base class is just that a base to build the individual
test subclass off of. It's very confusing for that to not live in the
base tests namespace. While the code in lib is supposed to be self
contained there isn't a reason to do that here for the unit tests,
especially because in this case the import heiarchy becomes more
confusing with the base living in a submodule. This commit moves the
base class to the base tempest.tests namespace where it really
belongs.
Change-Id: I079eeb1135eed3254e5e9dbebac8a52b979303c7
|
|
|
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
|