diff options
| author | Jenkins <jenkins@review.openstack.org> | 2015-08-03 21:46:09 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2015-08-03 21:46:09 +0000 |
| commit | 7e9c1946f2bd51f9d6fba530132dd18eb5095574 (patch) | |
| tree | 1ceb67f0e25e14ec412641b51605b3fe8eb3c6e5 | |
| parent | 2039011097023f6048853391c71f21a8a02cbb12 (diff) | |
| parent | d52ecfc05840e1c02f7cd4e8f4b64b5cbcdac51d (diff) | |
| download | python-openstackclient-7e9c1946f2bd51f9d6fba530132dd18eb5095574.tar.gz | |
Merge "Added a new function test for volume type set"
| -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) |
