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

Commit

Permalink
Fix gosec issue
Browse files Browse the repository at this point in the history
  • Loading branch information
adrain-cb committed Feb 7, 2024
1 parent 6e7646b commit 01a41a7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@ go-gen-mocks:

.PHONY: test
test:
@ go test ./internal/... -timeout $(TEST_LIMIT)
@go test ./internal/... -timeout $(TEST_LIMIT)

.PHONY: test-e2e
e2e-test:
@docker compose up -d
@go test ./e2e/... -timeout $(TEST_LIMIT) -deploy-config ../.devnet/devnetL1.json -parallel=4 -v
@docker compose down

.PHONY: lint
lint:
Expand Down
12 changes: 9 additions & 3 deletions e2e/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,15 @@ func CreateSysTestSuite(t *testing.T, topicArn string) *SysTestSuite {

pagerdutyServer := NewTestPagerDutyServer("127.0.0.1", 0)

os.Setenv("AWS_REGION", "us-east-1") //nolint:tenv // Cannot use t.SetEnv in parallel tests
os.Setenv("AWS_SECRET_ACCESS_KEY", "test") //nolint:tenv // Cannot use t.SetEnv in parallel tests
os.Setenv("AWS_ACCESS_KEY_ID", "test") //nolint:tenv // Cannot use t.SetEnv in parallel tests
if err := os.Setenv("AWS_REGION", "us-east-1"); err != nil { //nolint:tenv // Cannot use t.SetEnv in parallel tests
t.Fatal(err)
}
if err := os.Setenv("AWS_SECRET_ACCESS_KEY", "test"); err != nil { //nolint:tenv // Cannot use t.SetEnv in parallel tests

Check failure on line 121 in e2e/setup.go

View workflow job for this annotation

GitHub Actions / lint

line is 122 characters (lll)
t.Fatal(err)
}
if err := os.Setenv("AWS_ACCESS_KEY_ID", "test"); err != nil { //nolint:tenv // Cannot use t.SetEnv in parallel tests
t.Fatal(err)
}

slackURL := fmt.Sprintf("http://127.0.0.1:%d", slackServer.Port)
pagerdutyURL := fmt.Sprintf("http://127.0.0.1:%d", pagerdutyServer.Port)
Expand Down

0 comments on commit 01a41a7

Please sign in to comment.