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

more test and docs fixes for acceptance tests for CentOS / Passenger #886

Merged
merged 1 commit into from
Sep 29, 2016
Merged

more test and docs fixes for acceptance tests for CentOS / Passenger #886

merged 1 commit into from
Sep 29, 2016

Conversation

wyardley
Copy link
Collaborator

@wyardley wyardley commented Sep 27, 2016

@3flex @ffrank
Here's one more related to the now-merged #876
@3flex says that #885 should address the other test failure (though there will probably be a conflict if one isn't rebased after the other is merged).

I also added the --fail (-f) option to curl for the vhost test calls that rely on exit status, which should return a non-zero exit code if there's a non-2XX response. Normally, curl will exit non-zero if there's a failure to connect in the first place, but if it connects and gets a 4XX or 5XX response, it will display the error but exit 0.

[root@centos-7-x64 tmp]# curl localhost
<html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.10.1</center>
</body>
</html>
[root@centos-7-x64 tmp]# echo $?
0
[root@centos-7-x64 tmp]# curl -f localhost
curl: (22) The requested URL returned error: 502 Bad Gateway
[root@centos-7-x64 tmp]# echo $?
22

Should figure out if we want to explicitly add some kind of dependency on epel or just document it as I've done in the README.

@petems
Copy link
Member

petems commented Sep 29, 2016

BEAKER_set='centos-72-x64' bundle exec rake acceptance
Finished in 3 minutes 11.8 seconds (files took 1 minute 52.78 seconds to load)
42 examples, 0 failures

@petems petems merged commit 423c8d9 into voxpupuli:master Sep 29, 2016
@wyardley wyardley deleted the el_passenger_tests_docs_fixes_2 branch October 27, 2016 17:16
cegeka-jenkins pushed a commit to cegeka/puppet-nginx that referenced this pull request Sep 13, 2019
…s_fixes_2

more test and docs fixes for acceptance tests for CentOS / Passenger
Rubueno pushed a commit to Rubueno/puppet-nginx that referenced this pull request Oct 19, 2020
…s_fixes_2

more test and docs fixes for acceptance tests for CentOS / Passenger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants