From 9a8e5680a5bd9179e227a13e9732721178d3ddf2 Mon Sep 17 00:00:00 2001 From: John Duarte Date: Mon, 5 May 2014 13:49:51 -0700 Subject: 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. --- spec/acceptance/clone_repo_spec.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'spec/acceptance') 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": -- cgit v1.2.3