summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2020-04-27 13:45:49 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2020-04-27 13:45:49 -0700
commit5c06ba5a9800c01ddeeffe527fb95feba2a5081a (patch)
treefecfc342857f41181bd6125bd3b4d25d7cc884e8
parentfc1ffb52793526d6cf22bc3c1a86526a9ea64a8c (diff)
downloadchef-5c06ba5a9800c01ddeeffe527fb95feba2a5081a.tar.gz
Remove git func test for upstream
The output of this command seems to vary too much over different git versions to make it reliable and actually work. We should find something here that works, but determining what git commands to use which are stable for parsing can be very difficult. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r--spec/functional/resource/git_spec.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/spec/functional/resource/git_spec.rb b/spec/functional/resource/git_spec.rb
index 0355b59233..ca1bd30893 100644
--- a/spec/functional/resource/git_spec.rb
+++ b/spec/functional/resource/git_spec.rb
@@ -74,11 +74,6 @@ describe Chef::Resource::Git, requires_git: true do
expect(rev_ver).to eq(version)
end
- def expect_branch_upstream_to_be(branch, upstream)
- branch_upstream = shell_out("git", "rev-parse", "--abbrev-ref", "#{branch}@{upstream}", cwd: deploy_directory).stdout.strip
- expect(branch_upstream).to eq(upstream)
- end
-
def expect_branch_to_be(branch)
head_branch = shell_out!("git name-rev --name-only HEAD", cwd: deploy_directory).stdout.strip
expect(head_branch).to eq(branch)
@@ -219,7 +214,6 @@ describe Chef::Resource::Git, requires_git: true do
git deploy_directory do
repository origin_repo
end.should_be_updated
- expect_branch_upstream_to_be("master", "origin/master")
expect_revision_to_be("HEAD", rev_head)
expect_branch_to_be("master")
end