From 6e8046bec7013abfdbf179ce46beaa0741ed94be Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Wed, 27 Mar 2024 18:29:08 +0100 Subject: [PATCH] feat(tvix/castore/*service/tests): add objectstore to tests, sort Change-Id: If3a45d2f8008b75524ead704b05320364cc60d92 Reviewed-on: https://cl.tvl.fyi/c/depot/+/11282 Autosubmit: flokli Reviewed-by: Connor Brewster Tested-by: BuildkiteCI --- tvix/castore/src/blobservice/tests/mod.rs | 3 ++- tvix/castore/src/directoryservice/tests/mod.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tvix/castore/src/blobservice/tests/mod.rs b/tvix/castore/src/blobservice/tests/mod.rs index b1ae66bac..30c4e9763 100644 --- a/tvix/castore/src/blobservice/tests/mod.rs +++ b/tvix/castore/src/blobservice/tests/mod.rs @@ -22,8 +22,9 @@ use self::utils::make_grpc_blob_service_client; /// See https://github.com/la10736/rstest/issues/130#issuecomment-968864832 #[template] #[rstest] -#[case::memory(blobservice::from_addr("memory://").await.unwrap())] #[case::grpc(make_grpc_blob_service_client().await)] +#[case::memory(blobservice::from_addr("memory://").await.unwrap())] +#[case::objectstore_memory(blobservice::from_addr("objectstore+memory://").await.unwrap())] #[case::sled(blobservice::from_addr("sled://").await.unwrap())] pub fn blob_services(#[case] blob_service: impl BlobService) {} diff --git a/tvix/castore/src/directoryservice/tests/mod.rs b/tvix/castore/src/directoryservice/tests/mod.rs index 96ea2c27a..23650069b 100644 --- a/tvix/castore/src/directoryservice/tests/mod.rs +++ b/tvix/castore/src/directoryservice/tests/mod.rs @@ -23,8 +23,8 @@ use self::utils::make_grpc_directory_service_client; /// See https://github.com/la10736/rstest/issues/130#issuecomment-968864832 #[template] #[rstest] -#[case::memory(directoryservice::from_addr("memory://").await.unwrap())] #[case::grpc(make_grpc_directory_service_client().await)] +#[case::memory(directoryservice::from_addr("memory://").await.unwrap())] #[case::sled(directoryservice::from_addr("sled://").await.unwrap())] pub fn directory_services(#[case] directory_service: impl DirectoryService) {}