summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorAshley Penney <ashley.penney@puppetlabs.com>2014-05-19 08:09:23 -0700
committerAshley Penney <ashley.penney@puppetlabs.com>2014-05-19 08:09:23 -0700
commitdf0b979b0902a20b6a948958838521da8828e358 (patch)
tree2869276740f845e6587f67e71a470ea3713e0396 /spec
parent059599691d4cf08ce012e4b057d0c82525ba163a (diff)
parent9a8e5680a5bd9179e227a13e9732721178d3ddf2 (diff)
downloadpuppet-vcsrepo-df0b979b0902a20b6a948958838521da8828e358.tar.gz
puppet-vcsrepo-df0b979b0902a20b6a948958838521da8828e358.tar.bz2
Merge pull request #142 from johnduarte/add_vagrant_user
Ensure vagrant user/group for non-vagrant testing
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":