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

CIS Firewall Rules : added priority key #3998

Merged

Conversation

arpit-srivastava-ibm
Copy link
Contributor

Problem Statement -

  • User was not able to update priority field in Firewall Rules while creating or updating a resource

Issue - https://github.ibm.com/NetworkTribe/CIS_Support/issues/2515

@arpit-srivastava-ibm arpit-srivastava-ibm changed the title CIS Firewall Rules : added priority rule CIS Firewall Rules : added priority key Aug 31, 2022
@arpit-srivastava-ibm
Copy link
Contributor Author

arpit-srivastava-ibm commented Aug 31, 2022

Test case -

arpit-mac@Arpits-MacBook-Pro terraform-provider-ibm % make testacc TEST=./ibm/service/cis TESTARGS='-run=TestAccIBMCisFirewallrules_Basic'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./ibm/service/cis -v -run=TestAccIBMCisFirewallrules_Basic -timeout 700m
=== RUN   TestAccIBMCisFirewallrules_Basic
--- PASS: TestAccIBMCisFirewallrules_Basic (97.04s)
PASS
ok  	github.com/IBM-Cloud/terraform-provider-ibm/ibm/service/cis	97.952s

@arpit-srivastava-ibm
Copy link
Contributor Author

The test cases and documentation already covered creation and updation of resource with priority key.

@@ -181,7 +185,8 @@ func ResourceIBMCISFirewallrulesUpdate(context context.Context, d *schema.Resour
if d.HasChange(cisFilterID) ||
d.HasChange(cisFirewallrulesAction) ||
d.HasChange(cisFirewallrulesPaused) ||
d.HasChange(cisFilterDescription) {
d.HasChange(cisFilterDescription) ||
d.HasChange(cisFirewallrulesPriority) {

Copy link
Collaborator

Choose a reason for hiding this comment

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

in update handle the support for change in priority

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added

@hkantare hkantare merged commit 1787dd0 into IBM-Cloud:master Sep 5, 2022
SunithaGudisagarIBM pushed a commit to ibm-vpc/terraform-provider-ibm that referenced this pull request Sep 14, 2022
* added priority to firewallrules

* revert conflict changes

* added priority in update

Co-authored-by: Arpit Srivastava <arpit-mac@Arpits-MacBook-Pro.local>
SunithaGudisagarIBM pushed a commit to ibm-vpc/terraform-provider-ibm that referenced this pull request Sep 14, 2022
* added priority to firewallrules

* revert conflict changes

* added priority in update

Co-authored-by: Arpit Srivastava <arpit-mac@Arpits-MacBook-Pro.local>
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