diff options
| author | jiahui.qiang <jiahui.qiang@easystack.cn> | 2016-11-13 06:15:13 +0800 |
|---|---|---|
| committer | jiahui.qiang <jiahui.qiang@easystack.cn> | 2016-12-06 06:44:16 +0800 |
| commit | d083ddb12f4b8eb0d72bb4ff60113cd0904d8c1d (patch) | |
| tree | 8e2c9ca0a74a65f52df26fcc41f6444a9aafc70d /openstackclient/tests/functional/volume | |
| parent | 60370b46f5bbc9d3de7454f8efef4b5eae867a35 (diff) | |
| download | python-openstackclient-d083ddb12f4b8eb0d72bb4ff60113cd0904d8c1d.tar.gz | |
Add --default option to "volume type list"
Add "--default" option to volume v2's "type list"
command, it will show which volume type the volume
service has set as default.
Implements: bp cinder-command-support
Change-Id: Iae7ebc633ebe5554cc88390a84361887ec211fb2
Diffstat (limited to 'openstackclient/tests/functional/volume')
| -rw-r--r-- | openstackclient/tests/functional/volume/v2/test_volume_type.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/openstackclient/tests/functional/volume/v2/test_volume_type.py b/openstackclient/tests/functional/volume/v2/test_volume_type.py index d8bd3a96..b4df5b2d 100644 --- a/openstackclient/tests/functional/volume/v2/test_volume_type.py +++ b/openstackclient/tests/functional/volume/v2/test_volume_type.py @@ -42,6 +42,11 @@ class VolumeTypeTests(common.BaseVolumeTests): raw_output = self.openstack('volume type list' + opts) self.assertIn(self.NAME, raw_output) + def test_volume_type_list_default(self): + opts = self.get_opts(self.HEADERS) + raw_output = self.openstack('volume type list --default' + opts) + self.assertEqual("lvmdriver-1\n", raw_output) + def test_volume_type_show(self): opts = self.get_opts(self.FIELDS) raw_output = self.openstack('volume type show ' + self.NAME + opts) |
