summaryrefslogtreecommitdiff
path: root/spec/acceptance/beaker/git/create
diff options
context:
space:
mode:
Diffstat (limited to 'spec/acceptance/beaker/git/create')
-rw-r--r--spec/acceptance/beaker/git/create/create_bare_repo_that_already_exists.rb3
-rw-r--r--spec/acceptance/beaker/git/create/create_repo_that_already_exists.rb3
-rw-r--r--spec/acceptance/beaker/git/create/negative/create_bare_repo_specifying_revision.rb6
3 files changed, 7 insertions, 5 deletions
diff --git a/spec/acceptance/beaker/git/create/create_bare_repo_that_already_exists.rb b/spec/acceptance/beaker/git/create/create_bare_repo_that_already_exists.rb
index 663c758..b72963b 100644
--- a/spec/acceptance/beaker/git/create/create_bare_repo_that_already_exists.rb
+++ b/spec/acceptance/beaker/git/create/create_bare_repo_that_already_exists.rb
@@ -23,7 +23,8 @@ hosts.each do |host|
}
EOS
- apply_manifest_on(host, pp)
+ apply_manifest_on(host, pp, :catch_failures => true)
+ apply_manifest_on(host, pp, :catch_changes => true)
end
step 'verify repo does not contain .git directory' do
diff --git a/spec/acceptance/beaker/git/create/create_repo_that_already_exists.rb b/spec/acceptance/beaker/git/create/create_repo_that_already_exists.rb
index b1cdeae..f31dda0 100644
--- a/spec/acceptance/beaker/git/create/create_repo_that_already_exists.rb
+++ b/spec/acceptance/beaker/git/create/create_repo_that_already_exists.rb
@@ -25,7 +25,8 @@ hosts.each do |host|
}
EOS
- apply_manifest_on(host, pp)
+ apply_manifest_on(host, pp, :catch_failures => true)
+ apply_manifest_on(host, pp, :catch_changes => true)
end
step 'verify repo is on master branch' do
diff --git a/spec/acceptance/beaker/git/create/negative/create_bare_repo_specifying_revision.rb b/spec/acceptance/beaker/git/create/negative/create_bare_repo_specifying_revision.rb
index 6cd4f72..ece10a5 100644
--- a/spec/acceptance/beaker/git/create/negative/create_bare_repo_specifying_revision.rb
+++ b/spec/acceptance/beaker/git/create/negative/create_bare_repo_specifying_revision.rb
@@ -22,12 +22,12 @@ hosts.each do |host|
}
EOS
- apply_manifest_on(host, pp)
+ apply_manifest_on(host, pp, :expect_failures => true)
end
step 'verify repo does not contain .git directory' do
- on(host, "ls -al #{tmpdir}/#{repo_name}") do |res|
- fail_test "found .git for #{repo_name}" if res.stdout.include? ".git"
+ on(host, "ls -al #{tmpdir}") do |res|
+ fail_test "found repo for #{repo_name}" if res.stdout.include? repo_name
end
end