summaryrefslogtreecommitdiff
path: root/openstackclient/tests/functional/volume/v2/test_volume.py
diff options
context:
space:
mode:
Diffstat (limited to 'openstackclient/tests/functional/volume/v2/test_volume.py')
-rw-r--r--openstackclient/tests/functional/volume/v2/test_volume.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/openstackclient/tests/functional/volume/v2/test_volume.py b/openstackclient/tests/functional/volume/v2/test_volume.py
index 73273573..fb880578 100644
--- a/openstackclient/tests/functional/volume/v2/test_volume.py
+++ b/openstackclient/tests/functional/volume/v2/test_volume.py
@@ -91,6 +91,17 @@ class VolumeTests(common.BaseVolumeTests):
raw_output = self.openstack('volume show ' + self.NAME + opts)
self.assertEqual(self.NAME + "\n2\n", raw_output)
+ def test_volume_set_bootable(self):
+ self.openstack('volume set --bootable ' + self.NAME)
+ opts = self.get_opts(["bootable"])
+ raw_output = self.openstack('volume show ' + self.NAME + opts)
+ self.assertEqual("true\n", raw_output)
+
+ self.openstack('volume set --non-bootable ' + self.NAME)
+ opts = self.get_opts(["bootable"])
+ raw_output = self.openstack('volume show ' + self.NAME + opts)
+ self.assertEqual("false\n", raw_output)
+
def test_volume_snapshot(self):
opts = self.get_opts(self.FIELDS)