-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#19] Moved audit plugin setup to test hook
- Loading branch information
Showing
5 changed files
with
31 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
from __future__ import print_function | ||
|
||
from irods.configuration import IrodsConfig | ||
|
||
def main(): | ||
irods_config = IrodsConfig() | ||
irods_config.server_config['plugin_configuration']['rule_engines'].insert(1, | ||
{ | ||
"instance_name": "irods_rule_engine_plugin-audit_amqp-instance", | ||
"plugin_name": "irods_rule_engine_plugin-audit_amqp", | ||
"plugin_specific_configuration" : { | ||
"amqp_location" : "ANONYMOUS@localhost:5672", | ||
"amqp_options" : "", | ||
"amqp_topic" : "audit_messages", | ||
"log_path_prefix": "/tmp/irods", | ||
"pep_regex_to_match" : "audit_.*", | ||
"test_mode": "true" | ||
} | ||
} | ||
) | ||
irods_config.server_config["rule_engine_namespaces"].append("audit_") | ||
irods_config.commit(irods_config.server_config, irods_config.server_config_path, make_backup=True) | ||
|
||
if __name__ == '__main__': | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.