/external/autotest/server/cros/dynamic_suite/ |
D | job_status_unittest.py | 37 self.afe = self.mox.CreateMock(frontend.AFE) 54 self.afe.run('get_host_queue_entries', job=job.id).AndReturn(entries) 58 sorted(job_status.gather_job_hostnames(self.afe, 69 self.afe.run('get_host_queue_entries', job=job.id).AndReturn(entries) 73 sorted(job_status.gather_job_hostnames(self.afe, 84 self.afe.run('get_host_queue_entries', job=job.id).AndReturn(entries) 88 job_status.gather_job_hostnames(self.afe, job)) 96 self.afe.get_jobs(id=job.id, not_yet_run=True).AndReturn([job]) 97 self.afe.get_jobs(id=job.id, not_yet_run=True).AndReturn([]) 101 job_status.wait_for_jobs_to_start(self.afe, [job]) [all …]
|
D | job_status.py | 62 def gather_job_hostnames(afe, job): argument 72 for e in afe.run('get_host_queue_entries', job=job.id): 87 def check_job_abort_status(afe, jobs): argument 102 entries = afe.run('get_host_queue_entries', job=job.id) 115 def _abort_jobs_if_timedout(afe, jobs, start_time, timeout_mins): argument 134 afe.run('abort_host_queue_entries', job=job.id) 138 def wait_for_jobs_to_start(afe, jobs, interval=DEFAULT_POLL_INTERVAL_SECONDS, argument 157 if wait_timeout_mins and _abort_jobs_if_timedout(afe, jobs, start_time, 162 if len(afe.get_jobs(id=job_id, not_yet_run=True)) > 0: 172 def wait_for_jobs_to_finish(afe, jobs, interval=DEFAULT_POLL_INTERVAL_SECONDS, argument [all …]
|
/external/autotest/contrib/ |
D | manage_powerunit_info.py | 55 def add_powerunit_info_to_host(afe, device, keyvals): argument 64 if not afe.get_hosts(hostname=device): 70 afe.set_host_attribute(key, val, hostname=device) 73 def add_from_csv(afe, csv_file): argument 91 add_powerunit_info_to_host(afe, device, keyvals) 94 def dump_to_csv(afe, csv_file): argument 103 hosts = afe.get_hosts() 112 def list_powerunit_info(afe, devices): argument 118 hosts = afe.get_hosts(hostname__in = devices) 173 afe = frontend_wrappers.RetryingAFE(timeout_min=5, delay_sec=10, variable [all …]
|
/external/autotest/frontend/afe/ |
D | direct_afe_unittest.py | 7 from autotest_lib.frontend.afe import direct_afe 12 afe = direct_afe.directAFE() 14 jobs = afe.get_jobs() 17 hosts = afe.get_hosts() 20 afe.create_host('a_host') 21 hosts = afe.get_hosts() 24 afe.create_job('job_name', hosts=['a_host']) 25 jobs = afe.get_jobs()
|
/external/autotest/site_utils/admin/scripts/ |
D | cli2hbs.sh | 29 mkdir -p ${TARGET_DIR}/frontend/afe 31 touch ${TARGET_DIR}/frontend/afe/__init__.py 34 cp -fpruv ${AUTOTEST_DIR}/frontend/afe/json_rpc \ 35 ${TARGET_DIR}/frontend/afe 36 cp -uv ${AUTOTEST_DIR}/frontend/afe/rpc_client_lib.py \ 37 ${TARGET_DIR}/frontend/afe 39 ${AUTOTEST_TOOLS_DIR}/autotest/syncfiles/frontend/afe/site_rpc_client_lib.py \ 40 ${TARGET_DIR}/frontend/afe
|
/external/autotest/site_utils/ |
D | assign_stable_images.py | 164 def _set_stable_version(afe, mode, board, version): argument 180 afe.run('set_stable_version', board=board, version=version) 183 def _delete_stable_version(afe, mode, board): argument 198 afe.run('delete_stable_version', board=board) 201 def _apply_upgrades(afe, mode, afe_versions, argument 240 _set_stable_version(afe, mode, board, build) 245 _set_stable_version(afe, mode, _DEFAULT_BOARD, new_default) 251 _delete_stable_version(afe, mode, board) 294 afe = frontend_wrappers.RetryingAFE(server=None) 296 lab_inventory.get_managed_boards(afe)) [all …]
|
D | status_history.py | 43 from autotest_lib.frontend.afe import models as afe_models 171 def get_tasks(cls, afe, host_id, start_time, end_time): argument 189 tasks = afe.get_host_special_tasks( 194 return [cls(afe.server, t) for t in tasks] 198 def get_status_task(cls, afe, host_id, end_time): argument 214 task = afe.get_host_status_task(host_id, query_end) 215 return cls(afe.server, task) if task else None 252 def get_hqes(cls, afe, host_id, start_time, end_time): argument 270 hqelist = afe.get_host_queue_entries( 275 return [cls(afe.server, hqe) for hqe in hqelist] [all …]
|
D | add_detected_host_labels.py | 40 def add_missing_labels(afe, hostname): argument 67 afe_host = afe.get_hosts(hostname=hostname)[0] 69 label_matches = afe.get_labels(name__in=labels) 82 afe_labels_to_delete = afe.get_labels(name__in=labels_to_delete) 125 afe = frontend.AFE() 130 hostnames = afe.get_hostnames() 132 lambda x: add_missing_labels(afe, x),
|
D | brillo_test_launcher.py | 102 if all([host.hostname != adb_hostname for host in moblab.afe.get_hosts()]): 129 job = moblab.afe.create_job( 153 jobs_list = moblab.afe.get_jobs(id=parent_job.id) 154 jobs_list.extend(moblab.afe.get_jobs(parent_job=parent_job.id)) 169 while (moblab.afe.get_jobs(id=parent_job.id, not_yet_run=True, 171 or moblab.afe.get_jobs(parent_job=parent_job.id, not_yet_run=True, 173 afe_host = moblab.afe.get_hosts(hostnames=(host,))[0] 175 moblab.afe.abort_jobs( 208 solo_test_run = len(moblab.afe.get_jobs(parent_job=parent_job.id)) == 0 209 rc = run_suite.ResultCollector(moblab.web_address, moblab.afe, moblab.tko,
|
D | dut_status.py | 255 def _get_host_histories(afe, arguments): argument 278 afe, hostname, arguments.since, arguments.until) 290 def _validate_host_list(afe, arguments): argument 317 afe, arguments.since, arguments.until, 320 histories = _get_host_histories(afe, arguments) 349 def _validate_command(afe, arguments): argument 371 return _validate_host_list(afe, arguments) 443 afe = frontend.AFE(server=arguments.web) 444 history_list = _validate_command(afe, arguments)
|
D | test_runner_utils.py | 112 def fetch_local_suite(autotest_path, suite_predicate, afe, test_arg, remote, argument 148 devserver, fs_getter, afe=afe, 165 afe.get_labels(host__hostname=remote)] 319 from autotest_lib.frontend.afe import direct_afe 410 def _auto_detect_labels(afe, remote): argument 425 new_label = afe.create_label(label) 427 hosts = afe.get_hosts(hostname=remote) 435 def perform_local_run(afe, autotest_path, tests, remote, fast_mode, argument 478 build_label = afe.create_label(cros_version_label) 479 board_label = afe.create_label(constants.BOARD_PREFIX + board) [all …]
|
D | balance_pools.py | 233 def __init__(self, afe, board, pool, start_time, end_time, argument 241 afe, start_time, end_time, use_freon) 247 def _get_hosts(self, afe, start_time, end_time, use_freon): argument 250 afe, start_time, end_time, 256 afe, start_time, end_time, 389 def _balance_board(arguments, afe, board, start_time, end_time): argument 403 spare_pool = _DUTPool(afe, board, arguments.spare, 405 main_pool = _DUTPool(afe, board, arguments.pool, 578 _balance_board(arguments, afe, board, start_time, end_time) 583 afe = frontend.AFE(server=None)
|
D | abort_suite.py | 58 def abort_suites(afe, substring): argument 70 hqe_info = afe.run('abort_host_queue_entries', 93 afe = frontend.AFE() 95 abort_suites(afe, name)
|
/external/autotest/apache/conf/ |
D | django-directives | 30 RewriteRule ^/afe/server/admin/admin/(css|img|js)(.*) /usr/lib64/python2.7/site-packages/django/con… 32 RewriteRule ^/afe/server/admin/afe/(aclgroup|atomicgroup|host|label|profiler|test)/admin/(css|img|j… 40 RewriteRule ^/afe/server/admin/afe/(aclgroup|atomicgroup|host|label|profiler|test)/admin/(css|img|j… 49 RewriteRule ^/afe/server/admin/admin/(css|img|js)(.*) /usr/local/autotest/site-packages/django/cont… 51 RewriteRule ^/afe/server/admin/afe/(aclgroup|atomicgroup|host|label|profiler|test)/admin/(css|img|j… 59 RewriteRule ^/afe/server/admin/afe/(aclgroup|atomicgroup|host|label|profiler|test)/admin/(css|img|j… 67 RewriteRule ^/afe/server/admin/afe/(aclgroup|atomicgroup|host|label|profiler|test)/admin/(css|img|j… 75 RewriteRule ^/afe/server/admin/afe/(aclgroup|atomicgroup|host|label|profiler|test)/admin/(css|img|j… 83 RewriteRule ^/afe/server/admin/afe/(aclgroup|atomicgroup|host|label|profiler|test)/admin/(css|img|j… 91 RewriteRule ^/afe/server/admin/afe/(aclgroup|atomicgroup|host|label|profiler|test)/admin/(css|img|j… [all …]
|
/external/autotest/server/cros/ |
D | host_lock_manager_unittest.py | 74 self.afe = self.mox.CreateMock(frontend.AFE) 75 self.manager = host_lock_manager.HostLockManager(self.afe) 80 self.afe.get_hosts(hostname=self.HOST1).AndReturn(None) 89 self.afe.get_hosts(hostname=self.HOST1).AndReturn(host_info) 98 self.afe.get_hosts(hostname=self.HOST1).AndReturn(host_info) 107 self.afe.get_hosts(hostname=self.HOST1).AndReturn(host_info) 117 self.afe.get_hosts(hostname=self.HOST1).AndReturn(host_info) 127 manager = self.MockHostLockManager(self.afe) 136 manager = self.MockHostLockManager(self.afe) 162 manager = self.MockHostLockManager(self.afe) [all …]
|
/external/autotest/site_utils/deployment/ |
D | install.py | 123 def _update_build(afe, report_log, arguments): argument 146 afe_version = afe.run('get_stable_version', 164 afe.run('set_stable_version', 366 def _install_and_record(afe, hostname, arguments): argument 381 hostlist = afe.get_hosts([hostname]) 423 afe_host = afe.get_hosts([hostname])[0] 451 afe = frontend.AFE(server=arguments.web) 453 _install_and_record(afe, hostname, arguments) 483 def _report_results(afe, report_log, hostnames, results): argument 506 afe_host_list = afe.get_hosts(hostnames=success_hosts) [all …]
|
/external/autotest/frontend/client/src/autotest/afe/ |
D | AfeClient.java | 1 package autotest.afe; 3 import autotest.afe.HostDetailView.HostDetailListener; 4 import autotest.afe.HostListView.HostListListener; 5 import autotest.afe.JobDetailView.JobDetailListener; 6 import autotest.afe.JobListView.JobSelectListener; 7 import autotest.afe.RecurringView.RecurringSelectListener; 8 import autotest.afe.UserPreferencesView.UserPreferencesListener; 9 import autotest.afe.create.CreateJobViewPresenter.JobCreateListener; 10 import autotest.afe.create.CreateJobViewTab;
|
D | TestSelectorDisplay.java | 1 package autotest.afe; 3 import autotest.afe.ITextBox; 4 import autotest.afe.ITextBox.TextBoxImpl; 5 import autotest.afe.TestSelector.IDataTable; 6 import autotest.afe.TestSelector.IDataTable.DataTableImpl; 7 import autotest.afe.TestSelector.ISelectionManager; 8 import autotest.afe.TestSelector.ISelectionManager.SelectionManagerImpl;
|
D | ClassFactory.java | 1 package autotest.afe; 3 import autotest.afe.create.CreateJobViewPresenter.JobCreateListener; 4 import autotest.afe.create.CreateJobViewTab;
|
/external/autotest/site_utils/suite_scheduler/ |
D | board_enumerator_unittest.py | 25 self.afe = self.mox.CreateMock(frontend.AFE) 26 self.enumerator = board_enumerator.BoardEnumerator(afe=self.afe) 40 self.afe.get_labels(name__startswith=self.prefix).AndReturn( 48 self.afe.get_labels(name__startswith=self.prefix).AndReturn([]) 56 self.afe.get_labels(name__startswith=self.prefix).AndRaise(Exception())
|
D | deduping_scheduler_unittest.py | 44 self.afe = self.mox.CreateMock(frontend.AFE) 45 self.scheduler = deduping_scheduler.DedupingScheduler(afe=self.afe) 71 self.afe.get_jobs(name__startswith=self._BUILD, 75 self.afe.run('create_suite_job', 103 self.afe.get_jobs( 134 self.afe.run('create_suite_job', 163 self.afe.get_jobs( 184 self.afe.get_jobs(name__startswith=self._BUILD, 188 self.afe.run('create_suite_job', 217 self.afe.get_jobs(name__startswith=self._BUILD, [all …]
|
/external/autotest/frontend/client/src/autotest/afe/create/ |
D | CreateJobViewDisplay.java | 1 package autotest.afe.create; 3 import autotest.afe.CheckBoxPanel; 4 import autotest.afe.CheckBoxPanelDisplay; 5 import autotest.afe.ControlTypeSelect; 6 import autotest.afe.ControlTypeSelectDisplay; 7 import autotest.afe.HostSelector; 8 import autotest.afe.HostSelectorDisplay; 9 import autotest.afe.IButton; 10 import autotest.afe.IButton.ButtonImpl; 11 import autotest.afe.ICheckBox; [all …]
|
/external/autotest/server/ |
D | frontend.py | 23 from autotest_lib.frontend.afe import rpc_client_lib 812 def __init__(self, afe, hash): argument 813 self.afe = afe 844 return self.afe.run('label_add_hosts', id=self.id, hosts=hosts) 848 return self.afe.run('label_remove_hosts', id=self.id, hosts=hosts) 863 self.afe.log('Adding hosts %s to ACL %s' % (hosts, self.name)) 864 return self.afe.run('acl_group_add_hosts', self.id, hosts) 868 self.afe.log('Removing hosts %s from ACL %s' % (hosts, self.name)) 869 return self.afe.run('acl_group_remove_hosts', self.id, hosts) 873 self.afe.log('Adding users %s to ACL %s' % (users, self.name)) [all …]
|
D | site_utils.py | 88 def get_labels_from_afe(hostname, label_prefix, afe): argument 102 labels = afe.get_labels(name__startswith=label_prefix, 108 def get_label_from_afe(hostname, label_prefix, afe): argument 121 labels = get_labels_from_afe(hostname, label_prefix, afe) 126 def get_board_from_afe(hostname, afe): argument 138 return get_label_from_afe(hostname, constants.BOARD_PREFIX, afe) 141 def get_build_from_afe(hostname, afe): argument 152 return get_label_from_afe(hostname, constants.VERSION_PREFIX, afe) 297 def lock_host_with_labels(afe, lock_manager, labels): argument 314 potential_hosts = afe.get_hosts(multiple_labels=labels)
|
/external/autotest/server/hosts/ |
D | moblab_host.py | 54 self.afe = frontend_wrappers.RetryingAFE(timeout_min=timeout_min, 143 afe = frontend_wrappers.RetryingAFE(timeout_min=timeout_min, 146 afe.get_hosts() 186 existing_hosts = [host.hostname for host in self.afe.get_hosts()] 242 hosts = self.afe.reverify_hosts() 246 while (self.afe.get_special_tasks(is_complete=False) and 250 if not self.afe.get_hosts(status='Ready'): 251 for host in self.afe.get_hosts():
|