-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Add certificate_map to compute_target_https_proxy #5991
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). For more information, open the CLA check for this pull request. |
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. |
Hello! I am a robot who works on Magic Modules PRs. I've detected that you're a community contributor. @megan07, a repository maintainer, has been assigned to assist you and help review your changes. ❓ First time contributing? Click here for more detailsYour assigned reviewer will help review your code by:
You can help make sure that review is quick by running local tests and ensuring they're passing in between each push you make to your PR's branch. Also, try to leave a comment with each push you make, as pushes generally don't generate emails. If your reviewer doesn't get back to you within a week after your most recent change, please feel free to leave a comment on the issue asking them to take a look! In the absence of a dedicated review dashboard most maintainers manage their pending reviews through email, and those will sometimes get lost in their inbox. |
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 2 files changed, 23 insertions(+), 17 deletions(-)) |
/gcbrun |
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. |
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 2 files changed, 23 insertions(+), 17 deletions(-)) |
@megan07 i already created a PR (hashicorp/terraform-provider-google-beta#4061) without realising that this repo is generated. @shuyama1 pointed out that i should make those changes here. However i wasn't able to recreate the changes i made by hand. My main issue is that it's not possible to create a field with type |
Tests analyticsTotal tests: Action takenTriggering VCR tests in RECORDING mode for the following tests that failed during VCR: TestAccFirebaserulesRelease_BasicRelease |
Tests analyticsTotal tests: All tests passed in REPLAYING mode |
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. |
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 2 files changed, 24 insertions(+), 17 deletions(-)) |
Tests analyticsTotal tests: All tests passed in REPLAYING mode |
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 5 files changed, 30 insertions(+), 23 deletions(-)) |
@megan07 ok cool. That took care about My PR works as is, however i assume it would be better to use |
Tests analyticsTotal tests: Action takenTriggering VCR tests in RECORDING mode for the following tests that failed during VCR: TestAccFirebaserulesRelease_BasicRelease|TestAccCloudAssetFolderFeed_cloudAssetFolderFeedExample |
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.
Hi @MoinTom ! Sure, ok, so if I understand correctly you would prefer to have the google_certificate_map
and google_certificate_map_entry
resources implemented prior to this PR, if possible - although this would work without it.
Do you want to include their implementations within this PR, or open an issue and associate them?
Regardless, would you please add a test for the functionality that you currently have added?
Thanks!
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 2 files changed, 24 insertions(+), 17 deletions(-)) |
Not sure how to write a functional test without a
I am not sure how i would approach this. Unfortunately i am quite busy those days, so i am not sure if i find enough time to look into it. |
Tests analyticsTotal tests: All tests passed in REPLAYING mode |
The functionality is stable, so i decided to change the status to review. However a functional test would clearly be nice, but that means that this PR is stuck until |
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 5 files changed, 130 insertions(+), 17 deletions(-)) |
Tests analyticsTotal tests: Action takenTriggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed testsTestAccSqlUser_mysqlDisabled|TestAccFirebaserulesRelease_BasicRelease|TestAccContainerCluster_withMeshCertificatesConfig|TestAccComputeTargetHttpsProxy_update|TestAccComputeInstance_soleTenantNodeAffinities|TestAccCertificateManagerCertificateMapEntry_certificateManagerCertificateMapEntryFullExample|TestAccCGCSnippet_eventarcWorkflowsExample|TestAccActiveDirectoryPeering_activeDirectoryPeeringBasicExample|TestAccActiveDirectoryDomain_update|TestAccActiveDirectoryDomain_activeDirectoryDomainBasicExample|TestAccPrivatecaCertificateAuthority_subordinateCaActivatedByFirstPartyIssuerOnCreation|TestAccPrivatecaCertificateAuthority_privatecaCertificateAuthoritySubordinateExample |
Improve certificate manager tests
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 5 files changed, 203 insertions(+), 17 deletions(-)) |
Hi @megan07 i added a test and example. However the linter and VCR-test are failing. Unfortunately i am not able to see any details on why they are failing. Maybe u can point me into the right direction. |
Tests analyticsTotal tests: Action takenTriggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed testsTestAccPrivatecaCertificateAuthority_subordinateCaActivatedByFirstPartyIssuerOnCreation|TestAccComputeTargetHttpsProxy_update|TestAccContainerCluster_withMeshCertificatesConfig|TestAccComputeInstance_soleTenantNodeAffinities|TestAccCertificateManagerCertificateMapEntry_certificateManagerCertificateMapEntryFullExample|TestAccCGCSnippet_eventarcWorkflowsExample|TestAccActiveDirectoryDomain_activeDirectoryDomainBasicExample|TestAccActiveDirectoryPeering_activeDirectoryPeeringBasicExample|TestAccActiveDirectoryDomain_update|TestAccPrivatecaCertificateAuthority_privatecaCertificateAuthoritySubordinateExample|TestAccSqlUser_mysqlDisabled |
Tests passed during RECORDING mode: Tests failed during RECORDING mode: Please fix these to complete your PR |
Hi @MoinTom, the error is: and seems to be coming after trying to update the
If you're looking to test updating from |
…te tests Fix typo in certificate manager certificate map entry full test
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 5 files changed, 209 insertions(+), 17 deletions(-)) |
Tests analyticsTotal tests: Action takenTriggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed testsTestAccPrivatecaCertificateAuthority_privatecaCertificateAuthoritySubordinateExample|TestAccFirebaserulesRelease_BasicRelease|TestAccComputeTargetHttpsProxy_certificateMap|TestAccComputeInstance_soleTenantNodeAffinities|TestAccCertificateManagerCertificateMapEntry_certificateManagerCertificateMapEntryFullExample|TestAccCGCSnippet_eventarcWorkflowsExample|TestAccCloudRunService_cloudRunServiceStaticOutboundExample|TestAccActiveDirectoryDomain_activeDirectoryDomainBasicExample|TestAccActiveDirectoryPeering_activeDirectoryPeeringBasicExample|TestAccActiveDirectoryDomain_update |
Tests passed during RECORDING mode: Tests failed during RECORDING mode: Please fix these to complete your PR |
I think we're going to need to create the name like this
However, as mentioned, I'm not sure this test is necessary, its meant to test the functionality of the map entry creation and I think attaching it to Thanks! |
Add correct prefix to certificate_map within compute target https proxy test
Thanks for the help. The resource URI being used for certificate maps is quite odd or rather unique compared to other resources within GCP. I kinda hopped that the needed prefix would be part of the |
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 3 files changed, 179 insertions(+), 17 deletions(-)) |
@MoinTom I was also disappointed to see we didn't have an output that had exactly what we needed there. Would you mind opening a different issue to address it and we can move forward with this PR for now? Thanks! |
Tests analyticsTotal tests: Action takenTriggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed testsTestAccPrivatecaCertificateAuthority_privatecaCertificateAuthoritySubordinateExample|TestAccComputeTargetHttpsProxy_certificateMap|TestAccComputeInstance_soleTenantNodeAffinities|TestAccCloudfunctions2function_cloudfunctions2BasicAuditlogsExample|TestAccCloudfunctions2function_cloudfunctions2BasicGcsExample|TestAccCloudFunctions2Function_fullUpdate|TestAccCloudRunService_cloudRunServiceStaticOutboundExample|TestAccActiveDirectoryDomain_activeDirectoryDomainBasicExample|TestAccActiveDirectoryPeering_activeDirectoryPeeringBasicExample|TestAccActiveDirectoryDomain_update |
Tests passed during RECORDING mode: Tests failed during RECORDING mode: Please fix these to complete your PR |
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! Thanks so much!
…m#5991) * Add certificate_map to compute_target_https_proxy * ENH rename s/certificateMaps/certificateMap since we only set one map ENH improve description by adding the specific required format ENH: use exactly_one_of instead of at_least_one_of BF fix missing correctly /global path in the update_url * Adding example and test for certificate_map * Remove 'beta' flag from certificateMap Improve certificate manager tests * Splitting target https proxy update and certificate tests into separate tests Fix typo in certificate manager certificate map entry full test * Revert certificate manager certificate map entry full test Add correct prefix to certificate_map within compute target https proxy test
related to issue hashicorp/terraform-provider-google#11037
Add certificate_map option to compute_target_https_proxy in order to support new certificate-manager (with wildcard support).
If this PR is for Terraform, I acknowledge that I have:
make test
andmake lint
to ensure it passes unit and linter tests.