def test_match_missing(self): input_data = {'hammer_ping': MISSING} self.assertEqual( { 'failed_services': set( ['candlepin', 'candlepin_auth', 'nonsense']) }, sat6_hammer_ping.main(input_data))
def test_match_ugly(self): input_data = {'hammer_ping': UGLY} self.assertEqual({'failed_services': set(['pulp', 'pulp_auth'])}, sat6_hammer_ping.main(input_data))
def test_notmatch(self): input_data = {'hammer_ping': GOOD} self.assertEqual(None, sat6_hammer_ping.main(input_data))
def test_match(self): input_data = {'hammer_ping': BAD} self.assertEqual({'failed_services': set(['elasticsearch'])}, sat6_hammer_ping.main(input_data))
def test_match_ugly(self): input_data = {'hammer_ping': UGLY} self.assertEqual({'failed_services': set(['foreman_tasks'])}, sat6_hammer_ping.main(input_data))
def test_match_missing(self): input_data = {'hammer_ping': MISSING} self.assertEqual({'failed_services': set(['candlepin', 'candlepin_auth', 'nonsense'])}, sat6_hammer_ping.main(input_data))