Skip to content

Commit 9c64558

Browse files
authored
Increase e2e test coverage (#335)
Add coverage for Ansible destroy. Speed-up the trest reducing some sleep. Reorganize the code. Fix couple of bug about testng the wrong file existence. Implement more test isolation by deleting all the work folder more frequently.
1 parent f9b1616 commit 9c64558

7 files changed

Lines changed: 246 additions & 141 deletions

File tree

scripts/qesap/test/e2e/goji.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,16 @@
66
ansible.builtin.debug:
77
msg: "Hello worlds"
88

9-
- name: Pause for 10 seconds to rest
9+
- name: Pause for 5 seconds to rest
1010
ansible.builtin.pause:
11-
seconds: 10
11+
seconds: 5
1212

1313
- name: Say goodbye
1414
ansible.builtin.debug:
1515
msg: "Bye bye"
16+
17+
- name: Create a file
18+
ansible.builtin.file:
19+
path: goji.bacche
20+
mode: '0444'
21+
state: touch
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
- name: Ribes nero
3+
hosts: all
4+
tasks:
5+
- name: Delete file created by goji.yaml
6+
ansible.builtin.file:
7+
path: goji.bacche
8+
state: absent

scripts/qesap/test/e2e/test.sh

Lines changed: 220 additions & 136 deletions
Large diffs are not rendered by default.

scripts/qesap/test/e2e/test_5.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiver: 3
33
provider: fragola
44
terraform:
55
variables:
6-
jam: rosa_selvatica
6+
fruit: lampone
77
ansible:
88
hana_media:
99
- mora
@@ -14,3 +14,5 @@ ansible:
1414
az_sas_token: '***'
1515
create:
1616
- sambuconero.yaml
17+
- marasca.yaml
18+
- sambuconero.yaml

scripts/qesap/test/e2e/test_6.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ansible:
1111
hana_urls: mirtillo
1212
az_storage_account_name: ribes
1313
az_container_name: uvaspina
14-
az_sas_token: '***'
14+
az_key_name: '***'
1515
create:
1616
- timbio.yaml
1717
- purace.yaml

scripts/qesap/test/e2e/test_7.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,11 @@ ansible:
1111
hana_urls: mirtillo
1212
az_storage_account_name: ribes
1313
az_container_name: uvaspina
14-
az_sas_token: '***'
14+
az_key_name: '***'
1515
create:
1616
- sambuconero.yaml
1717
- marasca.yaml
1818
- sambuconero.yaml
19+
- goji.yaml
20+
destroy:
21+
- ribes_nero.yaml

scripts/qesap/test/e2e/test_8.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ ansible:
1414
az_sas_token: '***'
1515
create:
1616
- goji.yaml
17+
destroy:
18+
- ribes_nero.yaml

0 commit comments

Comments
 (0)