summaryrefslogtreecommitdiff
path: root/openstackclient/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Mark arguments for 'credential' commands as required"Jenkins2015-11-042-0/+116
|\
| * Mark arguments for 'credential' commands as requiredSean Perry2015-09-302-0/+116
| | | | | | | | | | | | | | | | | | | | | | According to the [1], 'user_id', 'type', and 'blob' are all required arguments for 'credential set' but the code treats them as optional. Set the 'required' flag and remove logic supporting missing arguments. [1]: https://github.com/openstack/keystone-specs/blob/master/api/v3/identity-api-v3.rst#credentials-v3credentials "spec" Change-Id: I597c9616ad744385fc6dd92379feb03daec54458 Closes-Bug: #1418837
* | Merge "Trivial clean up: do not use plural form in command arguments."Jenkins2015-11-021-3/+3
|\ \
| * | Trivial clean up: do not use plural form in command arguments.Tang Chen2015-10-241-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | It is a general rule that we don't use plural form for the name of command arguments. But class DeleteServer() is still using "servers". So use "server instead". Change-Id: I2d76de14ec34b88547b9f728b41e9bd93b2a22c5
* | | Merge "Rename context.py to logs.py"Jenkins2015-10-301-32/+32
|\ \ \
| * | | Rename context.py to logs.pyTerry Howe2015-10-301-32/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | At one point this file contained the context for logging, but the reason for its existence is now for logging. Implements: blueprint logging-migration Change-Id: I4ba42bbef97b09d31236ac8c01b6fb23827b8bee
* | | | Merge "remove url from v3 regions"Jenkins2015-10-292-75/+6
|\ \ \ \ | |_|/ / |/| | |
| * | | remove url from v3 regionsSteve Martinelli2015-10-212-75/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the parameter "url" was removed from Keystone, it was only added for one release as part of an experimental support for adding service providers. BackwardsIncompatibleImpact Closes-Bug: 1506841 Change-Id: I7a62fbf1d9bfa8e6dd8d619e98c32b9860348d2e
* | | | Merge "Support pagination params for flavor list"Jenkins2015-10-231-5/+15
|\ \ \ \
| * | | | Support pagination params for flavor listliyingjun2015-10-211-5/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Missing 'marker' and 'limit' params for `openstack flavor list` shell command. It would be nice to have this when there are many flavors. Closes-bug: #1505874 Change-Id: I088ac5d24f0d7595f5cbce14f063e296a449eb26
* | | | | Merge "Move session and fixtures to keystoneauth1"Jenkins2015-10-207-7/+7
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | Move session and fixtures to keystoneauth1Steve Martinelli2015-10-147-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in an effort to start consuming keystoneauth1, we can move our sesssion and fixture code over to use keystoneauth1 instead of keystoneclient. Change-Id: Ibcbd588ce2e3d864f87ff1eb6e1c3c071a1e06f6
* | | | | Merge "Follow-on for volume list - add tests, clean help"Jenkins2015-10-193-10/+340
|\ \ \ \ \ | |_|/ / / |/| | | |
| * | | | Follow-on for volume list - add tests, clean helpDean Troyer2015-10-163-10/+340
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add volume list tests for v1 (a copy of the v2 tests) * Converts volume v2 tests to use Identity v3 so domains can be tested * Add volume list (v2) tests for new options * Re-orders volume list options (both v1 and v2) to match * MArks the new volume list (v2) options as v2-only in doc Change-Id: I2181b2c48cfde2147d7d0ef135322df8a81e7ce8
* | | | Merge "Fix up object-store show commands"Jenkins2015-10-143-13/+1
|\ \ \ \ | |/ / / |/| | |
| * | | Fix up object-store show commandsSteve Martinelli2015-10-103-13/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1) Change metadata to appear under a common 'properties' key, and use the utility to format them, this applied to object, account and container. 2) Clean up container and object output, which were setting the x-container-meta-owner property, but this is metadata only for the container, so it's pointless to have, removed it. 3) Container show was showing read/write ACLs and sync stuff, but these are not being returned by my swift by default, so I moved these to be checks, so we don't clutter the output. Change-Id: Ife7521fe9c2724035b06963c118bd6016ba2f5b5
* | | | Merge "Add test for role list --inherited"Jenkins2015-10-121-0/+33
|\ \ \ \ | |/ / / |/| | |
| * | | Add test for role list --inheritedDean Troyer2015-10-071-0/+33
| | | | | | | | | | | | | | | | Change-Id: I216ab6c8ac903720ec67870a5171ae57a8f293aa
* | | | Merge "image set should not show the resource"Jenkins2015-10-082-14/+3
|\ \ \ \
| * | | | image set should not show the resourceSteve Martinelli2015-10-062-14/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the rest of OSC set commands do not show the resource after it has been updated. unless the update fails then we report back a failure, otherwise the user should assume everything went fine. Change-Id: I2bd4188450c3853b4a1bc25f80fc9450cda32bdd
* | | | | Merge "Evaluate --inherited in role list"Jenkins2015-10-081-0/+5
|\ \ \ \ \ | | |/ / / | |/| | |
| * | | | Evaluate --inherited in role listRudolf Vriend2015-10-061-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the --inherited option was not being passed into keystoneclient Closes-Bug: #1502822 Change-Id: I48170dc67b23cc9b0665b1e0f38118eea952f131
* | | | | Merge "Add tags to `image set`"Jenkins2015-10-073-6/+98
|\ \ \ \ \ | | |/ / / | |/| | |
| * | | | Add tags to `image set`NiallBunting2015-10-063-6/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds --tag to the v2 version of `image set`. This is another step to compatability between the osc image api. Added merge of tags into existing tags and handling duplicates, and tests for same. Co-Authored-By: Steve Martinelli <stevemar@ca.ibm.com> Change-Id: Ie800fcbf8bbc0978c54ace3278750a18023e8ce4
* | | | | Merge "Clean up Image v2 image set command"Jenkins2015-10-061-33/+174
|\ \ \ \ \ | |/ / / / | | / / / | |/ / / |/| | |
| * | | Clean up Image v2 image set commandDean Troyer2015-10-061-33/+174
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make the Image v2 image set command meet at the intersection of the v1 image set command and the v2 image create command: * Add visibility to the deadopts list and remove the option * Put the options in the same order as v1 image set * Make the help text match * Add --properties * Move the additional options that do not appear in either v1 image set or v2 image create after --property as they are really pre-defined properties * Add tests for v2 image set to match v1 and then some * Put the SetImage class in v2/image.py in alphabetical order Change-Id: I102b914e8ad09a014f6fdd846c5766b6c2eaadb8
* | | Merge "cleanup account ids from container commands"Jenkins2015-10-053-0/+6
|\ \ \
| * | | cleanup account ids from container commandsSteve Martinelli2015-10-023-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | use a common function to determine account ID instead of different ways - depending on the response and command Change-Id: I95adc5dc7d5a82a2cffc570d1ded24d1fc754a11
* | | | Add tests for find_resource()Dean Troyer2015-10-011-0/+54
| |/ / |/| | | | | | | | | | | | | | | | | Add a couple of tests for utils.find_resource() for the odd resources and managers without resource_class. Change-Id: I2ed9b491d1361b5259b3a5f80b4fac787a7087c1
* | | Merge "Glance `image set` Resolve Fracturing"Jenkins2015-09-231-2/+1
|\ \ \
| * | | Glance `image set` Resolve FracturingNiallBunting2015-09-231-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently `image set` uses the new api, where other parts of osc the old api is used. This deprecates the v2 api in favour of the v1 to maintain the same commands across osc. However the functionality now remains there as people could now be using this functionality. This also adds the --unprotected argument, as in the previous version if --protected was not supplied it would just make the argument --unprotected without the users explicit consent. The patch also fixes the documentation for image set as it was outdated. Change-Id: I990d20332c80165102badef7ac94ddbeb7824950 Closes-Bug: 1498092
* | | | Add image create support for image v2Monty Taylor2015-09-211-0/+186
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have it for v1, but v2 is the future. There are two differences, things in v2 do not go into a properties dict, and the actual image data needs to get uploaded as a second step. Closes-Bug: 1405562 Co-Authored-By: Niall Bunting <niall.bunting@hp.com> Co-Authored-By: Sean Perry <sean.perry@hp.com> Change-Id: If7b81c4a6746c8a1eb0302c96e045fb0f457d67b
* | | Merge "Add tests for volume quota set"Jenkins2015-09-191-0/+45
|\ \ \ | |/ / |/| |
| * | Add tests for volume quota setTerryHowe2015-08-111-0/+45
| | | | | | | | | | | | | | | | | | | | | Add some tests for volume quota set and get rid of TODO about using the value instead of the key to get the attribute. Change-Id: I57aa57951aeea65965966e63af922cda532d759d
* | | Merge "Create log configuration class"Jenkins2015-09-092-132/+114
|\ \ \ | | |/ | |/|
| * | Create log configuration classTerryHowe2015-08-262-132/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Configuration of logging gets triggered twice. The first time it uses the CLI options when the application is started and second it uses the configuration file after that is read. The state of the logging needs to be saved from the first to the second time, so I created a class. Implements: blueprint logging-migration Change-Id: I7b8d1a3b6fd128e98cafd7c16009c7b694a52146
* | | Merge "Optimize log formatting"Jenkins2015-09-091-37/+25
|\ \ \ | |/ /
| * | Optimize log formattingTerryHowe2015-08-131-37/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is no way to change the configuration variables we want printed in log messages, so format them in the constructor. This will save us from overridding the format method and a couple cpu cycles every log message. This change also moves the _LOG* variables into the formatter since they aren't really globally needed. Change-Id: I706e9db7da3daec20332f9d1533fe665f2739dea Implements: blueprint logging-migration
* | | Merge "Extract log level from configuration file"Jenkins2015-09-091-0/+24
|\ \ \ | |/ /
| * | Extract log level from configuration fileTerryHowe2015-08-131-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extract log_level from configuration file if the level was not overridden by the command line option. The default command line option is 1 and there is no command line option to set the verbose_level to 1, so if it is 1, it has not be set. Change-Id: I1be04367c72f83c1181f92ca4c2c83165b66995c Implements: blueprint logging-migration
* | | Merge "Move options to log level out of shell.py"Jenkins2015-09-091-0/+11
|\ \ \ | |/ /
| * | Move options to log level out of shell.pyTerryHowe2015-08-131-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | Move the conversion of command line options to log level out of shell.py. Change-Id: I86cb45a85cd63927aa1c87c1eed27542981df659 Implements: blueprint logging-migration
* | | Merge "Move set warnings filters to logging module"Jenkins2015-09-081-0/+9
|\ \ \ | |/ /
| * | Move set warnings filters to logging moduleTerryHowe2015-08-131-0/+9
| | | | | | | | | | | | | | | | | | | | | This is the first step in moving logging out of shell.py Change-Id: I3dcb4e17bb4687988ddf9b793ad1a308ef89b242 Implements: blueprint logging-migration
* | | Merge "Properly handle port arguments for ICMP"Jenkins2015-09-081-0/+338
|\ \ \
| * | | Properly handle port arguments for ICMPDean Troyer2015-09-031-0/+338
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | The Compute API requires 'from_port' and 'to_port' to be -1 for ICMP security group rules. It happily accepts them empty or None but the resulting rules do not work. So we force the values for ICMP rules. Closes-bug: #1477629 Change-Id: Iba57211014caca16be7c9a28d15d4db2a6c51b8d
* | | Merge "Set up every time record log in file"Jenkins2015-09-082-4/+194
|\ \ \ | | |/ | |/|
| * | Set up every time record log in fileDaisuke Fujita2015-08-082-4/+194
| | | | | | | | | | | | | | | | | | | | | | | | | | | This will allow users to record logs of all their commands into a predefined log file, in clouds.yaml. The log should have a format similar to that of oslo.log. Change-Id: I1b334bf429d575fc25809c9706fc0b11116be3f1 Implements: blueprint every-time-record-log-in-file
* | | Volume v2 list does not show server nameTerryHowe2015-08-282-8/+9
| |/ |/| | | | | | | | | | | | | The volume v2 list was using the volume id rather than the server id. Change-Id: Ibe03d34b5b503af2d00202dabd640f796449cf9a Closes-Bug: #1489954
* | Merge "Inherited info/option when listing role assignment"Jenkins2015-08-082-29/+127
|\ \