error-reporting: Add errors.report system test#2264
error-reporting: Add errors.report system test#2264stephenplusplus merged 2 commits intogoogleapis:masterfrom
errors.report system test#2264Conversation
This change adds a system test that verifies that the `errors.report` method correctly reports an error to the error reporting console.
| uri: [API, id, 'events'].join('/'), | ||
| method: 'DELETE' | ||
| }; | ||
| self.request_(options, function(err, /* jshint unused:false */ response, |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| }); | ||
|
|
||
| it('Should correctly publish errors', function(done) { | ||
| this.timeout(TIMEOUT * 2); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| }); | ||
|
|
||
| after(function(done) { | ||
| transport.deleteAllEvents(function(err) { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| var rep = errItem.representative; | ||
| assert.ok(rep); | ||
| var context = rep.serviceContext; | ||
| assert.ok(context); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
@stephenplusplus This is ready to land now. |
This change adds a system test that verifies that the
errors.reportmethod correctly reports an error to the errorreporting console.