remove unused pollster exception resources

this stuff isn't used in any of the tests. there is an existing
pollster exception test here in
test_manager.TestRunTasks.test_polling_exception

Change-Id: I868698dcad765880d30d5b2703250aad72a33338
This commit is contained in:
gord chung 2017-11-30 16:08:12 -05:00
parent 5f98f16c54
commit 134743c292
1 changed files with 0 additions and 32 deletions

View File

@ -81,14 +81,6 @@ class BatchTestPollster(TestPollster):
yield c
class TestPollsterException(TestPollster):
def get_samples(self, manager, cache, resources):
resources = resources or []
self.samples.append((manager, resources))
self.resources.extend(resources)
raise Exception()
class TestDiscovery(plugin_base.DiscoveryBase):
def discover(self, manager, param=None):
self.params.append(param)
@ -119,16 +111,6 @@ class BaseAgentManagerTestCase(base.BaseTestCase):
resources = []
test_data = default_test_data('testanother')
class PollsterException(TestPollsterException):
samples = []
resources = []
test_data = default_test_data('testexception')
class PollsterExceptionAnother(TestPollsterException):
samples = []
resources = []
test_data = default_test_data('testexceptionanother')
class Discovery(TestDiscovery):
params = []
resources = []
@ -162,14 +144,6 @@ class BaseAgentManagerTestCase(base.BaseTestCase):
None,
None,
self.PollsterAnother(self.CONF), ),
extension.Extension('testexception',
None,
None,
self.PollsterException(self.CONF), ),
extension.Extension('testexceptionanother',
None,
None,
self.PollsterExceptionAnother(self.CONF), )
]
def create_discoveries(self):
@ -228,14 +202,8 @@ class BaseAgentManagerTestCase(base.BaseTestCase):
self.Pollster.discovery = []
self.PollsterAnother.samples = []
self.PollsterAnother.discovery = []
self.PollsterException.samples = []
self.PollsterException.discovery = []
self.PollsterExceptionAnother.samples = []
self.PollsterExceptionAnother.discovery = []
self.Pollster.resources = []
self.PollsterAnother.resources = []
self.PollsterException.resources = []
self.PollsterExceptionAnother.resources = []
self.Discovery.params = []
self.DiscoveryAnother.params = []
self.DiscoveryException.params = []