summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Duarte <john.duarte@puppetlabs.com>2014-06-15 10:57:25 -0700
committerHunter Haugen <hunter@puppetlabs.com>2014-06-18 11:17:08 -0700
commit508373904f746242f5ac9a8132269c25081f26fc (patch)
tree6c3d9acbc4d1c4a781fde6229310e9ffa69f2a0e
parent3f2e4f85e5a5f1bc59a3826430e94d1d267aff62 (diff)
downloadpuppet-vcsrepo-508373904f746242f5ac9a8132269c25081f26fc.tar.gz
puppet-vcsrepo-508373904f746242f5ac9a8132269c25081f26fc.tar.bz2
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.
-rw-r--r--spec/acceptance/clone_repo_spec.rb8
1 files changed, 8 insertions, 0 deletions
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