Skip to content

Commit

Permalink
Make enableSigV4Auth true in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorbonas committed Nov 15, 2024
1 parent 15278e9 commit d69a7ae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ func setUp() ([]string, *connectionConfig) {
defaultDatabase: "foo",
defaultTable: "bar",
enableLogging: true,
enableSigV4Auth: true,
listenAddr: ":9201",
maxRetries: 3,
telemetryPath: "/metrics",
Expand Down Expand Up @@ -365,6 +366,7 @@ func TestLambdaHandlerPrepareRequest(t *testing.T) {
lambdaOptions: []lambdaEnvOptions{
{key: defaultTableConfig.envFlag, value: tableValue},
{key: defaultDatabaseConfig.envFlag, value: databaseValue},
{key: enableSigV4AuthConfig.envFlag, value: "false"},
},
inputRequest: events.APIGatewayProxyRequest{
IsBase64Encoded: true,
Expand All @@ -379,6 +381,7 @@ func TestLambdaHandlerPrepareRequest(t *testing.T) {
lambdaOptions: []lambdaEnvOptions{
{key: defaultTableConfig.envFlag, value: tableValue},
{key: defaultDatabaseConfig.envFlag, value: databaseValue},
{key: enableSigV4AuthConfig.envFlag, value: "false"},
},
inputRequest: events.APIGatewayProxyRequest{
IsBase64Encoded: true,
Expand Down Expand Up @@ -658,6 +661,7 @@ func TestParseEnvironmentVariables(t *testing.T) {
clientConfig: &clientConfig{region: "us-east-1"},
promlogConfig: defaultLogConfig,
enableLogging: true,
enableSigV4Auth: true,
failOnInvalidSample: false,
failOnLongMetricLabelName: false,
maxRetries: 3,
Expand Down

0 comments on commit d69a7ae

Please sign in to comment.