Skip to content

Commit 7463d29

Browse files
committed
Correct filenames of spec files
A selection of spec file were missing the correct extension `_spec.rb` and presumably never being executed.
1 parent 58dada6 commit 7463d29

10 files changed

+148
-96
lines changed

spec/classes/mod/lbmethod_bybusyness.rb

-24
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# frozen_string_literal: true
2+
3+
require 'spec_helper'
4+
5+
describe 'apache::mod::lbmethod_bybusyness', type: :class do
6+
context 'on a Debian OS' do
7+
include_examples 'Debian 11'
8+
9+
context 'with Apache version >= 2.4' do
10+
let :params do
11+
{
12+
apache_version: '2.4'
13+
}
14+
end
15+
16+
it { is_expected.to contain_class('apache::mod::proxy_balancer') }
17+
it { is_expected.to contain_apache__mod('lbmethod_bybusyness') }
18+
it {
19+
is_expected.to contain_file('lbmethod_bybusyness.load').with(
20+
{
21+
path: '/etc/apache2/mods-available/lbmethod_bybusyness.load',
22+
content: "LoadModule lbmethod_bybusyness_module /usr/lib/apache2/modules/mod_lbmethod_bybusyness.so\n",
23+
},
24+
)
25+
}
26+
it {
27+
is_expected.to contain_file('lbmethod_bybusyness.load symlink').with(
28+
{
29+
ensure: 'link',
30+
path: '/etc/apache2/mods-enabled/lbmethod_bybusyness.load',
31+
target: '/etc/apache2/mods-available/lbmethod_bybusyness.load',
32+
},
33+
)
34+
}
35+
end
36+
end
37+
end

spec/classes/mod/lbmethod_byrequests.rb

-24
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# frozen_string_literal: true
2+
3+
require 'spec_helper'
4+
5+
describe 'apache::mod::lbmethod_byrequests', type: :class do
6+
context 'on a Debian OS' do
7+
include_examples 'Debian 11'
8+
9+
context 'with Apache version >= 2.4' do
10+
let :params do
11+
{
12+
apache_version: '2.4'
13+
}
14+
end
15+
16+
it { is_expected.to contain_class('apache::mod::proxy_balancer') }
17+
it { is_expected.to contain_apache__mod('lbmethod_byrequests') }
18+
it {
19+
is_expected.to contain_file('lbmethod_byrequests.load').with(
20+
{
21+
path: '/etc/apache2/mods-available/lbmethod_byrequests.load',
22+
content: "LoadModule lbmethod_byrequests_module /usr/lib/apache2/modules/mod_lbmethod_byrequests.so\n",
23+
},
24+
)
25+
}
26+
it {
27+
is_expected.to contain_file('lbmethod_byrequests.load symlink').with(
28+
{
29+
ensure: 'link',
30+
path: '/etc/apache2/mods-enabled/lbmethod_byrequests.load',
31+
target: '/etc/apache2/mods-available/lbmethod_byrequests.load',
32+
},
33+
)
34+
}
35+
end
36+
end
37+
end

spec/classes/mod/lbmethod_bytraffic.rb

-24
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# frozen_string_literal: true
2+
3+
require 'spec_helper'
4+
5+
describe 'apache::mod::lbmethod_bytraffic', type: :class do
6+
context 'on a Debian OS' do
7+
include_examples 'Debian 11'
8+
9+
context 'with Apache version >= 2.4' do
10+
let :params do
11+
{
12+
apache_version: '2.4'
13+
}
14+
end
15+
16+
it { is_expected.to contain_class('apache::mod::proxy_balancer') }
17+
it { is_expected.to contain_apache__mod('lbmethod_bytraffic') }
18+
it {
19+
is_expected.to contain_file('lbmethod_bytraffic.load').with(
20+
{
21+
path: '/etc/apache2/mods-available/lbmethod_bytraffic.load',
22+
content: "LoadModule lbmethod_bytraffic_module /usr/lib/apache2/modules/mod_lbmethod_bytraffic.so\n",
23+
},
24+
)
25+
}
26+
it {
27+
is_expected.to contain_file('lbmethod_bytraffic.load symlink').with(
28+
{
29+
ensure: 'link',
30+
path: '/etc/apache2/mods-enabled/lbmethod_bytraffic.load',
31+
target: '/etc/apache2/mods-available/lbmethod_bytraffic.load',
32+
},
33+
)
34+
}
35+
end
36+
end
37+
end

spec/classes/mod/lbmethod_heartbeat.rb

-24
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# frozen_string_literal: true
2+
3+
require 'spec_helper'
4+
5+
describe 'apache::mod::lbmethod_heartbeat', type: :class do
6+
context 'on a Debian OS' do
7+
include_examples 'Debian 11'
8+
9+
context 'with Apache version >= 2.4' do
10+
let :params do
11+
{
12+
apache_version: '2.4'
13+
}
14+
end
15+
16+
it { is_expected.to contain_class('apache::mod::proxy_balancer') }
17+
it { is_expected.to contain_apache__mod('lbmethod_heartbeat') }
18+
it {
19+
is_expected.to contain_file('lbmethod_heartbeat.load').with(
20+
{
21+
path: '/etc/apache2/mods-available/lbmethod_heartbeat.load',
22+
content: "LoadModule lbmethod_heartbeat_module /usr/lib/apache2/modules/mod_lbmethod_heartbeat.so\n",
23+
},
24+
)
25+
}
26+
it {
27+
is_expected.to contain_file('lbmethod_heartbeat.load symlink').with(
28+
{
29+
ensure: 'link',
30+
path: '/etc/apache2/mods-enabled/lbmethod_heartbeat.load',
31+
target: '/etc/apache2/mods-available/lbmethod_heartbeat.load',
32+
},
33+
)
34+
}
35+
end
36+
end
37+
end
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)