721ca8a6e6
Dockerfile in Test * dockerfile * network * const
31 lines
532 B
Go
31 lines
532 B
Go
package test
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
|
|
"queryorchestration/internal/serviceconfig"
|
|
"queryorchestration/internal/serviceconfig/objectstore"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
type TestAWSConfig struct {
|
|
serviceconfig.BaseConfig
|
|
objectstore.ObjectStoreConfig
|
|
}
|
|
|
|
func TestCreateQueueContainer(t *testing.T) {
|
|
t.Parallel()
|
|
if testing.Short() {
|
|
t.SkipNow()
|
|
}
|
|
ctx := context.Background()
|
|
cfg := &TestAWSConfig{}
|
|
|
|
net := GetNetwork(t, ctx)
|
|
|
|
qcfg := CreateAWSContainer(t, ctx, cfg, net)
|
|
assert.NotNil(t, qcfg)
|
|
}
|