Skip to content

Commit

Permalink
squash w/ 111
Browse files Browse the repository at this point in the history
  • Loading branch information
korydraughn committed Apr 25, 2024
1 parent f3abb78 commit c8d2964
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packaging/test_rule_engine_plugin_logical_quotas.py
Original file line number Diff line number Diff line change
Expand Up @@ -871,14 +871,21 @@ def test_data_objects_having_only_stale_replicas_can_be_removed__issue_111(self)
data_object = f'{col}/test_data_objects_having_only_stale_replicas_can_be_removed__issue_111.txt'
contents = 'test_data_objects_having_only_stale_replicas_can_be_removed__issue_111'
self.user.assert_icommand(['istream', 'write', data_object], input=contents)
self.user.assert_icommand(['ils', '-l', col], 'STDOUT') # Debugging.
self.assert_quotas(col, expected_number_of_objects=1, expected_size_in_bytes=len(contents))
self.user.assert_icommand(['imeta', 'ls', '-C', col], 'STDOUT') # Debugging.

# Mark the replica stale.
lib.set_replica_status(self.admin1, data_object, 0, 0)
self.user.assert_icommand(['ils', '-l', col], 'STDOUT') # Debugging.
self.assertEqual(lib.get_replica_status(self.user, os.path.basename(data_object), 0), '0')

# Show the data object was removed and the total data size was left as is.
self.user.assert_icommand(['irm', '-f', data_object])
self.user.assert_icommand(['ils', '-l', col], 'STDOUT') # Debugging.
self.assertFalse(lib.replica_exists(self.user, data_object, 0))
self.assert_quotas(col, expected_number_of_objects=0, expected_size_in_bytes=len(contents))
self.user.assert_icommand(['imeta', 'ls', '-C', col], 'STDOUT') # Debugging.

@unittest.skipIf(test.settings.RUN_IN_TOPOLOGY, "Skip for Topology Testing")
def test_rodsadmin_does_not_need_permission_on_the_collection_to_start_monitoring_it__issue_76(self):
Expand Down

0 comments on commit c8d2964

Please sign in to comment.