Projet

Général

Profil

Révision 7e5b657a

ID7e5b657a58fc94f81a6cc21a54d21023cee3bebb
Parent da8956d3
Enfant 03d8e696

Ajouté par Steve Traylen il y a plus de 4 ans

rubocop:auto_correct fixes

Voir les différences:

spec/classes/nftables_spec.rb
177 177

  
178 178
        context 'with no nftables fact' do
179 179
          it {
180
            is_expected.to contain_systemd__dropin_file('puppet_nft.conf')
181
              .with_content(%r{^ExecReload.*flush ruleset; include.*$})
180
            is_expected.to contain_systemd__dropin_file('puppet_nft.conf').
181
              with_content(%r{^ExecReload.*flush ruleset; include.*$})
182 182
          }
183 183
          it { is_expected.to contain_file('/etc/nftables/puppet-preflight.nft').with_content(%r{^flush ruleset$}) }
184 184
        end
......
189 189
          end
190 190

  
191 191
          it {
192
            is_expected.to contain_systemd__dropin_file('puppet_nft.conf')
193
              .with_content(%r{^ExecReload.*flush table inet abc; include.*$})
192
            is_expected.to contain_systemd__dropin_file('puppet_nft.conf').
193
              with_content(%r{^ExecReload.*flush table inet abc; include.*$})
194 194
          }
195 195
          it {
196
            is_expected.to contain_file('/etc/nftables/puppet-preflight.nft')
197
              .with_content(%r{^flush table inet abc$})
196
            is_expected.to contain_file('/etc/nftables/puppet-preflight.nft').
197
              with_content(%r{^flush table inet abc$})
198 198
          }
199 199
        end
200 200
        context 'with nftables fact not matching' do
......
203 203
          end
204 204

  
205 205
          it {
206
            is_expected.to contain_systemd__dropin_file('puppet_nft.conf')
207
              .with_content(%r{^ExecReload.*flush table inet abc; flush table inet ijk; include.*$})
206
            is_expected.to contain_systemd__dropin_file('puppet_nft.conf').
207
              with_content(%r{^ExecReload.*flush table inet abc; flush table inet ijk; include.*$})
208 208
          }
209 209
          it {
210
            is_expected.to contain_file('/etc/nftables/puppet-preflight.nft')
211
              .with_content(%r{^flush table inet abc; flush table inet ijk$})
210
            is_expected.to contain_file('/etc/nftables/puppet-preflight.nft').
211
              with_content(%r{^flush table inet abc; flush table inet ijk$})
212 212
          }
213 213
        end
214 214
      end

Formats disponibles : Unified diff