From b35696bb072eae97a32f688b3e11a982926e35ee Mon Sep 17 00:00:00 2001 From: Juan Manuel Perez Date: Thu, 29 Aug 2024 16:38:40 +0200 Subject: [PATCH] print logs at e2e scenario exit --- exporters/powerdns/e2e/e2e_spec.yml | 30 +++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/exporters/powerdns/e2e/e2e_spec.yml b/exporters/powerdns/e2e/e2e_spec.yml index ac490568..d2eb0cbb 100644 --- a/exporters/powerdns/e2e/e2e_spec.yml +++ b/exporters/powerdns/e2e/e2e_spec.yml @@ -8,6 +8,16 @@ scenarios: before: - docker compose up -d after: + - >- + docker ps --format json | + jq -r '.Names' | + xargs -I '{}' bash -c ' + echo ===========================; + echo CONTAINER: {}; + echo ===========================; + docker logs {}; + echo; + ' - docker compose down -v integrations: - name: nri-powerdns @@ -48,6 +58,16 @@ scenarios: before: - docker compose up -d after: + - >- + docker ps --format json | + jq -r '.Names' | + xargs -I '{}' bash -c ' + echo ===========================; + echo CONTAINER: {}; + echo ===========================; + docker logs {}; + echo; + ' - docker compose down -v integrations: - name: nri-powerdns @@ -82,6 +102,16 @@ scenarios: before: - docker compose up -d after: + - >- + docker ps --format json | + jq -r '.Names' | + xargs -I '{}' bash -c ' + echo ===========================; + echo CONTAINER: {}; + echo ===========================; + docker logs {}; + echo; + ' - docker compose down -v integrations: - name: nri-powerdns