summaryrefslogtreecommitdiff
path: root/test/buildtool/file_system/object_cas.test.cpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-07-02 13:21:14 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-07-05 13:32:39 +0200
commitd202e8f6051df5eb89d0f2eb1b9ac7109d204f56 (patch)
tree562d90c0a5396a259d11c4288162403489a6e4fd /test/buildtool/file_system/object_cas.test.cpp
parent5140befaa10f65145fe041b416b7764127efc379 (diff)
downloadjustbuild-d202e8f6051df5eb89d0f2eb1b9ac7109d204f56.tar.gz
Remove HermeticLocalTestFixture
...and create StorageConfig and Storage in place if needed.
Diffstat (limited to 'test/buildtool/file_system/object_cas.test.cpp')
-rw-r--r--test/buildtool/file_system/object_cas.test.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/buildtool/file_system/object_cas.test.cpp b/test/buildtool/file_system/object_cas.test.cpp
index 2fc0a405..be9ba709 100644
--- a/test/buildtool/file_system/object_cas.test.cpp
+++ b/test/buildtool/file_system/object_cas.test.cpp
@@ -23,14 +23,15 @@
#include "src/buildtool/file_system/object_cas.hpp"
#include "src/buildtool/file_system/object_type.hpp"
#include "src/buildtool/storage/config.hpp"
-#include "test/utils/hermeticity/local.hpp"
+#include "test/utils/hermeticity/test_storage_config.hpp"
+
+TEST_CASE("ObjectCAS", "[file_system]") {
+ auto const storage_config = TestStorageConfig::Create();
+ auto gen_config = storage_config.Get().CreateGenerationConfig(0);
-TEST_CASE_METHOD(HermeticLocalTestFixture, "ObjectCAS", "[file_system]") {
std::string test_content{"test"};
auto test_digest = ArtifactDigest::Create<ObjectType::File>(test_content);
- auto gen_config = StorageConfig::Instance().CreateGenerationConfig(0);
-
SECTION("CAS for files") {
ObjectCAS<ObjectType::File> cas{gen_config.cas_f};
CHECK(not cas.BlobPath(test_digest));