-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
новый параметр fastcgi_intercept_errors
- Loading branch information
Showing
5 changed files
with
33 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
nginx-fastcgi/features/install_site/set-fastcgi_intercept_errors.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Feature: nginx-fastcgi should be able to set additional fastcgi params | ||
|
||
Scenario: install nginx site config | ||
Given I run 'rm -rf /tmp/foo.site.conf' | ||
Then a file named '/tmp/foo.site.conf' should not exist | ||
And I have chef recipe: | ||
""" | ||
nginx_fastcgi '/tmp/foo.site.conf' do | ||
socket '/tmp/application.socket' | ||
servers [ | ||
{ | ||
:server_name => 'foo.site.x', | ||
} | ||
] | ||
fastcgi_intercept_errors true | ||
end | ||
""" | ||
When I run chef recipe on my node | ||
Then a file named '/tmp/foo.site.conf' should exist | ||
And a file named '/tmp/foo.site.conf' should contain 'fastcgi_intercept_errors on;' | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters