Skip to content

Commit

Permalink
add test for swap_single_source flag
Browse files Browse the repository at this point in the history
  • Loading branch information
zjleblanc committed Dec 16, 2024
1 parent de7715a commit f844a84
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/integration/targets/activation/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,8 @@

- name: Assert that rulebook activation is disabled
ansible.builtin.assert:
that: not _result_activation_info.activations[0].is_enabled
that:
- not _result_activation_info.activations[0].is_enabled

- name: List all the rulebook activations
ansible.eda.rulebook_activation_info:
Expand Down Expand Up @@ -385,6 +386,7 @@
enabled: False
awx_token_name: "{{ awx_token_name }}"
organization_name: Default
swap_single_source: False
event_streams:
- event_stream: "{{ event_stream_name }}"
source_name: "{{ _result_rulebook_info.rulebooks[0].sources[0].name }}"
Expand All @@ -409,6 +411,11 @@
that:
- event_stream_name in (source_mappings_dict | map(attribute='event_stream_name') | list)

- name: Assert that swap single source flag is disabled
ansible.builtin.assert:
that:
- not _result_activation_info.activations[0].swap_single_source

- name: Delete project
ansible.eda.project:
name: "{{ project_name }}"
Expand Down

0 comments on commit f844a84

Please sign in to comment.