Skip to content
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

Merged
merged 4 commits into from
Feb 1, 2023

Conversation

Pezmc
Copy link
Contributor

@Pezmc Pezmc commented Jan 31, 2023

Unit tests of the API changes for #1610.

Best viewed with ?w=1 due to indent changes in the tests.

Pre-cursor to #1623

@Pezmc Pezmc requested a review from knolleary January 31, 2023 16:47
env: [
{ name: 'one', value: 'a' },
{ name: 'two', value: 'b' }
response.statusCode.should.equal(200)
Copy link
Contributor Author

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.

Copy link
Member

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.

Copy link
Contributor Author

@Pezmc Pezmc Feb 1, 2023

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!

Copy link
Member

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.

@knolleary knolleary merged commit 4102b41 into main Feb 1, 2023
@knolleary knolleary deleted the change-project-type-refactor-tests branch February 1, 2023 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants