diff --git a/tests/v1/fakes.py b/tests/v1/fakes.py index d93c9a46f..2fb6bb3da 100644 --- a/tests/v1/fakes.py +++ b/tests/v1/fakes.py @@ -163,6 +163,10 @@ class FakeHTTPClient(base_client.HTTPClient): return (202, {'connection_info': 'foos'}) elif action == 'os-terminate_connection': assert body[action].keys() == ['connector'] + elif action == 'os-begin_detaching': + assert body[action] == None + elif action == 'os-roll_detaching': + assert body[action] == None else: raise AssertionError("Unexpected server action: %s" % action) return (resp, _body) diff --git a/tests/v1/test_volumes.py b/tests/v1/test_volumes.py index f05b6fb68..5600ddc4e 100644 --- a/tests/v1/test_volumes.py +++ b/tests/v1/test_volumes.py @@ -38,17 +38,17 @@ class VolumesTest(utils.TestCase): def test_unreserve(self): v = cs.volumes.get('1234') - cs.volumes.reserve(v) + cs.volumes.unreserve(v) cs.assert_called('POST', '/volumes/1234/action') def test_begin_detaching(self): v = cs.volumes.get('1234') - cs.volumes.reserve(v) + cs.volumes.begin_detaching(v) cs.assert_called('POST', '/volumes/1234/action') def test_roll_detaching(self): v = cs.volumes.get('1234') - cs.volumes.reserve(v) + cs.volumes.roll_detaching(v) cs.assert_called('POST', '/volumes/1234/action') def test_initialize_connection(self):