diff --git a/scripts/irods/test/test_misc.py b/scripts/irods/test/test_misc.py index 236035e03a..59c489d9e4 100644 --- a/scripts/irods/test/test_misc.py +++ b/scripts/irods/test/test_misc.py @@ -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