Increase timeout for conf test + more logging for EventGrid. (#663)

This commit is contained in:
Artur Souza 2021-02-05 19:10:44 -08:00 committed by GitHub
parent 795b62417e
commit ac28629cb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 3 deletions

View File

@ -99,9 +99,11 @@ func (a *AzureEventGrid) Read(handler func(*bindings.ReadResponse) error) error
}
}
fasthttp.ListenAndServe(fmt.Sprintf(":%s", a.metadata.HandshakePort), m)
a.logger.Debugf("listening for Event Grid events at http://localhost:%s/api/events", a.metadata.HandshakePort)
a.logger.Debugf("About to start listening for Event Grid events at http://localhost:%s/api/events", a.metadata.HandshakePort)
err = fasthttp.ListenAndServe(fmt.Sprintf(":%s", a.metadata.HandshakePort), m)
if err != nil {
return err
}
return nil
}
@ -144,6 +146,8 @@ func (a *AzureEventGrid) Invoke(req *bindings.InvokeRequest) (*bindings.InvokeRe
return nil, errors.New(string(body))
}
a.logger.Debugf("Successfully posted event to %s", a.metadata.TopicEndpoint)
return nil, nil
}

View File

@ -10,6 +10,8 @@ components:
output_blobName: $((uuid))
- component: azure.eventgrid
operations: ["create", "operations", "read"]
config:
readBindingTimeout: 120
- component: azure.storagequeues
operations: ["create", "operations", "read"]
- component: azure.servicebusqueues