Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Commit

Permalink
Add nil cert
Browse files Browse the repository at this point in the history
  • Loading branch information
sharms committed Apr 13, 2018
1 parent afdb737 commit ca5a5e7
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions helpers/settings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,27 @@ var initSettingsTests = []initSettingsTest{
},
wantNilError: false,
},
{
testName: "Basic Valid Local CF Settings missing optional SMTP cert",
envVars: map[string]string{
helpers.ClientIDEnvVar: "ID",
helpers.ClientSecretEnvVar: "Secret",
helpers.HostnameEnvVar: "hostname",
helpers.LoginURLEnvVar: "loginurl",
helpers.UAAURLEnvVar: "uaaurl",
helpers.APIURLEnvVar: "apiurl",
helpers.LogURLEnvVar: "logurl",
helpers.SessionEncryptionEnvVar: "00112233445566778899aabbccddeeff00112233445566778899aabbccddeeff",
helpers.SessionAuthenticationEnvVar: "00112233445566778899aabbccddeeff00112233445566778899aabbccddeeff",
helpers.CSRFKeyEnvVar: "00112233445566778899aabbccddeeff",
helpers.SMTPFromEnvVar: "[email protected]",
helpers.SMTPHostEnvVar: "localhost",
helpers.SecureCookiesEnvVar: "0",
helpers.LocalCFEnvVar: "1",
helpers.TICSecretEnvVar: "tic",
},
wantNilError: true,
},
}

func TestInitSettings(t *testing.T) {
Expand Down

0 comments on commit ca5a5e7

Please sign in to comment.