Skip to content

Commit 1648521

Browse files
committed
Fix
1 parent 7795e99 commit 1648521

File tree

2 files changed

+932
-112
lines changed

2 files changed

+932
-112
lines changed

scaleway/resource_lb_frontend_beta_test.go

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ func TestAccScalewayLbAcl_Basic(t *testing.T) {
114114
match {
115115
ip_subnet = ["192.168.0.1", "192.168.0.2", "192.168.10.0/24"]
116116
http_filter = "acl_http_filter_none"
117-
http_filter_value = ["criteria1","criteria2"]
117+
http_filter_value = []
118118
invert = "true"
119119
}
120120
}
@@ -123,6 +123,7 @@ func TestAccScalewayLbAcl_Basic(t *testing.T) {
123123
type = "allow"
124124
}
125125
match {
126+
ip_subnet = ["0.0.0.0/0"]
126127
http_filter = "path_begin"
127128
http_filter_value = ["criteria1","criteria2"]
128129
invert = "true"
@@ -133,6 +134,8 @@ func TestAccScalewayLbAcl_Basic(t *testing.T) {
133134
type = "allow"
134135
}
135136
match {
137+
ip_subnet = ["0.0.0.0/0"]
138+
http_filter = "path_begin"
136139
http_filter_value = ["criteria1","criteria2"]
137140
}
138141
}
@@ -141,12 +144,14 @@ func TestAccScalewayLbAcl_Basic(t *testing.T) {
141144
type = "allow"
142145
}
143146
match {
147+
ip_subnet = ["0.0.0.0/0"]
144148
http_filter = "acl_http_filter_none"
145-
http_filter_value = ["criteria1","criteria2"]
149+
http_filter_value = []
146150
}
147151
}
148152
acl {
149153
match {
154+
http_filter_value = []
150155
ip_subnet = ["0.0.0.0/0"]
151156
}
152157
action {
@@ -179,8 +184,8 @@ func TestAccScalewayLbAcl_Basic(t *testing.T) {
179184
{
180185
Match: &lb.ACLMatch{
181186
IPSubnet: scw.StringSlicePtr([]string{"0.0.0.0/0"}),
182-
HTTPFilter: lb.ACLHTTPFilterACLHTTPFilterNone,
183-
HTTPFilterValue: []*string{},
187+
HTTPFilter: lb.ACLHTTPFilterPathBegin,
188+
HTTPFilterValue: scw.StringSlicePtr([]string{"criteria1", "criteria2"}),
184189
Invert: false,
185190
},
186191
Action: &lb.ACLAction{Type: lb.ACLActionTypeAllow},

0 commit comments

Comments
 (0)