Remove unused code
The code has not been used since If0161a89877f19f24e91d780cf227fdc48e7e860 . Change-Id: I106404f9d12814fec2ec2bf16cdd100834085912 Signed-off-by: Takashi Natsume <takanattie@gmail.com>
This commit is contained in:
parent
1ce9edcd73
commit
2ed34e657c
@ -271,28 +271,6 @@ class Base(base.Fixture):
|
||||
status_code=204,
|
||||
headers=self.json_headers)
|
||||
|
||||
def post_os_volumes_boot(request, context):
|
||||
body = request.json()
|
||||
assert (set(body.keys()) <=
|
||||
set(['server', 'os:scheduler_hints']))
|
||||
|
||||
fakes.assert_has_keys(body['server'],
|
||||
required=['name', 'flavorRef'],
|
||||
optional=['imageRef'])
|
||||
|
||||
data = body['server']
|
||||
|
||||
# Require one, and only one, of the keys for bdm
|
||||
if 'block_device_mapping' not in data:
|
||||
if 'block_device_mapping_v2' not in data:
|
||||
msg = "missing required keys: 'block_device_mapping'"
|
||||
raise AssertionError(msg)
|
||||
elif 'block_device_mapping_v2' in data:
|
||||
msg = "found extra keys: 'block_device_mapping'"
|
||||
raise AssertionError(msg)
|
||||
|
||||
return {'server': self.server_9012}
|
||||
|
||||
#
|
||||
# Server password
|
||||
#
|
||||
|
@ -593,24 +593,6 @@ class FakeSessionClient(base_client.SessionClient):
|
||||
else:
|
||||
return (202, {}, self.get_servers_1234()[2])
|
||||
|
||||
def post_os_volumes_boot(self, body, **kw):
|
||||
assert set(body.keys()) <= set(['server', 'os:scheduler_hints'])
|
||||
fakes.assert_has_keys(
|
||||
body['server'],
|
||||
required=['name', 'flavorRef'],
|
||||
optional=['imageRef'])
|
||||
|
||||
# Require one, and only one, of the keys for bdm
|
||||
if 'block_device_mapping' not in body['server']:
|
||||
if 'block_device_mapping_v2' not in body['server']:
|
||||
raise AssertionError(
|
||||
"missing required keys: 'block_device_mapping'"
|
||||
)
|
||||
elif 'block_device_mapping_v2' in body['server']:
|
||||
raise AssertionError("found extra keys: 'block_device_mapping'")
|
||||
|
||||
return (202, {}, self.get_servers_9012()[2])
|
||||
|
||||
def get_servers_1234(self, **kw):
|
||||
server = self.get_servers_detail()[2]['servers'][0]
|
||||
if self.api_version >= api_versions.APIVersion('2.71'):
|
||||
|
Loading…
Reference in New Issue
Block a user