Change robot deletions to set the performer to null, rather than attempting to delete the rows from the large log entries table

This commit is contained in:
Joseph Schorr 2015-01-14 12:56:06 -05:00
parent 6cbd4ee4fe
commit 15a69ac872
2 changed files with 11 additions and 3 deletions

View file

@ -1965,6 +1965,9 @@ class TestOrgRobots(ApiTestCase):
pull_robot = model.get_user(membername)
model.create_build_trigger(repo, 'fakeservice', 'sometoken', user, pull_robot=pull_robot)
# Add some log entries for the robot.
model.log_action('pull_repo', ORGANIZATION, performer=pull_robot, repository=repo)
# Delete the robot and verify it works.
self.deleteResponse(OrgRobot,
params=dict(orgname=ORGANIZATION, robot_shortname='bender'))