summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2019-11-18 14:53:40 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2019-11-18 14:53:40 -0800
commitdee1de9611aef8a8366bff0da2ace2dc7a4646b5 (patch)
treed847b54698ab2065ed8c51fd2a30ddf0be6cf305 /spec
parent5d5a1aeeb5d5585548a8bacb06fa7a57d3ecc660 (diff)
downloadchef-dee1de9611aef8a8366bff0da2ace2dc7a4646b5.tar.gz
build build_essential for rhel
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/provider_resolver_spec.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/unit/provider_resolver_spec.rb b/spec/unit/provider_resolver_spec.rb
index c8eb18b5b6..b27044cc1b 100644
--- a/spec/unit/provider_resolver_spec.rb
+++ b/spec/unit/provider_resolver_spec.rb
@@ -1,6 +1,6 @@
#
# Author:: Lamont Granquist (<lamont@chef.io>)
-# Copyright:: Copyright 2014-2018, Chef Software Inc.
+# Copyright:: Copyright 2014-2019, Chef Software Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -132,6 +132,10 @@ describe Chef::ProviderResolver do
expect(expected_provider).to receive(:new).with(resource, run_context).and_return(provider)
expect(resolved_provider).to eql(expected_provider)
end
+ elsif expected_resource
+ it "'#{name}' resolves to resource #{expected_resource}", *tags do
+ expect(resource.class).to eql(expected_resource)
+ end
else
it "'#{name}' fails to resolve (since #{name.inspect} is unsupported on #{platform} #{platform_version})", *tags do
Chef::Config[:treat_deprecation_warnings_as_errors] = false
@@ -674,6 +678,7 @@ describe Chef::ProviderResolver do
# service: [ Chef::Resource::SystemdService, Chef::Provider::Service::Systemd ],
package: [ Chef::Resource::DnfPackage, Chef::Provider::Package::Dnf ],
ifconfig: [ Chef::Resource::Ifconfig, Chef::Provider::Ifconfig::Redhat ],
+ build_essential: [ Chef::Resource::BuildEssential ],
%w{amazon xcp xenserver ibm_powerkvm cloudlinux parallels} => {
"3.1.4" => {