-
Notifications
You must be signed in to change notification settings - Fork 78
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
Ciac 11100 playbook run in build #4658
Conversation
… of github.com:demisto/demisto-sdk into CIAC-11868-adding-fixtures-and-abilities-to-flow-tests
… of github.com:demisto/demisto-sdk into CIAC-11100-playbook-run-in-build
…00-playbook-run-in-build
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.
some minor comments but looks very good!
demisto_sdk/commands/test_content/test_use_case/test_use_case.py
Outdated
Show resolved
Hide resolved
demisto_sdk/commands/test_content/test_use_case/test_use_case.py
Outdated
Show resolved
Hide resolved
except Exception: | ||
self.build_context.logging_module.exception("~~ Thread failed ~~") | ||
self.build_context.tests_data_keeper.errors = True |
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.
how does it behave in case of exception?
- will the rest of the threads continue?
- will we see the error message?
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.
yes, each thread should run its tests, the rest of the threads should keep running.
Also logs per thread are printed (with thread number)
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.
can we have one sanity E2E test (from the main command method)?
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.
Not sure its needed, the methods are tested in unit tests.
Co-authored-by: Dan Tavori <[email protected]>
…/demisto-sdk into CIAC-11100-playbook-run-in-build
…00-playbook-run-in-build
…00-playbook-run-in-build :wq! :q :q! :wq! 1#
demisto_sdk/commands/test_content/test_use_case/template_file.py
Outdated
Show resolved
Hide resolved
demisto_sdk/commands/test_content/test_use_case/template_file.py
Outdated
Show resolved
Hide resolved
demisto_sdk/commands/test_content/test_use_case/template_file.py
Outdated
Show resolved
Hide resolved
demisto_sdk/commands/test_content/test_use_case/template_file.py
Outdated
Show resolved
Hide resolved
demisto_sdk/commands/test_content/test_use_case/test_use_case.py
Outdated
Show resolved
Hide resolved
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.
as discussed, consider adding an E2E test (or at least cover the uncovered lines)
…00-playbook-run-in-build
Added test-use-case command, to run use case flows on cloud machines.
Related Issues
fixes: https://jira-dc.paloaltonetworks.com/browse/CIAC-11867