Lines Matching full:deps

30         """Check if a host and request match by comparing acls and deps.
35 @return True if the deps/acls of the request match the host.
39 models.Label.objects.filter(id__in=request.deps)])
129 job = self.create_job(deps=set(['a']))
130 host = self.db_helper.create_host('h1', deps=set(['a']))
148 j1 = self.create_job(deps=set(['a']))
149 j2 = self.create_job(deps=set(['a']))
150 hosts = [self.db_helper.create_host('h1', deps=set(['a'])),
151 self.db_helper.create_host('h2', deps=set(['a']))]
154 def local_find_hosts(host_query_manger, deps, acls): argument
175 host = self.db_helper.create_host('h1', deps=set(['x']))
192 host = self.db_helper.create_host('h1', deps=set(['x']))
198 job = self.create_job(deps=set(['x']))
213 """Test a basic deps/acls request.
215 Make sure that a basic request with deps and acls, finds a host from
221 deps = set(['a', 'b'])
223 self.db_helper.create_host('h1', deps=deps, acls=acls)
224 job = self.create_job(user='autotest_system', deps=deps, acls=acls)
232 """Test that perferred deps is respected.
234 If multiple hosts satisfied a job's deps, the one with preferred
252 self.db_helper.create_host('lumpy1', deps=lumpy_deps, acls=acls)
253 self.db_helper.create_host('lumpy2', deps=lumpy_deps, acls=acls)
254 self.db_helper.create_host('stumpy1', deps=stumpy_deps, acls=acls)
256 'stumpy2', deps=stumpy_deps_with_crosversion , acls=acls)
258 deps=lumpy_deps, acls=acls)
260 deps=stumpy_deps_with_crosversion, acls=acls)
276 host in the ready pool will not have matching deps.
281 self.db_helper.create_host('h1', deps=host_labels, acls=acls)
282 job = self.create_job(user='autotest_system', deps=job_deps, acls=acls)
289 """Test that we find no hosts when only deps match.
294 deps = set(['a'])
297 self.db_helper.create_host('h1', deps=deps, acls=host_acls)
302 job = self.create_job(user='new_user', deps=deps, acls=job_acls)
311 Schedule 2 jobs with the same deps, acls and user, but different
318 deps = set(['a', 'b'])
320 self.db_helper.create_host('h1', deps=deps, acls=acls)
322 deps=deps, acls=acls, priority=2)
324 deps=deps, acls=acls, priority=0)
342 deps = set(['a', 'b'])
344 self.db_helper.create_host('h1', deps=deps, acls=acls)
348 first_job = self.create_job(user='autotest_system', deps=deps, acls=acls)
349 important_job = self.create_job(user='autotest_system', deps=deps,
351 deps.pop()
352 unimportant_job = self.create_job(user='someother_system', deps=deps,
381 deps = set(['x', 'y'])
385 matching_job = self.create_job(acls=acls, deps=deps)
386 matching_host = self.db_helper.create_host('h1', acls=acls, deps=deps)
387 mis_matching_job = self.create_job(acls=acls, deps=deps)
389 'h2', acls=acls, deps=deps.pop())
408 high_priority = self.create_job(priority=2, deps=set([board]))
409 low_priority = self.create_job(priority=1, deps=set([board]))
410 host = self.db_helper.create_host('h1', deps=set([board]))
452 # Create 2 suites such that the later suite has an ordering of deps
462 isolated_important_job = self.create_job(priority=3, deps=set([board]))
464 # Create 3 hosts, all with the deps to satisfy the last suite.
466 self.db_helper.create_host('h%s' % i, deps=set([board, 'y']))
485 # b. suite_1 was created before suite_2, regardless of deps
527 db_host = self.db_helper.create_host('h1', deps=host_deps)
528 self.create_job(user='autotest_system', deps=job_labels)
557 'h%d' % i, deps=set(['board:lumpy']), acls=acls))