diff --git a/packaging/test_rule_engine_plugin_logical_quotas.py b/packaging/test_rule_engine_plugin_logical_quotas.py index c8f68be..a6c3800 100644 --- a/packaging/test_rule_engine_plugin_logical_quotas.py +++ b/packaging/test_rule_engine_plugin_logical_quotas.py @@ -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)