diff options
| author | Tang Chen <chen.tang@easystack.cn> | 2016-06-04 21:29:44 +0800 |
|---|---|---|
| committer | Tang Chen <chen.tang@easystack.cn> | 2016-06-04 21:29:44 +0800 |
| commit | 2672e37ee211bf08a4b6078668bd36a08c9c606a (patch) | |
| tree | e62996ffa79fd3ac584ada99503dcfe52fbb8631 /openstackclient/tests | |
| parent | 55a7ba890d9c3a53b7728efe41053b79ba1e60d3 (diff) | |
| download | python-openstackclient-2672e37ee211bf08a4b6078668bd36a08c9c606a.tar.gz | |
Make set/unset commands in volume return normally when nothing specified
set/unset commands should ends up normally instead of
logging an error when nothing is specified to modify.
The main reason is: When nothing is specified, the
command sets/unsets nothing, which is a normal behavior,
and ends up normally. No API call fails. No error happens.
Change-Id: Ib03a512650e5da90aa1ef38019772448383d0d33
Partial-bug: #1588588
Diffstat (limited to 'openstackclient/tests')
| -rw-r--r-- | openstackclient/tests/volume/v1/test_volume.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/openstackclient/tests/volume/v1/test_volume.py b/openstackclient/tests/volume/v1/test_volume.py index e0fd1c08..e4f51bb5 100644 --- a/openstackclient/tests/volume/v1/test_volume.py +++ b/openstackclient/tests/volume/v1/test_volume.py @@ -578,9 +578,6 @@ class TestVolumeSet(TestVolume): parsed_args = self.check_parser(self.cmd, arglist, verifylist) result = self.cmd.take_action(parsed_args) - - self.assertEqual("No changes requested\n", - self.app.log.messages.get('error')) self.assertIsNone(result) def test_volume_set_name(self): |
