-
Notifications
You must be signed in to change notification settings - Fork 2k
Add nginx debug flag #401
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
Merged
Merged
Add nginx debug flag #401
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
9c529a7
Add nginx-debug flag
Dean-Coakley 11e24c3
Add nginx-debug support to helm chart
Dean-Coakley 71f625d
Add nginx-debug flag documentation
Dean-Coakley 4428974
Fix unit tests by adding nginx-debug arg
Dean-Coakley 928f4d9
Change nginx-debug to set name of binary
Dean-Coakley 14867b2
Fix docs. Fix args order. Add unit test
Dean-Coakley 7325911
Fix cli-args docs
Dean-Coakley 6a864c6
Move test to nginx_test.go and improve test
Dean-Coakley 81843c8
Update nginx_test.go
Dean-Coakley File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,25 @@ | ||
package nginx | ||
|
||
import ( | ||
"testing" | ||
) | ||
|
||
func TestGetNginxCommand(t *testing.T) { | ||
tests := []struct { | ||
cmd string | ||
nginxBinaryPath string | ||
expected string | ||
}{ | ||
{"reload", "/usr/sbin/nginx", "/usr/sbin/nginx -s reload"}, | ||
{"stop", "/usr/sbin/nginx-debug", "/usr/sbin/nginx-debug -s stop"}, | ||
} | ||
for _, test := range tests { | ||
t.Run(test.cmd, func(t *testing.T) { | ||
nginx := NewNginxController("/etc/nginx", test.nginxBinaryPath, true) | ||
|
||
if got := nginx.getNginxCommand(test.cmd); got != test.expected { | ||
t.Errorf("getNginxCommand returned \n%v, but expected \n%v", got, test.expected) | ||
} | ||
}) | ||
} | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.