Skip to content
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

Rewrite folder module and migrate to new collection API. #536

Closed
wants to merge 8 commits into from
2 changes: 2 additions & 0 deletions changelogs/fragments/folder.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
major_changes:
- Folder module - Rewrite module and migrate to new collection API.
18 changes: 18 additions & 0 deletions tests/integration/targets/folder/tasks/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,24 @@
register: test_output
failed_when: test_output.changed | bool

- name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Test duplicate parameters for post 2.2.0p7 (should fail)."
folder:
server_url: "{{ checkmk_var_server_url }}"
site: "{{ outer_item.site }}"
automation_user: "{{ checkmk_var_automation_user }}"
automation_secret: "{{ checkmk_var_automation_secret }}"
path: "{{ checkmk_folder_attr_test.path }}"
update_attributes:
tag_criticality: "test"
remove_attributes:
- "tag_networking"
state: "present"
delegate_to: localhost
run_once: true # noqa run-once[task]
when: "'2.2' in outer_item.version"
register: checkmk_duplicate_parameters
failed_when: "'simultaneous use of attributes, remove_attributes' not in checkmk_duplicate_parameters.msg"

- name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Update folder title (name)."
folder:
server_url: "{{ checkmk_var_server_url }}"
Expand Down
Loading