-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Fix path_matcher in region url maps #4298
Fix path_matcher in region url maps #4298
Conversation
The default_service in path_matcher is actually not required as it should be default_service or default_url_redirect. Further info in https://cloud.google.com/compute/docs/reference/rest/v1/regionUrlMaps > pathMatchers[].defaultService >> Only one of defaultService, defaultUrlRedirect or defaultRouteAction.weightedBackendService must be set.
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
Hello! I am a robot who works on Magic Modules PRs. I have detected that you are a community contributor, so your PR will be assigned to someone with a commit-bit on this repo for initial review. Thanks for your contribution! A human will be with you soon. @ScottSuarez, please review this PR or find an appropriate assignee. |
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 2 files changed, 7 insertions(+), 7 deletions(-)) |
Oops! It looks like you're using an unknown release-note type in your changelog entries:
Please only use the types listed in https://github.com/GoogleCloudPlatform/magic-modules/blob/master/.ci/RELEASE_NOTES_GUIDE.md. |
@googlebot I signed it! |
Anyone would know why we can't see the logs/details for the failing checks TerraformVCRCommunity and generate-diffs ? |
I don't think the build runs are currently visible to users outside our organization currently. Don't worry I'll track things and shepherd on my side. Hey @Gilles95 good catch on this. Was wondering if you would be averse to writing a customized diff for this scenario so we can still get plan time validation for this (ie: check one of them is set or give back error). Also perhaps supplying a testcase. I recently added something similar here. If not we can look into completing this and tasking it out later. |
Hello @ScottSuarez , thanks for following up. I will have a look for the customized diff and test case. Just bear with me I am not familiar with those yet ;-) |
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. ℹ️ Googlers: Go here for more info. |
@ScottSuarez I have added a testcase but when running I got the below and I am not sure what is it:
|
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 3 files changed, 53 insertions(+), 7 deletions(-)) |
@googlebot I fixed it. |
Hey @Gilles95, the second function that supplies the config should start with a lowercase |
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 3 files changed, 53 insertions(+), 7 deletions(-)) |
@ScottSuarez , thanks for that, That was it ...the uppercase. Now this looks good:
Let me know if that ok for the test or if I need to amend it. |
/gcbrun It should be fine, my college @rileykarson mentioned we don't actually need customized diff in this scenario. The field |
I have triggered VCR tests based on this PR's diffs. See the results here: "https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=163084" |
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 3 files changed, 53 insertions(+), 7 deletions(-)) |
/gcbrun |
I have triggered VCR tests based on this PR's diffs. See the results here: "https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=163188" |
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 3 files changed, 53 insertions(+), 7 deletions(-)) |
Hello @ScottSuarez , |
Hi @Gilles95, sort of in semi holiday mode. Imma try to get this in for you though. Although it's worth noting we won't be releasing until January. Hope you are having a great holiday :) . |
/gcbrun |
I have triggered VCR tests based on this PR's diffs. See the results here: "https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=164214" |
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 3 files changed, 53 insertions(+), 7 deletions(-)) |
I have triggered VCR tests in RECORDING mode for the following tests that failed during VCR: TestAccDataSourceComposerEnvironment_basic|TestAccDataSourceSpannerInstance_basic|TestAccActiveDirectoryDomainTrust_activeDirectoryDomainTrustBasicExample|TestAccBigqueryDataTransferConfig|TestAccBillingBudget_billingBudgetBasicExample|TestAccBillingBudget_billingBudgetLastperiodExample|TestAccBillingBudget_billingBudgetFilterExample|TestAccBillingBudget_billingBudgetNotifyExample|TestAccCloudRunDomainMapping_cloudRunDomainMappingBasicExample|TestAccComposerEnvironment_withUpdateOnCreate|TestAccComputeBackendService_backendServiceCacheExample|TestAccComputeRegionUrlMap_defaultUrlRedirectWithinPathMatcher|TestAccComputeRouterNat_basic|TestAccComputeRouterNat_update|TestAccComputeRouterNat_withManualIpAndSubnetConfiguration|TestAccComputeRouterNat_withNatIpsAndDrainNatIps|TestAccContainerCluster_withAdvancedDatapath|TestAccOSLoginSSHPublicKey_osLoginSshKeyExpiry You can view the result here: "https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=164217" |
The default_service in path_matcher is actually not required as it should be default_service or default_url_redirect.
(related to hashicorp/terraform-provider-google#7951)
Further info in https://cloud.google.com/compute/docs/reference/rest/v1/regionUrlMaps , extract below:
If this PR is for Terraform, I acknowledge that I have:
make test
andmake lint
to ensure it passes unit and linter tests.Release Note Template for Downstream PRs (will be copied)