From 823faf7a37a4ed1b0dfa8c492cea15599c26f08c Mon Sep 17 00:00:00 2001 From: Michal Srb Date: Jul 21 2022 16:59:17 +0000 Subject: Print for debugging in testing-farm-run-test role There is something wrong with the template and all logging is suppressed (likely due to an api key in the payload). Signed-off-by: Michal Srb --- diff --git a/roles/testing-farm-run-generic-test/tasks/main.yml b/roles/testing-farm-run-generic-test/tasks/main.yml index bb50157..f3d2e1b 100644 --- a/roles/testing-farm-run-generic-test/tasks/main.yml +++ b/roles/testing-farm-run-generic-test/tasks/main.yml @@ -1,5 +1,35 @@ # This role is also used in Centos Stream Zuul CI --- +- debug: + msg: | + { + "api_key": "yes:)", + "test": { + "{{ test_type | default('fmf') }}": { + "url": "{{ tmt_repo }}", + "ref": "{{ tmt_ref }}" + } + }, + "environments": [{ + "tmt": { + "context": { + "trigger": "commit", + "arch": "x86_64", + "distro": "{{ distro }}" + } + }, + "arch": "x86_64", + "variables": { + "REPO_URL": "{{ repo.url }}" + }, + {%- if compose -%} + "os": { + "compose": "{{ compose }}" + } + {%- endif -%} + }] + } + - name: trigger a generic Testing Farm test uri: url: "{{ api_url }}/requests"