Skip to content

Commit

Permalink
squash w/ TEST THIS commit
Browse files Browse the repository at this point in the history
  • Loading branch information
korydraughn committed Apr 22, 2024
1 parent 1c672b1 commit 070f178
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packaging/test_rule_engine_plugin_logical_quotas.py
Original file line number Diff line number Diff line change
Expand Up @@ -848,11 +848,13 @@ def test_plugin_blocks_open_when_max_number_of_bytes_is_reached__issue_NNN(self)
data_object = f'{col}/test_plugin_blocks_open_when_max_number_of_bytes_is_reached__issue_NNN.txt'
contents = 'hello'
self.user.assert_icommand(['istream', 'write', data_object], input=contents)
self.user.assert_icommand(['imeta', 'ls', '-C', col], 'STDOUT') # Debugging
self.assert_quotas(col, expected_number_of_objects=1, expected_size_in_bytes=len(contents))

# Show the plugin blocks subsequent writes since the quota for max allowed
# bytes has been reached.
ec, out, err = self.user.assert_icommand_fail(['istream', 'write', data_object], input=contents)
self.user.assert_icommand(['imeta', 'ls', '-C', col], 'STDOUT') # Debugging
self.assertNotEqual(ec, 0)
self.assertEqual('Level 0: Logical Quotas Policy Violation: Adding object exceeds maximum data size in bytes limit\n', out)
self.assertEqual('Error: Cannot open data object.\n', err)
Expand Down

0 comments on commit 070f178

Please sign in to comment.