-
Notifications
You must be signed in to change notification settings - Fork 2k
feat: modify reservation #3844
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
feat: modify reservation #3844
Conversation
|
Here is the summary of changes. You are about to add 1 region tag.
This comment is generated by snippet-bot.
|
239e3f3 to
a9dbb9d
Compare
subfuzion
left a comment
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.
Need tests to pass. Thanks, @gryczj.
| assert.equal(response.specificReservation.count, newVMsNumber); | ||
| }); | ||
|
|
||
| it('should return list of reservations', () => { |
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.
This test (which wasn't even modified) failed. This why I recommended in your other PR to simplify your tests. There is no need to system test production APIs in your tests (it's hard to get right and it's not a sample's responsibility; the service team exhausitively tests their services). It's only the sample's job to demonstrate a use case for an API and perhaps also demonstrate typical error handling for best practices (or comment that production code should try/catch API calls, etc). Our test code doesn't actually make into the docs, so really they are just there as a guard against broken samples, but samples themselves ought to fully encapsulate whatever is being demonstrated. If the sample throws, it exits with an error code, which is enough to signal we have a broken sample. If you're a developer who wants to list reservations, the sample only needs to demonstrate how to use the API in a contextual, language specific way (vs the REST or gRPC APIs). Code should be fairly copy/pastable. Thanks!
d16a89c to
84d0011
Compare
|
@gryczj What's your internal alias so I can contact you on internal chat? Or ping me yourself if you want to discuss this or your other PR: tonypujals@ |
subfuzion
left a comment
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.
LGTM, but test flakiness still persists, unfortunately. I'm going to go ahead and merge this because you need to address tests in #3832.
Description
Fixes #
Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.
Checklist
npm test(see Testing)npm run lint(see Style)GoogleCloudPlatform/nodejs-docs-samples. Not a fork.