Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,6 @@ jobs:
- name: Build the tested production image
run: |
version=$(sed -n 's/^version = "\(.*\)"$/\1/p' crates/celld/Cargo.toml | head -1)
docker build --build-arg CELLD_COMMIT="$GITHUB_SHA" --build-arg CELLD_VERSION="$version" .
docker build --tag celld-ci --build-arg CELLD_COMMIT="$GITHUB_SHA" --build-arg CELLD_VERSION="$version" .
- name: Test cell disaster recovery against MinIO
run: ./scripts/cell-archive-minio.sh
12 changes: 12 additions & 0 deletions crates/celld/bucket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,18 @@ fn split_spec(spec: &str) -> (StorageBackend, &str, String) {
}

impl Bucket {
#[cfg(test)]
pub(crate) fn memory_for_test() -> Bucket {
let store: Arc<dyn ObjectStore> = Arc::new(object_store::memory::InMemory::new());
Bucket {
store: store.clone(),
cas_store: store,
backend: StorageBackend::S3,
name: "memory".to_string(),
prefix: String::new(),
}
}

/// `bucket` is `[s3://|gs://]NAME[/PREFIX]`. With a PREFIX every key
/// this client reads or writes lives under `PREFIX/`, so several
/// fleets can share one bucket without colliding.
Expand Down
Loading