Skip to content

Commit

Permalink
Fix integration tests
Browse files Browse the repository at this point in the history
Signed-off-by: Alina Buzachis <abuzachis@redhat.com>
  • Loading branch information
alinabuzachis committed Sep 14, 2024
1 parent 9defaab commit 61aada4
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions tests/integration/targets/activation/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
credential_name: "Test_Credential_{{ test_id }}"
decision_env_name: "Test_Decision_Env_{{ test_id }}"
activation_name: "Test_Activation_{{ test_id }}"
activation_name_source_name: "Test_ActivationSourceName_{{ test_id }}"
activation_name_source_index: "Test_ActivationSourceIndex_{{ test_id }}"
activation_name_wrong_source: "Test_ActivationWrongSource_{{ test_id }}"
project_name: "Test_Project_{{ test_id }}"
awx_token_name: "Test_AWXToken_{{ test_id }}"
token_value: "your_private_access_token_name"
Expand Down Expand Up @@ -232,7 +235,7 @@

- name: Create a rulebook activation (wrong source_name)
ansible.eda.activation:
name: "{{ activation_name }}"
name: "{{ activation_name_wrong_source }}"
description: "Example Activation description"
project_name: "{{ project_name }}"
rulebook_name: "{{ rulebook_name }}"
Expand All @@ -254,7 +257,7 @@

- name: Create a rulebook activation
ansible.eda.activation:
name: "{{ activation_name }}"
name: "{{ activation_name_source_index }}"
description: "Example Activation description"
project_name: "{{ project_name }}"
rulebook_name: "{{ rulebook_name }}"
Expand All @@ -274,12 +277,12 @@

- name: Delete rulebook activation
ansible.eda.activation:
name: "{{ activation_name }}"
name: "{{ activation_name_source }}"
state: absent

- name: Create a new rulebook activation
ansible.eda.activation:
name: "{{ activation_name }}"
name: "{{ activation_name_source_name }}"
description: "Example Activation description"
project_name: "{{ project_name }}"
rulebook_name: "{{ rulebook_name }}"
Expand Down Expand Up @@ -339,10 +342,15 @@
state: absent
ignore_errors: true

- name: Delete rulebook activation
- name: Delete rulebook activations
ansible.eda.activation:
name: "{{ activation_name }}"
name: "{{ item }}"
state: absent
loop:
- "{{ activation_name }}"
- "{{ activation_name_source_name }}"
- "{{ activation_name_source_index }}"
- "{{ activation_name_wrong_source }}"
ignore_errors: true

- name: Delete decision environment
Expand Down Expand Up @@ -371,3 +379,4 @@
name: "{{ credential_type_name }}"
state: absent
ignore_errors: true

0 comments on commit 61aada4

Please sign in to comment.