-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add action tester script #126
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the script.
I faced an issue on the Harfanglab module
module.configuration = module_conf | ||
|
||
file_path = self.find_file_with_module_item_class() | ||
module_item_cls = self.load_class_from_path( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested the script with an action from the Harfanglab automation module and got an error about the harfanglab python module:
$ cd Harfanglab
$ poetry install
$ poetry run pip install git+https://github.com/SEKOIA-IO/sekoia-automation-sdk.git@feat/add_action_test_script
$ poetry run sekoia-automation run-action --module-name=HarfangLab --class-name=GetProcessListAction --modules-path .. target_agents=cs-vm
...
moduleNotFoundError: No module named 'Harfanglab'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
The simplest way to test is to run
poetry run sekoia-automation run-action --module-name=HTTP --class-name=RequestAction --modules-path="~/PycharmProjects/automation-library" method=get url=https://dummyjson.com/test
Replace
~/PycharmProjects/automation-library
with a path to yourautomation-library
folder