summaryrefslogtreecommitdiff
path: root/openstackclient/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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
|\ \
| * | Inherited info/option when listing role assignmentSamuel de Medeiros Queiroz2015-08-062-29/+127
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds inherited information when listing role assignments. In addition, it makes possible to list only inherited ones by adding --inherited option. Change-Id: Idf889603d584716da95e2c7b4880142fbd8291c4 Closes-Bug: 1370546
* | | Merge "Fixes inherited role assignments CRUD calls"Jenkins2015-08-071-8/+8
|\ \ \ | |/ / |/| |
| * | Fixes inherited role assignments CRUD callsSamuel de Medeiros Queiroz2015-08-061-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The paremeter to Keystone Client was passed as 'inherited', when it should be 'os_inherit_extension_inherited'. Closes-Bug: #1482254 Change-Id: I1cb46add532223ef0b9620763b1047cc80e19ec0
* | | Merge "Add set feature to volume type v2"Jenkins2015-08-071-0/+130
|\ \ \
| * | | Add set feature to volume type v2heha2015-08-061-0/+130
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "volume type set" and "volume type unset" is not in the v2. Co-Authored-By: Lin Hua Cheng <os.lcheng@gmail.com> implements bp: volume-v2 Change-Id: Ia804787d76d2029726c030b43c61eac3b411f66a
* | | | Merge "Add list feature to volume v2"Jenkins2015-08-072-1/+219
|\ \ \ \ | |_|/ / |/| | |
| * | | Add list feature to volume v2heha2015-08-062-1/+219
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "volume list" is not in the v2. Co-Authored-By: Lin Hua Cheng <os.lcheng@gmail.com> implements bp: volume-v2 Change-Id: I9f4585202f5f9ec5f4c091278fc6c4036efb1290
* | | | Merge "Fix quota set failed problem"Jenkins2015-08-062-0/+107
|\ \ \ \ | |/ / / |/| | |
| * | | Fix quota set failed problemjiaxi2015-07-282-0/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When using the command: openstack quota set, the compute quota below can't be set successfully,the value of compute quota stay unchanged, 'fixed-ips', 'floating-ips', 'injected-files', 'key-pairs'. What's more,I add a TODO comment in the code for two reason. 1. volume quota set works fine for the moment. 2. To indicate that this issue about volume needs discuss and report another bug, if it's confirmed. This bug is only about compute quota. Change-Id: Ic1028d561f5a0030cf65ac18fc117bf01e945478 Partial-Bug: #1420104
* | | | Merge "Add support for volume v2 commands"Jenkins2015-07-252-2/+484
|\ \ \ \
| * | | | Add support for volume v2 commandsAmey Bhide2015-07-242-2/+484
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds the following commands: openstack volume create openstack volume set openstack volume unset Implements: blueprint volume-v2 Change-Id: Icb7404815763aa88550112fb42f5200ce05c2486
* | | | Merge "Do not set default versions in parsed args"Jenkins2015-07-241-12/+14
|\ \ \ \ | |/ / / |/| | |
| * | | Do not set default versions in parsed argsTerryHowe2015-07-181-12/+14
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Setting default versions in parsed args makes it so OCC cannot tell if the argument was parsed, an environment variable was set or it is just defaulted. In order to set api versions from OCC, it will have to be defaulted after processing OCC. Closes-Bug: #1453229 Change-Id: I4d065919397b783f3bdd4022c986c0234a7a16e6
* | | Merge "Add configuration show command"Jenkins2015-07-242-0/+91
|\ \ \ | |_|/ |/| |
| * | Add configuration show commandTerryHowe2015-07-232-0/+91
| |/ | | | | | | | | | | | | | | | | | | | | | | Create a `configuration show` command that displays the current configuration of the CLI. Different configurations can be displayed using options such as --os-cloud. Passwords and tokens are redacted by default unless the --unmask option is specified. Closes-Bug: #1476729 Change-Id: I0792365d0c5fa526cd09c0ed88c6bb1e2cb813a7
* | Merge "Add create and list for volume type v2"Jenkins2015-07-201-0/+129
|\ \