New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ON-2719 - Add additional POST workflow route necessary to #106
ON-2719 - Add additional POST workflow route necessary to #106
Conversation
support node refresh workflow.
Are additional unit tests required for this? |
Yeah, tests would be nice, though given my comment in #107 this may end up just being a quick fix for 1.1. @jimturnquist hit me up on slack and I can walk you through our unit testing approach if you need it/help you whip up a simple test for this. |
var graph = { name: 'foobar' }; | ||
taskGraphRunner.runTaskGraph.resolves(graph); | ||
|
||
return helper.request().post('/api/1.1/workflows') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'helper' is not defined.
👍 Thanks Jim! |
return helper.request().post('/api/1.1/workflows') | ||
.send(graph) | ||
.expect('Content-Type', /^application\/json/) | ||
.expect(200, graph); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A check to ensure runTaskGraph was called may be a nice addition
Could use additional checking in unit tests and addition of functional tests at: https://github.com/RackHD/RackHD/blob/master/test/tests/workflows_tests.py, but the code looks fine to merge as is. +1. |
👍 |
ON-2719 - Add additional POST workflow route necessary to
ON-2719 - Add additional POST workflow route necessary to support node refresh workflow.
@benbp