summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/acceptance/beaker/git/shallow_clone/negative/shallow_clone_file_path.rb (renamed from spec/acceptance/beaker/git/shallow_clone/shallow_clone_file_path.rb)10
-rw-r--r--spec/acceptance/beaker/git/shallow_clone/negative/shallow_clone_http.rb (renamed from spec/acceptance/beaker/git/shallow_clone/shallow_clone_http.rb)10
2 files changed, 6 insertions, 14 deletions
diff --git a/spec/acceptance/beaker/git/shallow_clone/shallow_clone_file_path.rb b/spec/acceptance/beaker/git/shallow_clone/negative/shallow_clone_file_path.rb
index d9d18ce..9cebe45 100644
--- a/spec/acceptance/beaker/git/shallow_clone/shallow_clone_file_path.rb
+++ b/spec/acceptance/beaker/git/shallow_clone/negative/shallow_clone_file_path.rb
@@ -30,13 +30,9 @@ hosts.each do |host|
apply_manifest_on(host, pp)
end
- step 'verify checkout is shallow and of the correct depth' do
- on(host, "ls #{tmpdir}/#{repo_name}/.git/") do |res|
- fail_test('shallow not found') unless res.stdout.include? "shallow"
- end
-
- on(host, "wc -l #{tmpdir}/#{repo_name}/.git/shallow") do |res|
- fail_test('shallow not found') unless res.stdout.include? "2 #{tmpdir}/#{repo_name}/.git/shallow"
+ step 'git does not support shallow clone via file path: verify checkout is NOT created' do
+ on(host, "ls #{tmpdir}") do |res|
+ fail_test('checkout found') if res.stdout.include? "#{repo_name}"
end
end
diff --git a/spec/acceptance/beaker/git/shallow_clone/shallow_clone_http.rb b/spec/acceptance/beaker/git/shallow_clone/negative/shallow_clone_http.rb
index ad7e30e..f80239b 100644
--- a/spec/acceptance/beaker/git/shallow_clone/shallow_clone_http.rb
+++ b/spec/acceptance/beaker/git/shallow_clone/negative/shallow_clone_http.rb
@@ -42,13 +42,9 @@ hosts.each do |host|
apply_manifest_on(host, pp)
end
- step 'verify checkout is shallow and of the correct depth' do
- on(host, "ls #{tmpdir}/#{repo_name}/.git/") do |res|
- fail_test('shallow not found') unless res.stdout.include? "shallow"
- end
-
- on(host, "wc -l #{tmpdir}/#{repo_name}/.git/shallow") do |res|
- fail_test('shallow not found') unless res.stdout.include? "2 #{tmpdir}/#{repo_name}/.git/shallow"
+ step 'git does not support shallow clone via HTTP: verify checkout is NOT created' do
+ on(host, "ls #{tmpdir}") do |res|
+ fail_test('checkout found') if res.stdout.include? "#{repo_name}"
end
end