Beispiel #1
0
 def test_matches_a_fallback(self):
     msg = BecauseNodeIsOffline % '10.0.0.0_centos6_huge'
     assert util.from_offline_node(msg) == 'centos6'
Beispiel #2
0
 def test_matches_a_node_with_plus_sign(self):
     msg = BecauseNodeIsOffline % 'centos6__192.168.168.90'
     assert util.from_offline_node(msg) == 'centos6'
Beispiel #3
0
 def test_matches_a_node(self):
     msg = BecauseNodeIsOffline % 'centos6'
     assert util.from_offline_node(msg) == 'centos6'
Beispiel #4
0
 def test_does_not_match_a_node(self):
     assert util.from_offline_node(self.msg) is None
Beispiel #5
0
 def test_matches_a_fallback(self):
     msg = BecauseNodeIsOffline % '10.0.0.0_centos6_huge'
     assert util.from_offline_node(msg) == 'centos6'
Beispiel #6
0
 def test_matches_a_node(self):
     msg = BecauseNodeIsOffline % 'centos6'
     assert util.from_offline_node(msg) == 'centos6'
Beispiel #7
0
 def test_matches_a_node_with_plus_sign(self):
     msg = BecauseNodeIsOffline % 'centos6__192.168.168.90'
     assert util.from_offline_node(msg) == 'centos6'
Beispiel #8
0
 def test_does_not_match_a_node(self):
     assert util.from_offline_node(self.msg) is None