Skip to content

Commit

Permalink
Correct specs for lbmethod_*
Browse files Browse the repository at this point in the history
They missed the _spec suffix so they weren't executed. They're also
simplified to stop setting the apache_version parameter since it's
ignored anyway.
  • Loading branch information
ekohl committed Jun 7, 2024
1 parent ecef4cd commit 4fbf14e
Show file tree
Hide file tree
Showing 8 changed files with 64 additions and 96 deletions.
24 changes: 0 additions & 24 deletions spec/classes/mod/lbmethod_bybusyness.rb

This file was deleted.

16 changes: 16 additions & 0 deletions spec/classes/mod/lbmethod_bybusyness_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# frozen_string_literal: true

require 'spec_helper'

describe 'apache::mod::lbmethod_byrequests', type: :class do
context 'on a Debian OS' do
include_examples 'Debian 11'

it {

Check failure on line 9 in spec/classes/mod/lbmethod_bybusyness_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)

apache::mod::lbmethod_byrequests on a Debian OS is expected to contain File[/etc/apache2/mods-enabled/lbmethod_byrequests.load] with ensure => "file" and content supplied string Failure/Error: expect(subject).to contain_file('/etc/apache2/mods-enabled/lbmethod_byrequests.load').with('ensure' => 'file', 'content' => "LoadModule lbmethod_byrequests_module /usr/lib/apache2/modules/mod_lbmethod_byrequests.so\n") expected that the catalogue would contain File[/etc/apache2/mods-enabled/lbmethod_byrequests.load]

Check failure on line 9 in spec/classes/mod/lbmethod_bybusyness_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2)

apache::mod::lbmethod_byrequests on a Debian OS is expected to contain File[/etc/apache2/mods-enabled/lbmethod_byrequests.load] with ensure => "file" and content supplied string Failure/Error: expect(subject).to contain_file('/etc/apache2/mods-enabled/lbmethod_byrequests.load').with('ensure' => 'file', 'content' => "LoadModule lbmethod_byrequests_module /usr/lib/apache2/modules/mod_lbmethod_byrequests.so\n") expected that the catalogue would contain File[/etc/apache2/mods-enabled/lbmethod_byrequests.load]
# rubocop:disable Layout/LineLength
expect(subject).to contain_file('/etc/apache2/mods-enabled/lbmethod_byrequests.load').with('ensure' => 'file',
'content' => "LoadModule lbmethod_byrequests_module /usr/lib/apache2/modules/mod_lbmethod_byrequests.so\n")
# rubocop:enable Layout/LineLength
}
end
end
24 changes: 0 additions & 24 deletions spec/classes/mod/lbmethod_byrequests.rb

This file was deleted.

16 changes: 16 additions & 0 deletions spec/classes/mod/lbmethod_byrequests_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# frozen_string_literal: true

require 'spec_helper'

describe 'apache::mod::lbmethod_byrequests', type: :class do
context 'on a Debian OS' do
include_examples 'Debian 11'

it {

Check failure on line 9 in spec/classes/mod/lbmethod_byrequests_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)

apache::mod::lbmethod_byrequests on a Debian OS is expected to contain File[/etc/apache2/mods-enabled/lbmethod_byrequests.load] with ensure => "file" and content supplied string Failure/Error: expect(subject).to contain_file('/etc/apache2/mods-enabled/lbmethod_byrequests.load').with('ensure' => 'file', 'content' => "LoadModule lbmethod_byrequests_module /usr/lib/apache2/modules/mod_lbmethod_byrequests.so\n") expected that the catalogue would contain File[/etc/apache2/mods-enabled/lbmethod_byrequests.load]

Check failure on line 9 in spec/classes/mod/lbmethod_byrequests_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2)

apache::mod::lbmethod_byrequests on a Debian OS is expected to contain File[/etc/apache2/mods-enabled/lbmethod_byrequests.load] with ensure => "file" and content supplied string Failure/Error: expect(subject).to contain_file('/etc/apache2/mods-enabled/lbmethod_byrequests.load').with('ensure' => 'file', 'content' => "LoadModule lbmethod_byrequests_module /usr/lib/apache2/modules/mod_lbmethod_byrequests.so\n") expected that the catalogue would contain File[/etc/apache2/mods-enabled/lbmethod_byrequests.load]
# rubocop:disable Layout/LineLength
expect(subject).to contain_file('/etc/apache2/mods-enabled/lbmethod_byrequests.load').with('ensure' => 'file',
'content' => "LoadModule lbmethod_byrequests_module /usr/lib/apache2/modules/mod_lbmethod_byrequests.so\n")
# rubocop:enable Layout/LineLength
}
end
end
24 changes: 0 additions & 24 deletions spec/classes/mod/lbmethod_bytraffic.rb

This file was deleted.

16 changes: 16 additions & 0 deletions spec/classes/mod/lbmethod_bytraffic_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# frozen_string_literal: true

require 'spec_helper'

describe 'apache::mod::lbmethod_byrequests', type: :class do
context 'on a Debian OS' do
include_examples 'Debian 11'

it {

Check failure on line 9 in spec/classes/mod/lbmethod_bytraffic_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)

apache::mod::lbmethod_byrequests on a Debian OS is expected to contain File[/etc/apache2/mods-enabled/lbmethod_byrequests.load] with ensure => "file" and content supplied string Failure/Error: expect(subject).to contain_file('/etc/apache2/mods-enabled/lbmethod_byrequests.load').with('ensure' => 'file', 'content' => "LoadModule lbmethod_byrequests_module /usr/lib/apache2/modules/mod_lbmethod_byrequests.so\n") expected that the catalogue would contain File[/etc/apache2/mods-enabled/lbmethod_byrequests.load]

Check failure on line 9 in spec/classes/mod/lbmethod_bytraffic_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2)

apache::mod::lbmethod_byrequests on a Debian OS is expected to contain File[/etc/apache2/mods-enabled/lbmethod_byrequests.load] with ensure => "file" and content supplied string Failure/Error: expect(subject).to contain_file('/etc/apache2/mods-enabled/lbmethod_byrequests.load').with('ensure' => 'file', 'content' => "LoadModule lbmethod_byrequests_module /usr/lib/apache2/modules/mod_lbmethod_byrequests.so\n") expected that the catalogue would contain File[/etc/apache2/mods-enabled/lbmethod_byrequests.load]
# rubocop:disable Layout/LineLength
expect(subject).to contain_file('/etc/apache2/mods-enabled/lbmethod_byrequests.load').with('ensure' => 'file',
'content' => "LoadModule lbmethod_byrequests_module /usr/lib/apache2/modules/mod_lbmethod_byrequests.so\n")
# rubocop:enable Layout/LineLength
}
end
end
24 changes: 0 additions & 24 deletions spec/classes/mod/lbmethod_heartbeat.rb

This file was deleted.

16 changes: 16 additions & 0 deletions spec/classes/mod/lbmethod_heartbeat_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# frozen_string_literal: true

require 'spec_helper'

describe 'apache::mod::lbmethod_byrequests', type: :class do
context 'on a Debian OS' do
include_examples 'Debian 11'

it {

Check failure on line 9 in spec/classes/mod/lbmethod_heartbeat_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)

apache::mod::lbmethod_byrequests on a Debian OS is expected to contain File[/etc/apache2/mods-enabled/lbmethod_byrequests.load] with ensure => "file" and content supplied string Failure/Error: expect(subject).to contain_file('/etc/apache2/mods-enabled/lbmethod_byrequests.load').with('ensure' => 'file', 'content' => "LoadModule lbmethod_byrequests_module /usr/lib/apache2/modules/mod_lbmethod_byrequests.so\n") expected that the catalogue would contain File[/etc/apache2/mods-enabled/lbmethod_byrequests.load]

Check failure on line 9 in spec/classes/mod/lbmethod_heartbeat_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2)

apache::mod::lbmethod_byrequests on a Debian OS is expected to contain File[/etc/apache2/mods-enabled/lbmethod_byrequests.load] with ensure => "file" and content supplied string Failure/Error: expect(subject).to contain_file('/etc/apache2/mods-enabled/lbmethod_byrequests.load').with('ensure' => 'file', 'content' => "LoadModule lbmethod_byrequests_module /usr/lib/apache2/modules/mod_lbmethod_byrequests.so\n") expected that the catalogue would contain File[/etc/apache2/mods-enabled/lbmethod_byrequests.load]
# rubocop:disable Layout/LineLength
expect(subject).to contain_file('/etc/apache2/mods-enabled/lbmethod_byrequests.load').with('ensure' => 'file',
'content' => "LoadModule lbmethod_byrequests_module /usr/lib/apache2/modules/mod_lbmethod_byrequests.so\n")
# rubocop:enable Layout/LineLength
}
end
end

0 comments on commit 4fbf14e

Please sign in to comment.