summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Fix volume create --image"Jenkins2014-11-193-3/+174
|\
| * Fix volume create --imageDean Troyer2014-11-183-3/+174
| | | | | | | | | | | | | | 'volume create --image' should allow an image name to be used. Closes-Bug: #1383333 Change-Id: I996d46db321eef2d75c3d19b480319f8a78c09b3
* | Merge "add keystone v3 region object"Jenkins2014-11-194-0/+632
|\ \
| * | add keystone v3 region objectwanghong2014-11-184-0/+632
| | | | | | | | | | | | | | | | | | | | | Co-Authored-By: Steve Martinelli <stevemar@ca.ibm.com> Change-Id: Ia6f607630dbf507681733c3ab3b9b7c55de30f49 Closes-Bug: #1387932
* | | Merge "Add --or-show support for v3 identity resources"Jenkins2014-11-185-27/+106
|\ \ \
| * | | Add --or-show support for v3 identity resourcesSteve Martinelli2014-11-185-27/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add --or-show for the following: * v3 roles * v3 projects * v3 domains * v3 users * v3 groups Closes-Bug: #1390389 Change-Id: Id4ef043e5fda6be49a515eb3fe138c813c393ec9
* | | | Merge "Add authentication description doc"Jenkins2014-11-182-0/+87
|\ \ \ \
| * | | | Add authentication description docDean Troyer2014-11-172-0/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is represents the current operation Closes-Bug: #1337422 Change-Id: I8092e7723b563647e13b6e2f0b7901a16572b6c7
* | | | | Updated from global requirementsOpenStack Proposal Bot2014-11-181-1/+1
| |_|_|/ |/| | | | | | | | | | | Change-Id: Ifd9110cf94dfd2f62e59939a7be1a88e919beb36
* | | | Merge "Add environment variable in the os-auth-type help"Jenkins2014-11-181-1/+2
|\ \ \ \
| * | | | Add environment variable in the os-auth-type helpMarek Denis2014-11-171-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Help for option --os-auth-type doesn't specify what environment variable configures it. This patch fixes that. Change-Id: Id2e29e477d5ca56339bd777fb73b5af13788615b
* | | | | Merge "Add arg to 'server image create' tests"Jenkins2014-11-182-5/+10
|\ \ \ \ \
| * | | | | Add arg to 'server image create' testsDean Troyer2014-11-142-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The 'protected' column was not being checked. Also add it to image.fakes.IMAGE. Change-Id: Ie431e9871a7da78b5a3924bfbc51d5575d994d86
* | | | | | Merge "Add additional support for --or-show"Jenkins2014-11-184-7/+194
|\ \ \ \ \ \ | |_|/ / / / |/| | | / / | | |_|/ / | |/| | |
| * | | | Add additional support for --or-showSteve Martinelli2014-11-144-7/+194
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add --or-show for the following: * v2 roles * v2 projects Change-Id: Ibbae19cda668575b9527fbd259f1298c48b8265b
* | | | Merge "Add more session/api examples"Jenkins2014-11-173-0/+214
|\ \ \ \
| * | | | Add more session/api examplesDean Troyer2014-11-153-0/+214
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* | | | | Merge "Add an API example base and functional test base"Jenkins2014-11-163-0/+292
|\ \ \ \ \ | |/ / / /
| * | | | Add an API example base and functional test baseSteve Martinelli2014-11-153-0/+292
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Merge "Remove links from oauth consumers"Jenkins2014-11-141-6/+4
|\ \ \ \
| * | | | Remove links from oauth consumersSteve Martinelli2014-11-131-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This should be the last of the v3 identity objects that return a links section upon create or show. Change-Id: I45a3b43c303bfed73950095bec8860cbea7a559c
* | | | | Merge "Remove links from federation related commands in identity v3"Jenkins2014-11-143-12/+11
|\ \ \ \ \ | |/ / / / | | / / / | |/ / / |/| | |
| * | | Remove links from federation related commands in identity v3Steve Martinelli2014-11-133-12/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Merge "Beef up object-store tests"Jenkins2014-11-135-58/+228
|\ \ \ \
| * | | | Beef up object-store testsDean Troyer2014-10-225-58/+228
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add object top-to-bottom tests * Move some fakes around * Clean up existing object tests Change-Id: If8406da611c11bbd2b1bf5153e45b720b0eea442
* | | | | Merge "cleanup files that are created for swift functional tests"Jenkins2014-11-131-3/+6
|\ \ \ \ \ | |_|/ / / |/| | | |
| * | | | cleanup files that are created for swift functional testsSteve Martinelli2014-11-121-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | Merge "Tests work fine with random PYTHONHASHSEED"Jenkins2014-11-121-1/+0
|\ \ \ \ \
| * | | | | Tests work fine with random PYTHONHASHSEEDOleksii Chuprykov2014-11-121-1/+0
| |/ / / / | | | | | | | | | | | | | | | | | | | | Change-Id: Iba6fc87bbff289ae2572a7eb132f5c946dfa0956 Related-Bug: #1348818
* | | | | Merge "Use fixtures from keystoneclient for static data"Jenkins2014-11-121-134/+11
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | Use fixtures from keystoneclient for static dataJamie Lennox2014-10-311-134/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We should use the fixture generation code from keystoneclient rather than keep our own copies of the token and discovery structure. Change-Id: I53c1d2935d1d65c39b8abea89427af2fc3edd181
* | | | | Merge "Swap remaining assertEqual arguments"Jenkins2014-11-101-22/+22
|\ \ \ \ \
| * | | | | Swap remaining assertEqual argumentsDean Troyer2014-11-071-22/+22
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I1abdebb298b93074657a7ba65a7186d814969780
* | | | | | Merge "Add --or-show option to user create"Jenkins2014-11-103-7/+103
|\ \ \ \ \ \ | |/ / / / /
| * | | | | Add --or-show option to user createDean Troyer2014-11-073-7/+103
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | Updated from global requirementsOpenStack Proposal Bot2014-11-082-3/+3
| | | | | | | | | | | | | | | | | | | | Change-Id: I778a0c00da51cdc52cd67d1b273d52e84d68992b
* | | | | Add cliff-tablib to requirementsColleen Murphy2014-11-071-0/+1
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Unscoped federated user-specific commandsMatthieu Huin2014-10-306-0/+231
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | Fix server create for boot-from-volumeDean Troyer2014-10-242-21/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* | | Adjust some logging levelsDean Troyer2014-10-242-15/+24
| | | | | | | | | | | | | | | | | | | | | * 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
* | | Merge "Close files on image create"Jenkins2014-10-242-28/+42
|\ \ \
| * | | Close files on image createDean Troyer2014-10-142-28/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The file opened for --file was never closed. Close it if it is a file object. Change-Id: I7bd120a2413de42339771d01e8fd1894d38c3011
* | | | Merge "Close files on server create, add tests"Jenkins2014-10-244-4/+194
|\ \ \ \
| * | | | Close files on server create, add testsDean Troyer2014-10-144-4/+194
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The files opened for the --files and --user-data options were never closed, potentially leaking memory in a long-running client. Close them if they are file objects. Add a couple of basic tests for server create. Change-Id: I1658b0caa2d6af17308149cb52196ee28266ddf2
* | | | Merge "Change --os-auth-plugin to --os-auth-type"Jenkins2014-10-244-68/+66
|\ \ \ \
| * | | | Change --os-auth-plugin to --os-auth-typeDean Troyer2014-10-234-68/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | User's don't know what a plugin is. * Internally, os_auth_type and/or auth_type represents what the user supplied. * auth_plugin_name is the name of the selected plugin * auth_plugin is the actual plugin object Plugin selection process: * if --os-auth-type is supplied: * if it matches against an available plugin, done * (if it can map to an availble plugin type, done; TODO in a followup) * if --os-auth-type is not supplied: * if --os-url and --os-token are supplied, select 'token_endpoint' * if --os-username supplied, select identity_api_version + 'password' * if --os-token supplied, select identity_api_version + 'token' Change-Id: Ice4535214e311ebf924087cf77f6d84d76f5f3ee
* | | | | Merge "Update use of open() in object API"Jenkins2014-10-242-5/+24
|\ \ \ \ \
| * | | | | Update use of open() in object APIDean Troyer2014-10-132-5/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Switch to use io.open() for py3 compatibility and simpler testing. * Open files in 'rb' mode to avoid translation on Windows Previously tests simply relied on files that were present in the repository to run tests using open(). Change the filenames to ensure that no longer happens. requests_mock doesn't have a way to match against the request body for PUT/POST; an attempt to add a new Matcher to do that worked but it needs to subclass the currently private adapter._Matcher class or duplicate most of its functionality. Change-Id: I8c30b41db20af8ecafe67e760e872fc08adec905
* | | | | | Merge "Include support for using oslo debugger in tests"Jenkins2014-10-222-0/+4
|\ \ \ \ \ \ | |_|_|_|_|/ |/| | | | |
| * | | | | Include support for using oslo debugger in testsSteve Martinelli2014-10-222-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Simply run `tox -e debug <test_name>` to get an interactive debugging prompt Change-Id: I09e5b844a33c2f0fd4230f01fbc6c0aa8d752545