@@ -33,16 +33,18 @@ func TestSiteACLNewWithOptionalParams(t *testing.T) {
33
33
magic_transit.SiteACLNewParams {
34
34
AccountID : cloudflare .F ("023e105f4ecef8ad9ca31a8372d0c353" ),
35
35
LAN1 : cloudflare .F (magic_transit.ACLConfigurationParam {
36
- LANID : cloudflare .F ("lan_id" ),
37
- LANName : cloudflare .F ("lan_name" ),
38
- Ports : cloudflare .F ([]int64 {int64 (1 )}),
39
- Subnets : cloudflare .F ([]magic_transit.SubnetParam {"192.0.2.1" }),
36
+ LANID : cloudflare .F ("lan_id" ),
37
+ LANName : cloudflare .F ("lan_name" ),
38
+ PortRanges : cloudflare .F ([]string {"8080-9000" }),
39
+ Ports : cloudflare .F ([]int64 {int64 (1 )}),
40
+ Subnets : cloudflare .F ([]magic_transit.SubnetParam {"192.0.2.1" }),
40
41
}),
41
42
LAN2 : cloudflare .F (magic_transit.ACLConfigurationParam {
42
- LANID : cloudflare .F ("lan_id" ),
43
- LANName : cloudflare .F ("lan_name" ),
44
- Ports : cloudflare .F ([]int64 {int64 (1 )}),
45
- Subnets : cloudflare .F ([]magic_transit.SubnetParam {"192.0.2.1" }),
43
+ LANID : cloudflare .F ("lan_id" ),
44
+ LANName : cloudflare .F ("lan_name" ),
45
+ PortRanges : cloudflare .F ([]string {"8080-9000" }),
46
+ Ports : cloudflare .F ([]int64 {int64 (1 )}),
47
+ Subnets : cloudflare .F ([]magic_transit.SubnetParam {"192.0.2.1" }),
46
48
}),
47
49
Name : cloudflare .F ("PIN Pad - Cash Register" ),
48
50
Description : cloudflare .F ("Allows local traffic between PIN pads and cash register." ),
@@ -82,16 +84,18 @@ func TestSiteACLUpdateWithOptionalParams(t *testing.T) {
82
84
Description : cloudflare .F ("Allows local traffic between PIN pads and cash register." ),
83
85
ForwardLocally : cloudflare .F (true ),
84
86
LAN1 : cloudflare .F (magic_transit.ACLConfigurationParam {
85
- LANID : cloudflare .F ("lan_id" ),
86
- LANName : cloudflare .F ("lan_name" ),
87
- Ports : cloudflare .F ([]int64 {int64 (1 )}),
88
- Subnets : cloudflare .F ([]magic_transit.SubnetParam {"192.0.2.1" }),
87
+ LANID : cloudflare .F ("lan_id" ),
88
+ LANName : cloudflare .F ("lan_name" ),
89
+ PortRanges : cloudflare .F ([]string {"8080-9000" }),
90
+ Ports : cloudflare .F ([]int64 {int64 (1 )}),
91
+ Subnets : cloudflare .F ([]magic_transit.SubnetParam {"192.0.2.1" }),
89
92
}),
90
93
LAN2 : cloudflare .F (magic_transit.ACLConfigurationParam {
91
- LANID : cloudflare .F ("lan_id" ),
92
- LANName : cloudflare .F ("lan_name" ),
93
- Ports : cloudflare .F ([]int64 {int64 (1 )}),
94
- Subnets : cloudflare .F ([]magic_transit.SubnetParam {"192.0.2.1" }),
94
+ LANID : cloudflare .F ("lan_id" ),
95
+ LANName : cloudflare .F ("lan_name" ),
96
+ PortRanges : cloudflare .F ([]string {"8080-9000" }),
97
+ Ports : cloudflare .F ([]int64 {int64 (1 )}),
98
+ Subnets : cloudflare .F ([]magic_transit.SubnetParam {"192.0.2.1" }),
95
99
}),
96
100
Name : cloudflare .F ("PIN Pad - Cash Register" ),
97
101
Protocols : cloudflare .F ([]magic_transit.AllowedProtocol {magic_transit .AllowedProtocolTCP }),
@@ -188,16 +192,18 @@ func TestSiteACLEditWithOptionalParams(t *testing.T) {
188
192
Description : cloudflare .F ("Allows local traffic between PIN pads and cash register." ),
189
193
ForwardLocally : cloudflare .F (true ),
190
194
LAN1 : cloudflare .F (magic_transit.ACLConfigurationParam {
191
- LANID : cloudflare .F ("lan_id" ),
192
- LANName : cloudflare .F ("lan_name" ),
193
- Ports : cloudflare .F ([]int64 {int64 (1 )}),
194
- Subnets : cloudflare .F ([]magic_transit.SubnetParam {"192.0.2.1" }),
195
+ LANID : cloudflare .F ("lan_id" ),
196
+ LANName : cloudflare .F ("lan_name" ),
197
+ PortRanges : cloudflare .F ([]string {"8080-9000" }),
198
+ Ports : cloudflare .F ([]int64 {int64 (1 )}),
199
+ Subnets : cloudflare .F ([]magic_transit.SubnetParam {"192.0.2.1" }),
195
200
}),
196
201
LAN2 : cloudflare .F (magic_transit.ACLConfigurationParam {
197
- LANID : cloudflare .F ("lan_id" ),
198
- LANName : cloudflare .F ("lan_name" ),
199
- Ports : cloudflare .F ([]int64 {int64 (1 )}),
200
- Subnets : cloudflare .F ([]magic_transit.SubnetParam {"192.0.2.1" }),
202
+ LANID : cloudflare .F ("lan_id" ),
203
+ LANName : cloudflare .F ("lan_name" ),
204
+ PortRanges : cloudflare .F ([]string {"8080-9000" }),
205
+ Ports : cloudflare .F ([]int64 {int64 (1 )}),
206
+ Subnets : cloudflare .F ([]magic_transit.SubnetParam {"192.0.2.1" }),
201
207
}),
202
208
Name : cloudflare .F ("PIN Pad - Cash Register" ),
203
209
Protocols : cloudflare .F ([]magic_transit.AllowedProtocol {magic_transit .AllowedProtocolTCP }),
0 commit comments