Merged in feature/ecr (pull request #161)
Feature/ecr * nosave * repo * awscli * unzip * ignore * moreram * 14k * ref * deployment * 12k * uselocal * go * dockercomd * reorder * iamgename * installs * tart * cli * clideps * y * dockerce * nodock * multi * rmecr * dev
This commit is contained in:
@@ -34,14 +34,14 @@ func CreateAWSContainer(t testing.TB, cfg AWSConfigProvider) *AWSContainerConfig
|
||||
port, err := nat.NewPort("tcp", strconv.Itoa(awsPort))
|
||||
require.NoError(t, err)
|
||||
|
||||
network := GetNetwork(t)
|
||||
|
||||
cfg.SetAWSKeyID("test")
|
||||
cfg.SetAWSSecretKey("test")
|
||||
cfg.SetAWSSessionToken("")
|
||||
cfg.SetAWSRegion("us-east-1")
|
||||
cfg.SetAWSEndpoint(fmt.Sprintf("http://%s:%d", awsAlias, awsPort))
|
||||
|
||||
network := GetNetwork(t)
|
||||
|
||||
req := testcontainers.ContainerRequest{
|
||||
Image: "localstack/localstack:4.1.0",
|
||||
Name: "localstack_test_queryorchestration",
|
||||
|
||||
@@ -39,5 +39,6 @@ func GetNetwork(t testing.TB) string {
|
||||
func getDockerClient(t testing.TB) *client.Client {
|
||||
cli, err := client.NewClientWithOpts(client.FromEnv, client.WithAPIVersionNegotiation())
|
||||
require.NoError(t, err)
|
||||
|
||||
return cli
|
||||
}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package test
|
||||
|
||||
import (
|
||||
"context"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
@@ -26,7 +25,7 @@ func TestCreateBucket(t *testing.T) {
|
||||
if testing.Short() {
|
||||
t.SkipNow()
|
||||
}
|
||||
ctx := context.Background()
|
||||
ctx := t.Context()
|
||||
|
||||
cfg := &StoreConfig{}
|
||||
|
||||
@@ -37,7 +36,7 @@ func TestCreateBucket(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestPutObject(t *testing.T) {
|
||||
ctx := context.Background()
|
||||
ctx := t.Context()
|
||||
|
||||
cfg := &StoreConfig{}
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package test
|
||||
|
||||
import (
|
||||
"context"
|
||||
"regexp"
|
||||
"testing"
|
||||
|
||||
@@ -27,7 +26,7 @@ func TestCreateQueue(t *testing.T) {
|
||||
if testing.Short() {
|
||||
t.SkipNow()
|
||||
}
|
||||
ctx := context.Background()
|
||||
ctx := t.Context()
|
||||
|
||||
cfg := &TestConfig{}
|
||||
|
||||
@@ -43,7 +42,7 @@ func TestAssertMessageWait(t *testing.T) {
|
||||
if testing.Short() {
|
||||
t.SkipNow()
|
||||
}
|
||||
ctx := context.Background()
|
||||
ctx := t.Context()
|
||||
|
||||
cfg := &TestConfig{}
|
||||
|
||||
@@ -68,7 +67,7 @@ func TestAssertMessageBodyWait(t *testing.T) {
|
||||
if testing.Short() {
|
||||
t.SkipNow()
|
||||
}
|
||||
ctx := context.Background()
|
||||
ctx := t.Context()
|
||||
|
||||
cfg := &TestConfig{}
|
||||
|
||||
@@ -90,7 +89,7 @@ func TestAssertMessageAttrWait(t *testing.T) {
|
||||
if testing.Short() {
|
||||
t.SkipNow()
|
||||
}
|
||||
ctx := context.Background()
|
||||
ctx := t.Context()
|
||||
|
||||
cfg := &TestConfig{}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user