Files
query-orchestration/internal/test/container_test.go
T
Michael McGuinness 7001ca854c Merged in feature/docinitialisation (pull request #41)
Queuing Changes and Cfg Testing

* staarting

* staarting

* startedpush

* note

* save

* mocking

* removederrs

* fixtests

* cleanuperrs

* newenvsetup

* preppingtests

* queue

* mmovetocfgpassunittests

* sortoutconfig

* passinginteg

* deps

* fixtests
2025-02-03 17:30:50 +00:00

39 lines
642 B
Go

package test
import (
"context"
"testing"
"github.com/stretchr/testify/assert"
)
func TestCreateContainer(t *testing.T) {
if testing.Short() {
t.Skip("Skipping long test in short mode")
}
ctx := context.Background()
ncfg, ncleanup := CreateNetwork(t, ctx)
defer ncleanup()
cfg := CreateBaseConfig()
_, dbcleanup := CreateDB(t, ctx, &CreateDatabaseConfig{
Network: ncfg,
Cfg: cfg,
})
defer dbcleanup()
ccfg := &containerConfig{
Name: QueryService,
Cfg: cfg,
Network: ncfg,
}
container, cleanup := createContainer(t, ctx, ccfg)
assert.NotNil(t, container)
assert.NotNil(t, cleanup)
cleanup()
}