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

Fix issue when creating IPSecVpnSession with Compliance suite #891

Merged
merged 1 commit into from
May 17, 2023

Conversation

2ez4szliu
Copy link
Contributor

Change tunnel_profile_path to use the computedPolicyPath so that IPSecVpnSession with compliance suite can be configured correctly.

The MR also made enhancement to the docs.

@2ez4szliu
Copy link
Contributor Author

/test-all

@@ -175,6 +204,47 @@ func TestAccResourceNsxtPolicyIPSecVpnSessionRouteBased_basic(t *testing.T) {
})
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

lets follow naming convention here - withComplianceSuite

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@@ -273,6 +343,49 @@ func TestAccResourceNsxtPolicyIPSecVpnSessionPolicyBased_basic(t *testing.T) {
})
}

func TestAccResourceNsxtPolicyIPSecVpnSessionPolicyBased_with_compliance_suite(t *testing.T) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

same as above

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@@ -485,6 +598,7 @@ func testAccNSXPolicyIPSecVpnSessionImporterGetID(s *terraform.State) (string, e
}

func testAccNsxtPolicyIPSecVpnSessionPreConditionTemplate(isT0 bool) string {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Tests using certificate should only run if testAccEnvDefined(t, "NSXT_TEST_CERTIFICATE_NAME"), otherwise looks like certificate data source will fail

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@2ez4szliu
Copy link
Contributor Author

/test-all

Change tunnel_profile_path to use the computedPolicyPath so that
IPSecVpnSession with compliance suite can be configured correctly.

The MR also made enhancement to the docs.

Signed-off-by: Shizhao Liu <[email protected]>
@2ez4szliu
Copy link
Contributor Author

/test-all

@2ez4szliu 2ez4szliu merged commit 6369982 into vmware:master May 17, 2023
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.

2 participants