deps: update AWS SDK (#2809)

* deps: update AWS SDK

* deps: fix AWS SDK upgrade breakage

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Markus Rudy <mr@edgeless.systems>
This commit is contained in:
renovate[bot] 2024-01-09 16:18:33 +01:00 committed by GitHub
parent a8bca88eeb
commit bacb8ff886
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 139 additions and 138 deletions

View file

@ -168,7 +168,7 @@ func (m *Maintainer) checkAuthenticated(ctx context.Context, expectedHash string
}
hasChecksum := attributes.Checksum != nil && attributes.Checksum.ChecksumSHA256 != nil && len(*attributes.Checksum.ChecksumSHA256) > 0
isSinglePart := attributes.ObjectParts == nil || attributes.ObjectParts.TotalPartsCount == 1
isSinglePart := attributes.ObjectParts == nil || attributes.ObjectParts.TotalPartsCount == nil || *attributes.ObjectParts.TotalPartsCount == 1
if !hasChecksum || !isSinglePart {
// checksums are not guaranteed to be present

View file

@ -230,7 +230,7 @@ func TestCheck(t *testing.T) {
ChecksumSHA256: toPtr("tcH7Lvxta0Z0wv3MSM4BtDo7fAN2PAwzVd4Ame4PjHM="),
},
ObjectParts: &types.GetObjectAttributesParts{
TotalPartsCount: 1,
TotalPartsCount: toPtr(int32(1)),
},
},
wantErr: true,
@ -242,7 +242,7 @@ func TestCheck(t *testing.T) {
ChecksumSHA256: toPtr("LCa0a2j/xo/5m0U8HTBBNBNCLXBkg7+g+YpeiGJm564="),
},
ObjectParts: &types.GetObjectAttributesParts{
TotalPartsCount: 1,
TotalPartsCount: toPtr(int32(1)),
},
},
},
@ -250,7 +250,7 @@ func TestCheck(t *testing.T) {
hash: "2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae",
authenticatedResponse: &s3.GetObjectAttributesOutput{
ObjectParts: &types.GetObjectAttributesParts{
TotalPartsCount: 2,
TotalPartsCount: toPtr(int32(2)),
},
},
unauthenticatedResponse: []byte("foo"),