forked from envoyproxy/ratelimit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TLS config pointer is never nil which regresses TLS Support (envoypro…
…xy#318) * TLS config pointer is never nil, fixes regression in pull envoyproxy#289 fixes isssue envoyproxy#303 Signed-off-by: Vito Sabella <[email protected]> * Accidentally put the initialization before the environment variable reading. Signed-off-by: Vito Sabella <[email protected]> * Unit test for settings tlsConfig fix Signed-off-by: Vito Sabella <[email protected]> * Fixing pre-commits Signed-off-by: Vito Sabella <[email protected]> Co-authored-by: Vito Sabella <[email protected]>
- Loading branch information
Showing
4 changed files
with
23 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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 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 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,13 @@ | ||
package settings | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/stretchr/testify/assert" | ||
) | ||
|
||
func TestSettingsTlsConfigUnmodified(t *testing.T) { | ||
settings := NewSettings() | ||
assert.NotNil(t, settings.RedisTlsConfig) | ||
assert.Nil(t, settings.RedisTlsConfig.RootCAs) | ||
} |
This file contains 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