Skip to content

Commit

Permalink
integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
tremble committed Oct 24, 2021
1 parent db8ed0c commit b138f51
Showing 1 changed file with 70 additions and 0 deletions.
70 changes: 70 additions & 0 deletions tests/integration/targets/efs/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,76 @@
- assert:
that: "{{efs_result_assertions}}"

# ============================================================
- name: Efs configure IA transition
efs:
state: present
name: "{{ efs_name }}-test-efs"
tags:
Name: "{{ efs_name }}-test-tag"
Purpose: file-storage
targets:
- subnet_id: "{{testing_subnet_a.subnet.id}}"
- subnet_id: "{{testing_subnet_b.subnet.id}}"
transition_to_ia: 60
register: efs_result

- assert:
that:
- efs_result is changed

- name: Efs configure IA transition - idempotency
efs:
state: present
name: "{{ efs_name }}-test-efs"
tags:
Name: "{{ efs_name }}-test-tag"
Purpose: file-storage
targets:
- subnet_id: "{{testing_subnet_a.subnet.id}}"
- subnet_id: "{{testing_subnet_b.subnet.id}}"
transition_to_ia: 60
register: efs_result

- assert:
that:
- efs_result is not changed

# ============================================================
- name: Efs remove IA transition
efs:
state: present
name: "{{ efs_name }}-test-efs"
tags:
Name: "{{ efs_name }}-test-tag"
Purpose: file-storage
targets:
- subnet_id: "{{testing_subnet_a.subnet.id}}"
- subnet_id: "{{testing_subnet_b.subnet.id}}"
transition_to_ia: None
register: efs_result

- assert:
that:
- efs_result is changed

- name: Efs remove IA transition - idempotency
efs:
state: present
name: "{{ efs_name }}-test-efs"
tags:
Name: "{{ efs_name }}-test-tag"
Purpose: file-storage
targets:
- subnet_id: "{{testing_subnet_a.subnet.id}}"
- subnet_id: "{{testing_subnet_b.subnet.id}}"
transition_to_ia: None
register: efs_result

- assert:
that:
- efs_result is not changed

# ============================================================
- name: Query unknown EFS by tag
efs_info:
Expand Down

0 comments on commit b138f51

Please sign in to comment.