Skip to content

Commit

Permalink
Update aws-sdk-s3 to 1.56
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcefrog committed Oct 13, 2024
1 parent de7451a commit f761bfd
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 42 deletions.
53 changes: 27 additions & 26 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ name = "conserve"
[dependencies]
assert_matches = "1.5.0"
aws-config = { version = "1.1", optional = true }
aws-sdk-s3 = { version = "1.21", optional = true }
aws-sdk-s3 = { version = "1.56", optional = true }
aws-types = { version = "1.1", optional = true }
base64 = { version = "0.22", optional = true }
blake2-rfc = "0.2.18"
Expand Down
30 changes: 15 additions & 15 deletions tests/s3_integration.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023 Martin Pool
// Copyright 2023-2024 Martin Pool

#![cfg(feature = "s3-integration-test")]

Expand Down Expand Up @@ -97,23 +97,23 @@ impl TempBucket {
.expect("Create bucket");
println!("Created bucket {bucket_name}");

let lifecycle_configuration = BucketLifecycleConfiguration::builder()
.rules(
LifecycleRule::builder()
.id("delete-after-7d")
.filter(LifecycleRuleFilter::builder().prefix("").build())
.status(ExpirationStatus::Enabled)
.expiration(LifecycleExpiration::builder().days(7).build())
.build()
.expect("Build S3 lifecycle rule"),
)
.build()
.expect("Build S3 lifecycle configuration");
dbg!(&lifecycle_configuration);
client
.put_bucket_lifecycle_configuration()
.bucket(bucket_name)
.lifecycle_configuration(
BucketLifecycleConfiguration::builder()
.rules(
LifecycleRule::builder()
.id("delete-after-7d")
.filter(LifecycleRuleFilter::ObjectSizeGreaterThan(0))
.status(ExpirationStatus::Enabled)
.expiration(LifecycleExpiration::builder().days(7).build())
.build()
.expect("Build S3 lifecycle rule"),
)
.build()
.expect("Build S3 lifecycle configuration"),
)
.lifecycle_configuration(lifecycle_configuration)
.send()
.await
.expect("Set bucket lifecycle");
Expand Down

0 comments on commit f761bfd

Please sign in to comment.