diff options
| author | Jenkins <jenkins@review.openstack.org> | 2017-01-26 06:38:21 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2017-01-26 06:38:21 +0000 |
| commit | d4c13676d1c0e4ed3bc8cbf5115c09d715ff865a (patch) | |
| tree | 9f8d4fe794b6e8d25e150baf588ec1f2dfe41a73 /openstackclient/tests/functional | |
| parent | 029b389cf89960babf62a0087836f58b26bd6b5b (diff) | |
| parent | 95c8661f86e74c9d5217869a740da11350f1f0eb (diff) | |
| download | python-openstackclient-d4c13676d1c0e4ed3bc8cbf5115c09d715ff865a.tar.gz | |
Merge "Switch server create to block_device_mapping_v2"
Diffstat (limited to 'openstackclient/tests/functional')
| -rw-r--r-- | openstackclient/tests/functional/compute/v2/test_server.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/openstackclient/tests/functional/compute/v2/test_server.py b/openstackclient/tests/functional/compute/v2/test_server.py index b6ef8587..119ef05c 100644 --- a/openstackclient/tests/functional/compute/v2/test_server.py +++ b/openstackclient/tests/functional/compute/v2/test_server.py @@ -417,19 +417,23 @@ class ServerTests(base.TestCase): # NOTE(dtroyer): Prior to https://review.openstack.org/#/c/407111 # --block-device-mapping was ignored if --volume - # present on the command line, so this volume should - # not be attached. + # present on the command line. Now we should see the + # attachment. cmd_output = json.loads(self.openstack( 'volume show -f json ' + empty_volume_name )) attachments = cmd_output['attachments'] self.assertEqual( - 0, + 1, len(attachments), ) self.assertEqual( - "available", + server['id'], + attachments[0]['server_id'], + ) + self.assertEqual( + "in-use", cmd_output['status'], ) |
