Merged in feature/docresult (pull request #105)
Document Result Endpoint * testing * cleantesting * progress * query * lint * readme * dockerclient * api * passtest * tests * test
This commit is contained in:
@@ -22,12 +22,13 @@ type Container struct {
|
||||
}
|
||||
|
||||
type containerConfig struct {
|
||||
Name string
|
||||
Cfg serviceconfig.ConfigProvider
|
||||
Network *testcontainers.DockerNetwork
|
||||
Env map[string]string
|
||||
WaitForMsg string
|
||||
ExposedPorts []nat.Port
|
||||
Name string
|
||||
Cfg serviceconfig.ConfigProvider
|
||||
Network *testcontainers.DockerNetwork
|
||||
DownstreamQueues []RunnerName
|
||||
Env map[string]string
|
||||
WaitForMsg string
|
||||
ExposedPorts []nat.Port
|
||||
}
|
||||
|
||||
func createContainer(t testing.TB, ctx context.Context, cfg *containerConfig) (testcontainers.Container, func()) {
|
||||
@@ -53,6 +54,10 @@ func createContainer(t testing.TB, ctx context.Context, cfg *containerConfig) (t
|
||||
}
|
||||
}
|
||||
|
||||
for _, e := range cfg.DownstreamQueues {
|
||||
env[GetRunnerEnvFromName(e)] = GetQueueURL(cfg.Cfg, e)
|
||||
}
|
||||
|
||||
req := testcontainers.ContainerRequest{
|
||||
Image: "queryorchestration:latest",
|
||||
Env: env,
|
||||
|
||||
Reference in New Issue
Block a user