From: David Schmitt Date: Tue, 26 Jan 2021 18:21:04 +0000 (+0000) Subject: Wrap apply_manifest into RSpec context; initialise litmus earlier X-Git-Tag: v7.7.1~1^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=3f2b1e3ff0ac3bb11526d61d935483e3a2d7d89b;hp=3f2b1e3ff0ac3bb11526d61d935483e3a2d7d89b;p=puppet-modules%2Fpuppetlabs-apt.git Wrap apply_manifest into RSpec context; initialise litmus earlier This fixes the following error by exposing the necessary PuppetLitmus context: ``` An error occurred while loading ./spec/acceptance/01_apt_class_spec.rb. Failure/Error: apply_manifest(lsb_package) NameError: undefined local variable or method `os' for main:Object # ./vendor/bundle/ruby/2.5.0/gems/puppet_litmus-0.22.0/lib/puppet_litmus/puppet_helpers.rb:86:in `block in apply_manifest' # ./vendor/bundle/ruby/2.5.0/gems/honeycomb-beeline-2.4.0/lib/honeycomb/client.rb:70:in `start_span' # ./vendor/bundle/ruby/2.5.0/gems/puppet_litmus-0.22.0/lib/puppet_litmus/puppet_helpers.rb:41:in `apply_manifest' # ./spec/spec_helper_acceptance_local.rb:17:in `' # ./spec/spec_helper_acceptance.rb:4:in `require' # ./spec/spec_helper_acceptance.rb:4:in `' # ./spec/acceptance/01_apt_class_spec.rb:3:in `require' # ./spec/acceptance/01_apt_class_spec.rb:3:in `' ``` ---