Update expectations for shallow clone
authorJohn Duarte <john.duarte@puppetlabs.com>
Sun, 11 May 2014 19:00:21 +0000 (12:00 -0700)
committerJohn Duarte <john.duarte@puppetlabs.com>
Sun, 18 May 2014 18:38:19 +0000 (11:38 -0700)
spec/acceptance/beaker/git/shallow_clone/negative/shallow_clone_file_path.rb [moved from spec/acceptance/beaker/git/shallow_clone/shallow_clone_file_path.rb with 68% similarity]
spec/acceptance/beaker/git/shallow_clone/negative/shallow_clone_http.rb [moved from spec/acceptance/beaker/git/shallow_clone/shallow_clone_http.rb with 77% similarity]

@@ -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
 
@@ -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