Sha256: 0e613c7ed0909dcbb0456a997447c55b140c6a3fba7db457cbbf1db0013bcdba

Contents?: true

Size: 560 Bytes

Versions: 32

Compression:

Stored size: 560 Bytes

Contents

require 'spec_helper'

# Note that much of the functionality of the tdnf provider is already tested with yum provider tests,
# as yum is the parent provider, via dnf
describe Puppet::Type.type(:package).provider(:tdnf) do
  it_behaves_like 'RHEL package provider', described_class, 'tdnf'

  context 'default' do
    it 'should be the default provider on PhotonOS' do
      Facter.stubs(:value).with(:osfamily).returns(:redhat)
      Facter.stubs(:value).with(:operatingsystem).returns("PhotonOS")
      expect(described_class).to be_default
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
puppet-6.4.0 spec/unit/provider/package/tdnf_spec.rb
puppet-6.4.0-x86-mingw32 spec/unit/provider/package/tdnf_spec.rb
puppet-6.4.0-x64-mingw32 spec/unit/provider/package/tdnf_spec.rb
puppet-6.4.0-universal-darwin spec/unit/provider/package/tdnf_spec.rb
puppet-6.0.7 spec/unit/provider/package/tdnf_spec.rb
puppet-6.0.7-x86-mingw32 spec/unit/provider/package/tdnf_spec.rb
puppet-6.0.7-x64-mingw32 spec/unit/provider/package/tdnf_spec.rb
puppet-6.0.7-universal-darwin spec/unit/provider/package/tdnf_spec.rb
puppet-5.5.12 spec/unit/provider/package/tdnf_spec.rb
puppet-5.5.12-x86-mingw32 spec/unit/provider/package/tdnf_spec.rb
puppet-5.5.12-x64-mingw32 spec/unit/provider/package/tdnf_spec.rb
puppet-5.5.12-universal-darwin spec/unit/provider/package/tdnf_spec.rb
puppet-6.3.0 spec/unit/provider/package/tdnf_spec.rb
puppet-6.3.0-x86-mingw32 spec/unit/provider/package/tdnf_spec.rb
puppet-6.3.0-x64-mingw32 spec/unit/provider/package/tdnf_spec.rb
puppet-6.3.0-universal-darwin spec/unit/provider/package/tdnf_spec.rb
puppet-6.2.0 spec/unit/provider/package/tdnf_spec.rb
puppet-6.2.0-x86-mingw32 spec/unit/provider/package/tdnf_spec.rb
puppet-6.2.0-x64-mingw32 spec/unit/provider/package/tdnf_spec.rb
puppet-6.2.0-universal-darwin spec/unit/provider/package/tdnf_spec.rb