validate inputs
This commit is contained in:
@@ -26,12 +26,6 @@ func createContainer(t *testing.T, ctx context.Context, config *containerConfig)
|
||||
}
|
||||
|
||||
req := testcontainers.ContainerRequest{
|
||||
//TODO
|
||||
//FromDockerfile: testcontainers.FromDockerfile{
|
||||
// Context: "../../..",
|
||||
// Dockerfile: "build/package/grpc/Dockerfile",
|
||||
// KeepImage: true,
|
||||
//},
|
||||
Image: "gotemplate_grpc:latest",
|
||||
Env: map[string]string{
|
||||
"DB_USER": config.DB.User,
|
||||
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestName(t *testing.T) {
|
||||
func TestQuery(t *testing.T) {
|
||||
ctx := context.Background()
|
||||
|
||||
conn, cleanup := createDependencies(t, ctx)
|
||||
|
||||
@@ -32,12 +32,6 @@ func createContainer(t *testing.T, ctx context.Context, config containerConfig)
|
||||
}
|
||||
|
||||
req := testcontainers.ContainerRequest{
|
||||
//TODO
|
||||
//FromDockerfile: testcontainers.FromDockerfile{
|
||||
// Context: "../../..",
|
||||
// Dockerfile: "build/package/queue/Dockerfile",
|
||||
// KeepImage: true,
|
||||
//},
|
||||
Image: "gotemplate_queue:latest",
|
||||
Env: map[string]string{
|
||||
"QUEUE_URL": config.Queue.URL,
|
||||
|
||||
@@ -32,5 +32,5 @@ func TestName(t *testing.T) {
|
||||
Body: string(docJson),
|
||||
})
|
||||
|
||||
assertMessageWait(t, ctx, queue, "DOCQUERY")
|
||||
assertMessageWait(t, ctx, queue, "DOCTEXT") // Fails so send it back to the queue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user