Skip to content

Commit

Permalink
Debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
lgetwan committed Sep 13, 2024
1 parent 389fab7 commit 7cff0d6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/integration/targets/lookup_site/tasks/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
- name: " {{ outer_item.version }} - {{ outer_item.edition | upper }} - Get config of the site."
ansible.builtin.debug:
#msg: "Config of site {{ extensions.basic_settings.site_id }} is {{ extensions }}"
msg: "Config of site {{ extensions.basic_settings.site_id }} is {{ extensions }}"
msg: "Config of site {{ extensions }} is {{ extensions }}"
vars:
extensions: "{{ lookup('checkmk.general.site',
outer_item.site,
Expand Down
14 changes: 14 additions & 0 deletions tests/integration/targets/lookup_sites/tasks/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,20 @@
delegate_to: localhost
run_once: true # noqa run-once[task]

- name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Verify local connection."
ansible.builtin.debug:
msg: "{{ extensions }}"
vars:
extensions: "{{ lookup('checkmk.general.sites',
server_url=checkmk_var_server_url,
site=outer_item.site,
validate_certs=False,
automation_user=checkmk_var_automation_user,
automation_secret=checkmk_var_automation_secret)
}}[0]"
delegate_to: localhost
run_once: true # noqa run-once[task]

- name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Verify local connection."
ansible.builtin.assert:
that: "extensions.status_connection.connection.socket_type == 'local'"
Expand Down

0 comments on commit 7cff0d6

Please sign in to comment.