Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support environment variable control for CustomLog #527

Merged
merged 1 commit into from
Dec 13, 2013
Merged

Support environment variable control for CustomLog #527

merged 1 commit into from
Dec 13, 2013

Conversation

chieping
Copy link
Contributor

I tried to test, refering to CONTRIBUTING.md. Though I failed rake spec:system spec.

Could you tell me if testing command changed?

Thanks.

@igalic
Copy link
Contributor

igalic commented Dec 12, 2013

Nope, can't do that without any error output

@chieping
Copy link
Contributor Author

@igalic Excuse me, the command I tried and error output is following.

$ bundle exec rake spec:system
rake aborted!
Don't know how to build task 'spec:system'

(See full trace by running task with --trace)

@igalic
Copy link
Contributor

igalic commented Dec 12, 2013

... that makes sense. We've upgraded to beaker... now I need to find out how to run those tests.
rake spec (obviously?) doesn't.
rspec spec/acceptance/*.rb however, fails with:

/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require': cannot load such file -- specinfra (LoadError)
        from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
        from /var/lib/gems/1.9.1/gems/beaker-rspec-2.0.0/lib/beaker-rspec/helpers/serverspec.rb:2:in `<top (required)>'
        from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
        from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
        from /var/lib/gems/1.9.1/gems/beaker-rspec-2.0.0/lib/beaker-rspec/spec_helper.rb:2:in `<top (required)>'
        from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:60:in `require'
        from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:60:in `rescue in require'
        from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
        from /home/igalic/src/puppet/puppetlabs-apache/spec/spec_helper_acceptance.rb:1:in `<top (required)>'
        from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from /home/igalic/src/puppet/puppetlabs-apache/spec/acceptance/basic_spec.rb:1:in `<top (required)>'
        from /var/lib/gems/1.9.1/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in `load'
        from /var/lib/gems/1.9.1/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in `block in load_spec_files'
        from /var/lib/gems/1.9.1/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in `each'
        from /var/lib/gems/1.9.1/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in `load_spec_files'
        from /var/lib/gems/1.9.1/gems/rspec-core-2.14.7/lib/rspec/core/command_line.rb:22:in `run'
        from /var/lib/gems/1.9.1/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb:80:in `run'
        from /var/lib/gems/1.9.1/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb:17:in `block in autorun'

@igalic
Copy link
Contributor

igalic commented Dec 12, 2013

See #529

@blkperl
Copy link
Contributor

blkperl commented Dec 13, 2013

This pull request no longer merges cleanly, please rebase against master.

@igalic
Copy link
Contributor

igalic commented Dec 13, 2013

So! I just tested this, and it looks all right.

bundle update
rspec spec/acceptance

But I just realized that I'm very unhappy with the choice of your variable name: Would you very much mind renaming $access_log_environment_variable to $access_log_env_var ?
The httpd documentation calls it that too, most of the time, so let's just roll with it.

@chieping
Copy link
Contributor Author

Thank you very much for updating document and your opinion!
Added commit.

@igalic
Copy link
Contributor

igalic commented Dec 13, 2013

This looks very good now, and travis is happy!

Please squash the two commits down to one.

@chieping
Copy link
Contributor Author

Yes, now squashed. Thanks!

igalic added a commit that referenced this pull request Dec 13, 2013
Support environment variable control for CustomLog
@igalic igalic merged commit 1337286 into puppetlabs:master Dec 13, 2013
traylenator pushed a commit to traylenator/puppetlabs-apache that referenced this pull request Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants