Lines Matching refs:host2
111 host2 = models.Host.objects.create(hostname='test_host2', leased=False)
115 self._do_heartbeat_and_assert_response(known_hosts=[host1, host2],
116 incorrect_host_ids=[host2.id])
121 host2 = models.Host.objects.create(hostname='test_host2', leased=False)
122 host2.labels.add(label1)
123 self.assertEqual(host2.shard, None)
136 host2 = models.Host.smart_get(host2.id)
137 self.assertEqual(host2.shard, None)
141 host2, label2): argument
168 jobs=[job2], hosts=[host2], hqes=job2.hostqueueentry_set.all())
300 host2 = models.Host.objects.create(hostname='test_host2')
301 host2.set_attribute('test_attribute1', 'test_value1')
302 host2.set_attribute('test_attribute2', 'test_value2')
318 host2 = models.Host.objects.create(hostname='test_host2')
319 host2.set_attribute('test_attribute1', 'test_value1')
331 host2 = models.Host.objects.create(hostname='test_host2')
332 host2.set_attribute('test_attribute1', 'test_value1')
333 self._set_static_attribute(host2, 'test_attribute1', 'static_value1')
421 host2 = models.Host.objects.all()[1]
423 host2.shard = shard1
424 host2.labels.add(label1)
425 host2.save()
442 host2 = models.Host.objects.all()[1]
444 host2.shard = shard1
445 host2.labels.add(label1)
446 host2.save()
677 shard2, host2, label2 = self._createShardAndHostWithStaticLabel(
680 shard2, host2, label2)
743 host2 = models.Host.objects.create(hostname='test_host2')
744 host2.set_attribute('test_attribute1', 'test_value1')
755 host2 = models.Host.objects.create(hostname='test_host2')
756 host2.set_attribute('test_attribute1', 'test_value1')
1199 host2 = models.Host.objects.all()[1]
1206 host2.shard = shard2
1207 host2.save()
1210 self.assertFalse(host2.locked)
1247 host2 = models.Host.objects.get(pk=host2.id)
1248 self.assertTrue(host2.locked)
1295 host2 = models.Host.objects.all()[1]
1297 host2.shard = shard1
1298 host2.labels.add(label1)
1299 host2.save()
1318 host2 = models.Host.objects.all()[1]
1320 host2.shard = shard1
1321 host2.labels.add(label1)
1322 host2.save()
1868 shard2, host2, label2 = self._createShardAndHostWithLabel(
1871 shard2, host2, label2)