-
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
Add Network Policy resource to Vmwareengine #9514
Add Network Policy resource to Vmwareengine #9514
Conversation
Hello! I am a robot. It looks like you are a: @roaks3, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look. You can help make sure that review is quick by doing a self-review and by running impacted tests locally. |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 9 files changed, 1315 insertions(+), 2 deletions(-)) |
Tests analyticsTotal tests: Action takenFound 3 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccVmwareengineNetworkPolicy_vmwareEngineNetworkPolicyBasicExample|TestAccVmwareengineNetworkPolicy_update|TestAccDataSourceVmwareengineNetworkPolicy_basic |
Rerun these tests in REPLAYING mode to catch issues
|
f527f17
to
005dc47
Compare
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 9 files changed, 1315 insertions(+), 2 deletions(-)) |
005dc47
to
8544a7e
Compare
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 9 files changed, 1316 insertions(+), 2 deletions(-)) |
Tests analyticsTotal tests: Action takenFound 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccDataSourceGoogleServiceAccountJwt |
Rerun these tests in REPLAYING mode to catch issues
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 9 files changed, 1316 insertions(+), 2 deletions(-)) |
Tests analyticsTotal tests:
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 9 files changed, 1316 insertions(+), 2 deletions(-)) |
Tests analyticsTotal tests:
|
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.
Code looks good, but some of the fields looked like they might need to be required or immutable (just guessing though). Making the update test a bit more comprehensive should help to highlight if any of those configs need to change.
}) | ||
} | ||
|
||
func testAccVmwareengineNetworkPolicy_config(context map[string]interface{}, internetAccess bool, externalIp bool) string { |
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.
We should be checking all updateable fields here, so we'd expect to see changes to description
, edge_services_cidr
, and vmware_engine_network
, based on the current implementation. On a similar token, it would be best if one of those configs also omitted all optional fields, to validate that they are not required. Using 2 separate config templates might make that easier to test.
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.
Thanks for the feedback Ryan, I've modified the update test to include changes in all mutable fields. I have made also added two seperate tests in examples for _basic and _full to validate the creation of resource with and without all optional fields.
b77f168
to
2bf1a28
Compare
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 9 files changed, 1370 insertions(+), 2 deletions(-)) |
Tests analyticsTotal tests: Action takenFound 3 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccVmwareengineNetworkPolicy_vmwareEngineNetworkPolicyFullExample|TestAccVmwareengineNetworkPolicy_update|TestAccVmwareengineNetworkPolicy_vmwareEngineNetworkPolicyBasicExample |
Rerun these tests in REPLAYING mode to catch issues
|
2bf1a28
to
96291e1
Compare
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 9 files changed, 1372 insertions(+), 2 deletions(-)) |
Tests analyticsTotal tests: Action takenFound 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccVmwareengineNetworkPolicy_vmwareEngineNetworkPolicyBasicExample |
Rerun these tests in REPLAYING mode to catch issues
|
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
Adjusted release note to include the data source as well (guidance is in https://googlecloudplatform.github.io/magic-modules/contribute/release-notes/, but slightly buried) |
Added support for Network Policy resource and datasource.
Release Note Template for Downstream PRs (will be copied)