openstack-python-openstackc.../openstackclient/tests/unit
Colleen Murphy 365d839a5b Fix 'mapping set' return value
Without this patch, the command 'openstack mapping set <args>' will,
upon success, print the rules for the updated mapping and exit with
return code 1 (failure). This is a problem for scripts and config
management tools that depend on the return code to validate whether the
operation was successful, since even upon success the command returns a
failing error code. Moreover, the behavior of printing the new value is
completely unlike the behavior of any of the 'set' subcommands for
other entities. This patch normalizes the 'mapping set' command by
omitting any return value in the SetMapping take_action() method. This
way the client will only exit with an error code if an exception is
raised, and not upon normal operation.

Change-Id: I610ec3b2fa7561072346d46e49cfc1ae82130e0d
2017-01-25 18:07:17 +01:00
..
api Fixes image api URL endpoint for certain scenario 2017-01-04 18:14:10 +00:00
common Fix quota set command error for SDK > 0.9.10 2017-01-15 20:00:53 +08:00
compute Use image client for images instead of compute 2017-01-24 16:56:35 +00:00
identity Fix 'mapping set' return value 2017-01-25 18:07:17 +01:00
image Fix image member unit tests occasional failures 2017-01-12 10:50:07 -06:00
integ move unit tests to new "unit" test module 2016-09-08 15:19:50 -07:00
network SDK refactor: Prepare security group commands 2017-01-23 19:18:23 +00:00
object Add option "--name" to command "openstack object create" 2016-09-26 22:42:10 -04:00
volume Error in the return of command 'volume qos create' 2017-01-17 15:19:22 +08:00
__init__.py move unit tests to new "unit" test module 2016-09-08 15:19:50 -07:00
fakes.py Merge "Add support for Network QoS rule commands" 2017-01-11 23:37:00 +00:00
test_shell.py [TrivialFix] Fix typo error 2016-12-14 14:39:24 +08:00
utils.py move unit tests to new "unit" test module 2016-09-08 15:19:50 -07:00