299 Commits

Author SHA1 Message Date
Dean Troyer
9062811d10 Expand support for command extensions
Allows client libraries to have complete access to the rest of the
OSC ClientManager.  In addition, extension libraries can define
global options (for API version options/env vars) and define
versioned API entry points similar to the in-repo commands.

The changes to ClientManager exposed some issues in the existing
object api tests that needed to be cleaned up.

Change-Id: Ic9662edf34c5dd130a2f1a69d2454adefc1f8a95
2013-11-21 01:27:10 -06:00
Jenkins
d45187a0c1 Merge "Add server image create command" 2013-11-20 06:37:25 +00:00
Jenkins
b70b1d04e4 Merge "Complete basic test infrastructure" 2013-11-20 06:37:24 +00:00
Jenkins
56fbf65941 Merge "change execute to run" 2013-11-19 17:24:30 +00:00
Jenkins
0b3d69599b Merge "Fix typo" 2013-11-19 17:24:29 +00:00
Noorul Islam K M
07bbfd5770 Fix typo
Change-Id: I7bca8b76c6746121314e688e9ed3825e04350b8d
2013-11-19 19:58:03 +05:30
Sascha Peilicke
5444641292 Support building wheels (PEP-427)
With that, building and uploading wheels to PyPI is only one "python
setup.py bdist_wheel" away.

Change-Id: I8c8565f55e7a3434e1a1972a797a6cd7dba8a581
2013-11-19 10:11:07 +01:00
Dean Troyer
200ed62054 Add server image create command
Translation of 'nova image-create', with tests!

Change-Id: I8a833aeff6f291e4774063ed235876eb2ba9c13c
2013-11-18 23:40:11 -06:00
Dean Troyer
6460f1eb35 Complete basic test infrastructure
This finally gets all of the API tests into a common framework regarding
test classes and so forth.

Change-Id: If675347129c50dcba0bfc5b6c58f5a2ca57ff46c
2013-11-18 22:11:10 -06:00
Terry Howe
98eaccc431 change execute to run
Change-Id: I23a210c8771c206df14d2713a2e72ccd92402c43
2013-11-16 05:47:32 -07:00
Joe Gordon
c946192e37 Update URL for global hacking doc and fix typos
* related to I579e7c889f3addc2cd40bce0c584bbc70bf435e2

Change-Id: I519155d0a47564ce18a9cd930378a3c4feaa7a77
2013-11-11 11:09:55 -08:00
OpenStack Jenkins
e118f216db Merge "Updated from global requirements" 2013-11-08 04:22:36 +00:00
Dean Troyer
68094619be Remove httpretty from test requirements
We don't use it...

Change-Id: I41466da5153a8bdd0e4b4dd5774a9711bff3b7f5
2013-11-07 20:57:47 -06:00
OpenStack Jenkins
6ecf5bf4e3 Updated from global requirements
Change-Id: I421ab7a5b0c0224122cc747141956bc1282f2b07
2013-11-05 09:54:51 +00:00
Dean Troyer
9137cc304d Do lookups for user, project in volume create
This required https://review.openstack.org/26323 in keystoneclient,
merged long ago...

Also adds some tests for 'volume create'

Change-Id: I55bededbc20b5dcf2833c59eb2b6b069703d8a9a
2013-10-25 12:21:41 -05:00
Dirk Mueller
1fa1330e1d Adjust to non-deprecated names in Keyring 1.6.+
Keyring 1.1 moved the concrete backend implementations into their
own modules. As we depend on 1.6.1+, we can make use of the new
name and remove the old one without deprecation-fallback.

Change-Id: I0682b13fc9f488b3f3d9fd057f712909fcd48bc4
2013-10-24 14:25:40 +02:00
OpenStack Jenkins
a1bda219a5 Updated from global requirements
Change-Id: I2a306dd8edc030d3f989e9947dec784f502b3953
2013-10-16 12:21:38 +00:00
Jenkins
29642c2c3d Merge "Sync oslo-incubator for py33 fixes" 2013-10-13 04:56:38 +00:00
Jenkins
b3fd6ad6db Merge "Add to clientmanager tests" 2013-10-13 04:56:22 +00:00
Dean Troyer
fa649f4654 Sync oslo-incubator for py33 fixes
Change-Id: I261ec6bb34b29169ba3547305deab051f85a3d4d
2013-10-11 11:59:05 -05:00
Dean Troyer
3f9c68f1c6 Add options to support TLS certificate verification
Add --os-cacert and --verify|--insecure options using the same
sematics as the other project CLIs.  --verify is included for
completeness.

Bug: 1236608

Change-Id: I8a116d790db5aa4cb17a2207efedce7cb229eba3
2013-10-07 18:17:48 -05:00
OpenStack Jenkins
bca4cf9578 Updated from global requirements
Change-Id: Ic3b5de6a54951b4f9a6449f97aa1ab9c395a2f08
2013-10-01 16:15:07 +00:00
Dean Troyer
ad59b03be6 Add object-store show commands
* Add lib.container.show_container() and lib.object.show_object()
* Add container and object show commands

Change-Id: I963d664c55b59739453345f0f353aa2eaf1bf70e
2013-09-26 13:34:11 -05:00
Dean Troyer
74f4e31389 Update release notes for 0.2.2
Change-Id: I59cbee4c147d5f849a7f07224e83ddd751212077
2013-09-20 10:57:31 -05:00
Dean Troyer
ae8d64b337 Sort entrypoints in setup.cfg
Change-Id: I72b0e069334c290cdc4d46cff0ba66d751c0edb4
2013-09-20 10:37:50 -05:00
Dean Troyer
1c4d3b320f Fix security group entrypoints
Change-Id: I0590dde67b1121523d03742ce57093f2c5bacc72
2013-09-20 10:33:15 -05:00
Dean Troyer
6fe687fdf6 Delay authentication to handle commands that do not require it
* Move the auth to OpenStackShell.prepare_to_run_command() and skip it if
  the command's auth_required == False
* Default auth_required = True for all commands
* Do authentication up-front for interactive use as
  OpenStackShell.prepare_to_run_command() is not called

Change-Id: Id330092f242af624f430d469882d15f4a22f4e37
2013-09-12 16:23:14 -05:00
Dean Troyer
8898e020fb Identity v3 tests
* Add project, user, role and service v3 tests
* Fix issues in commands with enable/disable
* Make commands and tests more consistent between versions
* Make formatting and comments more consistent

Change-Id: Id21e7a5abd7e421a7742f937861ec46b53095fc7
2013-09-09 14:58:28 -05:00
Dean Troyer
7a0a7d67ed Prepare for Identity v3 tests
* Split identity/fakes.py for v2_0 and v3
* Split identity/test_identity.py for v2_0 and v3
* Fix issues in commands with enable/disable
* Clean up v2 commands

Change-Id: I6e536b6a130fc556dbd7dcf9f2e76d939ca1bc1c
2013-09-09 14:52:50 -05:00
Dean Troyer
916bb68dfd Add to clientmanager tests
Change-Id: Iea59c494f31de9c3e1d662f89e6e2babcc8fbd61
2013-09-05 12:54:14 -05:00
Jenkins
16edd97007 Merge "Update tox.ini for new tox 1.6 config" 2013-09-05 13:06:45 +00:00
Dean Troyer
44c97cc099 Add Identity v2 role and service tests
* Add current auth info (auth_ref) to ClientManager
* Fix identity.v2_0.role.ListUserRole to get default user/project
  from ClientManager.auth_ref
* Fix identity.v2_0.role.AddRole call to roles.add_user_role()

Change-Id: Ie8bf41c491d97b0292a2b86bdc9b7580989a7f97
2013-09-04 21:37:45 +00:00
Dean Troyer
eb405a88c4 Refactor fake data for projects and users
* Move fake data structures into tests/identity/fakes.py
* Use fake clients correctly and support multiple client versions

Change-Id: Icacbb2ca740b63937bd2c4442af61b620638b53e
2013-09-04 14:48:24 -05:00
Dean Troyer
c8723ce175 Update tox.ini for new tox 1.6 config
Change-Id: I4363508f562f62b16c856bc072cdb4b37e37b418
2013-09-04 14:23:15 -05:00
Jenkins
1c495a573c Merge "Update requirements.txt and test-requirements.txt" 2013-09-04 19:20:20 +00:00
Dean Troyer
5e29928294 Update requirements.txt and test-requirements.txt
Change-Id: I9c60d1d9097d35aa7c3d44168e370a9f30fd6621
2013-09-04 13:27:26 -05:00
Dean Troyer
725e2543ef Object API commands using our REST API layer
* Add object-store API to ClientManager
* Add object-store client
* Add Object API library in openstackclient.object.v1.lib
* Add Object API {container,object} list commands
* Add library tests
* Add command tests

This should complete the Object v1 container and object list commands

Change-Id: Ib1770d45efa8871959826b85faafa1e0bcef0a03
2013-08-28 22:16:34 -05:00
Dean Troyer
17f13f7bf4 Create a new base REST API interface
* restapi module provides basic REST API support
  * uses dicts rather than Resource classes
  * JSON serialization/deserialization
  * log requests in 'curl' format
  * basic API boilerplate for create/delete/list/set/show verbs
* ignore H302 due to urllib import

Change-Id: I3cb91e44e631ee19e9f5dea19b6bac5d599d19ce
2013-08-23 12:08:32 -05:00
Jenkins
b440986e6e Merge "Re-order oauth commands and sync with keystoneclient" 2013-08-23 16:24:20 +00:00
Steve Martinelli
880323e91d Re-order oauth commands and sync with keystoneclient
1) split out token and consumer
2) sync parameters with keystoneclient

Change-Id: I2d529f0f9087f9939101e963af3d801497fc1171
2013-08-21 15:24:50 -05:00
Dean Troyer
22a6e8891e Add Identity v2 user tests
* implement Identity command tests for v2 user

Also re-work the user create and set commands for exclusive options
(--enable|--disable) to actually behave properly.  Yay tests!

Change-Id: Ie1ec2569b3d85a9d556ee70f2e8f69fd2a3c03c8
2013-08-19 15:26:51 -05:00
Dean Troyer
493339d4da Add Identity v2 project tests
* establish the the form of cliff command classes
* implement some common fake objects
* implement Identity command tests for v2 project
* fix stdout/stderr capture

Also re-work the project create and set commands for exclusive options
(--enable|--disable) to actually behave properly.  Yay tests!

Change-Id: Icbb313db544c1f8dd3c9af7709971838b5a4d115
2013-08-16 14:35:46 -05:00
Monty Taylor
93612bbf53 Updated from global requirements
Change-Id: I1687d51bddb873549163dcf488fc40cdd9edcb29

Change-Id: Ic4a43955526fcde313ad2f2afec8fafeb87f37a6
2013-08-07 18:54:34 -03:00
Dean Troyer
0507e9cf6f Add release notes in docs
Change-Id: I49dc936a37848745ce3412e810b98348558d1157
2013-08-06 12:43:22 -05:00
Monty Taylor
3a92ffa823 Sync with global requirements
Change-Id: I1969b4d74363a8d77cbb5dac661874f3bea2e96c
2013-08-03 14:58:43 -04:00
Dean Troyer
af87489022 Change version reporting to use pbr
Gets rid of the hard-coded version string in shell.py

Change-Id: I8b818c9a8f1224669079141e7a7caf614e588d20
2013-08-02 12:11:49 -05:00
Steve Martinelli
d67524897b Modify run_tests.sh to just run tox
should fix bug 1203384

Change-Id: Ib37b05067624d7ad1a4516f161514565b088bf6b
2013-08-02 01:41:14 -05:00
Jenkins
0cc5811122 Merge "Prep for 0.2 release (0.2.rc1)" 0.2.rc1 2013-08-01 22:51:30 +00:00
Dean Troyer
6f9dcc13f6 Prep for 0.2 release (0.2.rc1)
* rename HACKING to HACKING.rst and refer to the common OpenStack HACKING file
* add the barest of pointers to the wiki, etc. to the source docs
* add a bare-bones man page

Change-Id: I80e5b972af645f14ef17ae87f182ab09cb08dabe
2013-08-01 16:21:22 -05:00
Jenkins
f293027815 Merge "Remove tenant round 3 - other commands" 2013-07-31 22:30:12 +00:00