Sha256: de5743d89d4f26d3d0567c0d883d5a5f1a41f420636fbce98588e7df7da16714

Contents?: true

Size: 652 Bytes

Versions: 316

Compression:

Stored size: 652 Bytes

Contents

require 'spec_helper'

describe 'up2date package provider' do
  # This sets the class itself as the subject rather than
  # an instance of the class.
  subject do
    Puppet::Type.type(:package).provider(:up2date)
  end

  osfamilies = [ 'redhat' ]
  releases = [ '2.1', '3', '4' ]

  osfamilies.each do |osfamily|
    releases.each do |release|
      it "should be the default provider on #{osfamily} #{release}" do
        allow(Facter).to receive(:value).with(:osfamily).and_return(osfamily)
        allow(Facter).to receive(:value).with(:lsbdistrelease).and_return(release)
        expect(subject.default?).to be_truthy
      end
    end
  end
end

Version data entries

316 entries across 316 versions & 1 rubygems

Version Path
puppet-7.28.0 spec/unit/provider/package/up2date_spec.rb
puppet-7.28.0-x86-mingw32 spec/unit/provider/package/up2date_spec.rb
puppet-7.28.0-x64-mingw32 spec/unit/provider/package/up2date_spec.rb
puppet-7.28.0-universal-darwin spec/unit/provider/package/up2date_spec.rb
puppet-7.27.0 spec/unit/provider/package/up2date_spec.rb
puppet-7.27.0-x86-mingw32 spec/unit/provider/package/up2date_spec.rb
puppet-7.27.0-x64-mingw32 spec/unit/provider/package/up2date_spec.rb
puppet-7.27.0-universal-darwin spec/unit/provider/package/up2date_spec.rb
puppet-7.26.0 spec/unit/provider/package/up2date_spec.rb
puppet-7.26.0-x86-mingw32 spec/unit/provider/package/up2date_spec.rb
puppet-7.26.0-x64-mingw32 spec/unit/provider/package/up2date_spec.rb
puppet-7.26.0-universal-darwin spec/unit/provider/package/up2date_spec.rb
puppet-7.25.0 spec/unit/provider/package/up2date_spec.rb
puppet-7.25.0-x86-mingw32 spec/unit/provider/package/up2date_spec.rb
puppet-7.25.0-x64-mingw32 spec/unit/provider/package/up2date_spec.rb
puppet-7.25.0-universal-darwin spec/unit/provider/package/up2date_spec.rb
puppet-7.24.0 spec/unit/provider/package/up2date_spec.rb
puppet-7.24.0-x86-mingw32 spec/unit/provider/package/up2date_spec.rb
puppet-7.24.0-x64-mingw32 spec/unit/provider/package/up2date_spec.rb
puppet-7.24.0-universal-darwin spec/unit/provider/package/up2date_spec.rb