Skip to content

Commit

Permalink
Merge pull request #1764 from iliana/release-0.44
Browse files Browse the repository at this point in the history
Release 0.44
  • Loading branch information
iliana committed Jun 1, 2020
2 parents 3644547 + d0dabf2 commit 69e7c91
Show file tree
Hide file tree
Showing 445 changed files with 1,354 additions and 1,330 deletions.
18 changes: 14 additions & 4 deletions CHANGELOG.md
Expand Up @@ -5,18 +5,27 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

- Always encode + in query strings
(Please put changes here)

## [0.44.0] - 2020-06-01

- Add support for af-south-1, Africa (Cape Town), and eu-south-1, Europe (Milan)
- Update to botocore 1.16.14
- Fix `Time::now()` and `OffsetDateTime::now()` deprecation warnings
- Fix minimum version of `time` crate
- Always encode `+` in query strings
- Added a Cognito credential provider
- Add `MultipleMockRequestDispatcher` to permit mocking multiple requests using the same client
- Fix `rusoto_sts::WebIdentityProvider::from_k8s_env` always requiring `AWS_ROLE_SESSION_NAME` env var which should be optional
- Added support to optionally define a session policy when using `rusoto_sts::WebIdentityProvider`
- Omit generating XML-deseralization code for actions without a response body
- Fix OffsetDateTime::now() deprecation warning
- Add `region_from_profile()` function to ProfileProvider
- Fix applying `Content-Encoding`
- Added `new_with_size()` function to ByteStream
- Add defualt help text to Makefile

## [0.43.0] - 2020-03-15

- Fix `Time::now()` deprecation warning
- Fix minimum version of hyper
- Fix `PrimitiveDateTime` deprecation error
- Update to dirs 2.0
Expand Down Expand Up @@ -361,7 +370,8 @@ such as an S3 key returned in `list_objects_v2`
- Type aliases removed. Example: we no longer use `BucketName` which was an alias for `String`.
- travis-cargo from TravisCI builds

[Unreleased]: https://github.com/rusoto/rusoto/compare/rusoto-v0.43.0...HEAD
[Unreleased]: https://github.com/rusoto/rusoto/compare/rusoto-v0.44.0...HEAD
[0.44.0]: https://github.com/rusoto/rusoto/compare/rusoto-v0.43.0...rusoto-v0.44.0
[0.43.0]: https://github.com/rusoto/rusoto/compare/rusoto-v0.43.0-beta.1...rusoto-v0.43.0
[0.43.0-beta.1]: https://github.com/rusoto/rusoto/compare/rusoto-v0.42.0...rusoto-v0.43.0-beta.1
[0.42.0]: https://github.com/rusoto/rusoto/compare/credentials-v0.41.1...rusoto-v0.42.0
Expand Down
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -45,9 +45,9 @@ For example, to include only S3 and SQS:

```toml
[dependencies]
rusoto_core = "0.43.0"
rusoto_sqs = "0.43.0"
rusoto_s3 = "0.43.0"
rusoto_core = "0.44.0"
rusoto_sqs = "0.44.0"
rusoto_s3 = "0.44.0"
```

## Migration notes
Expand Down
2 changes: 1 addition & 1 deletion helpers/Cargo.toml
Expand Up @@ -4,7 +4,7 @@ license = "MIT"
name = "rusoto_helpers"
readme = "README.md"
repository = "https://github.com/rusoto/rusoto_helpers"
version = "0.43.0"
version = "0.44.0"
edition = "2018"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "rusoto_tests"
description = "AWS SDK for Rust - Integration Tests"
version = "0.43.0"
version = "0.44.0"
authors = [
"Anthony DiMarco <ocramida@gmail.com>",
"Jimmy Cuadra <jimmy@jimmycuadra.com>",
Expand Down
8 changes: 4 additions & 4 deletions integration_tests/tests/elastictranscoder.rs
Expand Up @@ -42,7 +42,7 @@ impl TestEtsClient {
}

async fn create_bucket(&mut self, s3_client: &S3Client) -> String {
let bucket_name = generate_unique_name("ets-bucket-1").await;
let bucket_name = generate_unique_name("ets-bucket-1");

let create_bucket_req = CreateBucketRequest {
bucket: bucket_name.to_owned(),
Expand Down Expand Up @@ -95,7 +95,7 @@ async fn create_client() -> TestEtsClient {
/// Generates a random name for an AWS service by appending a random sequence of
/// ASCII characters to the specified prefix.
/// Keeps it lower case to work with S3 requirements as of 3/1/2018.
async fn generate_unique_name(prefix: &str) -> String {
fn generate_unique_name(prefix: &str) -> String {
let mut rng = rand::thread_rng();
format!(
"{}-{}",
Expand Down Expand Up @@ -141,7 +141,7 @@ async fn create_preset() {

let client = create_client().await;

let name = generate_unique_name("ets-preset-1").await;
let name = generate_unique_name("ets-preset-1");
let request = CreatePresetRequest {
audio: Some(AudioParameters {
channels: Some("2".to_owned()),
Expand Down Expand Up @@ -210,7 +210,7 @@ async fn delete_preset() {
}),
container: "flac".to_owned(),
description: Some("This is an example FLAC preset".to_owned()),
name: name.await.clone(),
name: name.clone(),
..CreatePresetRequest::default()
};
let response = client.create_preset(request).await.unwrap();
Expand Down
32 changes: 23 additions & 9 deletions integration_tests/tests/s3.rs
Expand Up @@ -7,6 +7,8 @@ use std::str;
use std::time::Duration;

use bytes::Bytes;
use rand::distributions::Alphanumeric;
use rand::Rng;
use time::OffsetDateTime;
use tokio::fs;
use tokio::io::AsyncReadExt;
Expand All @@ -24,6 +26,18 @@ use rusoto_s3::{
StreamingBody, UploadPartCopyRequest, UploadPartRequest, S3,
};

fn generate_unique_name() -> String {
let mut rng = rand::thread_rng();
format!(
"test-{}",
std::iter::repeat(())
.map(|()| rng.sample(Alphanumeric))
.take(20)
.collect::<String>()
)
.to_lowercase()
}

struct TestS3Client {
region: Region,
s3: S3Client,
Expand Down Expand Up @@ -154,7 +168,7 @@ fn init_logging() {
async fn test_bucket_creation_deletion() {
init_logging();

let bucket_name = format!("s3-test-bucket-{}", OffsetDateTime::now().second());
let bucket_name = generate_unique_name();
let mut test_client = TestS3Client::new(bucket_name.clone());

let create_bucket_req = CreateBucketRequest {
Expand Down Expand Up @@ -203,7 +217,7 @@ async fn test_bucket_creation_deletion() {
async fn test_puts_gets_deletes() {
init_logging();

let bucket_name = format!("test-bucket-{}-{}", "default".to_owned(), OffsetDateTime::now().second());
let bucket_name = generate_unique_name();
let test_client = TestS3Client::new(bucket_name.clone());
test_client.create_test_bucket_with_acl(bucket_name.clone(), Some("public-read".to_owned())).await;

Expand Down Expand Up @@ -288,7 +302,7 @@ async fn test_puts_gets_deletes() {
async fn test_puts_gets_deletes_utf8() {
init_logging();

let bucket_name = format!("test-bucket-{}-{}", "utf-8".to_owned(), OffsetDateTime::now().second());
let bucket_name = generate_unique_name();
let test_client = TestS3Client::new(bucket_name.clone());
test_client.create_test_bucket(bucket_name.clone()).await;

Expand All @@ -312,7 +326,7 @@ async fn test_puts_gets_deletes_utf8() {
async fn test_puts_gets_deletes_binary() {
init_logging();

let bucket_name = format!("test-bucket-{}-{}", "binary".to_owned(), OffsetDateTime::now().second());
let bucket_name = generate_unique_name();
let test_client = TestS3Client::new(bucket_name.clone());
test_client.create_test_bucket(bucket_name.clone()).await;

Expand All @@ -337,7 +351,7 @@ async fn test_puts_gets_deletes_binary() {
async fn test_puts_gets_deletes_metadata() {
init_logging();

let bucket_name = format!("test-bucket-{}-{}", "metadata".to_owned(), OffsetDateTime::now().second());
let bucket_name = generate_unique_name();
let test_client = TestS3Client::new(bucket_name.clone());
test_client.create_test_bucket(bucket_name.clone()).await;

Expand Down Expand Up @@ -383,7 +397,7 @@ async fn test_puts_gets_deletes_metadata() {
async fn test_puts_gets_deletes_presigned_url() {
init_logging();

let bucket_name = format!("test-bucket-{}-{}", "presigned".to_owned(), OffsetDateTime::now().second());
let bucket_name = generate_unique_name();
let test_client = TestS3Client::new(bucket_name.clone());
test_client.create_test_bucket(bucket_name.clone()).await;

Expand Down Expand Up @@ -469,7 +483,7 @@ async fn test_puts_gets_deletes_presigned_url() {
async fn test_multipart_stream_uploads() {
init_logging();

let bucket_name = format!("test-bucket-{}-{}", "multipart".to_owned(), OffsetDateTime::now().second());
let bucket_name = generate_unique_name();
let test_client = TestS3Client::new(bucket_name.clone());
test_client.create_test_bucket(bucket_name.clone()).await;

Expand Down Expand Up @@ -517,7 +531,7 @@ async fn test_multipart_stream_uploads() {
async fn test_list_objects_encoding() {
init_logging();

let bucket_name = format!("test-bucket-{}-{}", "encoding".to_owned(), OffsetDateTime::now().second());
let bucket_name = generate_unique_name();
let test_client = TestS3Client::new(bucket_name.clone());
test_client.create_test_bucket(bucket_name.clone()).await;

Expand Down Expand Up @@ -594,7 +608,7 @@ async fn test_list_objects_encoding() {
async fn test_name_space_truncate() {
init_logging();

let bucket_name = format!("test-name-space-{}", OffsetDateTime::now().second());
let bucket_name = generate_unique_name();
let test_client = TestS3Client::new(bucket_name.clone());

test_client.create_test_bucket(bucket_name.clone()).await;
Expand Down
4 changes: 2 additions & 2 deletions mock/Cargo.toml
Expand Up @@ -11,7 +11,7 @@ keywords = ["AWS", "Amazon", "mock", "testing"]
license = "MIT"
name = "rusoto_mock"
repository = "https://github.com/rusoto/rusoto"
version = "0.43.0"
version = "0.44.0"
homepage = "https://www.rusoto.org/"
categories = [
"development-tools::testing"
Expand All @@ -32,7 +32,7 @@ serde_json = "1.0"

[dependencies.rusoto_core]
path = "../rusoto/core"
version = "0.43.0"
version = "0.44.0"
default_features = false

[features]
Expand Down
6 changes: 3 additions & 3 deletions rusoto/core/Cargo.toml
Expand Up @@ -13,7 +13,7 @@ license = "MIT"
name = "rusoto_core"
readme = "README.md"
repository = "https://github.com/rusoto/rusoto"
version = "0.43.0"
version = "0.44.0"
homepage = "https://www.rusoto.org/"
exclude = ["test_resources/*"]
edition = "2018"
Expand Down Expand Up @@ -49,11 +49,11 @@ flate2 = { version = "1.0", optional = true }

[dependencies.rusoto_credential]
path = "../credential"
version = "0.43.0"
version = "0.44.0"

[dependencies.rusoto_signature]
path = "../signature"
version = "0.43.0"
version = "0.44.0"

[dev-dependencies]
tokio = { version = "0.2", features = ["macros"] }
Expand Down
14 changes: 7 additions & 7 deletions rusoto/core/README.md
Expand Up @@ -38,16 +38,16 @@ For example, to include only S3 and SQS:

``` toml
[dependencies]
rusoto_core = "0.43.0"
rusoto_sqs = "0.43.0"
rusoto_s3 = "0.43.0"
rusoto_core = "0.44.0"
rusoto_sqs = "0.44.0"
rusoto_s3 = "0.44.0"
```

## Migration notes

Breaking changes and migration details are documented at [https://rusoto.org/migrations.html](https://rusoto.org/migrations.html).

Note that from v0.43.0 onward, Rusoto uses Rust's `std::future::Future`, and the Tokio 0.2 ecosystem.
Note that from v0.44.0 onward, Rusoto uses Rust's `std::future::Future`, and the Tokio 0.2 ecosystem.

## Usage

Expand Down Expand Up @@ -91,9 +91,9 @@ If you do not want to use OpenSSL, you can replace it with rustls by editing you

``` toml
[dependencies]
rusoto_core = { version="0.43.0", default_features=false, features=["rustls"] }
rusoto_sqs = { version="0.43.0", default_features=false, features=["rustls"] }
rusoto_s3 = { version="0.43.0", default_features=false, features=["rustls"] }
rusoto_core = { version="0.44.0", default_features=false, features=["rustls"] }
rusoto_sqs = { version="0.44.0", default_features=false, features=["rustls"] }
rusoto_s3 = { version="0.44.0", default_features=false, features=["rustls"] }
```

### Credentials
Expand Down
2 changes: 1 addition & 1 deletion rusoto/credential/Cargo.toml
Expand Up @@ -11,7 +11,7 @@ documentation = "https://docs.rs/rusoto_credential"
name = "rusoto_credential"
readme = "README.md"
repository = "https://github.com/rusoto/rusoto"
version = "0.43.0"
version = "0.44.0"
exclude = ["tests/sample-data/*"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion rusoto/credential_service_mock/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "credential_service_mock"
version = "0.43.0"
version = "0.44.0"
authors = ["Matthew Mayer <matthewkmayer@gmail.com>"]
edition = "2018"

Expand Down
6 changes: 3 additions & 3 deletions rusoto/services/accessanalyzer/Cargo.toml
Expand Up @@ -7,7 +7,7 @@ license = "MIT"
name = "rusoto_accessanalyzer"
readme = "README.md"
repository = "https://github.com/rusoto/rusoto"
version = "0.43.0"
version = "0.44.0"
homepage = "https://www.rusoto.org/"
edition = "2018"
exclude = ["test_resources/*"]
Expand All @@ -27,15 +27,15 @@ serde_json = "1.0"
version = "0.3"

[dependencies.rusoto_core]
version = "0.43.0"
version = "0.44.0"
path = "../../core"
default-features = false

[dev-dependencies]
tokio = "0.2"

[dev-dependencies.rusoto_mock]
version = "0.43.0"
version = "0.44.0"
path = "../../../mock"
default-features = false

Expand Down
2 changes: 1 addition & 1 deletion rusoto/services/accessanalyzer/README.md
Expand Up @@ -23,7 +23,7 @@ To use `rusoto_accessanalyzer` in your application, add it as a dependency in yo

```toml
[dependencies]
rusoto_accessanalyzer = "0.43.0"
rusoto_accessanalyzer = "0.44.0"
```

## Crate Features
Expand Down
6 changes: 3 additions & 3 deletions rusoto/services/acm-pca/Cargo.toml
Expand Up @@ -7,7 +7,7 @@ license = "MIT"
name = "rusoto_acm_pca"
readme = "README.md"
repository = "https://github.com/rusoto/rusoto"
version = "0.43.0"
version = "0.44.0"
homepage = "https://www.rusoto.org/"
edition = "2018"
exclude = ["test_resources/*"]
Expand All @@ -25,7 +25,7 @@ serde_json = "1.0"
version = "0.3"

[dependencies.rusoto_core]
version = "0.43.0"
version = "0.44.0"
path = "../../core"
default-features = false

Expand All @@ -37,7 +37,7 @@ features = ["derive"]
tokio = "0.2"

[dev-dependencies.rusoto_mock]
version = "0.43.0"
version = "0.44.0"
path = "../../../mock"
default-features = false

Expand Down
2 changes: 1 addition & 1 deletion rusoto/services/acm-pca/README.md
Expand Up @@ -23,7 +23,7 @@ To use `rusoto_acm_pca` in your application, add it as a dependency in your `Car

```toml
[dependencies]
rusoto_acm_pca = "0.43.0"
rusoto_acm_pca = "0.44.0"
```

## Crate Features
Expand Down

0 comments on commit 69e7c91

Please sign in to comment.