-
Notifications
You must be signed in to change notification settings - Fork 3
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
Update tests to support fatal errors #40
Update tests to support fatal errors #40
Conversation
DWS v0.0.11 has the concept of fatal errors. This updates the tests to use fatal errors, and to show how drivers should handle them. Signed-off-by: Dean Roehrich <[email protected]>
@@ -35,8 +36,8 @@ Feature: Data Workflow Services State Progression | |||
/bin/hostname | |||
|
|||
When the job is run | |||
And a Workflow is created for the job | |||
Then the Workflow and job progress to the Proposal state | |||
Then a Workflow has been created for the job |
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.
What's the difference between Then/And in this case?
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.
As I was reading the list of statements, I thought it felt like an arbitrary thing, as far as when to switch from the "When" list to the "Then" list. And so I pulled "Then" up a little higher in the list because that's how I felt that day.
# wait=wait_fixed(2), | ||
# stop=stop_after_attempt(30), | ||
# reraise=True | ||
#) |
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.
Remove this?
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.
done
Signed-off-by: Dean Roehrich <[email protected]>
DWS v0.0.11 has the concept of fatal errors. This updates the tests to use fatal errors, and to show how drivers should handle them.
This also addresses a number of lint errors, but does not attempt to remove all of them.