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

mocks: Update ComputeForwardingRule mock responses with API default fields #2433

Merged

Conversation

gemmahou
Copy link
Collaborator

@gemmahou gemmahou commented Aug 7, 2024

Change description

Comparing with realGCP logs, there are something I missed in the mock:

  1. the current mock is missing some fields, which appear to be API defaulted if unspecified by user(but I do not find any compute documentation mentioning those default values, that's a bit concerning): LabelFingerprint, Fingerprint, IPProtocol, NetworkTier.

  2. if only one number is provided for portRange, i.e. 80, it will be changed to "80-80" as per the realGCP log

Tests you have done

  • Run make ready-pr to ensure this PR is ready for review.
  • Perform necessary E2E testing for changed resources.

@gemmahou gemmahou changed the title mocks: Update ComputeForwardingRule mocks with API default spec field mocks: Update ComputeForwardingRule mocks with API default fields Aug 7, 2024
@gemmahou gemmahou changed the title mocks: Update ComputeForwardingRule mocks with API default fields mocks: Update ComputeForwardingRule mock responses with API default fields Aug 7, 2024
@gemmahou gemmahou force-pushed the forwardingrulemock branch 3 times, most recently from 442fc9e to 2c48403 Compare August 8, 2024 20:34
@gemmahou gemmahou force-pushed the forwardingrulemock branch 3 times, most recently from 4e7f740 to 76f8dc9 Compare August 13, 2024 00:14
@justinsb
Copy link
Collaborator

Thanks @gemmahou ... LGTM (assuming it passes tests!)

@yuwenma
Copy link
Collaborator

yuwenma commented Aug 13, 2024

/lgtm

@google-oss-prow google-oss-prow bot added the lgtm label Aug 13, 2024
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: justinsb

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-oss-prow google-oss-prow bot merged commit 9b204cb into GoogleCloudPlatform:master Aug 13, 2024
13 checks passed
@gemmahou gemmahou deleted the forwardingrulemock branch August 13, 2024 23:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants