@@ -84,8 +84,8 @@ func CreateAggregate(t *testing.T, client *gophercloud.ServiceClient) (*aggregat
84
84
return nil , err
85
85
}
86
86
87
- th .AssertEquals (t , aggregate .Name , aggregateName )
88
- th .AssertEquals (t , aggregate .AvailabilityZone , availabilityZone )
87
+ th .AssertEquals (t , aggregateName , aggregate .Name )
88
+ th .AssertEquals (t , availabilityZone , aggregate .AvailabilityZone )
89
89
90
90
return aggregate , nil
91
91
}
@@ -137,7 +137,7 @@ func CreateBootableVolumeServer(t *testing.T, client *gophercloud.ServiceClient,
137
137
return nil , err
138
138
}
139
139
140
- th .AssertEquals (t , newServer .Name , name )
140
+ th .AssertEquals (t , name , newServer .Name )
141
141
142
142
return newServer , nil
143
143
}
@@ -169,12 +169,12 @@ func CreateFlavor(t *testing.T, client *gophercloud.ServiceClient) (*flavors.Fla
169
169
170
170
t .Logf ("Successfully created flavor %s" , flavor .ID )
171
171
172
- th .AssertEquals (t , flavor .Name , flavorName )
173
- th .AssertEquals (t , flavor .RAM , 1 )
174
- th .AssertEquals (t , flavor .Disk , 1 )
175
- th .AssertEquals (t , flavor .VCPUs , 1 )
176
- th .AssertEquals (t , flavor .IsPublic , true )
177
- th .AssertEquals (t , flavor .Description , flavorDescription )
172
+ th .AssertEquals (t , flavorName , flavor .Name )
173
+ th .AssertEquals (t , 1 , flavor .RAM )
174
+ th .AssertEquals (t , 1 , flavor .Disk )
175
+ th .AssertEquals (t , 1 , flavor .VCPUs )
176
+ th .AssertEquals (t , true , flavor .IsPublic )
177
+ th .AssertEquals (t , flavorDescription , flavor .Description )
178
178
179
179
return flavor , nil
180
180
}
@@ -213,7 +213,7 @@ func CreateKeyPair(t *testing.T, client *gophercloud.ServiceClient) (*keypairs.K
213
213
214
214
t .Logf ("Created keypair: %s" , keyPairName )
215
215
216
- th .AssertEquals (t , keyPair .Name , keyPairName )
216
+ th .AssertEquals (t , keyPairName , keyPair .Name )
217
217
218
218
return keyPair , nil
219
219
}
@@ -263,9 +263,9 @@ func CreateMultiEphemeralServer(t *testing.T, client *gophercloud.ServiceClient,
263
263
if err != nil {
264
264
return server , err
265
265
}
266
- th .AssertEquals (t , newServer .Name , name )
267
- th .AssertEquals (t , newServer .Flavor ["id" ], choices . FlavorID )
268
- th .AssertEquals (t , newServer .Image ["id" ], choices . ImageID )
266
+ th .AssertEquals (t , name , newServer .Name )
267
+ th .AssertEquals (t , choices . FlavorID , newServer .Flavor ["id" ])
268
+ th .AssertEquals (t , choices . ImageID , newServer .Image ["id" ])
269
269
270
270
return newServer , nil
271
271
}
@@ -292,11 +292,11 @@ func CreatePrivateFlavor(t *testing.T, client *gophercloud.ServiceClient) (*flav
292
292
293
293
t .Logf ("Successfully created flavor %s" , flavor .ID )
294
294
295
- th .AssertEquals (t , flavor .Name , flavorName )
296
- th .AssertEquals (t , flavor .RAM , 1 )
297
- th .AssertEquals (t , flavor .Disk , 1 )
298
- th .AssertEquals (t , flavor .VCPUs , 1 )
299
- th .AssertEquals (t , flavor .IsPublic , false )
295
+ th .AssertEquals (t , flavorName , flavor .Name )
296
+ th .AssertEquals (t , 1 , flavor .RAM )
297
+ th .AssertEquals (t , 1 , flavor .Disk )
298
+ th .AssertEquals (t , 1 , flavor .VCPUs )
299
+ th .AssertEquals (t , false , flavor .IsPublic )
300
300
301
301
return flavor , nil
302
302
}
@@ -318,7 +318,7 @@ func CreateSecurityGroup(t *testing.T, client *gophercloud.ServiceClient) (*secg
318
318
319
319
t .Logf ("Created security group: %s" , securityGroup .ID )
320
320
321
- th .AssertEquals (t , securityGroup .Name , name )
321
+ th .AssertEquals (t , name , securityGroup .Name )
322
322
323
323
return securityGroup , nil
324
324
}
@@ -344,9 +344,9 @@ func CreateSecurityGroupRule(t *testing.T, client *gophercloud.ServiceClient, se
344
344
345
345
t .Logf ("Created security group rule: %s" , rule .ID )
346
346
347
- th .AssertEquals (t , rule .FromPort , fromPort )
348
- th .AssertEquals (t , rule .ToPort , toPort )
349
- th .AssertEquals (t , rule .ParentGroupID , securityGroupID )
347
+ th .AssertEquals (t , fromPort , rule .FromPort )
348
+ th .AssertEquals (t , toPort , rule .ToPort )
349
+ th .AssertEquals (t , securityGroupID , rule .ParentGroupID )
350
350
351
351
return rule , nil
352
352
}
@@ -403,9 +403,9 @@ func CreateServer(t *testing.T, client *gophercloud.ServiceClient) (*servers.Ser
403
403
return nil , err
404
404
}
405
405
406
- th .AssertEquals (t , newServer .Name , name )
407
- th .AssertEquals (t , newServer .Flavor ["id" ], choices . FlavorID )
408
- th .AssertEquals (t , newServer .Image ["id" ], choices . ImageID )
406
+ th .AssertEquals (t , name , newServer .Name )
407
+ th .AssertEquals (t , choices . FlavorID , newServer .Flavor ["id" ])
408
+ th .AssertEquals (t , choices . ImageID , newServer .Image ["id" ])
409
409
410
410
return newServer , nil
411
411
}
@@ -457,8 +457,8 @@ func CreateMicroversionServer(t *testing.T, client *gophercloud.ServiceClient) (
457
457
return nil , err
458
458
}
459
459
460
- th .AssertEquals (t , newServer .Name , name )
461
- th .AssertEquals (t , newServer .Image ["id" ], choices . ImageID )
460
+ th .AssertEquals (t , name , newServer .Name )
461
+ th .AssertEquals (t , choices . ImageID , newServer .Image ["id" ])
462
462
463
463
return newServer , nil
464
464
}
@@ -560,8 +560,8 @@ func CreateServerWithTags(t *testing.T, client *gophercloud.ServiceClient, netwo
560
560
561
561
newServer , err := res .Extract ()
562
562
th .AssertNoErr (t , err )
563
- th .AssertEquals (t , newServer .Name , name )
564
- th .AssertDeepEquals (t , * newServer . Tags , []string {"tag1" , "tag2" })
563
+ th .AssertEquals (t , name , newServer .Name )
564
+ th .AssertDeepEquals (t , []string {"tag1" , "tag2" }, * newServer . Tags )
565
565
566
566
return newServer , nil
567
567
}
@@ -584,7 +584,7 @@ func CreateServerGroup(t *testing.T, client *gophercloud.ServiceClient, policy s
584
584
585
585
t .Logf ("Successfully created server group %s" , name )
586
586
587
- th .AssertEquals (t , sg .Name , name )
587
+ th .AssertEquals (t , name , sg .Name )
588
588
589
589
return sg , nil
590
590
}
@@ -612,7 +612,7 @@ func CreateServerGroupMicroversion(t *testing.T, client *gophercloud.ServiceClie
612
612
613
613
t .Logf ("Successfully created server group %s" , name )
614
614
615
- th .AssertEquals (t , sg .Name , name )
615
+ th .AssertEquals (t , name , sg .Name )
616
616
617
617
return sg , nil
618
618
}
@@ -662,9 +662,9 @@ func CreateServerInServerGroup(t *testing.T, client *gophercloud.ServiceClient,
662
662
return nil , err
663
663
}
664
664
665
- th .AssertEquals (t , newServer .Name , name )
666
- th .AssertEquals (t , newServer .Flavor ["id" ], choices . FlavorID )
667
- th .AssertEquals (t , newServer .Image ["id" ], choices . ImageID )
665
+ th .AssertEquals (t , name , newServer .Name )
666
+ th .AssertEquals (t , choices . FlavorID , newServer .Flavor ["id" ])
667
+ th .AssertEquals (t , choices . ImageID , newServer .Image ["id" ])
668
668
669
669
return newServer , nil
670
670
}
@@ -711,9 +711,9 @@ func CreateServerWithPublicKey(t *testing.T, client *gophercloud.ServiceClient,
711
711
return nil , err
712
712
}
713
713
714
- th .AssertEquals (t , newServer .Name , name )
715
- th .AssertEquals (t , newServer .Flavor ["id" ], choices . FlavorID )
716
- th .AssertEquals (t , newServer .Image ["id" ], choices . ImageID )
714
+ th .AssertEquals (t , name , newServer .Name )
715
+ th .AssertEquals (t , choices . FlavorID , newServer .Flavor ["id" ])
716
+ th .AssertEquals (t , choices . ImageID , newServer .Image ["id" ])
717
717
718
718
return newServer , nil
719
719
}
@@ -910,8 +910,8 @@ func ImportPublicKey(t *testing.T, client *gophercloud.ServiceClient, publicKey
910
910
911
911
t .Logf ("Created keypair: %s" , keyPairName )
912
912
913
- th .AssertEquals (t , keyPair .Name , keyPairName )
914
- th .AssertEquals (t , keyPair .PublicKey , publicKey )
913
+ th .AssertEquals (t , keyPairName , keyPair .Name )
914
+ th .AssertEquals (t , publicKey , keyPair .PublicKey )
915
915
916
916
return keyPair , nil
917
917
}
@@ -1070,9 +1070,9 @@ func CreateServerNoNetwork(t *testing.T, client *gophercloud.ServiceClient) (*se
1070
1070
return nil , err
1071
1071
}
1072
1072
1073
- th .AssertEquals (t , newServer .Name , name )
1074
- th .AssertEquals (t , newServer .Flavor ["id" ], choices . FlavorID )
1075
- th .AssertEquals (t , newServer .Image ["id" ], choices . ImageID )
1073
+ th .AssertEquals (t , name , newServer .Name )
1074
+ th .AssertEquals (t , choices . FlavorID , newServer .Flavor ["id" ])
1075
+ th .AssertEquals (t , choices . ImageID , newServer .Image ["id" ])
1076
1076
1077
1077
return newServer , nil
1078
1078
}
0 commit comments