Skip to content

Commit

Permalink
adding modules upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
RavinderReddyF5 committed Sep 12, 2024
1 parent c73bc76 commit 58284ee
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 13 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ require (
github.com/hashicorp/terraform-plugin-go v0.22.1
github.com/hashicorp/terraform-plugin-log v0.9.0
github.com/hashicorp/terraform-plugin-testing v1.7.0
gitswarm.f5net.com/terraform-providers/bigipnext v0.0.2
gitswarm.f5net.com/terraform-providers/bigipnext v0.0.3
)

require (
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@ github.com/yuin/goldmark-meta v1.1.0 h1:pWw+JLHGZe8Rk0EGsMVssiNb/AaPMHfSRszZeUei
github.com/yuin/goldmark-meta v1.1.0/go.mod h1:U4spWENafuA7Zyg+Lj5RqK/MF+ovMYtBvXi1lBb2VP0=
github.com/zclconf/go-cty v1.14.3 h1:1JXy1XroaGrzZuG6X9dt7HL6s9AwbY+l4UNL8o5B6ho=
github.com/zclconf/go-cty v1.14.3/go.mod h1:VvMs5i0vgZdhYawQNq5kePSpLAoz8u1xvZgrPIxfnZE=
gitswarm.f5net.com/terraform-providers/bigipnext v0.0.2 h1:vbWm25ioA7ekMrjDFqO2I+8V33qyLiMr4XBZrG5XKTY=
gitswarm.f5net.com/terraform-providers/bigipnext v0.0.2/go.mod h1:SLwUYHgvE++OJL3tdWyNT4vbu094xMq8sQZyei0r3So=
gitswarm.f5net.com/terraform-providers/bigipnext v0.0.3 h1:/B++Zq31fu92WmQFteKqyIamhfJWAe6TT768TdDnbtA=
gitswarm.f5net.com/terraform-providers/bigipnext v0.0.3/go.mod h1:SLwUYHgvE++OJL3tdWyNT4vbu094xMq8sQZyei0r3So=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4=
Expand Down
40 changes: 32 additions & 8 deletions internal/provider/cm_waf_policy_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ func TestAccNextCMWAFPolicyCreateTC1Resource(t *testing.T) {
resource.TestCheckResourceAttr("bigipnext_cm_waf_policy.sample", "enforcement_mode", "blocking"),
resource.TestCheckResourceAttr("bigipnext_cm_waf_policy.sample", "application_language", "utf-8"),
resource.TestCheckResourceAttr("bigipnext_cm_waf_policy.sample", "template_name", "Rating-Based-Template"),
resource.TestCheckResourceAttr("bigipnext_cm_waf_policy.sample", "bot_defense", "false"),
resource.TestCheckResourceAttr("bigipnext_cm_waf_policy.sample", "ip_intelligence", "false"),
resource.TestCheckResourceAttr("bigipnext_cm_waf_policy.sample", "dos_protection", "true"),
resource.TestCheckResourceAttr("bigipnext_cm_waf_policy.sample", "blocking_settings", "true"),
resource.TestCheckResourceAttr("bigipnext_cm_waf_policy.sample", "bot_defense.enabled", "false"),
resource.TestCheckResourceAttr("bigipnext_cm_waf_policy.sample", "ip_intelligence.enabled", "false"),
resource.TestCheckResourceAttr("bigipnext_cm_waf_policy.sample", "dos_protection.enabled", "true"),
resource.TestCheckResourceAttr("bigipnext_cm_waf_policy.sample", "blocking_settings.enabled", "true"),
),
},
{
Expand All @@ -39,10 +39,10 @@ func TestAccNextCMWAFPolicyCreateTC1Resource(t *testing.T) {
resource.TestCheckResourceAttr("bigipnext_cm_waf_policy.sample", "enforcement_mode", "transparent"),
resource.TestCheckResourceAttr("bigipnext_cm_waf_policy.sample", "application_language", "iso-8859-6"),
resource.TestCheckResourceAttr("bigipnext_cm_waf_policy.sample", "template_name", "Fundamental-Template"),
resource.TestCheckResourceAttr("bigipnext_cm_waf_policy.sample", "bot_defense", "true"),
resource.TestCheckResourceAttr("bigipnext_cm_waf_policy.sample", "ip_intelligence", "true"),
resource.TestCheckResourceAttr("bigipnext_cm_waf_policy.sample", "dos_protection", "false"),
resource.TestCheckResourceAttr("bigipnext_cm_waf_policy.sample", "blocking_settings", "false"),
resource.TestCheckResourceAttr("bigipnext_cm_waf_policy.sample", "bot_defense.enabled", "true"),
resource.TestCheckResourceAttr("bigipnext_cm_waf_policy.sample", "ip_intelligence.enabled", "true"),
resource.TestCheckResourceAttr("bigipnext_cm_waf_policy.sample", "dos_protection.enabled", "false"),
resource.TestCheckResourceAttr("bigipnext_cm_waf_policy.sample", "blocking_settings.enabled", "false"),
),
},
},
Expand Down Expand Up @@ -174,6 +174,18 @@ resource "bigipnext_cm_waf_policy" "sample" {
enforcement_mode = "blocking"
application_language = "utf-8"
template_name = "Rating-Based-Template"
bot_defense = {
enabled = false
}
ip_intelligence = {
enabled = false
}
dos_protection = {
enabled = true
}
blocking_settings = {
enabled = true
}
}`

const testAccNextCMWAFPolicyResourceUpdateConfig = `
Expand All @@ -184,4 +196,16 @@ resource "bigipnext_cm_waf_policy" "sample" {
enforcement_mode = "transparent"
application_language = "iso-8859-6"
template_name = "Fundamental-Template"
bot_defense = {
enabled = true
}
ip_intelligence = {
enabled = true
}
dos_protection = {
enabled = false
}
blocking_settings = {
enabled = false
}
}`

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ github.com/zclconf/go-cty/cty/function/stdlib
github.com/zclconf/go-cty/cty/gocty
github.com/zclconf/go-cty/cty/json
github.com/zclconf/go-cty/cty/set
# gitswarm.f5net.com/terraform-providers/bigipnext v0.0.2
# gitswarm.f5net.com/terraform-providers/bigipnext v0.0.3
## explicit; go 1.19
gitswarm.f5net.com/terraform-providers/bigipnext
# golang.org/x/crypto v0.21.0
Expand Down

0 comments on commit 58284ee

Please sign in to comment.