Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

tests: tests required for alpha #578

Merged
merged 9 commits into from
Jul 23, 2021
Merged

Conversation

georgiyekkert
Copy link
Contributor

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> 🦕

@georgiyekkert georgiyekkert requested a review from a team as a code owner June 21, 2021 21:26
@product-auto-label product-auto-label bot added the api: compute Issues related to the googleapis/nodejs-compute API. label Jun 21, 2021
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Jun 21, 2021
@georgiyekkert
Copy link
Contributor Author

@alexander-fenster please take a look

@bcoe bcoe added the owlbot:run Add this label to trigger the Owlbot post processor. label Jul 2, 2021
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Jul 2, 2021
Copy link
Contributor

@bcoe bcoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM: with @alexander-fenster's approval.

@@ -211,6 +211,46 @@ describe('Compute', () => {
});
assert.strictEqual(fetched.shieldedInstanceConfig.enableSecureBoot, true);
});

it('API errors propagated', async () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I like for the assertions to read like a phrase.

it('propagates API errors').

instance: INSTANCE_NAME,
instanceResource: instance,
});
await waitZonalOperation(updateOp);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the use of async/await in tests 👍

Copy link
Contributor

@bcoe bcoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I should say, LGTM, with @summer-ji-eng or @alexander-fenster's approval.

@bcoe bcoe merged commit 84ba87f into googleapis:diregapic Jul 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: compute Issues related to the googleapis/nodejs-compute API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants