Skip to content

Commit 43e4123

Browse files
Default cpms_test_suites to e2e-presubmit only and loop over configurable list
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent b29770d commit 43e4123

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

collection/stages/roles/cpms_test/defaults/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ cpms_test_results_dir: "{{ artifacts_dir }}/cpms_test-results"
66
cpms_test_testsuite_name: cpms
77
cpms_tests_go_version: "{{ tests.default_go_version_target }}"
88
cpms_test_junit_filename: junit_control_plane_machine_set_operator.xml
9+
cpms_test_suites:
10+
- e2e-presubmit

collection/stages/roles/cpms_test/tasks/main.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,11 @@
99
results_dir: "{{ cpms_test_results_dir }}"
1010
go_version_target: "{{ cpms_tests_go_version }}"
1111

12-
- name: Run CPMS e2e-presubmit tests
12+
- name: Run CPMS {{ item }} tests
1313
ansible.builtin.include_tasks: run_cpms_test.yml
1414
vars:
15-
cpms_tests_type: e2e-presubmit
16-
17-
- name: Run CPMS e2e-periodic tests
18-
ansible.builtin.include_tasks: run_cpms_test.yml
19-
vars:
20-
cpms_tests_type: e2e-periodic
15+
cpms_tests_type: "{{ item }}"
16+
loop: "{{ cpms_test_suites }}"
2117

2218
- name: Remove the source directory after tests complete
2319
ansible.builtin.file:

0 commit comments

Comments
 (0)