Skip to content

feat(apache::vhost): refactor ModSecurity configuration handling #716

feat(apache::vhost): refactor ModSecurity configuration handling

feat(apache::vhost): refactor ModSecurity configuration handling #716

Triggered via pull request March 24, 2026 12:54
@bovy89bovy89
synchronize #2627
bovy89:main
Status Failure
Total duration 35m 56s
Artifacts

ci.yml

on: pull_request
Spec  /  Setup Test Matrix
13s
Spec / Setup Test Matrix
Matrix: Spec / spec
Acceptance  /  Setup Test Matrix
Acceptance / Setup Test Matrix
Matrix: Acceptance / acceptance
Waiting for pending jobs
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 3 warnings
Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2): spec/classes/mod/auth_mellon_spec.rb#L14
apache::mod::auth_mellon default configuration with parameters on a Debian OS with no parameters is expected to contain Package[libapache2-mod-auth-mellon] Failure/Error: it { is_expected.to contain_package('libapache2-mod-auth-mellon') } Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Unknown variable: '_modsec_disable_ids'. (file: /home/runner/work/puppetlabs-apache/puppetlabs-apache/spec/fixtures/modules/apache/manifests/vhost.pp, line: 2860, column: 44) (file: /home/runner/work/puppetlabs-apache/puppetlabs-apache/spec/fixtures/modules/apache/manifests/init.pp, line: 851) on node runnervm46oaq.ypicm30i32iejpnizslmtua5qd.bx.internal.cloudapp.net
Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2): spec/defines/vhost_spec.rb#L35
apache::vhost os-independent items on redhat-8-x86_64 basic assumptions is expected to contain Apache::Listen[84] Failure/Error: it { is_expected.to contain_apache__listen(params[:port]) } Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Unknown variable: '_modsec_disable_ids'. (file: /home/runner/work/puppetlabs-apache/puppetlabs-apache/spec/fixtures/modules/apache/manifests/vhost.pp, line: 2860, column: 44) (file: /home/runner/work/puppetlabs-apache/puppetlabs-apache/spec/fixtures/modules/apache/manifests/init.pp, line: 851) on node runnervm46oaq.ypicm30i32iejpnizslmtua5qd.bx.internal.cloudapp.net
Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2): spec/classes/mod/alias_spec.rb#L12
apache::mod::alias default configuration with parameters on a Debian OS is expected to contain Apache::Mod[alias] Failure/Error: it { is_expected.to contain_apache__mod('alias') } Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Unknown variable: '_modsec_disable_ids'. (file: /home/runner/work/puppetlabs-apache/puppetlabs-apache/spec/fixtures/modules/apache/manifests/vhost.pp, line: 2860, column: 44) (file: /home/runner/work/puppetlabs-apache/puppetlabs-apache/spec/fixtures/modules/apache/manifests/init.pp, line: 851) on node runnervm46oaq.ypicm30i32iejpnizslmtua5qd.bx.internal.cloudapp.net
Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2): spec/classes/apache_spec.rb#L11
apache on a Debian OS is expected to contain Package[httpd] with notify => "Class[Apache::Service]" and ensure => "installed" Failure/Error: expect(subject).to contain_package('httpd').with( 'notify' => 'Class[Apache::Service]', 'ensure' => 'installed', ) Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Unknown variable: '_modsec_disable_ids'. (file: /home/runner/work/puppetlabs-apache/puppetlabs-apache/spec/fixtures/modules/apache/manifests/vhost.pp, line: 2860, column: 44) (file: /home/runner/work/puppetlabs-apache/puppetlabs-apache/spec/fixtures/modules/apache/manifests/init.pp, line: 851) on node runnervm46oaq.ypicm30i32iejpnizslmtua5qd.bx.internal.cloudapp.net
Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2): spec/classes/mod/auth_mellon_spec.rb#L13
apache::mod::auth_mellon default configuration with parameters on a Debian OS with no parameters is expected to contain Apache::Mod[auth_mellon] Failure/Error: it { is_expected.to contain_apache__mod('auth_mellon') } Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Unknown variable: '_modsec_disable_ids'. (file: /home/runner/work/puppetlabs-apache/puppetlabs-apache/spec/fixtures/modules/apache/manifests/vhost.pp, line: 2860, column: 44) (file: /home/runner/work/puppetlabs-apache/puppetlabs-apache/spec/fixtures/modules/apache/manifests/init.pp, line: 851) on node runnervm46oaq.ypicm30i32iejpnizslmtua5qd.bx.internal.cloudapp.net
Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2): spec/defines/vhost_spec.rb#L34
apache::vhost os-independent items on redhat-8-x86_64 basic assumptions is expected to contain Class[apache::params] Failure/Error: it { is_expected.to contain_class('apache::params') } Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Unknown variable: '_modsec_disable_ids'. (file: /home/runner/work/puppetlabs-apache/puppetlabs-apache/spec/fixtures/modules/apache/manifests/vhost.pp, line: 2860, column: 44) (file: /home/runner/work/puppetlabs-apache/puppetlabs-apache/spec/fixtures/modules/apache/manifests/init.pp, line: 851) on node runnervm46oaq.ypicm30i32iejpnizslmtua5qd.bx.internal.cloudapp.net
Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2): spec/defines/vhost_spec.rb#L33
apache::vhost os-independent items on redhat-8-x86_64 basic assumptions is expected to contain Class[apache] Failure/Error: it { is_expected.to contain_class('apache') } Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Unknown variable: '_modsec_disable_ids'. (file: /home/runner/work/puppetlabs-apache/puppetlabs-apache/spec/fixtures/modules/apache/manifests/vhost.pp, line: 2860, column: 44) (file: /home/runner/work/puppetlabs-apache/puppetlabs-apache/spec/fixtures/modules/apache/manifests/init.pp, line: 851) on node runnervm46oaq.ypicm30i32iejpnizslmtua5qd.bx.internal.cloudapp.net
Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2): spec/spec_helper_local.rb#L33
apache::mod::alias default configuration with parameters on a Debian OS is expected to compile into a catalogue without dependency cycles Failure/Error: it { is_expected.to compile.with_all_deps } error during compilation: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Unknown variable: '_modsec_disable_ids'. (file: /home/runner/work/puppetlabs-apache/puppetlabs-apache/spec/fixtures/modules/apache/manifests/vhost.pp, line: 2860, column: 44) (file: /home/runner/work/puppetlabs-apache/puppetlabs-apache/spec/fixtures/modules/apache/manifests/init.pp, line: 851) on node runnervm46oaq.ypicm30i32iejpnizslmtua5qd.bx.internal.cloudapp.net Shared Example Group: "compile" called from ./spec/classes/mod/alias_spec.rb:9
Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2): spec/classes/apache_spec.rb#L9
apache on a Debian OS is expected to contain Class[apache::params] Failure/Error: it { is_expected.to contain_class('apache::params') } Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Unknown variable: '_modsec_disable_ids'. (file: /home/runner/work/puppetlabs-apache/puppetlabs-apache/spec/fixtures/modules/apache/manifests/vhost.pp, line: 2860, column: 44) (file: /home/runner/work/puppetlabs-apache/puppetlabs-apache/spec/fixtures/modules/apache/manifests/init.pp, line: 851) on node runnervm46oaq.ypicm30i32iejpnizslmtua5qd.bx.internal.cloudapp.net
Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2): spec/classes/mod/auth_mellon_spec.rb#L12
apache::mod::auth_mellon default configuration with parameters on a Debian OS with no parameters is expected to contain Class[apache::mod::authn_core] Failure/Error: it { is_expected.to contain_class('apache::mod::authn_core') } Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Unknown variable: '_modsec_disable_ids'. (file: /home/runner/work/puppetlabs-apache/puppetlabs-apache/spec/fixtures/modules/apache/manifests/vhost.pp, line: 2860, column: 44) (file: /home/runner/work/puppetlabs-apache/puppetlabs-apache/spec/fixtures/modules/apache/manifests/init.pp, line: 851) on node runnervm46oaq.ypicm30i32iejpnizslmtua5qd.bx.internal.cloudapp.net
Spec / Setup Test Matrix
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Spec / Setup Test Matrix
Debian-13 no provisioner found
Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/