-
Notifications
You must be signed in to change notification settings - Fork 170
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
Add missing semicolon in proxy SSL settings #927
Conversation
@3scale/apicast-core need some help with fixing the test... When running locally with |
t/mutual-ssl.t
Outdated
|
||
=== TEST 2: Mutual SSL with password file | ||
--- main_config | ||
env APICAST_PROXY_HTTPS_PASSWORD_FILE=$Test::Nginx::Util::ServRoot/html/passwords.file; |
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.
We do not use main_config
because this is a blackbox test.
You can use env
block like https://github.com/3scale/apicast/blob/620c1b269fafa29068e35b93c0c3e83de4ccf920/t/http-proxy.t#L15-L18
8ff5234
to
3827272
Compare
); | ||
|
||
run_tests(); | ||
|
||
__DATA__ | ||
=== TEST 1: mutual SSL | ||
|
||
=== TEST 1: Mutual SSL with password file |
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.
Maybe adding a new test would have been better so we can be sure that it works with and without the password file.
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.
@davidor I tried that first... (kept removing the original test as a new commit)
It didn't work. For some reason, even having the same exact WORKING test 2 times in the t/mutual-ssl.t
was failing :/
Starting APIcast with
APICAST_PROXY_HTTPS_PASSWORD_FILE
was failing with:Apparently, it's because of the missing
;
in the end of the directive.The same for
proxy_ssl_session_reuse
, although I didn't really try it.