|
57 | 57 | } |
58 | 58 | end |
59 | 59 |
|
60 | | - it { is_expected.to contain_file("/etc/apache2/mods-available/event.conf").with_ensure('file') |
61 | | - .with_content(/^\s*ServerLimit\s*0/) |
62 | | - .with_content(/^\s*StartServers\s*1/) |
63 | | - .with_content(/^\s*MaxClients\s*2/) |
64 | | - .with_content(/^\s*MinSpareThreads\s*3/) |
65 | | - .with_content(/^\s*MaxSpareThreads\s*4/) |
66 | | - .with_content(/^\s*ThreadsPerChild\s*5/) |
67 | | - .with_content(/^\s*MaxRequestsPerChild\s*6/) |
68 | | - .with_content(/^\s*ThreadLimit\s*7/) |
69 | | - .with_content(/^\s*ListenBacklog\s*8/) |
70 | | - .with_content(/^\s*MaxRequestWorkers\s*9/) |
71 | | - .with_content(/^\s*MaxConnectionsPerChild\s*10/) |
72 | | - } |
| 60 | + it { is_expected.to contain_file("/etc/apache2/mods-available/event.conf").with_ensure('file').with_content(/^\s*ServerLimit\s*0/) } |
| 61 | + it { is_expected.to contain_file("/etc/apache2/mods-available/event.conf").with_ensure('file').with_content(/^\s*StartServers\s*1/) } |
| 62 | + it { is_expected.to contain_file("/etc/apache2/mods-available/event.conf").with_ensure('file').with_content(/^\s*MaxClients\s*2/) } |
| 63 | + it { is_expected.to contain_file("/etc/apache2/mods-available/event.conf").with_ensure('file').with_content(/^\s*MinSpareThreads\s*3/) } |
| 64 | + it { is_expected.to contain_file("/etc/apache2/mods-available/event.conf").with_ensure('file').with_content(/^\s*MaxSpareThreads\s*4/) } |
| 65 | + it { is_expected.to contain_file("/etc/apache2/mods-available/event.conf").with_ensure('file').with_content(/^\s*ThreadsPerChild\s*5/) } |
| 66 | + it { is_expected.to contain_file("/etc/apache2/mods-available/event.conf").with_ensure('file').with_content(/^\s*MaxRequestsPerChild\s*6/) } |
| 67 | + it { is_expected.to contain_file("/etc/apache2/mods-available/event.conf").with_ensure('file').with_content(/^\s*ThreadLimit\s*7/) } |
| 68 | + it { is_expected.to contain_file("/etc/apache2/mods-available/event.conf").with_ensure('file').with_content(/^\s*ListenBacklog\s*8/) } |
| 69 | + it { is_expected.to contain_file("/etc/apache2/mods-available/event.conf").with_ensure('file').with_content(/^\s*MaxRequestWorkers\s*9/) } |
| 70 | + it { is_expected.to contain_file("/etc/apache2/mods-available/event.conf").with_ensure('file').with_content(/^\s*MaxConnectionsPerChild\s*10/) } |
73 | 71 | end |
74 | 72 |
|
75 | 73 | context "with Apache version < 2.4" do |
|
0 commit comments