cloud/awscloud: add tests for ec2 operations

This commit is contained in:
Sanne Raymaekers 2024-08-01 17:39:04 +02:00
parent 810e9133e8
commit 16c9a7be88
4 changed files with 396 additions and 7 deletions

View file

@ -28,8 +28,10 @@ type AWS struct {
s3presign S3Presign
}
func newForTest(s3cli S3, upldr S3Manager, sign S3Presign) *AWS {
func newForTest(ec2cli EC2, ec2imds EC2Imds, s3cli S3, upldr S3Manager, sign S3Presign) *AWS {
return &AWS{
ec2: ec2cli,
ec2imds: ec2imds,
s3: s3cli,
s3uploader: upldr,
s3presign: sign,