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
Fortios file only mode + integration tests #23275
Conversation
The test
The test
|
The test
|
I see you have the Could you please rebase your PR |
@bjolivot this PR contains the following merge comits: Please rebase your branch to remove these commits. |
1 similar comment
@bjolivot this PR contains the following merge comits: Please rebase your branch to remove these commits. |
Create mutualy_exclusive param Fix yamllint problem in tests
0c48d7c
to
4d606da
Compare
CI failure in integration tests on centos6: https://app.shippable.com/github/ansible/ansible/runs/18428/12/console The error was: |
ready_for_review |
test/integration/fortios.yml
Outdated
@@ -0,0 +1,9 @@ | |||
--- |
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 don't think you need this file as ansible-test
will create one, also it could get out of sync with the actual tests.
ansible-test integration -vvve fortios.*
The -e
means explain
, notice that a Playbook is generated on the fly
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.
Ok
id: 42 | ||
src_addr: all | ||
dst_addr: all | ||
# policy_action: accept |
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.
What's this comment about, left over from development?
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.
It's not left over.
I assert that missing required param thow an exception, for all these test, I comment the param line.
From a quick review it looks good. Will review in more detail when I get a chance. A number of files appear to be missing newlines, could you please fix that, thanks. |
missing new lines at end of file
ready_for_review |
bot_status |
waiting_on: ansible |
* WIP file_mode * WIP * Add file_mode + integration tests * fix pep8 * Update doc fragments Create mutualy_exclusive param Fix yamllint problem in tests * Add aliases file + main playbook for fortios * Install pyfg before running tests * Install pyfg before running tests in role * Remove pre_task as it's done in roles * Force pyFG minimal version for python3 * role_path not role_dir :( * Change requirements * Specify Error type when error on import * Bug in pygf library with python 2.5 (PR is waiting spotify/pyfg#19) * Bad requirement format * still bad format -_-' * remove test/integration/fortios.py (auto generated by tests) missing new lines at end of file * pyFG is now fixed in 0.50
* WIP file_mode * WIP * Add file_mode + integration tests * fix pep8 * Update doc fragments Create mutualy_exclusive param Fix yamllint problem in tests * Add aliases file + main playbook for fortios * Install pyfg before running tests * Install pyfg before running tests in role * Remove pre_task as it's done in roles * Force pyFG minimal version for python3 * role_path not role_dir :( * Change requirements * Specify Error type when error on import * Bug in pygf library with python 2.5 (PR is waiting spotify/pyfg#19) * Bad requirement format * still bad format -_-' * remove test/integration/fortios.py (auto generated by tests) missing new lines at end of file * pyFG is now fixed in 0.50
SUMMARY
As Fortigate device could not be buy for only ansible tests, I have added file mode in fortios module_utils helper.
File mode mean that module work with only configuration file level, without device needed \o/.
ISSUE TYPE
COMPONENT NAME
module_utils/fortios.py
ANSIBLE VERSION
ADDITIONAL INFORMATION