Lines Matching refs:hosts
13 """Populate the test database with some hosts and labels."""
21 self.hosts = [models.Host.objects.create(hostname=hostname)
26 acl_group.hosts = self.hosts
27 models.AclGroup.smart_get('Everyone').hosts = []
34 for host in self.hosts:
42 self.hosts[0].labels.add(self.label1)
43 self.hosts[1].labels.add(self.label2)
45 self.hosts[hostnum].labels.add(self.label6)
46 self.hosts[6].labels.add(self.label7)
48 self.hosts[hostnum].labels.add(self.label6)
49 self.hosts[hostnum].labels.add(self.label7)
68 def _create_job(self, hosts=[], metahosts=[], priority=0, active=False,
76 @param hosts - A list of explicit host ids for this job to be
85 case, hosts, and metahosts must all be empty)
87 acquire hosts change with the aclgroups of the owners.
122 for host_id in hosts:
131 assert not (hosts or metahosts)
136 def _create_job_simple(self, hosts, use_metahost=False,
140 args = {'hosts' : [], 'metahosts' : []}
142 args['metahosts'] = hosts
144 args['hosts'] = hosts