From 508373904f746242f5ac9a8132269c25081f26fc Mon Sep 17 00:00:00 2001 From: John Duarte Date: Sun, 15 Jun 2014 10:57:25 -0700 Subject: Define group in clone_repo_spec test A matching group is not added for a user when added on SLES 11. This commit adds a group to the setup manifests in order to ensure that the proper group is added to the system during the test preparation. --- spec/acceptance/clone_repo_spec.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'spec/acceptance') diff --git a/spec/acceptance/clone_repo_spec.rb b/spec/acceptance/clone_repo_spec.rb index e76f4bc..a989661 100644 --- a/spec/acceptance/clone_repo_spec.rb +++ b/spec/acceptance/clone_repo_spec.rb @@ -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 -- cgit v1.2.3