Skip to content

Commit

Permalink
squash. new assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
korydraughn committed Apr 10, 2024
1 parent 46e9baa commit 3e909e1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/irods/test/test_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,14 @@ def test_enabling_and_disabling_of_msiSendMail__issue_7651(self):
self.assertIn('enable_deprecated_msiSendMail', config.server_config['advanced_settings'])
self.user.assert_icommand(['irule', '-r', rep_name, rule, 'null', 'ruleExecOut'], 'STDERR', ['-169000 SYS_NOT_ALLOWED'])

# Show use of msiSendMail is blocked when the configuration option is set to something
# other than a boolean.
with lib.file_backed_up(config.server_config_path):
config.server_config['advanced_settings']['enable_deprecated_msiSendMail'] = 'not_a_boolean'
lib.update_json_file_from_dict(config.server_config_path, config.server_config)
self.assertIn('enable_deprecated_msiSendMail', config.server_config['advanced_settings'])
self.user.assert_icommand(['irule', '-r', rep_name, rule, 'null', 'ruleExecOut'], 'STDERR', ['-169000 SYS_NOT_ALLOWED'])

# Show use of msiSendMail is allowed when the configuration option is set to true.
with lib.file_backed_up(config.server_config_path):
config.server_config['advanced_settings']['enable_deprecated_msiSendMail'] = True
Expand Down

0 comments on commit 3e909e1

Please sign in to comment.