-
Notifications
You must be signed in to change notification settings - Fork 60
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
Change project type API unit tests #1631
Conversation
env: [ | ||
{ name: 'one', value: 'a' }, | ||
{ name: 'two', value: 'b' } | ||
response.statusCode.should.equal(200) |
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.
Unfortunately, I couldn't find a way to assert the project is suspended as the request only returns once the project has been restarted.
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.
One approach would be to add some sort of internal logging to the stub driver that can be used to check what has been done to a given project. But not sure that's worth the effort at this point.
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.
We could spy on the audit logs actually!
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.
I did wonder that, but couldn't recall if the audit logging is done at that level.
Unit tests of the API changes for #1610.
Best viewed with ?w=1 due to indent changes in the tests.
Pre-cursor to #1623