@@ -69,6 +69,51 @@ const testAccAppfwprofile_sqlinjection_binding_basic = `
69
69
}
70
70
`
71
71
72
+ const testAccAppfwprofile_sqlinjection_binding_as_value_type_sql = `
73
+ resource citrixadc_appfwprofile_sqlinjection_binding demo_as_value_type_sql_binding {
74
+ name = citrixadc_appfwprofile.demo_appfw_as_value_type_sql.name
75
+ sqlinjection= "demo_binding"
76
+ as_scan_location_sql= "HEADER"
77
+ as_value_type_sql= "Keyword"
78
+ as_value_expr_sql= "example1"
79
+ formactionurl_sql= "www.example.com"
80
+ state= "ENABLED"
81
+ isregex_sql= "NOTREGEX"
82
+ }
83
+
84
+ resource citrixadc_appfwprofile demo_appfw_as_value_type_sql {
85
+ name = "demo_appfw_as_value_type_sql"
86
+ bufferoverflowaction = ["none"]
87
+ contenttypeaction = ["none"]
88
+ cookieconsistencyaction = ["none"]
89
+ creditcard = ["none"]
90
+ creditcardaction = ["none"]
91
+ crosssitescriptingaction = ["none"]
92
+ csrftagaction = ["none"]
93
+ denyurlaction = ["none"]
94
+ dynamiclearning = ["none"]
95
+ fieldconsistencyaction = ["none"]
96
+ fieldformataction = ["none"]
97
+ fileuploadtypesaction = ["none"]
98
+ inspectcontenttypes = ["none"]
99
+ jsondosaction = ["none"]
100
+ jsonsqlinjectionaction = ["none"]
101
+ jsonxssaction = ["none"]
102
+ multipleheaderaction = ["none"]
103
+ sqlinjectionaction = ["none"]
104
+ starturlaction = ["none"]
105
+ type = ["HTML"]
106
+ xmlattachmentaction = ["none"]
107
+ xmldosaction = ["none"]
108
+ xmlformataction = ["none"]
109
+ xmlsoapfaultaction = ["none"]
110
+ xmlsqlinjectionaction = ["none"]
111
+ xmlvalidationaction = ["none"]
112
+ xmlwsiaction = ["none"]
113
+ xmlxssaction = ["none"]
114
+ }
115
+ `
116
+
72
117
func TestAccAppfwprofile_sqlinjection_binding_basic (t * testing.T ) {
73
118
resource .Test (t , resource.TestCase {
74
119
PreCheck : func () { testAccPreCheck (t ) },
@@ -84,6 +129,17 @@ func TestAccAppfwprofile_sqlinjection_binding_basic(t *testing.T) {
84
129
resource .TestCheckResourceAttr ("citrixadc_appfwprofile_sqlinjection_binding.demo_binding" , "formactionurl_sql" , "www.example.com" ),
85
130
),
86
131
},
132
+ {
133
+ Config : testAccAppfwprofile_sqlinjection_binding_as_value_type_sql ,
134
+ Check : resource .ComposeTestCheckFunc (
135
+ testAccCheckAppfwprofile_sqlinjection_bindingExist ("citrixadc_appfwprofile_sqlinjection_binding.demo_as_value_type_sql_binding" , nil ),
136
+ resource .TestCheckResourceAttr ("citrixadc_appfwprofile_sqlinjection_binding.demo_as_value_type_sql_binding" , "name" , "demo_appfw_as_value_type_sql" ),
137
+ resource .TestCheckResourceAttr ("citrixadc_appfwprofile_sqlinjection_binding.demo_as_value_type_sql_binding" , "as_scan_location_sql" , "HEADER" ),
138
+ resource .TestCheckResourceAttr ("citrixadc_appfwprofile_sqlinjection_binding.demo_as_value_type_sql_binding" , "formactionurl_sql" , "www.example.com" ),
139
+ resource .TestCheckResourceAttr ("citrixadc_appfwprofile_sqlinjection_binding.demo_as_value_type_sql_binding" , "as_value_type_sql" , "Keyword" ),
140
+ resource .TestCheckResourceAttr ("citrixadc_appfwprofile_sqlinjection_binding.demo_as_value_type_sql_binding" , "as_value_expr_sql" , "example1" ),
141
+ ),
142
+ },
87
143
},
88
144
})
89
145
}
0 commit comments