Skip to content

Commit

Permalink
Unit test adjustment for MSPileup clean-up task
Browse files Browse the repository at this point in the history
  • Loading branch information
vkuznet committed Mar 21, 2023
1 parent 6f6d4b2 commit 7e747e8
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,14 @@ def testMSPileupTasksWithMockApi(self):
found = True
self.assertEqual(found, True)

# update doc in MSPileup and call cleanup task to delete it
data['active'] = False
data['rulesIds'] = []
data['currentRSEs'] = []
data['deactivatedOn'] = 0
self.mgr.updatePileup(data)
obj.cleanupTask(0)


if __name__ == '__main__':
unittest.main()

0 comments on commit 7e747e8

Please sign in to comment.