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

feat(Network ACL): Synchronized Network ACL resources, unit test and document. #1095

Conversation

liwanting0517
Copy link
Contributor

What this PR does / why we need it:

Which issue this PR fixes:
(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)
fixes #xxx

Special notes for your reviewer:

Release note:


PR Checklist

  • Tests added/passed.
  • Documentation updated.
  • Schema updated.

Acceptance Steps Performed

## TestAccNetworkACL_basic
=== RUN   TestAccNetworkACL_basic
=== PAUSE TestAccNetworkACL_basic
=== CONT  TestAccNetworkACL_basic
--- PASS: TestAccNetworkACL_basic (89.24s)
PASS

## TestAccNetworkACL_no_subnets
=== RUN   TestAccNetworkACL_no_subnets
=== PAUSE TestAccNetworkACL_no_subnets
=== CONT  TestAccNetworkACL_no_subnets
--- PASS: TestAccNetworkACL_no_subnets (29.65s)
PASS

## TestAccNetworkACL_remove
=== RUN   TestAccNetworkACL_remove
=== PAUSE TestAccNetworkACL_remove
=== CONT  TestAccNetworkACL_remove
--- PASS: TestAccNetworkACL_remove (116.74s)
PASS

## TestAccNetworkACLRule_basic
=== RUN   TestAccNetworkACLRule_basic
=== PAUSE TestAccNetworkACLRule_basic
=== CONT  TestAccNetworkACLRule_basic
--- PASS: TestAccNetworkACLRule_basic (65.06s)
PASS

## TestAccNetworkACLRule_anyProtocol
=== RUN   TestAccNetworkACLRule_anyProtocol
=== PAUSE TestAccNetworkACLRule_anyProtocol
=== CONT  TestAccNetworkACLRule_anyProtocol
--- PASS: TestAccNetworkACLRule_anyProtocol (32.29s)
PASS

@liwanting0517 liwanting0517 changed the title feat(NAT): Synchronized Network ACL resources, unit test and document. feat(Network ACL): Synchronized Network ACL resources, unit test and document. Jan 12, 2024
@@ -45,6 +45,9 @@ resource "flexibleengine_network_acl" "fw_acl" {

The following arguments are supported:

* `region` - (Optional, String, ForceNew) Specifies the region where the private NAT gateway is located.
Copy link
Contributor

Choose a reason for hiding this comment

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

There should be ... NAT acl ... rather NAT gateway, you can reference from Huaweicloud/network_acl.md

@@ -26,6 +26,9 @@ resource "flexibleengine_network_acl_rule" "rule_1" {

The following arguments are supported:

* `region` - (Optional, String, ForceNew) Specifies the region where the private NAT gateway is located.
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto, reference from Huaweicloud/network_acl_rule.md

resource "flexibleengine_network_acl_rule" "rule_1" {
name = "%s"
protocol = "udp"
action = "deny"
Copy link
Contributor

Choose a reason for hiding this comment

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

All of scripts in this Unit Test should be formated.

Comment on lines 199 to 204
resource "flexibleengine_vpc_subnet_v1" "subnet_1" {
name = "%s_subnet_1"
cidr = "192.168.0.0/24"
gateway_ip = "192.168.0.1"
vpc_id = flexibleengine_vpc_v1.vpc_1.id
}
Copy link
Contributor

Choose a reason for hiding this comment

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

all of scripts in this Unit Test should be formated.

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.

2 participants