From d9d82836f6ee0f7677ce44754f29a751e49dbed4 Mon Sep 17 00:00:00 2001 From: Trey Dockendorf Date: Sat, 15 Jul 2023 09:20:38 -0400 Subject: [PATCH] Debugging --- .github/workflows/ci.yaml | 7 ++++++- spec/acceptance/1_class_spec.rb | 3 +++ spec/acceptance/nodesets/el8.yml | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c4fae96d..01b0fac3 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -104,9 +104,14 @@ jobs: cache-version: 2 bundler: '2.1.0' - name: Run tests - run: bundle exec rake beaker + run: bundle exec rspec spec/acceptance/1_class_spec.rb:26 env: + BEAKER_destroy: 'no' BEAKER_PUPPET_COLLECTION: ${{ matrix.puppet }} BEAKER_set: ${{ matrix.set }} BEAKER_keycloak_version: ${{ matrix.keycloak_version }} BEAKER_keycloak_full: ${{ matrix.keycloak_full }} + - name: Debug failure + if: failure() + run: | + docker exec keycloak-${{ matrix.set }} journalctl -u keycloak --no-pager diff --git a/spec/acceptance/1_class_spec.rb b/spec/acceptance/1_class_spec.rb index 15d8bd3c..26eee027 100644 --- a/spec/acceptance/1_class_spec.rb +++ b/spec/acceptance/1_class_spec.rb @@ -38,6 +38,9 @@ class { 'keycloak': } it { is_expected.to be_running } end + describe command('netstat --listen -n -p') do + its(:stdout) { is_expected.to match /8080/ } + end describe port(8080) do it { is_expected.to be_listening.on('127.0.0.1').with('tcp') } end diff --git a/spec/acceptance/nodesets/el8.yml b/spec/acceptance/nodesets/el8.yml index cc813a28..1ad7f8a7 100644 --- a/spec/acceptance/nodesets/el8.yml +++ b/spec/acceptance/nodesets/el8.yml @@ -11,7 +11,7 @@ HOSTS: docker_image_commands: - 'dnf install -y dnf-utils' - 'dnf config-manager --set-enabled powertools' - - 'dnf install -y wget which cronie iproute initscripts langpacks-en glibc-all-langpacks glibc-langpack-en cpio' + - 'dnf install -y wget which cronie iproute net-tools initscripts langpacks-en glibc-all-langpacks glibc-langpack-en cpio' docker_env: - LANG=en_US.UTF-8 - LANGUAGE=en_US.UTF-8