Closed blag closed 5 years ago
Yeah, having those ^^ changes minimal/granular as possible still hit the regressions. I'm afraid to think what would happen with multiple changes coming in https://github.com/StackStorm/hubot-stackstorm/pull/168.
Minimally, something along the lines would be useful to test:
Nock
the failing HTTP response from ST2 API. Ensure that function doesn't throw and that hubot doesn't exit.@armab Yep, I think we all made the right call (thanks to you).
If we need to check the output we should simply make it an end-to-end test in st2tests. I’ll do that next week; should be pretty straightforward.
Thanks, I'll take care of the first part then: Nock/HTTP unit test in this repo to ensure hubot doesn't exit.
182 was a regression, but we should add a test for that so we don't regress again in the future. Opening this issue to track the status of that.