Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-3793

inifile: new 4.6.1 behaviour breaks test setup

    XMLWordPrintable

    Details

    • Type: CI Blocker
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: inifile
    • Labels:
      None
    • CI Pipeline/s:
      modules

      Description

      One of the tests passes a nil value (instead of a mock) to puppet API, and that is not enough any more:

      https://travis-ci.org/puppetlabs/puppetlabs-inifile/jobs/155071083#L524 :

        1) Puppet::Type::Ini_setting::ProviderRuby when ensuring that a setting is present should modify an existing setting with a different boolean value
           Failure/Error: expect(Puppet::Transaction::ResourceHarness.new(nil).evaluate(provider.resource).out_of_sync).to eq(true)
           NoMethodError:
             undefined method `persistence' for nil:NilClass
           # ./vendor/bundle/ruby/2.1.0/gems/puppet-4.6.1/lib/puppet/transaction/resource_harness.rb:13:in `initialize'
           # ./spec/unit/puppet/provider/ini_setting/ruby_spec.rb:276:in `new'
           # ./spec/unit/puppet/provider/ini_setting/ruby_spec.rb:276:in `block (3 levels) in <top (required)>'
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            david.schmitt David Schmitt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support