Lines Matching refs:models

9 from autotest_lib.frontend.afe import models, rpc_interface, frontend_test_utils
24 _hqe_status = models.HostQueueEntry.Status
54 platform2 = models.Label.objects.create(name='platform2', platform=True)
169 HqeStatus = models.HostQueueEntry.Status
231 host = models.Host.objects.get(hostname='testhost')
249 job = models.Job.objects.get(pk=job_id)
270 self.task1 = models.SpecialTask.objects.create(
271 host=host, task=models.SpecialTask.Task.VERIFY,
273 is_complete=True, requested_by=models.User.current_user())
274 self.task2 = models.SpecialTask.objects.create(
275 host=host, task=models.SpecialTask.Task.VERIFY,
277 is_active=True, requested_by=models.User.current_user())
278 self.task3 = models.SpecialTask.objects.create(
279 host=host, task=models.SpecialTask.Task.VERIFY,
280 requested_by=models.User.current_user()) # not yet run
288 self.assertEquals(tasks[0]['task'], models.SpecialTask.Task.VERIFY)
300 host__hostname='host1', task=models.SpecialTask.Task.VERIFY,
372 self.assertEquals(task['task'], models.SpecialTask.Task.VERIFY)
385 self.assertEquals(task['task'], models.SpecialTask.Task.REPAIR)
395 test = models.Test.objects.create(
398 profiler = models.Profiler.objects.create(name='profiler')
410 parameterized_job = models.Job.smart_get(job_id).parameterized_job
417 kernel = models.Kernel.objects.get(**kernels[0])
421 parameterized_profiler = models.ParameterizedJobProfiler.objects.get(
424 models.ParameterizedJobProfilerParameter.objects.get(
445 host = models.Host.objects.all()[0]
447 shard = models.Shard.objects.create(hostname=shard_hostname)
480 host = models.Host.objects.get(pk=host.id)
506 host1 = models.Host.objects.all()[0]
507 host2 = models.Host.objects.all()[1]
509 shard1 = models.Shard.objects.create(hostname='shard1')
513 shard2 = models.Shard.objects.create(hostname='shard2')
553 host1 = models.Host.objects.get(pk=host1.id)
555 host2 = models.Host.objects.get(pk=host2.id)
562 host1 = models.Host.objects.all()[0]
563 shard1 = models.Shard.objects.create(hostname='shard1')
578 self.assertRaises(models.Host.DoesNotExist,
579 models.Host.smart_get, host1_id)
585 label1 = models.Label.objects.all()[0]
588 host2 = models.Host.objects.all()[1]
589 shard1 = models.Shard.objects.create(hostname='shard1')
604 self.assertEqual(models.Label.objects.all()[0].invalid, 1)
609 label1 = models.Label.objects.all()[0]
611 host2 = models.Host.objects.all()[1]
612 shard1 = models.Shard.objects.create(hostname='shard1')
627 self.assertRaises(models.Label.DoesNotExist,
628 models.Label.smart_get, label1.id)