@@ -366,7 +366,7 @@ networks:
366
366
assert .Check (t , template .Resources ["DefaultNetwork" ] == nil )
367
367
assert .Check (t , template .Resources ["DefaultNetworkIngress" ] == nil )
368
368
s := template .Resources ["TestService" ].(* ecs.Service )
369
- assert .Check (t , s != nil )
369
+ assert .Check (t , s != nil ) //nolint:staticcheck
370
370
assert .Check (t , s .NetworkConfiguration .AwsvpcConfiguration .SecurityGroups [0 ] == "sg-123abc" ) //nolint:staticcheck
371
371
}
372
372
@@ -383,11 +383,11 @@ volumes:
383
383
m .ResolveFileSystem (gomock .Any (), "fs-123abc" ).Return (existingAWSResource {id : "fs-123abc" }, nil )
384
384
})
385
385
s := template .Resources ["DbdataNFSMountTargetOnSubnet1" ].(* efs.MountTarget )
386
- assert .Check (t , s != nil )
386
+ assert .Check (t , s != nil ) //nolint:staticcheck
387
387
assert .Equal (t , s .FileSystemId , "fs-123abc" ) //nolint:staticcheck
388
388
389
389
s = template .Resources ["DbdataNFSMountTargetOnSubnet2" ].(* efs.MountTarget )
390
- assert .Check (t , s != nil )
390
+ assert .Check (t , s != nil ) //nolint:staticcheck
391
391
assert .Equal (t , s .FileSystemId , "fs-123abc" ) //nolint:staticcheck
392
392
}
393
393
@@ -412,15 +412,15 @@ volumes:
412
412
})
413
413
n := volumeResourceName ("db-data" )
414
414
f := template .Resources [n ].(* efs.FileSystem )
415
- assert .Check (t , f != nil )
415
+ assert .Check (t , f != nil ) //nolint:staticcheck
416
416
assert .Equal (t , f .BackupPolicy .Status , "ENABLED" ) //nolint:staticcheck
417
417
assert .Equal (t , f .LifecyclePolicies [0 ].TransitionToIA , "AFTER_30_DAYS" ) //nolint:staticcheck
418
418
assert .Equal (t , f .PerformanceMode , "maxIO" ) //nolint:staticcheck
419
419
assert .Equal (t , f .ThroughputMode , "provisioned" ) //nolint:staticcheck
420
420
assert .Equal (t , f .ProvisionedThroughputInMibps , float64 (1024 )) //nolint:staticcheck
421
421
422
422
s := template .Resources ["DbdataNFSMountTargetOnSubnet1" ].(* efs.MountTarget )
423
- assert .Check (t , s != nil )
423
+ assert .Check (t , s != nil ) //nolint:staticcheck
424
424
assert .Equal (t , s .FileSystemId , cloudformation .Ref (n )) //nolint:staticcheck
425
425
}
426
426
@@ -438,7 +438,7 @@ volumes:
438
438
m .ListFileSystems (gomock .Any (), gomock .Any ()).Return (nil , nil )
439
439
})
440
440
a := template .Resources ["DbdataAccessPoint" ].(* efs.AccessPoint )
441
- assert .Check (t , a != nil )
441
+ assert .Check (t , a != nil ) //nolint:staticcheck
442
442
assert .Equal (t , a .PosixUser .Uid , "1002" ) //nolint:staticcheck
443
443
assert .Equal (t , a .PosixUser .Gid , "1002" ) //nolint:staticcheck
444
444
}
@@ -461,7 +461,7 @@ volumes:
461
461
}, nil )
462
462
})
463
463
s := template .Resources ["DbdataNFSMountTargetOnSubnet1" ].(* efs.MountTarget )
464
- assert .Check (t , s != nil )
464
+ assert .Check (t , s != nil ) //nolint:staticcheck
465
465
assert .Equal (t , s .FileSystemId , "fs-123abc" ) //nolint:staticcheck
466
466
}
467
467
0 commit comments