• Home
  • Raw
  • Download

Lines Matching refs:server_models

13 from autotest_lib.frontend.server import models as server_models  unknown
53 server_models.ServerRole,
54 attrs={'role': server_models.ServerRole.ROLE.DRONE})
56 server_models.ServerRole,
57 attrs={'role': server_models.ServerRole.ROLE.SCHEDULER})
59 server_models.ServerAttribute,
62 server_models.Server,
64 'status': server_models.Server.STATUS.PRIMARY,
68 server_models.Server,
70 'status': server_models.Server.STATUS.REPAIR_REQUIRED,
74 server_models.Server,
76 'status': server_models.Server.STATUS.PRIMARY,
80 server_models.Server,
82 'status': server_models.Server.STATUS.REPAIR_REQUIRED,
89 self.mox.StubOutWithMock(server_models.Server, 'get_role_names')
90 self.mox.StubOutWithMock(server_models.Server.objects, 'create')
91 self.mox.StubOutWithMock(server_models.Server.objects, 'filter')
92 self.mox.StubOutWithMock(server_models.Server.objects, 'get')
93 self.mox.StubOutWithMock(server_models.ServerRole, 'delete')
94 self.mox.StubOutWithMock(server_models.ServerRole.objects, 'create')
95 self.mox.StubOutWithMock(server_models.ServerRole.objects, 'filter')
96 self.mox.StubOutWithMock(server_models.ServerAttribute.objects,
98 self.mox.StubOutWithMock(server_models.ServerAttribute.objects,
109 server_models.Server.objects.get(
112 server_models.Server.objects.create(
116 server_models.ServerRole.objects.create(
117 server=mox.IgnoreArg(), role=server_models.ServerRole.ROLE.DRONE
121 role=server_models.ServerRole.ROLE.DRONE)
130 server_models.validate(role=server_models.ServerRole.ROLE.DEVSERVER)
137 [server_models.ServerRole.ROLE.DRONE])
138 server_models.ServerRole.objects.create(
140 role=server_models.ServerRole.ROLE.DEVSERVER
144 role=server_models.ServerRole.ROLE.DEVSERVER,
152 server_models.validate(role=server_models.ServerRole.ROLE.DRONE)
155 [server_models.ServerRole.ROLE.DRONE])
160 role=server_models.ServerRole.ROLE.DRONE,
171 server_models.validate(role=server_models.ServerRole.ROLE.DRONE)
176 [server_models.ServerRole.ROLE.DRONE])
179 role=server_models.ServerRole.ROLE.DRONE
183 role=server_models.ServerRole.ROLE.DRONE,
191 server_models.validate(role=server_models.ServerRole.ROLE.DEVSERVER)
194 [server_models.ServerRole.ROLE.DRONE])
199 role=server_models.ServerRole.ROLE.DEVSERVER,
207 server_models.validate(status=server_models.Server.STATUS.PRIMARY)
212 [server_models.ServerRole.ROLE.DRONE])
215 role__in=server_models.ServerRole.ROLES_REQUIRE_UNIQUE_INSTANCE
217 server_models.Server.objects.filter(
218 roles__role=server_models.ServerRole.ROLE.SCHEDULER,
219 status=server_models.Server.STATUS.PRIMARY
225 status=server_models.Server.STATUS.PRIMARY,
233 server_models.validate(
234 status=server_models.Server.STATUS.REPAIR_REQUIRED)
238 [server_models.ServerRole.ROLE.DRONE])
240 role__in=server_models.ServerRole.ROLES_REQUIRE_UNIQUE_INSTANCE
244 server_models.ServerRole.ROLE.DRONE, self.PRIMARY_DRONE)
245 server_models.Server.objects.filter(
246 roles__role=server_models.ServerRole.ROLE.SCHEDULER,
247 status=server_models.Server.STATUS.PRIMARY
253 status=server_models.Server.STATUS.REPAIR_REQUIRED,
261 server_models.validate(
262 status=server_models.Server.STATUS.REPAIR_REQUIRED)
267 status=server_models.Server.STATUS.REPAIR_REQUIRED,
276 server_models.validate(status=server_models.Server.STATUS.PRIMARY)
279 role__in=server_models.ServerRole.ROLES_REQUIRE_UNIQUE_INSTANCE
281 server_models.Server.objects.filter(
283 status=server_models.Server.STATUS.PRIMARY
289 status=server_models.Server.STATUS.PRIMARY,
299 server_models.validate(role=server_models.ServerRole.ROLE.DRONE)
302 [server_models.ServerRole.ROLE.DRONE])
307 role=server_models.ServerRole.ROLE.SCHEDULER,
317 server_models.validate(role=server_models.ServerRole.ROLE.DRONE)
323 [server_models.ServerRole.ROLE.SCHEDULER])
324 server_models.ServerRole.objects.create(
326 role=server_models.ServerRole.ROLE.DRONE
328 server_models.Server.objects.filter(
329 roles__role=server_models.ServerRole.ROLE.SCHEDULER,
330 status=server_models.Server.STATUS.PRIMARY
335 server_models.ServerRole.ROLE.DRONE,
346 server_models.validate(role=server_models.ServerRole.ROLE.DRONE)
349 [server_models.ServerRole.ROLE.DRONE])
353 role=server_models.ServerRole.ROLE.DRONE
356 server_models.Server.objects.filter(
357 roles__role=server_models.ServerRole.ROLE.SCHEDULER,
358 status=server_models.Server.STATUS.PRIMARY
361 server_models.ServerRole.ROLE.DRONE, self.PRIMARY_DRONE)
365 server_models.ServerRole.ROLE.DRONE,
376 server_models.validate(role=server_models.ServerRole.ROLE.DRONE)
379 [server_models.ServerRole.ROLE.DRONE])
383 role=server_models.ServerRole.ROLE.DRONE
387 server_models.ServerRole.ROLE.DRONE, self.PRIMARY_DRONE)
390 server_models.ServerRole.ROLE.DRONE,