diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-09-02 10:50:48 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-09-09 13:07:13 +0200 |
commit | 7eafe5779703275d455558120efc754c2dcc3c01 (patch) | |
tree | e31168069ef2460f187652157fe3c03be698d9a8 /test/buildtool/execution_api/local/local_execution.test.cpp | |
parent | 50bcabb0717dae7c8411db59115c41b7cc636cb3 (diff) | |
download | justbuild-7eafe5779703275d455558120efc754c2dcc3c01.tar.gz |
Replace ArtifactDigest::Create
...with ArtifactDigestFactory::HashDataAs
Diffstat (limited to 'test/buildtool/execution_api/local/local_execution.test.cpp')
-rw-r--r-- | test/buildtool/execution_api/local/local_execution.test.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/buildtool/execution_api/local/local_execution.test.cpp b/test/buildtool/execution_api/local/local_execution.test.cpp index 49141076..120100de 100644 --- a/test/buildtool/execution_api/local/local_execution.test.cpp +++ b/test/buildtool/execution_api/local/local_execution.test.cpp @@ -20,6 +20,7 @@ #include "catch2/catch_test_macros.hpp" #include "src/buildtool/common/artifact_description.hpp" +#include "src/buildtool/common/artifact_digest_factory.hpp" #include "src/buildtool/common/repository_config.hpp" #include "src/buildtool/execution_api/local/config.hpp" #include "src/buildtool/execution_api/local/context.hpp" @@ -189,7 +190,7 @@ TEST_CASE("LocalExecution: No input, create output", "[execution_api]") { auto api = LocalApi(&local_context, &repo_config); std::string test_content("test"); - auto test_digest = ArtifactDigest::Create<ObjectType::File>( + auto test_digest = ArtifactDigestFactory::HashDataAs<ObjectType::File>( storage_config.Get().hash_function, test_content); std::string output_path{"output_file"}; @@ -254,7 +255,7 @@ TEST_CASE("LocalExecution: One input copied to output", "[execution_api]") { auto api = LocalApi(&local_context, &repo_config); std::string test_content("test"); - auto test_digest = ArtifactDigest::Create<ObjectType::File>( + auto test_digest = ArtifactDigestFactory::HashDataAs<ObjectType::File>( storage_config.Get().hash_function, test_content); REQUIRE(api.Upload(ArtifactBlobContainer{{ArtifactBlob{ test_digest, test_content, /*is_exec=*/false}}}, |