703 Commits

Author SHA1 Message Date
Dean Troyer
04d30c1855 Command object docs: project, role, user
project
role
user
user role

Change-Id: I445e09a3ffb69114912ae562a9285963a636bfd1
2014-12-01 17:36:20 -05:00
Jenkins
7e6b68ded9 Merge "Command object docs: aggregate, console *, keypair" 2014-12-01 22:32:35 +00:00
Jenkins
17bf9cdf1c Merge "Begin copying wiki command list here" 2014-12-01 22:32:27 +00:00
Jenkins
a2450d85e0 Merge "Liberalize version matching a bit" 2014-11-21 14:38:14 +00:00
Dean Troyer
9eb30efbf3 Command object docs: aggregate, console *, keypair
aggregate
console log
console url
keypair

Change-Id: Iec9b8404ed5febd061a5dfd674b76aaa8aba67bc
2014-11-19 14:47:53 -06:00
Dean Troyer
254910d3ce Begin copying wiki command list here
* Sort by command objects
* Drop the comparison to the project CLIs
* Minor updates to command help to match docs

Initially include the cross-API commands to establish the structure and format.

Change-Id: I77a7b3c89e088b66aa62941e29ce0b65b532285b
2014-11-19 14:47:53 -06:00
Jenkins
ae00019c64 Merge "Fix volume create --image" 2014-11-19 17:37:14 +00:00
Jenkins
6d589ac801 Merge "add keystone v3 region object" 2014-11-19 04:18:38 +00:00
Jenkins
cb40b5da97 Merge "Add --or-show support for v3 identity resources" 2014-11-18 22:28:01 +00:00
Jenkins
be32793d23 Merge "Add authentication description doc" 2014-11-18 18:54:35 +00:00
Dean Troyer
39116bf594 Fix volume create --image
'volume create --image' should allow an image name to be used.

Closes-Bug: #1383333
Change-Id: I996d46db321eef2d75c3d19b480319f8a78c09b3
2014-11-18 09:35:08 -06:00
wanghong
6edc9b89ed add keystone v3 region object
Co-Authored-By: Steve Martinelli <stevemar@ca.ibm.com>

Change-Id: Ia6f607630dbf507681733c3ab3b9b7c55de30f49
Closes-Bug: #1387932
2014-11-18 09:46:26 -05:00
OpenStack Proposal Bot
25f1c8b98a Updated from global requirements
Change-Id: Ifd9110cf94dfd2f62e59939a7be1a88e919beb36
2014-11-18 11:37:03 +00:00
Jenkins
57364804f6 Merge "Add environment variable in the os-auth-type help" 2014-11-18 09:25:21 +00:00
Steve Martinelli
79653afa7b Add --or-show support for v3 identity resources
Add --or-show for the following:
  * v3 roles
  * v3 projects
  * v3 domains
  * v3 users
  * v3 groups

Closes-Bug: #1390389
Change-Id: Id4ef043e5fda6be49a515eb3fe138c813c393ec9
2014-11-18 04:58:13 +00:00
Jenkins
3b1c308b11 Merge "Add arg to 'server image create' tests" 2014-11-18 03:47:30 +00:00
Jenkins
d827bdaaed Merge "Add additional support for --or-show" 2014-11-18 03:18:10 +00:00
Dean Troyer
0d56d0178b Add authentication description doc
This is represents the current operation

Closes-Bug: #1337422

Change-Id: I8092e7723b563647e13b6e2f0b7901a16572b6c7
2014-11-17 14:21:03 -05:00
Marek Denis
c1b376dc33 Add environment variable in the os-auth-type help
Help for option --os-auth-type doesn't specify what environment variable
configures it. This patch fixes that.

Change-Id: Id2e29e477d5ca56339bd777fb73b5af13788615b
2014-11-17 09:50:12 +00:00
Jenkins
a9670b4cf0 Merge "Add more session/api examples" 2014-11-17 06:01:32 +00:00
Jenkins
b4ca5cc9c1 Merge "Add an API example base and functional test base" 2014-11-16 17:41:33 +00:00
Dean Troyer
2b02beaa51 Liberalize version matching a bit
For class-loading purposes we can just use the major version,
so accept that. Only Identity and Compute were affected; Compute
is included just to be pedantically complete.

For command groups we also just use the major version so fix
Compute and the version option handling.

Change the internal default for Identity to a simple '2' so it
is also consistent with the rest of the world.

Then comes microversioning...

Closes-Bug: #1292638
Change-Id: Ibaf823b31caa288a83de38d2c258860b128b87d8
2014-11-16 11:37:52 -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
Jenkins
f5a2811b65 Merge "Remove links from oauth consumers" 2014-11-14 22:21:18 +00:00
Jenkins
8f40259ada Merge "Remove links from federation related commands in identity v3" 2014-11-14 22:21:06 +00:00
Dean Troyer
936722d59f Add arg to 'server image create' tests
The 'protected' column was not being checked.  Also add it to
image.fakes.IMAGE.

Change-Id: Ie431e9871a7da78b5a3924bfbc51d5575d994d86
2014-11-14 16:13:01 -06:00
Steve Martinelli
7242113a8f Add additional support for --or-show
Add --or-show for the following:
  * v2 roles
  * v2 projects

Change-Id: Ibbae19cda668575b9527fbd259f1298c48b8265b
2014-11-14 16:29:57 -05:00
Jenkins
c55fdb6f6d Merge "Beef up object-store tests" 2014-11-13 22:11:43 +00:00
Steve Martinelli
3e97e1775d Remove links from oauth consumers
This should be the last of the v3 identity objects that return
a links section upon create or show.

Change-Id: I45a3b43c303bfed73950095bec8860cbea7a559c
2014-11-13 16:48:59 -05:00
Steve Martinelli
070fa5091d Remove links from federation related commands in identity v3
We should remove the 'links' portion from the returned object
for the following commands:

* create/show federation protocol
* create/show mapping
* create/show identity provider

Change-Id: I55654cce1f89de8e532f9acd8092257be33efd85
2014-11-13 16:04:49 -05:00
Jenkins
a4ef821438 Merge "cleanup files that are created for swift functional tests" 2014-11-13 17:16:27 +00:00
Jenkins
b8d8e35a27 Merge "Tests work fine with random PYTHONHASHSEED" 2014-11-12 23:19:12 +00:00
Jenkins
89f485f605 Merge "Use fixtures from keystoneclient for static data" 2014-11-12 21:54:07 +00: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
Oleksii Chuprykov
ab89ef5876 Tests work fine with random PYTHONHASHSEED
Change-Id: Iba6fc87bbff289ae2572a7eb132f5c946dfa0956
Related-Bug: #1348818
2014-11-12 15:55:39 +02:00
Jenkins
c8ddfd8311 Merge "Swap remaining assertEqual arguments" 2014-11-10 19:01:52 +00:00
Jenkins
3001d602c5 Merge "Add --or-show option to user create" 2014-11-10 18:58:36 +00:00
OpenStack Proposal Bot
951ca3a6f3 Updated from global requirements
Change-Id: I778a0c00da51cdc52cd67d1b273d52e84d68992b
2014-11-08 14:25:05 +00:00
Dean Troyer
46f6df5f23 Swap remaining assertEqual arguments
Change-Id: I1abdebb298b93074657a7ba65a7186d814969780
2014-11-07 15:08:08 -06:00
Dean Troyer
42d0b20ebc Add --or-show option to user create
The --or-show option is added to create commands for the common case
of needing to ensure an object exists and getting its properties if
it does or creating a new one if it does not exist.

Note that if the object exists, any additional options that would
set values in a newly created object are ignored if the object
exists.

FakeResource needs the __name__ attribute to fall through utils.find_resource.

Prove the concept on v2 user create then propogate once we're happy with it...

Change-Id: I6268566514840c284e6a1d44b409a81d6699ef99
2014-11-07 12:28:42 -06:00
Colleen Murphy
59735bf10d Add cliff-tablib to requirements
cliff-tablib gives cliff the ability to format list and show output in
html, json, or yaml (http://cliff-tablib.readthedocs.org/). This patch
adds cliff-tablib to requirements.txt so that it can be installed along
with cliff.

Change-Id: I4daab97642482e6f40cd8209ff5edd9c680092c0
2014-11-07 15:48:40 +01:00
Jamie Lennox
b193793636 Use fixtures from keystoneclient for static data
We should use the fixture generation code from keystoneclient rather
than keep our own copies of the token and discovery structure.

Change-Id: I53c1d2935d1d65c39b8abea89427af2fc3edd181
2014-10-31 15:15:54 +01:00
Matthieu Huin
631ed3c802 Unscoped federated user-specific commands
A federated user can authenticate with the v3unscopedsaml plugin and
list the domains and projects she is allowed to scope to.
This patch introduces the new commands 'federation domain list' and
'federation project list'.
Note that for these commands -and plugin- to be available, the lxml
library must be installed.

Change-Id: I2707b624befcfb0a01b40a094e12fd68a3ee7773
Co-Authored-By: Florent Flament <florent.flament-ext@cloudwatt.com>
2014-10-30 17:27:28 +01:00
Dean Troyer
2c9d263611 Fix server create for boot-from-volume
* server create required --image even when booting the server from a
  volume.  Change options to require either --image or --volume to
  specify the server boot disk.  Using --volume currently uses device
  'vda' for the block mapping and ignores any other block mappings
  given in --block-device-mapping.
* server create and server show are both affected by bug 1378842 where
  an excepion was thrown when no image ID was present in the returned
  server object, which is the case for a server booted from a volume.
* Fix the remaining assertEqual() order problems in test_server.py

Closes-Bug: 1378842
Closes-Bug: 1383338
Change-Id: I5daebf4e50a765d4920088dfead95b6295af6a4d
2014-10-24 17:55:44 -05:00
Dean Troyer
8ba74451ee Adjust some logging levels
* Promote select messages to INFO so lower logging levels can be useful
* Help more modules not say so much all the time

Change-Id: I814023c1489595998ae74efe40ef439b3522ee74
2014-10-24 13:16:41 -05:00
Jenkins
d07ae4236a Merge "Close files on image create" 2014-10-24 16:16:04 +00:00
Jenkins
d140d8940f Merge "Close files on server create, add tests" 2014-10-24 16:12:06 +00:00
Jenkins
747a62494c Merge "Change --os-auth-plugin to --os-auth-type" 2014-10-24 16:11:42 +00:00
Jenkins
6a4b673e88 Merge "Update use of open() in object API" 2014-10-24 06:38:22 +00:00