1089 Commits

Author SHA1 Message Date
Jamie Lennox
226fc6c80a Change Credentials header to Blob from data
The payload data of credentials is the unfortunately named blob.
Currently when listing credentials the payload is excluded as OSC is
looking for a column called data which does not exist.

Change-Id: I6fa4579d7ec9ba393ede550191dbd8aa29767bf4
2015-06-02 17:10:48 -04:00
Jenkins
dff006c3f6 Merge "Rework shell tests" 2015-06-02 16:55:24 +00:00
Jenkins
c02b816a74 Merge "Add volume functional tests" 2015-06-02 16:30:51 +00:00
Jenkins
a6ea6d9f94 Merge "Add image functional tests" 2015-06-02 14:49:34 +00:00
Dean Troyer
a05cbf4c99 Rework shell tests
This is the first step in reworking the shell argument handling,
clean up and add tests to ensure functionality doesn't change.

* Rework shell tests to break down global options and auth options.
* Make tests table-driven
* Remove 'os_' from 'cacert' and 'default_domain' internal option names

Change-Id: Icf69c7e84f3f44b366fe64b6bbf4e3fe958eb302
2015-06-02 09:49:17 -05:00
Jenkins
c2e8b80ee3 Merge "Ignore cover directory from git" 2015-06-02 14:32:39 +00:00
TerryHowe
746f6421d0 Add image functional tests
Change-Id: I30b219bc3393fcb197bda266125dcfb5c8780a3e
2015-06-02 05:26:25 -06:00
Jenkins
9bf24f3ae1 Merge "Set tenant options on parsed namespace" 2015-06-02 02:15:52 +00:00
TerryHowe
f9fa307809 Add volume functional tests
Change-Id: I8e12837fb22cabeabf1cde341324927cc6ee0252
2015-06-01 14:21:33 -06:00
Jenkins
4d57e9f62a Merge "Add --wait to server delete" 2015-06-01 20:07:27 +00:00
Jenkins
40634c3f2c Merge "project create is missing --parent in doc" 2015-06-01 15:29:25 +00:00
Jamie Lennox
0c9f5c25e4 Ignore cover directory from git
The cover directory holds autogenerated coverage reports that should
not be checked into git and should therefore go in the gitignore file.

Change-Id: I4f7225b5422493f99bc534d6ac622e0703781e6d
2015-06-01 17:46:02 +10:00
Jenkins
c4bc05b945 Merge "Add support for volume v2 API" 2015-05-31 05:17:38 +00:00
Jamie Lennox
3ae247fdce Set tenant options on parsed namespace
Because of the way OSC registers all plugins together we end up
with os-tenant-X parameters being saved to the project-X attribute after
parsing. If you are using the v2 plugins directly then they and os-client-config
expect the tenant_X values and will assuming no scoping information if
they are not present.

Validating options for scope will also fail in this situation, not just
because the resultant auth dictionary is missing the tenant-X
attributes, but because OSC validates that either project or domain
scope information is present.

Fix this by just always setting the v2 parameters if the v3 parameters
are present. This will have no effect on the generic or v3 case but fix
the v2 case.

Expand validation to include the tenant options so it knows that v2
plugins are scoped.

Change-Id: I8cab3e423663f801cbf2d83106c671bddc58d7e6
Closes-Bug: #1460369
2015-05-31 15:03:42 +10:00
Amey Bhide
5361652d8f Add support for volume v2 API
Added following commands for volume V2 API:
volume show
volume delete
volume type show
volume type delete
snapshot show
snapshot delete
backup show
backup delete

Implements: blueprint volume-v2
Change-Id: I68bd303c194f304ad15f899d335b72a8bf3ebe10
2015-05-30 11:26:14 -07:00
Guojian Shao
d14316a832 add domain scope arguments to v3 role add in doc
There are optional domain scope arguments --user-domain,
--group-domain and --project-domain to filter user, group
and project for command 'os role add', however, the doc
is missing them.

Closes-Bug: #1460296
Change-Id: Ie7c7707d183da042c51e98b6cd4003c89efc4032
2015-05-30 09:30:10 -04:00
Guojian Shao
01573be3f8 project create is missing --parent in doc
'project create' is missing '--parent <project>' argument in doc,
actually it is supported.

Change-Id: Id0edaab4e2b02a1f7d974d71a11c7c373e31806f
Closes-Bug: #1460256
2015-05-30 02:23:32 -04:00
Matt Riedemann
224d375ef4 Add --wait to server delete
This allows the server delete command to wait for the server to be
deleted (obviously).

The wait method is the same model that Tempest uses, i.e. wait for a 404
on server GET (successful deletion), fail if the server went to ERROR
status, or fail if a timeout is reached.  The default timeout of 300
seconds is also what Tempest uses.

Closes-Bug: #1460112

Change-Id: I0e66c400903e82832944d1cad61e7eb30177c3e8
2015-05-29 14:32:51 -07:00
Jenkins
d9b7d13edf Merge "Add cli tests for --verify and friends" 2015-05-29 21:03:03 +00:00
Jenkins
3ee99dc02a Merge "Use ostestr for test runs" 2015-05-29 20:47:09 +00:00
Jenkins
7d3eeb299b Merge "Small tweaks to osc plugin docs" 2015-05-29 19:59:08 +00:00
Matthew Treinish
ae29f7f459 Use ostestr for test runs
This commit switches to use ostestr for running tests. ostestr
integrates the subunit-trace output that other projects use for test
output. (in addition to some other ui niceties)

Change-Id: Ib5b5225b2a7bfb7897e1efe55181389d1ae095cb
2015-05-29 11:31:15 -04:00
Dean Troyer
2c4b87869b Add cli tests for --verify and friends
The tests that will change after the verify-always-true bug is fixed
are currently commented out.  The commented asserts show where we
want to go.

Also fixes --verify parser value

Change-Id: I891e3ead5fc3da3ed2ecba5d2befd9e910778655
2015-05-28 18:01:49 -05:00
Steve Martinelli
da083d171d Small tweaks to osc plugin docs
Change-Id: Ifbc63871e60e8ee843fdfefd8026dc4224fe4e13
2015-05-28 15:58:42 -04:00
TerryHowe
211c14c638 Fix shell tests
Personally, I think these tests should be removed, they are
testing OCC.  An internal OCC change on a private method broke
this test.

Change-Id: I760bf90ef8bd97e30be7838874337be695d45285
2015-05-28 11:01:13 -06:00
Jenkins
e8655f44f0 Merge "Create 1.3.0 release notes" 2015-05-27 21:20:48 +00:00
Jenkins
3d239eddc7 Merge "Add support for v2 image set command" 2015-05-27 20:38:00 +00:00
Jenkins
cb1da522f2 Merge "Remove checks for None dates in keypair functional tests" 2015-05-27 20:03:50 +00:00
Jenkins
dce25815d0 Merge "Remove oslo incubator config" 2015-05-27 20:03:10 +00:00
Jenkins
6e4d6923cd Merge "Remove oslo serialization requirement" 2015-05-27 20:03:06 +00:00
Dean Troyer
a15d8f681a Create 1.3.0 release notes
Change-Id: I1bd91490487b4c5eb6de7ea2aa09848b063071f1
2015-05-27 14:29:24 -05:00
Jenkins
efee80d631 Merge "Adds python-tuskarclient to list of plugins" 2015-05-27 19:20:06 +00:00
Jenkins
806b16a007 Merge "Add some comments about current plugin support" 2015-05-27 19:20:03 +00:00
Amey Bhide
ce05822a3a Add support for v2 image set command
Partial-Bug: #1405562
Change-Id: Ie30802d720a247748c45099c38450cc6c76bbc2a
2015-05-27 11:49:06 -07:00
Petr Blaho
af9275178b Adds python-tuskarclient to list of plugins
Change-Id: Ie3468d14186f69ec9203f11302b8a07dc93dcc5a
2015-05-27 16:31:41 +02:00
Jenkins
aed5af47a1 Merge "Add missing properties to image set command" 2015-05-26 22:43:49 +00:00
Steve Martinelli
575dcdfc8e Remove oslo serialization requirement
Recently oslo serialization has started to also include
python-msgpack. Since we were only using it for json support, we
should just use python's json support. Especially since it's only
used by our tests.

Change-Id: I0f8d939d6fca7608eaa3eea7ea4ca93296aaab3a
2015-05-26 17:40:01 -04:00
TerryHowe
cae03c6834 Remove oslo incubator config
I don't think we are using oslo incubator right now, if it is
needed, this file can be added back.  This will make tab
complete more pleasant as well.

Change-Id: I41957c1449f8278f23ec07bce920524caea01280
2015-05-26 14:50:26 -06:00
Amey Bhide
ba21d463de Add missing properties to image set command
Enable user to update the following image properties from OSC:
container-format, disk-format, size

Closes-Bug: #1446362
Change-Id: Id9f40f15702e8f14f0327a37fcc7d7971338c258
2015-05-25 22:49:55 -07:00
Jenkins
e72d350316 Merge "Fix client error while rescuing an instance" 2015-05-23 16:37:11 +00:00
Steve Martinelli
ab5a89493f Add some comments about current plugin support
Change-Id: Ida9ac9956c611fec783ff98a01628c3d38e7b58f
2015-05-22 17:41:51 -04: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
Jenkins
61cfebb8aa Merge "Enable specifing domains in "role add"" 2015-05-22 20:00:01 +00:00
Jenkins
7cc9632939 Merge "Fix insecure/verify options" 2015-05-22 19:57:46 +00:00
Amey Bhide
7ef9f97b95 Fix client error while rescuing an instance
Typo server._info -> server

Closes-Bug: #1457983

Change-Id: I606505d73b3aae90bac636e960275926284b4ea6
2015-05-22 10:25:57 -07:00
TerryHowe
f8bbbdce24 Add support for keypair functional tests
Change-Id: I5d4730f8229b50d2b162864c74d8eabfef6c0991
2015-05-17 15:12:28 +00:00
Terry Howe
12f1bdde2a Fix insecure/verify options
The insecure and verify options are broken so that verify always
gets set to True.  One problem was that the parsed args not
defaulted so os_cloud_config thinks there was always a command
line specified.  The other problem was getattr was called on cloud
config instead of get.

Closes-Bug: #1450855
Change-Id: Ib5f004f51a7453cc8f5a89759e2031ec42e04a30
2015-05-17 08:52:03 -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
d39b9c91c4 Fix functional test gate
The functional test gate seems to be broken.  The environment
variables are not being passed through.

Change-Id: Ied1f56877e4793c5e88e59d2afb7f1a5b3868560
2015-05-15 13:25:37 -06:00
Jenkins
e9159d6f1e Merge "Updated from global requirements" 2015-05-12 17:48:38 +00:00