Lines Matching full:role
54 attrs={'role': server_models.ServerRole.ROLE.DRONE})
57 attrs={'role': server_models.ServerRole.ROLE.SCHEDULER})
117 server=mox.IgnoreArg(), role=server_models.ServerRole.ROLE.DRONE
121 role=server_models.ServerRole.ROLE.DRONE)
125 """Test manager can add a role to a repair_failed server successfully.
130 server_models.validate(role=server_models.ServerRole.ROLE.DEVSERVER)
137 [server_models.ServerRole.ROLE.DRONE])
140 role=server_models.ServerRole.ROLE.DEVSERVER
144 role=server_models.ServerRole.ROLE.DEVSERVER,
149 """Test manager fails to add a role to a repair_required server if
150 server already has the given role.
152 server_models.validate(role=server_models.ServerRole.ROLE.DRONE)
155 [server_models.ServerRole.ROLE.DRONE])
160 role=server_models.ServerRole.ROLE.DRONE,
165 """Test manager can delete a role from a repair_required server
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,
188 """Test manager fails to delete a role from a repair_required server if
189 the server does not have the given role.
191 server_models.validate(role=server_models.ServerRole.ROLE.DEVSERVER)
194 [server_models.ServerRole.ROLE.DRONE])
199 role=server_models.ServerRole.ROLE.DEVSERVER,
212 [server_models.ServerRole.ROLE.DRONE])
218 roles__role=server_models.ServerRole.ROLE.SCHEDULER,
238 [server_models.ServerRole.ROLE.DRONE])
244 server_models.ServerRole.ROLE.DRONE, self.PRIMARY_DRONE)
246 roles__role=server_models.ServerRole.ROLE.SCHEDULER,
274 role doesn't allow multiple instances.
282 roles__role=self.SCHEDULER_ROLE.role,
294 """Test manager fails to add a role to a repair_required server if check
299 server_models.validate(role=server_models.ServerRole.ROLE.DRONE)
302 [server_models.ServerRole.ROLE.DRONE])
307 role=server_models.ServerRole.ROLE.SCHEDULER,
312 """Test manager can add a role to a primary server successfully.
317 server_models.validate(role=server_models.ServerRole.ROLE.DRONE)
323 [server_models.ServerRole.ROLE.SCHEDULER])
326 role=server_models.ServerRole.ROLE.DRONE
329 roles__role=server_models.ServerRole.ROLE.SCHEDULER,
335 server_models.ServerRole.ROLE.DRONE,
340 """Test manager can delete a role from a primary server successfully.
346 server_models.validate(role=server_models.ServerRole.ROLE.DRONE)
349 [server_models.ServerRole.ROLE.DRONE])
353 role=server_models.ServerRole.ROLE.DRONE
357 roles__role=server_models.ServerRole.ROLE.SCHEDULER,
361 server_models.ServerRole.ROLE.DRONE, self.PRIMARY_DRONE)
365 server_models.ServerRole.ROLE.DRONE,
370 """Test manager can delete a role from a primary server successfully.
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,