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

Make google_vpc_access_connector acc tests use a bootstrapped VPC network #10995

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

SarahFrench
Copy link
Contributor

This is to address some CIDR related test failures: #10313 (comment)

Release Note Template for Downstream PRs (will be copied)


@SarahFrench SarahFrench requested a review from roaks3 June 18, 2024 15:59
@SarahFrench SarahFrench marked this pull request as ready for review June 18, 2024 16:00
@SarahFrench SarahFrench changed the title Make google_vpc_access_connector accc tests use a bootstrapped VPC network Make google_vpc_access_connector acc tests use a bootstrapped VPC network Jun 18, 2024
@@ -46,11 +46,17 @@ examples:
primary_resource_id: 'connector'
vars:
name: 'vpc-con'
network_name: 'default'
test_vars_overrides:
network_name: 'acctest.BootstrapSharedServiceNetworkingConnection(t, "vpc-access-connector")'
Copy link
Contributor Author

@SarahFrench SarahFrench Jun 18, 2024

Choose a reason for hiding this comment

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

Or I could name this "vpcaccess", instead of "vpc-access-connector", and then if any other vpcaccess acceptance tests need to use a special VPC they can use the same, service-wide bootstrapped VPC? I'm not sure what the intended usage of BootstrapSharedServiceNetworkingConnection is.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think what you have is probably fine. Unless things have changed significantly, anything using bootstrapped networks generally needs to use a per-test id.

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 2 files changed, 5 insertions(+), 13 deletions(-))
google-beta provider: Diff ( 2 files changed, 5 insertions(+), 13 deletions(-))
Open in Cloud Shell: Diff ( 2 files changed, 2 insertions(+), 7 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 4
Passed tests: 2
Skipped tests: 0
Affected tests: 2

Click here to see the affected service packages
  • vpcaccess

Action taken

Found 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccVPCAccessConnector_vpcAccessConnectorExample|TestAccVPCAccessConnector_vpcAccessConnectorSharedVpcExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{green}{\textsf{Tests passed during RECORDING mode:}}$
TestAccVPCAccessConnector_vpcAccessConnectorExample[Debug log]
TestAccVPCAccessConnector_vpcAccessConnectorSharedVpcExample[Debug log]

$\textcolor{green}{\textsf{No issues found for passed tests after REPLAYING rerun.}}$


$\textcolor{green}{\textsf{All tests passed!}}$
View the build log or the debug log for each test

@@ -46,11 +46,17 @@ examples:
primary_resource_id: 'connector'
vars:
name: 'vpc-con'
network_name: 'default'
test_vars_overrides:
network_name: 'acctest.BootstrapSharedServiceNetworkingConnection(t, "vpc-access-connector")'
Copy link
Contributor

Choose a reason for hiding this comment

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

I think what you have is probably fine. Unless things have changed significantly, anything using bootstrapped networks generally needs to use a per-test id.

@SarahFrench
Copy link
Contributor Author

Thanks!

@SarahFrench SarahFrench merged commit 207c612 into main Jun 18, 2024
17 checks passed
BBBmau pushed a commit to BBBmau/magic-modules that referenced this pull request Jun 24, 2024
@SarahFrench SarahFrench deleted the update-vpc-access-connector-tests branch July 2, 2024 11:33
pcostell pushed a commit to pcostell/magic-modules that referenced this pull request Jul 16, 2024
vijaykanthm pushed a commit to vijaykanthm/magic-modules that referenced this pull request Jul 22, 2024
Charlesleonius pushed a commit to Charlesleonius/magic-modules that referenced this pull request Aug 1, 2024
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