15 Commits

Author SHA1 Message Date
Kyrylo Romanenko
9f346c3fb6 Allow format selection in get_opts
Default is "value".

Change-Id: I244253f6cd53104a57ef12f6b14e1653c89d38bc
2016-07-14 14:09:18 +03:00
Kyrylo Romanenko
259b4a1462 Deduplicate get_opts methods
One get_opts method can work instead of
get_list_opts and get_show_opts both.
Remove mutable default value.

Change-Id: I9c5683d416f0f3ed4989abab6f152b0341e30a4f
2016-07-05 15:39:03 +00:00
Kyrylo Romanenko
ca9a6daba0 Make code more compact for get_list_opts function
Do it like in get_show_opts done.

Change-Id: If6b115c35a41997627660830fb8e5d299e8fb8e9
2016-06-24 14:28:28 +03:00
Daniel Gonzalez
9ec41c0397 Replace tempest-lib with tempest.lib
tempest-lib is deprecated, so replace it with tempest.lib.

Co-Authored-By: Sheel Rana <ranasheel2000@gmail.com>

Change-Id: I0495eba110bb7581623fbcf49dc63a27e9cb6d64
Closes-Bug: #1553047
2016-04-29 08:33:45 +00:00
Kyrylo Romanenko
c95d68eaea Deduplicate CLI output parser code in test.py
Use methods from tempest-lib.cli.output_parser.

Change-Id: I0655141a0ef967675e41b1da49cf999da3382018
2016-04-19 05:20:23 +00:00
Kyrylo Romanenko
573bb6b941 Use CommandFailed exception from tempest_lib
Remove exceptions.py from functional/common.
Import exception with the same code from the tempest_lib to tests.

Change-Id: Ifaa658209c18dd608836079f57ed18fcf10fb84e
2016-04-13 19:09:07 +03:00
Cedric Brandily
139a45bb71 Remove unused method cleanup_tmpfile
This change removes unused cleanup_tmpfile method from functests code.

Change-Id: I5d8e7edb0e50e94a5a469ce393d411b390b4db34
2016-04-06 00:40:44 +02:00
Richard Theis
ea0b8f9162 Add quota functional tests
Add functional tests for "os quota" commands.

Change-Id: I0f5939bf4ce553174c9b7ce55bdb3dce0506c409
Related-Bug: #1528249
Partially-Implements: blueprint neutron-client
2016-02-12 12:52:40 -06:00
Sirushti Murugesan
b12d850222 Fix functional tests for Python 3.4
* shlex.split() expects a string. Not bytes.
* decode the bytestring result of subprocess's communicate()
  to a string.

Change-Id: I209f67a91dc609b1e30cb9e683d3d6ee63d00069
2015-10-12 17:23:06 +05:30
Guojian Shao
aa3b3c1f0f add functional tests for identity v3
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
2015-07-07 15:57:36 +08:00
TerryHowe
746f6421d0 Add image functional tests
Change-Id: I30b219bc3393fcb197bda266125dcfb5c8780a3e
2015-06-02 05:26:25 -06:00
TerryHowe
29f29e44d3 Use format options for functional tests
Use the format options for functional tests so we can have more
assertEquals and less assertIn.

Change-Id: I34e6c76b42964f7b596ea35e6b0354a242611cb4
2015-05-17 12:33:39 +00:00
TerryHowe
416d840dc4 Reduce parameters to base class execute
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
2015-04-26 06:37:36 -06:00
Steve Martinelli
126b2c5436 Add an API example base and functional test base
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
2014-11-15 16:29:08 -06:00
Steve Martinelli
742982af4b Add functional tests to osc
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
2014-10-01 19:46:07 -04:00