@@ -20,15 +20,15 @@ func fixtureRulesResponse() []sfs.ShareExportPolicyRule {
2020 return []sfs.ShareExportPolicyRule {
2121 {
2222 Description : * sfs .NewNullableString (new ("description ")),
23- IpAcl : * new ( []string {"172.16 .0 .0 / 24 ", "172.16.0.251/32" }) ,
23+ IpAcl : []string {"172.16.0.0/24" , "172.16.0.251/32" },
2424 Order : new (int32 (0 )),
2525 ReadOnly : new (false ),
2626 SetUuid : new (false ),
2727 SuperUser : new (false ),
2828 },
2929 {
3030 Description : * sfs .NewNullableString (new ("description ")),
31- IpAcl : * new ( []string {"172.32 .0 .0 / 24 ", "172.32.0.251/32" }) ,
31+ IpAcl : []string {"172.32.0.0/24" , "172.32.0.251/32" },
3232 Order : new (int32 (1 )),
3333 ReadOnly : new (false ),
3434 SetUuid : new (false ),
@@ -150,10 +150,10 @@ func fixtureRulesPayloadModel() []rulesModel {
150150 }
151151}
152152
153- func fixtureExportPolicyCreatePayload (rules * []sfs.CreateShareExportPolicyRequestRule ) * sfs.CreateShareExportPolicyPayload {
153+ func fixtureExportPolicyCreatePayload (rules []sfs.CreateShareExportPolicyRequestRule ) * sfs.CreateShareExportPolicyPayload {
154154 return & sfs.CreateShareExportPolicyPayload {
155155 Name : "createPayloadName" ,
156- Rules : * rules ,
156+ Rules : rules ,
157157 }
158158}
159159
@@ -281,7 +281,7 @@ func TestToCreatePayload(t *testing.T) {
281281 Name : types .StringValue ("createPayloadName" ),
282282 },
283283 rules : fixtureRulesPayloadModel (),
284- expected : fixtureExportPolicyCreatePayload (new ( fixtureRulesCreatePayload () )),
284+ expected : fixtureExportPolicyCreatePayload (fixtureRulesCreatePayload ()),
285285 wantErr : false ,
286286 },
287287 }
0 commit comments