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 the mod_proxy ProxPassReverseCookieDomain directive #1309
Conversation
@occelebi Thanks for the contribution! This PR looks good. It needs a squash, but also.. how come you reviewed the spec test? It would be great if you got that test working so we can validate that the template gets populated correctly. |
@bmjen, It has been squashed. However I do not know how to write proper test for this case as I do not know ruby very well. |
@@ -20,7 +20,12 @@ | |||
<Location <%= proxy['path']%>> | |||
<%- if not proxy['reverse_cookies'].nil? -%> | |||
<%- Array(proxy['reverse_cookies']).each do |reverse_cookies| -%> | |||
ProxyPassReverseCookiePath <%= reverse_cookies['path'] %> <%= reverse_cookies['url'] %> | |||
<%- if reverse_cookies['path'] -%> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is misaligned, can you add a space here.
@occelebi It's pretty simple to add a test case to an existing test. All we're expecting is that if a parameter is set, that the code does what it's intended. Basically you can add another entry here: puppetlabs-apache/spec/defines/vhost_spec.rb Lines 226 to 229 in cf84e97
domain key.
Then you can add another line below here: puppetlabs-apache/spec/defines/vhost_spec.rb Lines 432 to 433 in cf84e97
|
@bmjen Thank you for your guidance. I've pushed new version. But I'm still in need of clarification for test of ProxyPassReverseCookiePath:
According to that I expected something like that:
|
Thanks @occelebi ! That test has a loose regex match and passes because it only matches up to the "http://", your suggestion would have been better. |
Support the mod_proxy ProxPassReverseCookieDomain directive
Hey,
I've added ProxyPassReverseCookieDomain directive in mod_proxy.
Regards,
Cem