commit | ba37ac443fed68c96e69b1643c77c5faad9e5459 | [log] [tgz] |
---|---|---|
author | Benny Kopilov <bkopilov@redhat.com> | Sun Mar 26 13:25:04 2017 +0300 |
committer | Benny Kopilov <bkopilov@redhat.com> | Tue Mar 28 08:55:13 2017 +0300 |
tree | 3807aeb984009795e751760e133913d5c27120c7 | |
parent | 74c14ae82c4f6d0983920ad2f258999a6c8f6f0c [diff] |
Volume reset to maintenance mode Update existing test with reset-volume state to maintenance. The purpose here is to verify that cinder state can be changed to maintenance. Here are all valid states for cinder: https://docs.openstack.org/developer/cinder/api/cinder.api.contrib.admin_actions.html Change-Id: I5226b000317b2a9ab034afa90c3461011db4a030
diff --git a/tempest/api/volume/admin/test_volumes_actions.py b/tempest/api/volume/admin/test_volumes_actions.py index 02b10f9..990900b 100644 --- a/tempest/api/volume/admin/test_volumes_actions.py +++ b/tempest/api/volume/admin/test_volumes_actions.py
@@ -32,7 +32,9 @@ def test_volume_reset_status(self): # test volume reset status : available->error->available volume = self.create_volume() - for status in ['error', 'available']: + self.addCleanup(self.admin_volume_client.reset_volume_status, + volume['id'], status='available') + for status in ['error', 'available', 'maintenance']: self.admin_volume_client.reset_volume_status( volume['id'], status=status) volume_get = self.admin_volume_client.show_volume(