Skip to content

Commit

Permalink
chore: run object_store tests in CI (#5268)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgehermo9 authored Nov 1, 2024
1 parent b9e06bf commit 8e142c8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 20 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci_integration_object_store.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,7 @@ jobs:
- name: Cargo clippy
working-directory: integrations/object_store
run: cargo clippy --all-targets --all-features -- -D warnings

- name: Cargo test
working-directory: integrations/object_store
run: cargo test
15 changes: 5 additions & 10 deletions integrations/object_store/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,11 @@
//!
//! #[tokio::main]
//! async fn main() {
//! let builder = S3::from_map(
//! vec![
//! ("access_key".to_string(), "my_access_key".to_string()),
//! ("secret_key".to_string(), "my_secret_key".to_string()),
//! ("endpoint".to_string(), "my_endpoint".to_string()),
//! ("region".to_string(), "my_region".to_string()),
//! ]
//! .into_iter()
//! .collect(),
//! ).unwrap();
//! let builder = S3::default()
//! .access_key_id("my_access_key")
//! .secret_access_key("my_secret_key")
//! .endpoint("my_endpoint")
//! .region("my_region");
//!
//! // Create a new operator
//! let operator = Operator::new(builder).unwrap().finish();
Expand Down
15 changes: 5 additions & 10 deletions integrations/object_store/src/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,11 @@ use tokio::sync::{Mutex, Notify};
///
/// #[tokio::main]
/// async fn main() {
/// let builder = S3::from_map(
/// vec![
/// ("access_key".to_string(), "my_access_key".to_string()),
/// ("secret_key".to_string(), "my_secret_key".to_string()),
/// ("endpoint".to_string(), "my_endpoint".to_string()),
/// ("region".to_string(), "my_region".to_string()),
/// ]
/// .into_iter()
/// .collect(),
/// ).unwrap();
/// let builder = S3::default()
/// .access_key_id("my_access_key")
/// .secret_access_key("my_secret_key")
/// .endpoint("my_endpoint")
/// .region("my_region");
///
/// // Create a new operator
/// let operator = Operator::new(builder).unwrap().finish();
Expand Down

0 comments on commit 8e142c8

Please sign in to comment.