Merge branch 'add-group-to-clone-spec' into 1.0.x
authorHunter Haugen <hunter@puppetlabs.com>
Wed, 18 Jun 2014 18:17:15 +0000 (11:17 -0700)
committerHunter Haugen <hunter@puppetlabs.com>
Wed, 18 Jun 2014 18:17:15 +0000 (11:17 -0700)
spec/acceptance/clone_repo_spec.rb

index e76f4bc..a989661 100644 (file)
@@ -324,8 +324,12 @@ describe 'clones a remote repo' do
     before(:all) do
       shell("chmod 707 #{tmpdir}")
       pp = <<-EOS
+      group { 'testuser':
+        ensure => present,
+      }
       user { 'testuser':
         ensure => present,
+        groups => 'testuser',
       }
       EOS
 
@@ -388,8 +392,12 @@ describe 'clones a remote repo' do
     before(:all) do
       # create user
       pp = <<-EOS
+      group { 'testuser-ssh':
+        ensure => present,
+      }
       user { 'testuser-ssh':
         ensure => present,
+        groups => 'testuser-ssh',
         managehome => true,
       }
       EOS