summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorJohn Duarte <john.duarte@puppetlabs.com>2014-05-05 13:49:51 -0700
committerJohn Duarte <john.duarte@puppetlabs.com>2014-05-19 07:47:49 -0700
commit9a8e5680a5bd9179e227a13e9732721178d3ddf2 (patch)
tree99e1447d4f00b8f79ad06cb35cdba76ac5c2fb56 /spec
parent4021245ebb54878c691d50efe3f9ce712734e4b6 (diff)
downloadpuppet-vcsrepo-9a8e5680a5bd9179e227a13e9732721178d3ddf2.tar.gz
puppet-vcsrepo-9a8e5680a5bd9179e227a13e9732721178d3ddf2.tar.bz2
Ensure vagrant user/group for non-vagrant testing
These tests assert the vagrant user and group. When testing on non-vagrant systems these tests will fail. Ensure that the user/group are present in order to allow the tests to pass on other systems.
Diffstat (limited to 'spec')
-rw-r--r--spec/acceptance/clone_repo_spec.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/acceptance/clone_repo_spec.rb b/spec/acceptance/clone_repo_spec.rb
index 4e2db19..1797c64 100644
--- a/spec/acceptance/clone_repo_spec.rb
+++ b/spec/acceptance/clone_repo_spec.rb
@@ -184,6 +184,13 @@ describe 'clones a remote repo' do
end
context 'with an owner' do
+ pp = <<-EOS
+ user { 'vagrant':
+ ensure => present,
+ }
+ EOS
+
+ apply_manifest(pp, :catch_failures => true)
it 'clones a repo' do
pp = <<-EOS
vcsrepo { "#{tmpdir}/testrepo_owner":
@@ -206,6 +213,14 @@ describe 'clones a remote repo' do
end
context 'with a group' do
+ pp = <<-EOS
+ group { 'vagrant':
+ ensure => present,
+ }
+ EOS
+
+ apply_manifest(pp, :catch_failures => true)
+
it 'clones a repo' do
pp = <<-EOS
vcsrepo { "/#{tmpdir}/testrepo_group":