Skip to content

Commit

Permalink
Debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
treydock committed Jul 15, 2023
1 parent 42666a8 commit d9d8283
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 3 additions & 0 deletions spec/acceptance/1_class_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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/ }

Check failure on line 42 in spec/acceptance/1_class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet 6 (Ruby 2.5.9 fixtures=.fixtures.yml)

Lint/AmbiguousRegexpLiteral: Ambiguous regexp literal. Parenthesize the method arguments if it's surely a regexp literal, or add a whitespace to the right of the `/` if it should be a division.

Check failure on line 42 in spec/acceptance/1_class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet 6 (Ruby 2.5.9 fixtures=.fixtures.yml)

Style/RegexpLiteral: Use `%r` around regular expression. (https://rubystyle.guide#percent-r)

Check failure on line 42 in spec/acceptance/1_class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet 7 (Ruby 2.7.6 fixtures=.fixtures.yml)

Lint/AmbiguousRegexpLiteral: Ambiguous regexp literal. Parenthesize the method arguments if it's surely a regexp literal, or add a whitespace to the right of the `/` if it should be a division.

Check failure on line 42 in spec/acceptance/1_class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet 7 (Ruby 2.7.6 fixtures=.fixtures.yml)

Style/RegexpLiteral: Use `%r` around regular expression. (https://rubystyle.guide#percent-r)

Check failure on line 42 in spec/acceptance/1_class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet 6 (Ruby 2.5.9 fixtures=.fixtures-latest.yml)

Lint/AmbiguousRegexpLiteral: Ambiguous regexp literal. Parenthesize the method arguments if it's surely a regexp literal, or add a whitespace to the right of the `/` if it should be a division.

Check failure on line 42 in spec/acceptance/1_class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet 6 (Ruby 2.5.9 fixtures=.fixtures-latest.yml)

Style/RegexpLiteral: Use `%r` around regular expression. (https://rubystyle.guide#percent-r)

Check failure on line 42 in spec/acceptance/1_class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet 7 (Ruby 2.7.6 fixtures=.fixtures-latest.yml)

Lint/AmbiguousRegexpLiteral: Ambiguous regexp literal. Parenthesize the method arguments if it's surely a regexp literal, or add a whitespace to the right of the `/` if it should be a division.

Check failure on line 42 in spec/acceptance/1_class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet 7 (Ruby 2.7.6 fixtures=.fixtures-latest.yml)

Style/RegexpLiteral: Use `%r` around regular expression. (https://rubystyle.guide#percent-r)
end

Check failure on line 43 in spec/acceptance/1_class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet 6 (Ruby 2.5.9 fixtures=.fixtures.yml)

RSpec/EmptyLineAfterExampleGroup: Add an empty line after `describe`. (https://rspec.rubystyle.guide/#empty-lines-between-describes, https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/EmptyLineAfterExampleGroup)

Check failure on line 43 in spec/acceptance/1_class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet 7 (Ruby 2.7.6 fixtures=.fixtures.yml)

RSpec/EmptyLineAfterExampleGroup: Add an empty line after `describe`. (https://rspec.rubystyle.guide/#empty-lines-between-describes, https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/EmptyLineAfterExampleGroup)

Check failure on line 43 in spec/acceptance/1_class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet 6 (Ruby 2.5.9 fixtures=.fixtures-latest.yml)

RSpec/EmptyLineAfterExampleGroup: Add an empty line after `describe`. (https://rspec.rubystyle.guide/#empty-lines-between-describes, https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/EmptyLineAfterExampleGroup)

Check failure on line 43 in spec/acceptance/1_class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet 7 (Ruby 2.7.6 fixtures=.fixtures-latest.yml)

RSpec/EmptyLineAfterExampleGroup: Add an empty line after `describe`. (https://rspec.rubystyle.guide/#empty-lines-between-describes, https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/EmptyLineAfterExampleGroup)
describe port(8080) do
it { is_expected.to be_listening.on('127.0.0.1').with('tcp') }
end
Expand Down
2 changes: 1 addition & 1 deletion spec/acceptance/nodesets/el8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d9d8283

Please sign in to comment.