21 Commits

Author SHA1 Message Date
TerryHowe
ce65164155 Add functional tests for image set
This patch includes functional tests for image set and it includes
a change to use the OSC utils.format_dict method to format the
properties.  This will give a more user friendly format to the image
commands and it gives a more consistent testable format to the
output.  Instead of:

{u'a': u'b', u'c': u'd'}

The user will see:

a=b, c=d

Change-Id: Ib396316586ffc5dbab231064d5b6dc9425507934
2015-06-16 12:34:00 +00:00
TerryHowe
8d185a6a6f Add functional tests for volume set and unset
Add functional tests for volume set and unset for metadata and
resource values.

Change-Id: Ief07fc5c480608bb900d55df935b89c503609c80
2015-06-03 12:03:17 -06:00
Jenkins
c02b816a74 Merge "Add volume functional tests" 2015-06-02 16:30:51 +00:00
TerryHowe
746f6421d0 Add image functional tests
Change-Id: I30b219bc3393fcb197bda266125dcfb5c8780a3e
2015-06-02 05:26:25 -06:00
TerryHowe
f9fa307809 Add volume functional tests
Change-Id: I8e12837fb22cabeabf1cde341324927cc6ee0252
2015-06-01 14:21:33 -06:00
Terry Howe
9186885553 Remove checks for None dates in keypair functional tests
Steve made a comment about this and I agree, we should try and
keep these tests and simple as possible and this kind of thing
doesn't add much value.

Change-Id: I1eb73e5f38904ee6c74f6c7e27fc66cfe198619d
2015-05-22 13:01:40 -07:00
TerryHowe
f8bbbdce24 Add support for keypair functional tests
Change-Id: I5d4730f8229b50d2b162864c74d8eabfef6c0991
2015-05-17 15:12:28 +00: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
75d3130ab2 Remove unique class names because they are scoped
Remove unique class names because they are module scoped.  Also,
add cleanup of the tmp file in the object test.

Change-Id: I8107a02b13ff87793ba1e56e0f0ad26890f24369
2015-04-27 13:51:39 -06:00
TerryHowe
aa7e58cefb Functional tests run in many environments
Have the functional tests running with less customization and
less shell.  This change will allow the functional tests to be
run against any cloud set up in the environment.

Change-Id: I24f621fbace62273e5a0be24e7af9078c0fc8550
2015-04-25 08:42:06 -06:00
Steve Martinelli
6c4f81516c Re-organize functional tests
The tests should be further divded by project version, similar to
the structure of the unit tests.

Change-Id: Ied3a4204983cdd253c5602a60968c066038d88f2
2015-04-17 13:37:44 -04:00
Steve Martinelli
5bbef2ebbe Revert "Skip functional tests until they are fixed"
This reverts commit 3946bf0e0186c8c2897f432029bad7873b6d03a0.

Change-Id: Ic21137b208991c9ce738e5bf3ad5e6965b69e166
2015-02-17 02:11:17 +00:00
Steve Martinelli
3946bf0e01 Skip functional tests until they are fixed
Newest python-keystoneclient broke some of our tests, this patch
is just to get the gate less broken.

Change-Id: I8961c63d094e9effde73f6d4088d8626a46e1f3d
Related-Bug: #1420080
2015-02-09 22:05:51 -05:00
Dean Troyer
1a25cbaf8f Followup for ec2 credentials command fix
Add functional tests for 'ec2 credentials' commands.

Also fix tenant_id in output for create and show.

Change-Id: I6ba3249b67408571624709e17f8aa2ac6d80237d
2014-12-05 22:21:32 -06:00
Dean Troyer
01a5ff6d32 Add more session/api examples
* examples/object_api.py - Example of using the Object_Store API
* examples/osc-lib.py - Minimal client to use ClientManager as a library

Also add matching functional tests

Change-Id: I4243a21141a821420951d4b6352d41029cdcccbc
2014-11-15 16:29:14 -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
27b0ff5cda cleanup files that are created for swift functional tests
Currently this portion of code is also being run when running
tox to debug local tests. Which is very annoying since a developer
will end up with a bunch of uuid files. Rather than creating it
once per run, we can have a setup/teardown that is handled safely.

Change-Id: I49a0bb3d14f24c54da93458d1e3b9093a1120453
2014-11-12 16:45:21 -05:00
Steve Martinelli
1b3c7ec122 Fix issue token for v3
Currently the code is broken as it references a part of
keystoneclient that does not exist.

Change-Id: I7fbc754537fbb4acffb166b5854840acfaef1fb8
Closes-Bug: #1379871
2014-10-11 20:34:09 -04:00
Steve Martinelli
388bbbac2c Fix issues with object related commands
1) Can't create instance of swiftclient. Since we now create
an API instance, creating a swiftclient instance won't work.
Trying to do any object related command fails.

2) Listing objects in a container fails, we depend on the
data returned in a specific way, during the API transition
this must have slipped through.

Needs regression/funcitonal tests to mame sure this doesn't
happen again.

Change-Id: I69079a0dc9f32b84e6f9307729d3dbbba549ac5e
2014-10-06 20:04:19 -04:00
Steve Martinelli
3842960f71 Create a whole slew of functional tests for identity
Complete the remaining identity v2 and v3 functional tests

Change-Id: I193fd95e58a38caeb66d37c17cde75b983c48ca0
2014-10-01 21:33:43 -04: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