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
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
Remove unique class names because they are module scoped. Also,
add cleanup of the tmp file in the object test.
Change-Id: I8107a02b13ff87793ba1e56e0f0ad26890f24369
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
The tests should be further divded by project version, similar to
the structure of the unit tests.
Change-Id: Ied3a4204983cdd253c5602a60968c066038d88f2
Newest python-keystoneclient broke some of our tests, this patch
is just to get the gate less broken.
Change-Id: I8961c63d094e9effde73f6d4088d8626a46e1f3d
Related-Bug: #1420080
Add functional tests for 'ec2 credentials' commands.
Also fix tenant_id in output for create and show.
Change-Id: I6ba3249b67408571624709e17f8aa2ac6d80237d
* 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
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
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
Currently the code is broken as it references a part of
keystoneclient that does not exist.
Change-Id: I7fbc754537fbb4acffb166b5854840acfaef1fb8
Closes-Bug: #1379871
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
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