diff options
| author | Jenkins <jenkins@review.openstack.org> | 2016-08-05 00:30:25 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2016-08-05 00:30:25 +0000 |
| commit | d6413b2765132cf9954be7d6a01c9a0098d2e04f (patch) | |
| tree | 5a8d9e0366773538aa9543272d886dfb91c13995 /functional | |
| parent | f58be9d4ddc4d395e209015e8735f6cb4258a566 (diff) | |
| parent | 20ae54045cef136a8d0665aab0d45698e12ed21c (diff) | |
| download | python-openstackclient-d6413b2765132cf9954be7d6a01c9a0098d2e04f.tar.gz | |
Merge "Add support of setting volume's state"
Diffstat (limited to 'functional')
| -rw-r--r-- | functional/tests/volume/v2/test_volume.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/functional/tests/volume/v2/test_volume.py b/functional/tests/volume/v2/test_volume.py index 019f0c6f..02324a1e 100644 --- a/functional/tests/volume/v2/test_volume.py +++ b/functional/tests/volume/v2/test_volume.py @@ -43,9 +43,16 @@ class VolumeTests(common.BaseVolumeTests): 'volume set --name ' + cls.OTHER_NAME + ' ' + cls.NAME) cls.assertOutput('', raw_output) + # Set volume state + cls.openstack('volume set --state error ' + cls.OTHER_NAME) + opts = cls.get_opts(["status"]) + raw_output_status = cls.openstack( + 'volume show ' + cls.OTHER_NAME + opts) + # Delete test volume raw_output = cls.openstack('volume delete ' + cls.OTHER_NAME) cls.assertOutput('', raw_output) + cls.assertOutput('error\n', raw_output_status) def test_volume_list(self): opts = self.get_opts(self.HEADERS) |
