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

add optional input ParentService to BootstrapSharedServiceNetworkingC… #9598

Conversation

shuyama1
Copy link
Member

@shuyama1 shuyama1 commented Dec 7, 2023

…onnection

This will unblock the test in #9513

Release Note Template for Downstream PRs (will be copied)


@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.

Terraform GA: Diff ( 1 file changed, 20 insertions(+), 11 deletions(-))
Terraform Beta: Diff ( 1 file changed, 20 insertions(+), 11 deletions(-))

@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.

Terraform GA: Diff ( 1 file changed, 20 insertions(+), 11 deletions(-))
Terraform Beta: Diff ( 1 file changed, 20 insertions(+), 11 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 3268
Passed tests 2933
Skipped tests: 334
Affected tests: 1

Action taken

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

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

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

Rerun these tests in REPLAYING mode to catch issues

$\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

@shuyama1 shuyama1 requested a review from rileykarson December 7, 2023 21:51
@@ -361,19 +361,27 @@ func BootstrapSharedTestNetwork(t *testing.T, testId string) string {
return network.Name
}

type AddressSettings struct {
PrefixLength int
type OptionalSettings struct {
Copy link
Member

Choose a reason for hiding this comment

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

We should use different types per function! That'll stop us from accidentally using bad options, like AddressWithPrefixLength with BootstrapSharedServiceNetworkingConnection

Copy link
Member Author

@shuyama1 shuyama1 Dec 7, 2023

Choose a reason for hiding this comment

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

But we do need AddressWithPrefixLength with BootstrapSharedServiceNetworkingConnection for some cases, like https://github.com/GoogleCloudPlatform/magic-modules/blob/a007c7ce0f9498648bb61de3e9151b0639ed181b/mmv1/products/looker/Instance.yaml#L74C67-L74C67. That's why I have them combined in one.

Copy link
Member

Choose a reason for hiding this comment

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

I think that's a coincidental overlap so far- merging these ones now will encourage merging all future examples too even if there isn't any overlap. With a settings object per bootstrap fn we'd define:

type AddressSettings struct {
	PrefixLength  int
}

type ServiceNetworkSettings struct {
	PrefixLength  int
	ParentService string
}

Copy link
Member Author

Choose a reason for hiding this comment

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

oh, yeah, that makes sense. I'll update it! Thanks!

@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.

Terraform GA: Diff ( 2 files changed, 34 insertions(+), 4 deletions(-))
Terraform Beta: Diff ( 2 files changed, 34 insertions(+), 4 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 3275
Passed tests 2941
Skipped tests: 334
Affected tests: 0

$\textcolor{green}{\textsf{All tests passed in REPLAYING mode.}}$
View the build log

@shuyama1 shuyama1 requested a review from rileykarson December 8, 2023 00:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants