Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions roles/test_operator/tasks/runners/horizontest_runner.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,29 @@
---
- name: Fetch admin password from osp-secret
no_log: true
ansible.builtin.command:
cmd: >-
oc get secret osp-secret
-n {{ cifmw_test_operator_namespace }}
-o jsonpath='{.data.AdminPassword}'
register: _horizontest_admin_password_b64
failed_when: false
changed_when: false

- name: Override admin password from osp-secret
no_log: true
when:
- _horizontest_admin_password_b64.rc == 0
- _horizontest_admin_password_b64.stdout | length > 0
ansible.builtin.set_fact:
stage_vars_dict: >-
{{
stage_vars_dict | combine({
'cifmw_test_operator_horizontest_admin_password':
_horizontest_admin_password_b64.stdout | b64decode
})
}}

- name: Run horizontest job
vars:
run_test_fw: horizontest
Expand Down
Loading