Skip to content

Commit 657327c

Browse files
address comments
1 parent f090357 commit 657327c

6 files changed

Lines changed: 5 additions & 7 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ test:
2121
test-integration: $(BUILD_DIR)/$(BINARY_NAME)
2222
@JUNIT=""; [ -n "$$CREATE_JUNIT_REPORT" ] && JUNIT="--junitfile ../../test-integration-results.xml"; \
2323
if [ "$$(uname)" = "Darwin" ]; then \
24-
cd test/integration && KEYRING=file go run gotest.tools/gotestsum@latest --format testdox $$JUNIT -- -count=1 ./...; \
24+
cd test/integration && LOCALSTACK_KEYRING=file go run gotest.tools/gotestsum@latest --format testdox $$JUNIT -- -count=1 ./...; \
2525
else \
2626
cd test/integration && go run gotest.tools/gotestsum@latest --format testdox $$JUNIT -- -count=1 ./...; \
2727
fi

env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ export LOCALSTACK_API_ENDPOINT=https://api.staging.aws.localstack.cloud
88
export LOCALSTACK_WEB_APP_URL=https://app.staging.aws.localstack.cloud
99

1010
# Force file-based keyring backend instead of system keychain (optional)
11-
# export KEYRING=file
11+
# export LOCALSTACK_KEYRING=file

internal/auth/auth_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,13 @@ import (
77
"strings"
88
"testing"
99

10-
"github.com/localstack/lstk/internal/env"
1110
"github.com/localstack/lstk/internal/output"
1211
"github.com/stretchr/testify/assert"
1312
"go.uber.org/mock/gomock"
1413
)
1514

1615
func TestMain(m *testing.M) {
1716
_ = os.Unsetenv("LOCALSTACK_AUTH_TOKEN")
18-
env.Init()
1917
m.Run()
2018
}
2119

internal/auth/token_storage.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func newAuthTokenStorage() (*authTokenStorage, error) {
4545
},
4646
}
4747

48-
// Force file backend if KEYRING env var is set to "file"
48+
// Force file backend if LOCALSTACK_KEYRING env var is set to "file"
4949
if env.Vars.Keyring == "file" {
5050
keyringConfig.AllowedBackends = []keyring.BackendType{keyring.FileBackend}
5151
}

internal/env/env.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ type Env struct {
1313
Keyring string
1414
}
1515

16-
var Vars *Env
16+
var Vars = &Env{}
1717

1818
// Init initializes environment variable configuration
1919
func Init() {

test/integration/main_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func TestMain(m *testing.M) {
6161
},
6262
}
6363

64-
// Force file backend if KEYRING env var is set to "file"
64+
// Force file backend if LOCALSTACK_KEYRING env var is set to "file"
6565
if env.Get(env.Keyring) == "file" {
6666
keyringConfig.AllowedBackends = []keyring.BackendType{keyring.FileBackend}
6767
}

0 commit comments

Comments
 (0)