File tree 2 files changed +12
-8
lines changed
2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
2
3
3
require 'puppet_litmus'
4
- require 'spec_helper_acceptance_local' if File . file? ( File . join ( File . dirname ( __FILE__ ) , 'spec_helper_acceptance_local.rb' ) )
5
-
6
4
PuppetLitmus . configure!
5
+
6
+ require 'spec_helper_acceptance_local' if File . file? ( File . join ( File . dirname ( __FILE__ ) , 'spec_helper_acceptance_local.rb' ) )
Original file line number Diff line number Diff line change 5
5
RETRY_WAIT = 3
6
6
ERROR_MATCHER = %r{(no valid OpenPGP data found|keyserver timed out|keyserver receive failed)} . freeze
7
7
8
- # lsb-release is needed for facter 3 (puppet 6) to resolve os.distro facts. Not needed with facter
9
- # 4 (puppet 7).
10
- lsb_package = <<-MANIFEST
8
+ RSpec . configure do |c |
9
+ c . before :suite do
10
+ # lsb-release is needed for facter 3 (puppet 6) to resolve os.distro facts. Not needed with facter
11
+ # 4 (puppet 7).
12
+ lsb_package = <<-MANIFEST
11
13
package { 'lsb-release':
12
14
ensure => installed,
13
15
}
14
16
MANIFEST
15
-
16
- include PuppetLitmus
17
- apply_manifest ( lsb_package )
17
+ include PuppetLitmus
18
+ extend PuppetLitmus
19
+ apply_manifest ( lsb_package )
20
+ end
21
+ end
18
22
19
23
# This method allows a block to be passed in and if an exception is raised
20
24
# that matches the 'error_matcher' matcher, the block will wait a set number
You can’t perform that action at this time.
0 commit comments