summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Natsume <takanattie@gmail.com>2020-07-31 10:54:53 +0000
committerTakashi Natsume <takanattie@gmail.com>2020-07-31 11:28:24 +0000
commit2ed34e657c251ac0c0a88e9f96eb4733f1937616 (patch)
treef52b63a54350060f8ac877bed749bddb645a405d
parent1ce9edcd73c6da9dd4dcded12747957fc297cb21 (diff)
downloadpython-novaclient-2ed34e657c251ac0c0a88e9f96eb4733f1937616.tar.gz
Remove unused code
The code has not been used since If0161a89877f19f24e91d780cf227fdc48e7e860 . Change-Id: I106404f9d12814fec2ec2bf16cdd100834085912 Signed-off-by: Takashi Natsume <takanattie@gmail.com>
-rw-r--r--novaclient/tests/unit/fixture_data/servers.py22
-rw-r--r--novaclient/tests/unit/v2/fakes.py18
2 files changed, 0 insertions, 40 deletions
diff --git a/novaclient/tests/unit/fixture_data/servers.py b/novaclient/tests/unit/fixture_data/servers.py
index 7e4ee64a..a8301548 100644
--- a/novaclient/tests/unit/fixture_data/servers.py
+++ b/novaclient/tests/unit/fixture_data/servers.py
@@ -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
#
diff --git a/novaclient/tests/unit/v2/fakes.py b/novaclient/tests/unit/v2/fakes.py
index f3f8193a..29492cbf 100644
--- a/novaclient/tests/unit/v2/fakes.py
+++ b/novaclient/tests/unit/v2/fakes.py
@@ -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'):