Merged in feature/doctextstructure (pull request #56)
DocTextRunner Structure * firstround * shorttests
This commit is contained in:
@@ -65,7 +65,8 @@ func TestProcess(t *testing.T) {
|
||||
assert.NoError(t, err)
|
||||
|
||||
doccleanurl := test.CreateQueue(t, ctx, cfg, test.DocCleanRunner)
|
||||
doctexturl := test.CreateQueue(t, ctx, cfg, "doctextrunner")
|
||||
doctexturl := test.CreateQueue(t, ctx, cfg, test.DocTextRunner)
|
||||
querysyncurl := test.CreateQueue(t, ctx, cfg, test.QuerySyncRunner)
|
||||
|
||||
net, cleanup := test.CreateRunnersAndServicesNetwork(t, ctx, &test.EcosystemNetworkConfig{
|
||||
Cfg: cfg,
|
||||
@@ -83,6 +84,12 @@ func TestProcess(t *testing.T) {
|
||||
"DOCUMENT_TEXT_URL": doctexturl,
|
||||
},
|
||||
},
|
||||
{
|
||||
Name: test.DocTextRunner,
|
||||
Env: map[string]string{
|
||||
"QUERY_SYNC_URL": querysyncurl,
|
||||
},
|
||||
},
|
||||
},
|
||||
Services: []*test.ServiceNetworkConfig{
|
||||
{
|
||||
@@ -124,5 +131,5 @@ func TestProcess(t *testing.T) {
|
||||
assert.NoError(t, err)
|
||||
|
||||
resRegex := regexp.MustCompile(`{"id": "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}"`)
|
||||
test.AssertMessageBody(t, ctx, cfg, doctexturl, resRegex)
|
||||
test.AssertMessageBody(t, ctx, cfg, querysyncurl, resRegex)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user