Skip to content

Commit 905060b

Browse files
committed
Add TODOs and pre-test steps
1 parent 523fa4b commit 905060b

File tree

7 files changed

+57
-17
lines changed

7 files changed

+57
-17
lines changed

ci/ansible-tests-fvt.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ spec:
6868
# A SELinuxLevel that should be used for test pods spawned by the test
6969
# operator.
7070
#
71+
# TODO: check this option in test-operator, since it only seems to support a sigle extra collection at the moment
72+
# TODO: Correct this to requirements.yml instead of requirements.yaml (or support both)
7173
# ansibleCollections <string>
7274
# AnsibleCollections - extra ansible collections to instal in additionn to the
7375
# ones exist in the requirements.yaml
@@ -83,6 +85,7 @@ spec:
8385
# ansiblePlaybookPath <string> -required-
8486
# AnsiblePlaybookPath - path to ansible playbook
8587
#
88+
# TODO: If the repos from the hosts are copied into the extraMounts, we can skip using the ansibleVarFiles interface, and use ansibleExtraVars: @<file> instead.
8689
# ansibleVarFiles <string>
8790
# AnsibleVarFiles - interface to create ansible var files Those get added to
8891
# the
@@ -103,6 +106,9 @@ spec:
103106
# Run ansible playbook with -vvvv
104107
# extraConfigmapsMounts <[]Object>
105108
# Extra configmaps for mounting inside the pod
109+
# TODO: Investigate preparing a PV and populating it with the git repos from the host.
110+
# This would removed the need to install from galaxy and push to elfie/master in order to run a playbook.
111+
# The git repos could then be cloned from the local copy of the repo.
106112
#
107113
# extraMounts <[]Object>
108114
# ExtraMounts containing conf files, credentials and storage volumes
@@ -116,6 +122,7 @@ spec:
116122
#
117123
# openStackConfigSecret <string>
118124
# OpenStackConfigSecret is the name of the Secret containing the secure.yaml
125+
# TODO: add openstack config secrets, then skip running openstack commands in openstackclient. This also means that the version of promclient, observabilityclient and apdh client can be updated without patching the containers.
119126
#
120127
# privileged <boolean>
121128
# Use with caution! This parameter specifies whether test-operator should

ci/logging_tests_all.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
- name: Run pre-test steps
2+
ansible.builtin.import_playbook: pre-test-steps.yml
3+
4+
15
- name: Run the compute node tests
26
ansible.builtin.import_playbook: logging_tests_computes.yml
37

ci/pre-test-steps.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
- name: Run pre-test steps
2+
ansible.builtin.import_playbook: pre-test-steps.yml
3+
4+
- name: Run telemetry tests to verify metrics on osp18
5+
hosts: "{{ cifmw_target_hook_host | default('localhost') }}"
6+
gather_facts: true
7+
environment:
8+
KUBECONFIG: "{{ cifmw_openshift_kubeconfig }}"
9+
PATH: "{{ cifmw_path }}:/var/lib/ansible/bin"
10+
vars_files:
11+
- vars/common.yml
12+
- vars/osp18_env.yml
13+
tasks:
14+
#TODO: Add this as a common playbook so it can be added to the other tests as well.
15+
- name: Install oc
16+
ansible.builtin.include_role:
17+
name: cifmw.general.ci_setup
18+
tasks_from: packages
19+
vars:
20+
cifmw_ci_setup_packages: []
21+
22+
- name: Log into openshift
23+
ansible.builtin.shell:
24+
cmd: |
25+
oc login -u {{ cifmw_openshift_user }} -p {{ cifmw_openshift_password }} --insecure-skip-tls-verify {{ cifmw_openshift_api }}
26+
register: cmd
27+
retries: 10
28+
delay: 10
29+
until: cmd.rc == 0
30+
31+

ci/run_autoscaling_tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
---
2+
- name: Run pre-test steps
3+
ansible.builtin.import_playbook: pre-test-steps.yml
4+
5+
26
- name: Run telemetry autoscaling tests on osp18
37
hosts: "{{ cifmw_target_hook_host | default('localhost') }}"
48
gather_facts: true

ci/run_functional_tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
- name: Run pre-test steps
2+
ansible.builtin.import_playbook: pre-test-steps.yml
3+
4+
- name: Run Logging test
5+
ansible.builtin.import_playbook: logging_tests_all.yml
6+
17
- name: Run Autoscaling test
28
ansible.builtin.import_playbook: run_autoscaling_tests.yml
39

ci/run_graphing_test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
---
2+
- name: Run pre-test steps
3+
ansible.builtin.import_playbook: pre-test-steps.yml
4+
5+
26
- name: "Run functional test playbooks"
37
hosts: "{{ cifmw_target_hook_host | default('localhost') }}"
48
gather_facts: true
@@ -43,4 +47,4 @@
4347
- name: "Run Graphing Console UI tests"
4448
ansible.builtin.import_role:
4549
name: telemetry_graphing
46-
ignore_errors: true
50+
ignore_errors: true

ci/run_verify_metrics_osp18.yml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,6 @@
1414
ansible.builtin.include_vars:
1515
dir: "{{ cifmw_basedir }}/artifacts/parameters"
1616

17-
- name: Install oc
18-
ansible.builtin.include_role:
19-
name: cifmw.general.ci_setup
20-
tasks_from: packages
21-
vars:
22-
cifmw_ci_setup_packages: []
23-
24-
- name: Log into openshift
25-
ansible.builtin.shell:
26-
cmd: |
27-
oc login -u {{ cifmw_openshift_user }} -p {{ cifmw_openshift_password }} --insecure-skip-tls-verify {{ cifmw_openshift_api }}
28-
register: cmd
29-
retries: 10
30-
delay: 10
31-
until: cmd.rc == 0
32-
3317
- name: Patch observabilityclient into openstackclient
3418
ansible.builtin.shell:
3519
cmd: |

0 commit comments

Comments
 (0)