From 49cb12ec470e14ae9d01ca08c34b492b4771c58e Mon Sep 17 00:00:00 2001 From: Luke Jolly Date: Fri, 20 Dec 2019 10:43:11 -0500 Subject: [PATCH] Add Silence flags to server_test.go --- cmd/server_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/server_test.go b/cmd/server_test.go index fdf5efed95..658f2d8592 100644 --- a/cmd/server_test.go +++ b/cmd/server_test.go @@ -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", @@ -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)