Merged in feature/s3integration (pull request #47)
Set Up S3 integration * cfginterfaceandfirsts3funcs * addlocalstack * generallypassesfullsuite * addedmultipleattemptedpings * cleanup * stabiliseplusskip
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"context"
|
||||
"os"
|
||||
"path"
|
||||
"queryorchestration/internal/serviceconfig"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
@@ -15,7 +16,10 @@ func TestCreateRunnerNetwork(t *testing.T) {
|
||||
}
|
||||
ctx := context.Background()
|
||||
|
||||
cfg := &serviceconfig.BaseConfig{}
|
||||
SetCfgProvider(t, cfg)
|
||||
conn, cleanup := CreateRunnerNetwork(t, ctx, &RunnerNetworkConfig{
|
||||
Cfg: cfg,
|
||||
Name: QueryRunner,
|
||||
})
|
||||
|
||||
@@ -46,8 +50,9 @@ func TestCreateRunnersAndServicesNetwork(t *testing.T) {
|
||||
t.Skip("Skipping long test in short mode")
|
||||
}
|
||||
ctx := context.Background()
|
||||
cfg := CreateBaseConfig()
|
||||
cfg.BasePath = path.Join(os.Getenv("PWD"), "../..")
|
||||
cfg := &serviceconfig.BaseConfig{}
|
||||
SetCfgProvider(t, cfg)
|
||||
cfg.SetBasePath(path.Join(os.Getenv("PWD"), "../.."))
|
||||
|
||||
conn, cleanup := CreateRunnersAndServicesNetwork(t, ctx, &EcosystemNetworkConfig{
|
||||
Cfg: cfg,
|
||||
@@ -66,7 +71,8 @@ func TestCreateRunnersAndServicesNetwork(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestCreateBaseConfig(t *testing.T) {
|
||||
cfg := CreateBaseConfig()
|
||||
cfg := &serviceconfig.BaseConfig{}
|
||||
SetCfgProvider(t, cfg)
|
||||
assert.Equal(t, "test", cfg.AWSKeyID)
|
||||
assert.Equal(t, "test", cfg.AWSSecretKey)
|
||||
assert.Equal(t, "us-east-1", cfg.AWSRegion)
|
||||
|
||||
Reference in New Issue
Block a user