Lines Matching refs: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 backup 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 backup server if server already
150 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 backup server successfully.
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,
187 """Test manager fails to delete a role from a backup server if the
188 server does not have the given role.
190 server_models.validate(role=server_models.ServerRole.ROLE.DEVSERVER)
193 [server_models.ServerRole.ROLE.DRONE])
197 role=server_models.ServerRole.ROLE.DEVSERVER,
209 [server_models.ServerRole.ROLE.DRONE])
215 roles__role=server_models.ServerRole.ROLE.SCHEDULER,
233 [server_models.ServerRole.ROLE.DRONE])
239 server_models.ServerRole.ROLE.DRONE, self.PRIMARY_DRONE)
241 roles__role=server_models.ServerRole.ROLE.SCHEDULER,
267 primary if there is already a primary exists for role doesn't allow
276 roles__role=self.SCHEDULER_ROLE.role,
288 """Test manager fails to add a role to a backup server if check_server
293 server_models.validate(role=server_models.ServerRole.ROLE.DRONE)
296 [server_models.ServerRole.ROLE.DRONE])
300 role=server_models.ServerRole.ROLE.SCHEDULER,
305 """Test manager can add a role to a primary server successfully.
310 server_models.validate(role=server_models.ServerRole.ROLE.DRONE)
316 [server_models.ServerRole.ROLE.SCHEDULER])
319 role=server_models.ServerRole.ROLE.DRONE
322 roles__role=server_models.ServerRole.ROLE.SCHEDULER,
328 server_models.ServerRole.ROLE.DRONE,
333 """Test manager can delete a role from a primary server successfully.
339 server_models.validate(role=server_models.ServerRole.ROLE.DRONE)
342 [server_models.ServerRole.ROLE.DRONE])
346 role=server_models.ServerRole.ROLE.DRONE
350 ROLE.SCHEDULER,
354 server_models.ServerRole.ROLE.DRONE, self.PRIMARY_DRONE)
358 server_models.ServerRole.ROLE.DRONE,
363 """Test manager can delete a role from a primary server successfully.
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,