diff options
| author | JP Parkin <jpparkin@ca.ibm.com> | 2015-07-30 17:31:00 -0400 |
|---|---|---|
| committer | JP Parkin <jpparkin@ca.ibm.com> | 2015-08-03 14:55:32 -0400 |
| commit | d52ecfc05840e1c02f7cd4e8f4b64b5cbcdac51d (patch) | |
| tree | 7d16dcb9e49ac726e9c7cea171a60e93999cea7f /functional | |
| parent | 4633bdb7cfbded51e1a92411a01fce2868fd34b4 (diff) | |
| download | python-openstackclient-d52ecfc05840e1c02f7cd4e8f4b64b5cbcdac51d.tar.gz | |
Added a new function test for volume type set
This is a new test to validate the setting of one property
for an existing volume type
Change-Id: Ia9a7d86ce9b0d8df9d64ddc1df2d443843bba5ef
Diffstat (limited to 'functional')
| -rw-r--r-- | functional/tests/volume/v1/test_volume_type.py | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/functional/tests/volume/v1/test_volume_type.py b/functional/tests/volume/v1/test_volume_type.py index c3568694..afdf1002 100644 --- a/functional/tests/volume/v1/test_volume_type.py +++ b/functional/tests/volume/v1/test_volume_type.py @@ -12,10 +12,10 @@ import uuid -from functional.common import test +from functional.tests.volume.v1 import common -class VolumeTypeTests(test.TestCase): +class VolumeTypeTests(common.BaseVolumeTests): """Functional tests for volume type. """ NAME = uuid.uuid4().hex @@ -43,3 +43,14 @@ class VolumeTypeTests(test.TestCase): opts = self.get_show_opts(self.FIELDS) raw_output = self.openstack('volume type show ' + self.NAME + opts) self.assertEqual(self.NAME + "\n", raw_output) + + def test_volume_set_one_property(self): + props = "foo='bar'" + + raw_output = self.openstack('volume type set ' + self.NAME + + ' --property ' + props) + self.assertEqual('', raw_output) + + raw_output = self.openstack('volume type show -f value -c properties ' + + self.NAME) + self.assertEqual(props + '\n', raw_output) |
