Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Commit

Permalink
test: add --insecure in bkr and remove cert installation
Browse files Browse the repository at this point in the history
Signed-off-by: Xiaofeng Wang <[email protected]>
  • Loading branch information
henrywang committed Apr 7, 2024
1 parent 52ab410 commit 1fb1d67
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
8 changes: 4 additions & 4 deletions playbooks/deploy-beaker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@

tasks:
- name: "get latest {{ beaker_family[test_os] }} distro"
command: bkr distros-list --family {{ beaker_family[test_os] }} --name {{ beaker_compose[test_os] }}% --tag CTS_NIGHTLY --limit 1 --format json
command: bkr distros-list --insecure --family {{ beaker_family[test_os] }} --name {{ beaker_compose[test_os] }}% --tag CTS_NIGHTLY --limit 1 --format json
register: distro_result_rhel
when: "'rhel' in test_os"

- name: "get latest {{ beaker_family[test_os] }} distro"
command: bkr distros-list --family {{ beaker_family[test_os] }} --name {{ beaker_compose[test_os] }}% --limit 1 --format json
command: bkr distros-list --insecure --family {{ beaker_family[test_os] }} --name {{ beaker_compose[test_os] }}% --limit 1 --format json
register: distro_result_other
when: "'rhel' not in test_os"

Expand All @@ -48,15 +48,15 @@
dest: beaker-job.xml

- name: submit beaker job
command: bkr job-submit beaker-job.xml
command: bkr job-submit --insecure beaker-job.xml
register: job_result

- name: got job id
set_fact:
job_id: "{{ job_result.stdout.split(\"'\")[1] }}"

- name: wait for job complete
command: bkr job-results --prettyxml {{ job_id }}
command: bkr job-results --insecure --prettyxml {{ job_id }}
register: job_finished
retries: 50
delay: 60
Expand Down
2 changes: 1 addition & 1 deletion playbooks/remove.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
- name: Cancel beaker job
block:
- name: "cancel beaker job {{ job_id }}"
command: bkr job-cancel "{{ job_id }}"
command: bkr job-cancel --insecure "{{ job_id }}"
when: platform == "beaker"

- name: Remove Azure resource group
Expand Down
2 changes: 0 additions & 2 deletions tmt/plans/anaconda.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ prepare:
- xorriso
- how: shell
script: ansible-galaxy collection install https://ansible-collection.s3.amazonaws.com/ansible-posix-1.5.4.tar.gz https://ansible-collection.s3.amazonaws.com/community-general-8.5.0.tar.gz
- how: shell
script: curl -kLO ${CERT_URL}/certs/Current-IT-Root-CAs.pem --output-dir /etc/pki/ca-trust/source/anchors && update-ca-trust
execute:
how: tmt

Expand Down

0 comments on commit 1fb1d67

Please sign in to comment.