Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[VPC]: fix port ranges for `opentelekomcloud_networking_secgroup_rul…
…e_v2` (#2175) [VPC]: fix port ranges for `opentelekomcloud_networking_secgroup_rule_v2` Summary of the Pull Request Port ranges were set every time even if they weren't provided by the user. This happened due to terraform being unable to differentiate empty parameter from zero value provided in config. PR Checklist Refers to: #2162 Tests added/passed. Schema updated. Release notes added. Acceptance Steps Performed === RUN TestAccNetworkingV2SecGroupRule_basic === PAUSE TestAccNetworkingV2SecGroupRule_basic === CONT TestAccNetworkingV2SecGroupRule_basic --- PASS: TestAccNetworkingV2SecGroupRule_basic (42.93s) === RUN TestAccNetworkingV2SecGroupRule_importBasic === PAUSE TestAccNetworkingV2SecGroupRule_importBasic === CONT TestAccNetworkingV2SecGroupRule_importBasic --- PASS: TestAccNetworkingV2SecGroupRule_importBasic (47.87s) === RUN TestAccNetworkingV2SecGroupRule_timeout === PAUSE TestAccNetworkingV2SecGroupRule_timeout === CONT TestAccNetworkingV2SecGroupRule_timeout --- PASS: TestAccNetworkingV2SecGroupRule_timeout (42.56s) === RUN TestAccNetworkingV2SecGroupRule_numericProtocol === PAUSE TestAccNetworkingV2SecGroupRule_numericProtocol === CONT TestAccNetworkingV2SecGroupRule_numericProtocol --- PASS: TestAccNetworkingV2SecGroupRule_numericProtocol (42.87s) === RUN TestAccNetworkingV2SecGroupRule_noPorts === PAUSE TestAccNetworkingV2SecGroupRule_noPorts === CONT TestAccNetworkingV2SecGroupRule_noPorts --- PASS: TestAccNetworkingV2SecGroupRule_noPorts (42.17s) === RUN TestAccNetworkingV2SecGroupRule_ICMP === PAUSE TestAccNetworkingV2SecGroupRule_ICMP === CONT TestAccNetworkingV2SecGroupRule_ICMP --- PASS: TestAccNetworkingV2SecGroupRule_ICMP (42.92s) === RUN TestAccNetworkingV2SecGroupRule_noProtocolError --- PASS: TestAccNetworkingV2SecGroupRule_noProtocolError (3.65s) PASS Process finished with the exit code 0 Reviewed-by: Anton Sidelnikov Reviewed-by: Aloento Reviewed-by: Vladimir Vshivkov
- Loading branch information
1 parent
af00a79
commit 0a17c34
Showing
3 changed files
with
130 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
fixes: | ||
- | | ||
**[VPC]** Fix secgroup rule creation ``resource/opentelekomcloud_networking_secgroup_rule_v2`` (`#2175 <https://github.com/opentelekomcloud/terraform-provider-opentelekomcloud/pull/2175>`_) |