Skip to content

Commit 49cb12e

Browse files
committed
Add Silence flags to server_test.go
1 parent 52bfffe commit 49cb12e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmd/server_test.go

+4
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,8 @@ func TestExecute_Flags(t *testing.T) {
512512
cmd.RepoWhitelistFlag: "github.com/runatlantis/atlantis",
513513
cmd.RequireApprovalFlag: true,
514514
cmd.RequireMergeableFlag: true,
515+
cmd.SilenceForkPRErrorsFlag: true,
516+
cmd.SilenceWhitelistErrorsFlag: true,
515517
cmd.SlackTokenFlag: "slack-token",
516518
cmd.SSLCertFileFlag: "cert-file",
517519
cmd.SSLKeyFileFlag: "key-file",
@@ -551,6 +553,8 @@ func TestExecute_Flags(t *testing.T) {
551553
Equals(t, "github.com/runatlantis/atlantis", passedConfig.RepoWhitelist)
552554
Equals(t, true, passedConfig.RequireApproval)
553555
Equals(t, true, passedConfig.RequireMergeable)
556+
Equals(t, true, passedConfig.SilenceForkPRErrors)
557+
Equals(t, true, passedConfig.SilenceWhitelistErrors)
554558
Equals(t, "slack-token", passedConfig.SlackToken)
555559
Equals(t, "cert-file", passedConfig.SSLCertFile)
556560
Equals(t, "key-file", passedConfig.SSLKeyFile)

0 commit comments

Comments
 (0)