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.BACKUP,
74 server_models.Server,
76 'status': server_models.Server.STATUS.PRIMARY,
80 server_models.Server,
82 'status': server_models.Server.STATUS.BACKUP,
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,
170 server_models.validate(role=server_models.ServerRole.ROLE.DRONE)
175 [server_models.ServerRole.ROLE.DRONE])
178 role=server_models.ServerRole.ROLE.DRONE
182 role=server_models.ServerRole.ROLE.DRONE,
190 server_models.validate(role=server_models.ServerRole.ROLE.DEVSERVER)
193 [server_models.ServerRole.ROLE.DRONE])
197 role=server_models.ServerRole.ROLE.DEVSERVER,
204 server_models.validate(status=server_models.Server.STATUS.PRIMARY)
209 [server_models.ServerRole.ROLE.DRONE])
212 role__in=server_models.ServerRole.ROLES_REQUIRE_UNIQUE_INSTANCE
214 server_models.Server.objects.filter(
215 roles__role=server_models.ServerRole.ROLE.SCHEDULER,
216 status=server_models.Server.STATUS.PRIMARY
222 status=server_models.Server.STATUS.PRIMARY,
229 server_models.validate(status=server_models.Server.STATUS.BACKUP)
233 [server_models.ServerRole.ROLE.DRONE])
235 role__in=server_models.ServerRole.ROLES_REQUIRE_UNIQUE_INSTANCE
239 server_models.ServerRole.ROLE.DRONE, self.PRIMARY_DRONE)
240 server_models.Server.objects.filter(
241 roles__role=server_models.ServerRole.ROLE.SCHEDULER,
242 status=server_models.Server.STATUS.PRIMARY
248 status=server_models.Server.STATUS.BACKUP,
256 server_models.validate(status=server_models.Server.STATUS.BACKUP)
261 status=server_models.Server.STATUS.BACKUP,
270 server_models.validate(status=server_models.Server.STATUS.PRIMARY)
273 role__in=server_models.ServerRole.ROLES_REQUIRE_UNIQUE_INSTANCE
275 server_models.Server.objects.filter(
277 status=server_models.Server.STATUS.PRIMARY
283 status=server_models.Server.STATUS.PRIMARY,
293 server_models.validate(role=server_models.ServerRole.ROLE.DRONE)
296 [server_models.ServerRole.ROLE.DRONE])
300 role=server_models.ServerRole.ROLE.SCHEDULER,
310 server_models.validate(role=server_models.ServerRole.ROLE.DRONE)
316 [server_models.ServerRole.ROLE.SCHEDULER])
317 server_models.ServerRole.objects.create(
319 role=server_models.ServerRole.ROLE.DRONE
321 server_models.Server.objects.filter(
322 roles__role=server_models.ServerRole.ROLE.SCHEDULER,
323 status=server_models.Server.STATUS.PRIMARY
328 server_models.ServerRole.ROLE.DRONE,
339 server_models.validate(role=server_models.ServerRole.ROLE.DRONE)
342 [server_models.ServerRole.ROLE.DRONE])
346 role=server_models.ServerRole.ROLE.DRONE
349 server_models.Server.objects.filter(
350 roles__role=server_models.ServerRole.ROLE.SCHEDULER,
351 status=server_models.Server.STATUS.PRIMARY
354 server_models.ServerRole.ROLE.DRONE, self.PRIMARY_DRONE)
358 server_models.ServerRole.ROLE.DRONE,
369 server_models.validate(role=server_models.ServerRole.ROLE.DRONE)
372 [server_models.ServerRole.ROLE.DRONE])
376 role=server_models.ServerRole.ROLE.DRONE
380 server_models.ServerRole.ROLE.DRONE, self.PRIMARY_DRONE)
383 server_models.ServerRole.ROLE.DRONE,