You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "tustvold (via GitHub)" <gi...@apache.org> on 2026/06/02 09:28:39 UTC
Re: [PR] feat(gcp): support explicit bearer token config in parse flow [arrow-rs-object-store]
tustvold commented on code in PR #717:
URL: https://github.com/apache/arrow-rs-object-store/pull/717#discussion_r3340112840
##########
src/gcp/builder.rs:
##########
@@ -714,6 +744,17 @@ mod tests {
GoogleCloudStorageBuilder::new().with_config(alias.parse().unwrap(), "fake_bucket");
assert_eq!("fake_bucket", builder.bucket_name.unwrap());
}
+
+ for alias in ["google_bearer_token", "bearer_token"] {
+ let gcs = GoogleCloudStorageBuilder::new()
+ .with_config(alias.parse().unwrap(), "test-token")
+ .with_bucket_name("fake_bucket")
+ .build()
+ .unwrap();
+
+ let credential = block_on(gcs.credentials().get_credential()).unwrap();
Review Comment:
Could we use tokio::test here instead?
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org