Sha256: 25159d58f3a38878f7c3be906e8ffca176ebb59609b3906f397580839d9c4e23

Contents?: true

Size: 585 Bytes

Versions: 24

Compression:

Stored size: 585 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
      allow(Facter).to receive(:value).with('os.family').and_return(:redhat)
      allow(Facter).to receive(:value).with('os.name').and_return("PhotonOS")
      expect(described_class).to be_default
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
puppet-8.3.0 spec/unit/provider/package/tdnf_spec.rb
puppet-8.3.0-x86-mingw32 spec/unit/provider/package/tdnf_spec.rb
puppet-8.3.0-x64-mingw32 spec/unit/provider/package/tdnf_spec.rb
puppet-8.3.0-universal-darwin spec/unit/provider/package/tdnf_spec.rb
puppet-8.4.0 spec/unit/provider/package/tdnf_spec.rb
puppet-8.4.0-x86-mingw32 spec/unit/provider/package/tdnf_spec.rb
puppet-8.4.0-x64-mingw32 spec/unit/provider/package/tdnf_spec.rb
puppet-8.4.0-universal-darwin spec/unit/provider/package/tdnf_spec.rb
puppet-8.3.1 spec/unit/provider/package/tdnf_spec.rb
puppet-8.3.1-x86-mingw32 spec/unit/provider/package/tdnf_spec.rb
puppet-8.3.1-x64-mingw32 spec/unit/provider/package/tdnf_spec.rb
puppet-8.3.1-universal-darwin spec/unit/provider/package/tdnf_spec.rb
puppet-8.2.0 spec/unit/provider/package/tdnf_spec.rb
puppet-8.2.0-x86-mingw32 spec/unit/provider/package/tdnf_spec.rb
puppet-8.2.0-x64-mingw32 spec/unit/provider/package/tdnf_spec.rb
puppet-8.2.0-universal-darwin spec/unit/provider/package/tdnf_spec.rb
puppet-8.1.0 spec/unit/provider/package/tdnf_spec.rb
puppet-8.1.0-x86-mingw32 spec/unit/provider/package/tdnf_spec.rb
puppet-8.1.0-x64-mingw32 spec/unit/provider/package/tdnf_spec.rb
puppet-8.1.0-universal-darwin spec/unit/provider/package/tdnf_spec.rb