Skip to content

Commit b57b4db

Browse files
Added python functional tests for all ansible tasks and mock data files
1 parent 077cbc8 commit b57b4db

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+2304
-23
lines changed

src/roles/ha_db_hana/tasks/fs-freeze.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
changed_when: cleanup_failed_resource_post.rc == 0
5252
ignore_errors: true
5353

54-
- name: "Test Execution: Validate HANA DB cluster status"
54+
- name: "Test Execution: Validate HANA DB cluster status 1"
5555
when: cluster_status_pre.AUTOMATED_REGISTER | lower == "true"
5656
get_cluster_status_db:
5757
operation_step: "test_execution"
@@ -67,7 +67,7 @@
6767
- name: "Test Execution: Freeze File System on Primary Node init"
6868
when: ansible_hostname == cluster_status_pre.primary_node
6969
block:
70-
- name: "Test Execution: Validate HANA DB cluster status"
70+
- name: "Test Execution: Validate HANA DB cluster status 2"
7171
get_cluster_status_db:
7272
operation_step: "post_failover"
7373
database_sid: "{{ db_sid | lower }}"

src/roles/ha_db_hana/tasks/primary-crash-index.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
- name: "Test Execution: Validate HANA DB cluster status"
5252
when: ansible_hostname == cluster_status_pre.secondary_node
5353
block:
54-
- name: "Test Execution: Validate HANA DB cluster status"
54+
- name: "Test Execution: Validate HANA DB cluster status 1"
5555
when: cluster_status_pre.AUTOMATED_REGISTER == "true"
5656
get_cluster_status_db:
5757
operation_step: "test_execution"
@@ -113,7 +113,7 @@
113113
changed_when: cleanup_failed_resource_post.rc == 0
114114
ignore_errors: true
115115

116-
- name: "Test Execution: Validate HANA DB cluster status"
116+
- name: "Test Execution: Validate HANA DB cluster status 2"
117117
get_cluster_status_db:
118118
operation_step: "post_failover"
119119
database_sid: "{{ db_sid | lower }}"

src/roles/ha_db_hana/tasks/primary-echo-b.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
- name: "Test Execution: Switch to secondary node"
4343
when: ansible_hostname == cluster_status_pre.secondary_node
4444
block:
45-
- name: "Test Execution: Validate HANA DB cluster status"
45+
- name: "Test Execution: Validate HANA DB cluster status 1"
4646
when: cluster_status_pre.AUTOMATED_REGISTER == "true"
4747
get_cluster_status_db:
4848
operation_step: "test_execution"
@@ -100,7 +100,7 @@
100100
changed_when: cleanup_failed_resource_post.rc == 0
101101
ignore_errors: true
102102

103-
- name: "Test Execution: Validate HANA DB cluster status"
103+
- name: "Test Execution: Validate HANA DB cluster status 2"
104104
get_cluster_status_db:
105105
operation_step: "post_failover"
106106
database_sid: "{{ db_sid | lower }}"

src/roles/ha_db_hana/tasks/primary-node-crash.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
changed_when: hana_db_stop_results == 0
4040
failed_when: hana_db_stop_results.rc != 0
4141

42-
- name: "Test Execution: Validate HANA DB cluster status"
42+
- name: "Test Execution: Validate HANA DB cluster status 1"
4343
get_cluster_status_db:
4444
operation_step: "test_execution"
4545
database_sid: "{{ db_sid | lower }}"
@@ -81,7 +81,7 @@
8181
changed_when: cleanup_failed_resource_post.rc == 0
8282
ignore_errors: true
8383

84-
- name: "Test execution: Validate HANA DB cluster status"
84+
- name: "Test execution: Validate HANA DB cluster status 2"
8585
get_cluster_status_db:
8686
operation_step: "post_failover"
8787
database_sid: "{{ db_sid | lower }}"

src/roles/ha_db_hana/tasks/primary-node-kill.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
changed_when: hana_db_kill_results == 0
4040
failed_when: hana_db_kill_results.rc != 0
4141

42-
- name: "Test Execution: Validate HANA DB cluster status"
42+
- name: "Test Execution: Validate HANA DB cluster status 1"
4343
when: cluster_status_pre.AUTOMATED_REGISTER == "true"
4444
get_cluster_status_db:
4545
operation_step: "test_execution"
@@ -98,7 +98,7 @@
9898
changed_when: cleanup_failed_resource_post.rc == 0
9999
ignore_errors: true
100100

101-
- name: "Test execution: Validate HANA DB cluster status"
101+
- name: "Test execution: Validate HANA DB cluster status 2"
102102
get_cluster_status_db:
103103
operation_step: "post_failover"
104104
database_sid: "{{ db_sid | lower }}"

src/roles/ha_db_hana/tasks/resource-migration.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
failed_when: hana_db_resource_migration.rc != 0
4040
changed_when: hana_db_resource_migration.rc == 0
4141

42-
- name: "Test Execution: Validate HANA DB cluster status"
42+
- name: "Test Execution: Validate HANA DB cluster status 1"
4343
get_cluster_status_db:
4444
operation_step: "test_execution"
4545
database_sid: "{{ db_sid | lower }}"
@@ -94,7 +94,7 @@
9494
ansible.builtin.wait_for:
9595
timeout: 100
9696

97-
- name: "Test Execution: Validate HANA DB cluster status"
97+
- name: "Test Execution: Validate HANA DB cluster status 2"
9898
get_cluster_status_db:
9999
operation_step: "test_execution"
100100
database_sid: "{{ db_sid | lower }}"

src/roles/ha_db_hana/tasks/sbd-fencing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
- name: "Test Execution: SBD Inquisitor kill manual fail over"
7070
when: ansible_hostname == cluster_status_pre.primary_node
7171
block:
72-
- name: "Test Execution: Validate HANA DB cluster status"
72+
- name: "Test Execution: Validate HANA DB cluster status 2"
7373
get_cluster_status_db:
7474
operation_step: "test_execution"
7575
database_sid: "{{ db_sid | lower }}"

src/roles/ha_db_hana/tasks/secondary-crash-index.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
cluster_status_test_execution.primary_node == cluster_status_pre.primary_node and
6565
cluster_status_test_execution.secondary_node == ""
6666
67-
- name: "Test Execution: Validate HANA DB cluster status"
67+
- name: "Test Execution: Validate HANA DB cluster status 2"
6868
get_cluster_status_db:
6969
operation_step: "post_failover"
7070
database_sid: "{{ db_sid | lower }}"

src/roles/ha_db_hana/tasks/secondary-echo-b.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
cluster_status_test_execution.primary_node == cluster_status_pre.primary_node and
6060
cluster_status_test_execution.secondary_node == ""
6161
62-
- name: "Test Execution: Validate HANA DB cluster status"
62+
- name: "Test Execution: Validate HANA DB cluster status 2"
6363
get_cluster_status_db:
6464
operation_step: "post_failover"
6565
database_sid: "{{ db_sid | lower }}"

src/roles/ha_db_hana/tasks/secondary-node-kill.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
- node_tier == "hana"
2424
- pre_validations_status == "PASSED"
2525
block:
26-
- name: "Test Execution: Kill the secondary node."
26+
- name: "Test Execution: Kill the secondary node"
2727
when: ansible_hostname == cluster_status_pre.primary_node
2828
block:
2929
- name: "Test Execution: Start timer"
@@ -57,7 +57,7 @@
5757
cluster_status_test_execution.primary_node == cluster_status_pre.primary_node and
5858
cluster_status_test_execution.secondary_node == ""
5959
60-
- name: "Test execution: Validate HANA DB cluster status"
60+
- name: "Test execution: Validate HANA DB cluster status 2"
6161
get_cluster_status_db:
6262
operation_step: "post_failover"
6363
ansible_os_family: "{{ ansible_os_family | upper }}"

0 commit comments

Comments
 (0)