Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/stable'
Browse files Browse the repository at this point in the history
* upstream/stable:
  (PUP-3277) Ensure that user and group are set in func4x test
  • Loading branch information
jpartlow committed Oct 28, 2014
2 parents 0a95de8 + e6e0ae0 commit 921bb15
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions acceptance/tests/loader/func4x_loadable_from_modules.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@

# make sure that we use the modulepath from the dev environment
puppetconf = get_test_file_path(agent, 'puppet.conf')
user = agent.puppet['user']
group = agent.puppet['group']
# Setting user/group ensures that when puppet apply's Configurer use()'s the
# settings, that it doesn't default to owning them as root, which can have an
# impact on following tests.
on agent, puppet("config", "set", "user", user, "--section", "main", "--config", puppetconf)
on agent, puppet("config", "set", "group", group, "--section", "main", "--config", puppetconf)
on agent, puppet("config", "set", "environment", "dev", "--section", "user", "--config", puppetconf)
on agent, puppet("config", "set", "environmentpath", envs_path, "--section", "main", "--config", puppetconf)

Expand Down

0 comments on commit 921bb15

Please sign in to comment.