timvw commented on PR #2891:
URL: https://github.com/apache/arrow-rs/pull/2891#issuecomment-1288116861
Works for me (tested on commit (2079a67c5))
cargo test --package object_store --features aws_profile --lib
aws::tests::s3_with_sso_profile -- --exact
```rust
#[tokio::test]
async fn s3_with_sso_profile() -> Result<()>{
env::set_var("AWS_PROFILE", "XXX");
let s3 = AmazonS3Builder::from_env()
.with_bucket_name("YYY")
.build()?;
let path = Path::parse("ZZZ")?;
let files =
s3.list(Some(&path))
.await?
.try_collect::<Vec<ObjectMeta>>()
.await?;
assert!(files.len() > 0);
Ok(())
}
`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]