summaryrefslogtreecommitdiff
path: root/functional/common/test.py
Commit message (Collapse)AuthorAgeFilesLines
* Allow format selection in get_optsKyrylo Romanenko2016-07-141-2/+3
| | | | | | Default is "value". Change-Id: I244253f6cd53104a57ef12f6b14e1653c89d38bc
* Deduplicate get_opts methodsKyrylo Romanenko2016-07-051-6/+2
| | | | | | | | One get_opts method can work instead of get_list_opts and get_show_opts both. Remove mutable default value. Change-Id: I9c5683d416f0f3ed4989abab6f152b0341e30a4f
* Make code more compact for get_list_opts functionKyrylo Romanenko2016-06-241-3/+1
| | | | | | Do it like in get_show_opts done. Change-Id: If6b115c35a41997627660830fb8e5d299e8fb8e9
* Replace tempest-lib with tempest.libDaniel Gonzalez2016-04-291-2/+2
| | | | | | | | | tempest-lib is deprecated, so replace it with tempest.lib. Co-Authored-By: Sheel Rana <ranasheel2000@gmail.com> Change-Id: I0495eba110bb7581623fbcf49dc63a27e9cb6d64 Closes-Bug: #1553047
* Deduplicate CLI output parser code in test.pyKyrylo Romanenko2016-04-191-59/+4
| | | | | | Use methods from tempest-lib.cli.output_parser. Change-Id: I0655141a0ef967675e41b1da49cf999da3382018
* Use CommandFailed exception from tempest_libKyrylo Romanenko2016-04-131-1/+1
| | | | | | | Remove exceptions.py from functional/common. Import exception with the same code from the tempest_lib to tests. Change-Id: Ifaa658209c18dd608836079f57ed18fcf10fb84e
* Remove unused method cleanup_tmpfileCedric Brandily2016-04-061-7/+0
| | | | | | This change removes unused cleanup_tmpfile method from functests code. Change-Id: I5d8e7edb0e50e94a5a469ce393d411b390b4db34
* Add quota functional testsRichard Theis2016-02-121-0/+5
| | | | | | | | Add functional tests for "os quota" commands. Change-Id: I0f5939bf4ce553174c9b7ce55bdb3dce0506c409 Related-Bug: #1528249 Partially-Implements: blueprint neutron-client
* Fix functional tests for Python 3.4Sirushti Murugesan2015-10-121-1/+2
| | | | | | | | * shlex.split() expects a string. Not bytes. * decode the bytestring result of subprocess's communicate() to a string. Change-Id: I209f67a91dc609b1e30cb9e683d3d6ee63d00069
* add functional tests for identity v3Guojian Shao2015-07-071-0/+20
| | | | | | | | | | | To make test cases more clearly, split test_identity.py into test_user.py, test_role, etc. Add more test cases for user, role, etc. Furthermore, to make functional tests run repeatedly without raising duplicated error, clean up resources before exiting each test case. Change-Id: I1541943ad0b8d4d8d1e72822c159fda243b3d1d7 Implements: blueprint identity-functional-tests
* Add image functional testsTerryHowe2015-06-021-1/+1
| | | | Change-Id: I30b219bc3393fcb197bda266125dcfb5c8780a3e
* Use format options for functional testsTerryHowe2015-05-171-2/+29
| | | | | | | Use the format options for functional tests so we can have more assertEquals and less assertIn. Change-Id: I34e6c76b42964f7b596ea35e6b0354a242611cb4
* Reduce parameters to base class executeTerryHowe2015-04-261-5/+4
| | | | | | | | | Simplify the parameters so we are just passing a command string to the execute command in the base class. The string is exactly the command we are going to run. This will make debugging easier and make it clearer what we are actually running. Change-Id: I0425007e1849f31d692420e38544c55b1acb86c4
* Add an API example base and functional test baseSteve Martinelli2014-11-151-0/+6
| | | | | | | | | | Add examples/common.py, which is a basic common setup that mimics OSC's configuration options and logging without the rest of the CLI. Also add the functional test tooling for examples to prevent bit rot. Co-Authored-By: Dean Troyer <dtroyer@gmail.com> Change-Id: Ie92b675eafd93482ddc9a8ce0b0588e23ed50c35
* Add functional tests to oscSteve Martinelli2014-10-011-0/+129
Create a script that kicks off function tests that exercise openstackclient commands against a cloud. If no keystone/openstack process is detected, a devstack instance is spun up and the tests are run against that. There is also a hook added to tox.ini so that we can run these tests easily from a gate job. Change-Id: I3cc8b2b800de7ca74af506d2c7e8ee481fa985f0