Skip to content

Commit a2cd449

Browse files
committed
API key can be passed as env var
1 parent 35d7a13 commit a2cd449

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/octopus_container_test_framework.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,11 @@ func (o *OctopusContainerTest) setupOctopus(ctx context.Context, connString stri
195195
disableDind = "Y"
196196
}
197197

198+
apiKey := os.Getenv("OCTOTESTAPIKEY")
199+
if apiKey == "" {
200+
apiKey = ApiKey
201+
}
202+
198203
req := testcontainers.ContainerRequest{
199204
Name: "octopus-" + uuid.New().String(),
200205
Image: o.getOctopusImageUrl() + ":" + o.getOctopusVersion(),

0 commit comments

Comments
 (0)