diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2025-02-10 10:56:56 +0100 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2025-02-10 17:59:50 +0100 |
commit | e0833fcedfdb7233047615650900ef2f285a80eb (patch) | |
tree | 1b247ae35232354090448568544058f2980c8edf /test/buildtool/execution_api/bazel/bazel_cas_client.test.cpp | |
parent | 191ae1e197ca5ba4e55875dd9d54e2171f232c32 (diff) | |
download | justbuild-e0833fcedfdb7233047615650900ef2f285a80eb.tar.gz |
Store BazelCapabilitiesClient in BazelNetwork
...and pass it to BazelCasClient
Diffstat (limited to 'test/buildtool/execution_api/bazel/bazel_cas_client.test.cpp')
-rw-r--r-- | test/buildtool/execution_api/bazel/bazel_cas_client.test.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/buildtool/execution_api/bazel/bazel_cas_client.test.cpp b/test/buildtool/execution_api/bazel/bazel_cas_client.test.cpp index 2ec2a45f..cb2132b4 100644 --- a/test/buildtool/execution_api/bazel/bazel_cas_client.test.cpp +++ b/test/buildtool/execution_api/bazel/bazel_cas_client.test.cpp @@ -28,6 +28,7 @@ #include "src/buildtool/common/remote/retry_config.hpp" #include "src/buildtool/crypto/hash_function.hpp" #include "src/buildtool/execution_api/common/artifact_blob.hpp" +#include "src/buildtool/execution_api/remote/bazel/bazel_capabilities_client.hpp" #include "src/buildtool/execution_api/remote/config.hpp" #include "src/buildtool/file_system/object_type.hpp" #include "test/utils/hermeticity/test_hash_function_type.hpp" @@ -46,10 +47,15 @@ TEST_CASE("Bazel internals: CAS Client", "[execution_api]") { REQUIRE(remote_config); REQUIRE(remote_config->remote_address); RetryConfig retry_config{}; // default retry config + BazelCapabilitiesClient capabilities(remote_config->remote_address->host, + remote_config->remote_address->port, + &*auth_config, + &retry_config); BazelCasClient cas_client(remote_config->remote_address->host, remote_config->remote_address->port, &*auth_config, - &retry_config); + &retry_config, + &capabilities); SECTION("Valid digest and blob") { // digest of "test" |