1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
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(:osfamily).and_return(:redhat)
allow(Facter).to receive(:value).with(:operatingsystem).and_return("PhotonOS")
expect(described_class).to be_default
end
end
end
|