Remove dead code from task.types

It's impossible situation to have multiple match when ID is used.

Removing this code, removes usage of MultipleMatchesFound
which is removed in next patch.

Change-Id: I19aefb719fc33e576a314624f6a3f9782ef454c0
This commit is contained in:
Boris Pavlovic 2017-09-15 00:01:24 -07:00
parent 1b09eb3e3f
commit f4ef27d4a8

View File

@ -111,12 +111,6 @@ class EC2FlavorTestCase(test.TestCase):
types.EC2Flavor.transform, self.clients,
resource_config)
def test_transform_by_id_multiple_match(self):
resource_config = {"id": "3"}
self.assertRaises(exceptions.MultipleMatchesFound,
types.EC2Flavor.transform, self.clients,
resource_config)
class GlanceImageTestCase(test.TestCase):
@ -239,12 +233,6 @@ class EC2ImageTestCase(test.TestCase):
types.EC2Image.transform, self.clients,
resource_config)
def test_transform_by_id_match_multiple(self):
resource_config = {"id": "102"}
self.assertRaises(exceptions.MultipleMatchesFound,
types.EC2Image.transform, self.clients,
resource_config)
def test_transform_by_name_no_match(self):
resource_config = {"name": "cirros-0.3.4-uec-boot"}
self.assertRaises(exceptions.InvalidScenarioArgument,