Home
last modified time | relevance | path

Searched refs:models (Results 1 – 25 of 281) sorted by relevance

12345678910>>...12

/external/autotest/frontend/health/
Dutils_unittest.py17 from autotest_lib.frontend.tko import models
20 ERROR_STATUS = models.Status(status_idx=2, word='ERROR')
21 ABORT_STATUS = models.Status(status_idx=3, word='ABORT')
22 FAIL_STATUS = models.Status(status_idx=4, word='FAIL')
23 WARN_STATUS = models.Status(status_idx=5, word='WARN')
24 GOOD_STATUS = models.Status(status_idx=6, word='GOOD')
25 ALERT_STATUS = models.Status(status_idx=7, word='ALERT')
62 job = models.Job(job_idx=1)
63 kernel = models.Kernel(kernel_idx=1)
64 machine = models.Machine(machine_idx=1)
[all …]
Dcomplete_failures_functional_test.py24 from autotest_lib.frontend.tko import models
31 ERROR_STATUS = models.Status(status_idx=2, word='ERROR')
32 ABORT_STATUS = models.Status(status_idx=3, word='ABORT')
33 FAIL_STATUS = models.Status(status_idx=4, word='FAIL')
34 WARN_STATUS = models.Status(status_idx=5, word='WARN')
35 GOOD_STATUS = models.Status(status_idx=6, word='GOOD')
36 ALERT_STATUS = models.Status(status_idx=7, word='ALERT')
99 job = models.Job(job_idx=1)
100 kernel = models.Kernel(kernel_idx=1)
101 machine = models.Machine(machine_idx=1)
[all …]
Dcomplete_failures_unittest.py18 from autotest_lib.frontend.tko import models
169 job = models.Job(job_idx=1)
170 kernel = models.Kernel(kernel_idx=1)
171 machine = models.Machine(machine_idx=1)
172 success_status = models.Status(status_idx=GOOD_STATUS_IDX)
174 recent = models.Test(job=job, status=success_status,
179 old = models.Test(job=job, status=success_status,
196 job = models.Job(job_idx=1)
197 kernel = models.Kernel(kernel_idx=1)
198 machine = models.Machine(machine_idx=1)
[all …]
/external/autotest/frontend/afe/
Drpc_interface.py38 from django.db.models import Count
44 from autotest_lib.frontend.afe import models, model_logic, model_attributes
46 from autotest_lib.frontend.tko import models as tko_models
59 known_test_obj = models.Test.smart_get('autoupdate_ParameterizedJob')
75 label_model = models.Label.smart_get(id)
89 label_model = models.Label.smart_get(id)
94 hosts.append(models.Host.smart_get(h.id))
118 label = models.Label.add_object(name=name, **kwargs)
140 label = models.Label.smart_get(id)
141 host_objs = models.Host.smart_get_bulk(hosts)
[all …]
Dfrontend_test_utils.py5 from autotest_lib.frontend.afe import models, model_attributes
12 if models.DroneSet.drone_sets_enabled():
13 models.DroneSet.objects.create(
14 name=models.DroneSet.default_drone_set_name())
16 acl_group = models.AclGroup.objects.create(name='my_acl')
17 acl_group.users.add(models.User.current_user())
19 self.hosts = [models.Host.objects.create(hostname=hostname)
25 models.AclGroup.smart_get('Everyone').hosts = []
27 self.labels = [models.Label.objects.create(name=name) for name in
31 platform = models.Label.objects.create(name='myplatform', platform=True)
[all …]
Dmodels_test.py8 from autotest_lib.frontend.afe import models, model_attributes, model_logic
31 everyone_acl = models.AclGroup.objects.get(name='Everyone')
38 models.AclGroup.on_host_membership_change()
58 host = models.Host.create_one_time_host('othost')
60 self.assertEquals(host.status, models.Host.Status.READY)
62 host.status = models.Host.Status.RUNNING
65 host2 = models.Host.add_object(hostname='othost')
67 self.assertEquals(host2.status, models.Host.Status.RUNNING)
81 return models.SpecialTask.objects.create(
82 host=self.hosts[0], task=models.SpecialTask.Task.VERIFY,
[all …]
Dadmin.py5 from django.db import models as dbmodels
12 from autotest_lib.frontend.afe import model_logic, models
44 model = models.AtomicGroup
53 return models.AtomicGroup.valid_objects
55 admin.site.register(models.AtomicGroup, AtomicGroupAdmin)
60 model = models.Label
73 return models.Label.valid_objects
75 admin.site.register(models.Label, LabelAdmin)
82 admin.site.register(models.User, UserAdmin)
99 label_names =(models.Label.objects.filter(id__in=value)
[all …]
Drpc_interface_unittest.py9 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(
[all …]
Dresources.py3 from autotest_lib.frontend.afe import control_file, models, rpc_utils
25 model = models.AtomicGroup
30 return cls(request, models.AtomicGroup.objects.get(name=ag_name))
55 return models.AtomicGroup.add_object(name=input_dict['name'])
66 queryset = models.AtomicGroup.valid_objects.all()
71 model = models.Label
83 return cls(request, models.Label.objects.get(name=label_name))
110 return models.Label.add_object(name=input_dict['name'])
121 queryset = models.Label.valid_objects.all()
134 model = models.User
[all …]
Drpc_utils.py18 from autotest_lib.frontend.afe import models, model_logic
130 % models.HostQueueEntry.Status.QUEUED)
194 extra_args['params'] = [models.Label.smart_get(label).id
202 query = models.Host.valid_objects.all()
204 query = models.Host.objects.all()
207 only_if_needed_labels = models.Label.valid_objects.filter(
213 query = models.Host.objects.add_join(
220 atomic_group_labels = models.Label.valid_objects.filter(
226 query = models.Host.objects.add_join(
235 return models.Host.query_objects(filter_data, initial_query=query)
[all …]
/external/autotest/frontend/tko/
Drpc_interface.py2 from django.db import models as dbmodels
5 from autotest_lib.frontend.afe import models as afe_models, readonly_connection
6 from autotest_lib.frontend.tko import models, tko_rpc_utils, graphing_utils
13 models.TestView.list_objects(filter_data))
17 return models.TestView.query_count(filter_data)
45 query = models.TestView.objects.get_query_set_with_joins(filter_data)
47 query = models.TestView.query_objects(filter_data, initial_query=query,
49 count_alias, count_sql = models.TestView.objects.get_count_sql(query)
53 query = models.TestView.apply_presentation(query, filter_data)
66 query = models.TestView.objects.get_query_set_with_joins(filter_data)
[all …]
/external/autotest/scheduler/
Dprejob_task.py61 from autotest_lib.frontend.afe import models
98 models.SpecialTask.objects.filter(
103 previous_provisions = models.SpecialTask.objects.filter(
104 task=models.SpecialTask.Task.PROVISION,
131 previous_repairs = models.SpecialTask.objects.filter(
132 task=models.SpecialTask.Task.REPAIR,
136 self.host.set_status(models.Host.Status.REPAIR_FAILED)
140 queue_entry = models.HostQueueEntry.objects.get(
145 models.SpecialTask.objects.create(
146 host=models.Host.objects.get(id=self.host.id),
[all …]
Drdb_testing_utils.py16 from autotest_lib.frontend.afe import models
76 return models.Label.objects.filter(**kwargs)
82 return models.AclGroup.objects.filter(**kwargs)
88 return models.Host.objects.filter(**kwargs)
93 return models.HostQueueEntry.objects.filter(**kwargs)
98 return models.SpecialTask.objects.filter(**kwargs)
103 return models.Shard.objects.filter(**kwargs)
109 return (models.Label.add_object(name=name, **kwargs)
115 user = models.User.objects.filter(login=name)
116 return models.User.add_object(login=name) if not user else user[0]
[all …]
Dsite_monitor_db.py13 from autotest_lib.frontend.afe import models
46 status = models.HostQueueEntry.Status.ARCHIVING
190 user = models.User.objects.get(login='autotest_system')
191 except models.User.DoesNotExist:
192 user = models.User.objects.get(
194 models.SpecialTask.objects.create(
195 task=models.SpecialTask.Task.RESET,
196 host=models.Host.objects.get(id=host.id),
203 where='status = "%s"' % models.HostQueueEntry.Status.RESETTING)
205 special_tasks = models.SpecialTask.objects.filter(
[all …]
Dmonitor_db_cleanup.py8 from autotest_lib.frontend.afe import models
77 query = models.Job.objects.filter(hostqueueentry__complete=False).extra(
97 query = models.HostQueueEntry.objects.filter(
141 model_pairs = ((models.Host, 'labels', models.Label, 'host_set'),
142 (models.AclGroup, 'hosts', models.Host, 'aclgroup_set'),
143 (models.AclGroup, 'users', models.User, 'aclgroup_set'),
144 (models.Test, 'dependency_labels', models.Label,
197 hosts = models.Host.objects.filter(
198 status=models.Host.Status.REPAIR_FAILED,
212 models.SpecialTask.schedule_special_task(
[all …]
Dquery_managers.py17 from autotest_lib.frontend.afe import models
122 queued_tasks = models.SpecialTask.objects.filter(is_active=False,
127 queued_tasks = models.SpecialTask.objects.add_join(
139 task_priority_order = [models.SpecialTask.Task.REPAIR,
140 models.SpecialTask.Task.CLEANUP,
141 models.SpecialTask.Task.VERIFY,
142 models.SpecialTask.Task.RESET,
143 models.SpecialTask.Task.PROVISION]
160 hqe_hosts = list(models.HostQueueEntry.objects.filter(
163 special_task_hosts = list(models.SpecialTask.objects.filter(
[all …]
Dmonitor_db_cleanup_test.py7 from autotest_lib.frontend.afe import frontend_test_utils, models
30 self.hosts[i].status = models.Host.Status.REPAIR_FAILED
43 tasks = models.SpecialTask.objects.all()
46 self.assertEquals(tasks[0].task, models.SpecialTask.Task.VERIFY)
56 self.hosts[i].status = models.Host.Status.REPAIR_FAILED
69 tasks = models.SpecialTask.objects.all()
74 self.assertEquals(tasks[0].task, models.SpecialTask.Task.VERIFY)
75 self.assertEquals(tasks[1].task, models.SpecialTask.Task.VERIFY)
Dmonitor_db.py24 from autotest_lib.frontend.afe import models, rpc_utils
83 if (models.DroneSet.drone_sets_enabled() and
84 not models.DroneSet.default_drone_set_name()):
462 return bool(models.SpecialTask.objects.filter(host__id=host.id,
500 statuses = (models.HostQueueEntry.Status.STARTING,
501 models.HostQueueEntry.Status.RUNNING,
502 models.HostQueueEntry.Status.GATHERING,
503 models.HostQueueEntry.Status.PARSING,
504 models.HostQueueEntry.Status.ARCHIVING)
527 special_tasks = models.SpecialTask.objects.filter(
[all …]
Dscheduler_models.py28 from autotest_lib.frontend.afe import models, model_attributes
627 active = (status in models.HostQueueEntry.ACTIVE_STATUSES)
628 complete = (status in models.HostQueueEntry.COMPLETE_STATUSES)
662 if status is not models.HostQueueEntry.Status.ABORTED:
742 status_counts = models.Job.objects.get_status_counts(
765 self.set_status(models.HostQueueEntry.Status.QUEUED)
810 self.set_status(models.HostQueueEntry.Status.PENDING)
811 self.host.set_status(models.Host.Status.PENDING)
819 self.status == models.HostQueueEntry.Status.PENDING):
828 Status = models.HostQueueEntry.Status
[all …]
Dpostjob_task.py14 from autotest_lib.frontend.afe import models, model_attributes
78 return models.HostQueueEntry.Status.ABORTED
82 return models.HostQueueEntry.Status.COMPLETED
83 return models.HostQueueEntry.Status.FAILED
253 allowed_hqe_statuses=(models.HostQueueEntry.Status.GATHERING,),
254 allowed_host_statuses=(models.Host.Status.RUNNING,))
268 models.HostQueueEntry.Status.COMPLETED)
276 self._final_status() == models.HostQueueEntry.Status.ABORTED
286 models.SpecialTask.objects.create(
287 host=models.Host.objects.get(id=queue_entry.host.id),
[all …]
/external/valgrind/tests/
Ds390x_features.c78 model_info models[] = { variable
102 for (p = models; p != models + sizeof models / sizeof models[0]; ++p) { in locate_model()
107 for (p = models; p != models + sizeof models / sizeof models[0]; ++p) { in locate_model()
156 model = models + sizeof models / sizeof models[0]; in get_host()
171 for (n = 0; n < sizeof models / sizeof models[0]; ++n) { in get_host()
172 model_info *mm = models + n; in get_host()
191 if (model == models + sizeof models / sizeof models[0]) return NULL; in get_host()
257 from = models; in go()
263 to = models + sizeof models / sizeof models[0] - 1; in go()
/external/autotest/server/cros/
Drepair_utils_unittest.py17 from autotest_lib.frontend.afe import models, rpc_interface
66 host = models.Host(hostname='host')
69 old_job = models.Job(owner='me', name='old_job',
72 old_host_queue_entry = models.HostQueueEntry(
77 new_job = models.Job(owner='me', name='new_job',
80 new_host_queue_entry = models.HostQueueEntry(
100 correct_job = models.Job(owner='me', name='correct_job',
103 correct_host = models.Host(hostname='correct_host')
105 correct_host_queue_entry = models.HostQueueEntry(
110 wrong_job = models.Job(owner='me', name='wrong_job',
[all …]
/external/autotest/scheduler/shard/
Dshard_client_integration_tests.py14 from autotest_lib.frontend.afe import models
73 models.HostQueueEntry.objects.filter(id=hqe.id).update(
106 models.Host.objects.all().delete()
107 models.Host.deserialize(serialized_host)
108 models.Host.objects.get(hostname='test_host')
119 models.User.deserialize(serialized_user)
120 models.User.objects.get(id=3, login='test_user')
124 models.User.deserialize(serialized_user)
125 models.User.objects.get(id=3, login='fake_user')
130 models.User.objects.all().delete()
[all …]
/external/chromium-trace/catapult/third_party/webapp2/tests/
Dextras_appengine_auth_models_test.py2 from webapp2_extras.appengine.auth import models
23 self.register_model('User', models.User)
24 self.register_model('UserToken', models.UserToken)
25 self.register_model('Unique', models.Unique)
28 m = models.User
55 m = models.User
84 m = models.User
104 m = models.UserToken
126 m = models.User
143 self.register_model('Unique', models.Unique)
[all …]
/external/autotest/site_utils/
Dstable_version_utils.py13 from autotest_lib.frontend.afe import models
29 for v in models.StableVersion.objects.all()])
55 return models.StableVersion.objects.get(board=board).version
74 stable_version = models.StableVersion.objects.get(board=board)
78 models.StableVersion.objects.create(board=board, version=version)
88 stable_version = models.StableVersion.objects.get(board=board)

12345678910>>...12