Skip to content

Commit

Permalink
Add Silence flags to server_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
kinghrothgar committed Dec 20, 2019
1 parent 52bfffe commit 49cb12e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,8 @@ func TestExecute_Flags(t *testing.T) {
cmd.RepoWhitelistFlag: "github.com/runatlantis/atlantis",
cmd.RequireApprovalFlag: true,
cmd.RequireMergeableFlag: true,
cmd.SilenceForkPRErrorsFlag: true,
cmd.SilenceWhitelistErrorsFlag: true,
cmd.SlackTokenFlag: "slack-token",
cmd.SSLCertFileFlag: "cert-file",
cmd.SSLKeyFileFlag: "key-file",
Expand Down Expand Up @@ -551,6 +553,8 @@ func TestExecute_Flags(t *testing.T) {
Equals(t, "github.com/runatlantis/atlantis", passedConfig.RepoWhitelist)
Equals(t, true, passedConfig.RequireApproval)
Equals(t, true, passedConfig.RequireMergeable)
Equals(t, true, passedConfig.SilenceForkPRErrors)
Equals(t, true, passedConfig.SilenceWhitelistErrors)
Equals(t, "slack-token", passedConfig.SlackToken)
Equals(t, "cert-file", passedConfig.SSLCertFile)
Equals(t, "key-file", passedConfig.SSLKeyFile)
Expand Down

0 comments on commit 49cb12e

Please sign in to comment.