예제 #1
0
 def test_get_hosts_for_spec(self):
     """
     Testing the minions just to pull things for a spec
     """
     spec = "*"
     m = Minions(spec)
     minions = m.get_hosts_for_spec(spec)
     assert compare_arrays(minions, self.current_minions) == True
예제 #2
0
 def test_get_hosts_for_spec(self):
     """
     Testing the minions just to pull things for a spec
     """
     spec = "*"
     m = Minions(spec)
     minions = m.get_hosts_for_spec(spec)
     assert compare_arrays(minions, self.current_minions) == True
예제 #3
0
def get_hosts_spec(spec):
    """
    A simple call to Minions class to be
    able to use globbing in groups when
    querying ...
    """
    from func.overlord.client import Minions

    m = Minions(spec)
    return m.get_hosts_for_spec(spec)