Skip to content

Commit

Permalink
[#4284] Fix failing specs run as root due to missing puppet group
Browse files Browse the repository at this point in the history
These specs 'use' some settings which create directories belonging
to the 'service' user/group. If the default service group doesn't
exist, these fail. This patch explicitly sets the service group to
the gid of the process, which is known to be accessible by the user.
  • Loading branch information
nicklewis authored and markus committed Aug 3, 2010
1 parent 8237f68 commit 83c2419
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions spec/integration/indirector/bucket_file/rest_spec.rb
Expand Up @@ -17,6 +17,7 @@

Puppet.settings[:confdir] = @dir
Puppet.settings[:vardir] = @dir
Puppet.settings[:group] = Process.gid
Puppet.settings[:server] = "127.0.0.1"
Puppet.settings[:masterport] = "34343"

Expand Down
1 change: 1 addition & 0 deletions spec/integration/indirector/certificate/rest_spec.rb
Expand Up @@ -17,6 +17,7 @@

Puppet.settings[:confdir] = @dir
Puppet.settings[:vardir] = @dir
Puppet.settings[:group] = Process.gid
Puppet.settings[:server] = "127.0.0.1"
Puppet.settings[:masterport] = "34343"

Expand Down
Expand Up @@ -19,6 +19,7 @@

Puppet.settings[:confdir] = @dir
Puppet.settings[:vardir] = @dir
Puppet.settings[:group] = Process.gid
Puppet.settings[:server] = "127.0.0.1"
Puppet.settings[:masterport] = "34343"

Expand Down
Expand Up @@ -17,6 +17,7 @@

Puppet.settings[:confdir] = @dir
Puppet.settings[:vardir] = @dir
Puppet.settings[:group] = Process.gid
Puppet.settings[:server] = "127.0.0.1"
Puppet.settings[:masterport] = "34343"

Expand Down
1 change: 1 addition & 0 deletions spec/integration/indirector/report/rest_spec.rb
Expand Up @@ -17,6 +17,7 @@

Puppet.settings[:confdir] = @dir
Puppet.settings[:vardir] = @dir
Puppet.settings[:group] = Process.gid
Puppet.settings[:server] = "127.0.0.1"
Puppet.settings[:masterport] = "34343"

Expand Down
1 change: 1 addition & 0 deletions spec/integration/indirector/rest_spec.rb
Expand Up @@ -39,6 +39,7 @@ class Puppet::TestIndirectedFoo::Rest < Puppet::Indirector::REST

Puppet.settings[:confdir] = @dir
Puppet.settings[:vardir] = @dir
Puppet.settings[:group] = Process.gid
Puppet.settings[:server] = "127.0.0.1"
Puppet.settings[:masterport] = "34343"

Expand Down
1 change: 1 addition & 0 deletions spec/integration/network/server/webrick_spec.rb
Expand Up @@ -18,6 +18,7 @@

Puppet.settings[:confdir] = @dir
Puppet.settings[:vardir] = @dir
Puppet.settings[:group] = Process.gid

Puppet::SSL::Host.ca_location = :local

Expand Down
1 change: 1 addition & 0 deletions spec/integration/ssl/certificate_authority_spec.rb
Expand Up @@ -17,6 +17,7 @@

Puppet.settings[:confdir] = @dir
Puppet.settings[:vardir] = @dir
Puppet.settings[:group] = Process.gid

Puppet::SSL::Host.ca_location = :local
@ca = Puppet::SSL::CertificateAuthority.new
Expand Down
1 change: 1 addition & 0 deletions spec/integration/ssl/certificate_request_spec.rb
Expand Up @@ -21,6 +21,7 @@

Puppet.settings[:confdir] = @dir
Puppet.settings[:vardir] = @dir
Puppet.settings[:group] = Process.gid

Puppet::SSL::Host.ca_location = :none

Expand Down
1 change: 1 addition & 0 deletions spec/integration/ssl/certificate_revocation_list_spec.rb
Expand Up @@ -17,6 +17,7 @@

Puppet.settings[:confdir] = @dir
Puppet.settings[:vardir] = @dir
Puppet.settings[:group] = Process.gid

Puppet::SSL::Host.ca_location = :local
end
Expand Down
1 change: 1 addition & 0 deletions spec/integration/ssl/host_spec.rb
Expand Up @@ -17,6 +17,7 @@

Puppet.settings[:confdir] = @dir
Puppet.settings[:vardir] = @dir
Puppet.settings[:group] = Process.gid

Puppet::SSL::Host.ca_location = :local

Expand Down

0 comments on commit 83c2419

Please sign in to comment.