StackStorm / hubot-stackstorm

Hubot plugin for integration with StackStorm event-driven infrastructure automation platform.
Apache License 2.0
49 stars 39 forks source link

Add tests for #182/#183 #184

Closed blag closed 5 years ago

blag commented 5 years ago

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.

arm4b commented 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:

blag commented 5 years ago

@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.

arm4b commented 5 years ago

Thanks, I'll take care of the first part then: Nock/HTTP unit test in this repo to ensure hubot doesn't exit.