summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCrae <john.mccrae@progress.com>2022-06-09 11:21:53 -0700
committerJohn McCrae <john.mccrae@progress.com>2022-06-13 14:30:43 -0700
commit281844fe475ac046a79de8b58aee135038124a65 (patch)
tree388d1f644a4522fa10a35938800164b656346c3d
parent0eb035879de7653a9a00888b33949b3506934d99 (diff)
downloadchef-281844fe475ac046a79de8b58aee135038124a65.tar.gz
debugging build failures
Signed-off-by: John McCrae <john.mccrae@progress.com>
-rw-r--r--habitat/plan.ps13
-rw-r--r--spec/unit/provider/package/rubygems_spec.rb22
2 files changed, 14 insertions, 11 deletions
diff --git a/habitat/plan.ps1 b/habitat/plan.ps1
index 92fedfbc60..1ac60e0230 100644
--- a/habitat/plan.ps1
+++ b/habitat/plan.ps1
@@ -1,6 +1,9 @@
$pkg_name="chef-infra-client"
$pkg_origin="chef"
$pkg_version=(Get-Content $PLAN_CONTEXT/../VERSION)
+Write-Output "`n"
+Write-Output "The Plan Context is : $PLAN_CONTEXT"
+Write-Output "`n"
$pkg_description="Chef Infra Client is an agent that runs locally on every node that is under management by Chef Infra. This package is binary-only to provide Chef Infra Client executables. It does not define a service to run."
$pkg_maintainer="The Chef Maintainers <maintainers@chef.io>"
$pkg_upstream_url="https://github.com/chef/chef"
diff --git a/spec/unit/provider/package/rubygems_spec.rb b/spec/unit/provider/package/rubygems_spec.rb
index aca4ba4d04..a4ffc1712e 100644
--- a/spec/unit/provider/package/rubygems_spec.rb
+++ b/spec/unit/provider/package/rubygems_spec.rb
@@ -134,17 +134,17 @@ describe Chef::Provider::Package::Rubygems::CurrentGemEnvironment do
expect(@gem_env.candidate_version_from_remote(dep)).to be_nil
end
- # it "finds a matching gem from a specific gemserver when explicit sources are given (to a server that doesn't respond to api requests)" do
- # stub_request(:head, "https://rubygems2.org/")
- # .to_return(status: 200, body: "", headers: {})
- # stub_request(:get, "https://rubygems2.org/info/sexp_processor")
- # .to_return(status: 200, body: File.binread(File.join(CHEF_SPEC_DATA, "rubygems.org", "sexp_processor-info")))
- # stub_request(:get, "https://rubygems2.org/quick/Marshal.4.8/sexp_processor-4.15.1.gemspec.rz")
- # .to_return(status: 200, body: File.binread(File.join(CHEF_SPEC_DATA, "rubygems.org", "sexp_processor-4.15.1.gemspec.rz")))
-
- # dep = Gem::Dependency.new("sexp_processor", ">= 0")
- # expect(@gem_env.candidate_version_from_remote(dep, "https://rubygems2.org")).to be_kind_of(Gem::Version)
- # end
+ it "finds a matching gem from a specific gemserver when explicit sources are given (to a server that doesn't respond to api requests)" do
+ stub_request(:head, "https://rubygems2.org/")
+ .to_return(status: 200, body: "", headers: {})
+ stub_request(:get, "https://rubygems2.org/info/sexp_processor")
+ .to_return(status: 200, body: File.binread(File.join(CHEF_SPEC_DATA, "rubygems.org", "sexp_processor-info")))
+ stub_request(:get, "https://rubygems2.org/quick/Marshal.4.8/sexp_processor-4.15.1.gemspec.rz")
+ .to_return(status: 200, body: File.binread(File.join(CHEF_SPEC_DATA, "rubygems.org", "sexp_processor-4.15.1.gemspec.rz")))
+
+ dep = Gem::Dependency.new("sexp_processor", ">= 0")
+ expect(@gem_env.candidate_version_from_remote(dep, "https://rubygems2.org")).to be_kind_of(Gem::Version)
+ end
end
context "old rubygems caching behavior" do