diff options
Diffstat (limited to 'test')
4 files changed, 22 insertions, 0 deletions
diff --git a/test/buildtool/build_engine/target_map/TARGETS b/test/buildtool/build_engine/target_map/TARGETS index 953f9ea6..3bbc42c3 100644 --- a/test/buildtool/build_engine/target_map/TARGETS +++ b/test/buildtool/build_engine/target_map/TARGETS @@ -31,6 +31,7 @@ , ["@", "src", "src/buildtool/build_engine/base_maps", "targets_file_map"] , ["@", "src", "src/buildtool/build_engine/target_map", "target_map"] , ["@", "src", "src/buildtool/common", "common"] + , ["@", "src", "src/buildtool/common/remote", "retry_config"] , ["@", "src", "src/buildtool/execution_api/local", "config"] , ["@", "src", "src/buildtool/execution_api/remote", "config"] , ["@", "src", "src/buildtool/file_system", "file_root"] diff --git a/test/buildtool/build_engine/target_map/target_map.test.cpp b/test/buildtool/build_engine/target_map/target_map.test.cpp index 4d7cef75..48424bc5 100644 --- a/test/buildtool/build_engine/target_map/target_map.test.cpp +++ b/test/buildtool/build_engine/target_map/target_map.test.cpp @@ -26,6 +26,7 @@ #include "src/buildtool/build_engine/base_maps/targets_file_map.hpp" #include "src/buildtool/build_engine/expression/expression.hpp" #include "src/buildtool/build_engine/target_map/target_map.hpp" +#include "src/buildtool/common/remote/retry_config.hpp" #include "src/buildtool/common/repository_config.hpp" #include "src/buildtool/common/statistics.hpp" #include "src/buildtool/execution_api/common/api_bundle.hpp" @@ -114,6 +115,7 @@ TEST_CASE("simple targets", "[target_map]") { &local_exec_config, /*repo_config=*/nullptr, &auth, + &RetryConfig::Instance(), &remote_exec_config}; auto serve = ServeApi::Create(*serve_config, &storage, &apis); AnalyseContext ctx{.repo_config = &repo_config, @@ -566,6 +568,7 @@ TEST_CASE("configuration deduplication", "[target_map]") { &local_exec_config, /*repo_config=*/nullptr, &auth, + &RetryConfig::Instance(), &remote_exec_config}; auto serve = ServeApi::Create(*serve_config, &storage, &apis); AnalyseContext ctx{.repo_config = &repo_config, @@ -663,6 +666,7 @@ TEST_CASE("generator functions in string arguments", "[target_map]") { &local_exec_config, /*repo_config=*/nullptr, &auth, + &RetryConfig::Instance(), &remote_exec_config}; auto serve = ServeApi::Create(*serve_config, &storage, &apis); AnalyseContext ctx{.repo_config = &repo_config, @@ -772,6 +776,7 @@ TEST_CASE("built-in rules", "[target_map]") { &local_exec_config, /*repo_config=*/nullptr, &auth, + &RetryConfig::Instance(), &remote_exec_config}; auto serve = ServeApi::Create(*serve_config, &storage, &apis); AnalyseContext ctx{.repo_config = &repo_config, @@ -991,6 +996,7 @@ TEST_CASE("target reference", "[target_map]") { &local_exec_config, /*repo_config=*/nullptr, &auth, + &RetryConfig::Instance(), &remote_exec_config}; auto serve = ServeApi::Create(*serve_config, &storage, &apis); AnalyseContext ctx{.repo_config = &repo_config, @@ -1143,6 +1149,7 @@ TEST_CASE("trees", "[target_map]") { &local_exec_config, /*repo_config=*/nullptr, &auth, + &RetryConfig::Instance(), &remote_exec_config}; auto serve = ServeApi::Create(*serve_config, &storage, &apis); AnalyseContext ctx{.repo_config = &repo_config, @@ -1259,6 +1266,7 @@ TEST_CASE("RESULT error reporting", "[target_map]") { &local_exec_config, /*repo_config=*/nullptr, &auth, + &RetryConfig::Instance(), &remote_exec_config}; auto serve = ServeApi::Create(*serve_config, &storage, &apis); AnalyseContext ctx{.repo_config = &repo_config, @@ -1434,6 +1442,7 @@ TEST_CASE("wrong arguments", "[target_map]") { &local_exec_config, /*repo_config=*/nullptr, &auth, + &RetryConfig::Instance(), &remote_exec_config}; auto serve = ServeApi::Create(*serve_config, &storage, &apis); AnalyseContext ctx{.repo_config = &repo_config, diff --git a/test/buildtool/graph_traverser/TARGETS b/test/buildtool/graph_traverser/TARGETS index 23a2814f..4b1a531f 100644 --- a/test/buildtool/graph_traverser/TARGETS +++ b/test/buildtool/graph_traverser/TARGETS @@ -7,6 +7,7 @@ , ["@", "json", "", "json"] , ["@", "src", "src/buildtool/auth", "auth"] , ["@", "src", "src/buildtool/common", "common"] + , ["@", "src", "src/buildtool/common/remote", "retry_config"] , ["@", "src", "src/buildtool/execution_api/local", "config"] , ["@", "src", "src/buildtool/execution_api/remote", "config"] , ["@", "src", "src/buildtool/file_system", "file_system_manager"] diff --git a/test/buildtool/graph_traverser/graph_traverser.test.hpp b/test/buildtool/graph_traverser/graph_traverser.test.hpp index b0187392..86be3110 100644 --- a/test/buildtool/graph_traverser/graph_traverser.test.hpp +++ b/test/buildtool/graph_traverser/graph_traverser.test.hpp @@ -29,6 +29,7 @@ #include "gsl/gsl" #include "nlohmann/json.hpp" #include "src/buildtool/auth/authentication.hpp" +#include "src/buildtool/common/remote/retry_config.hpp" #include "src/buildtool/common/statistics.hpp" #include "src/buildtool/execution_api/common/api_bundle.hpp" #include "src/buildtool/execution_api/local/config.hpp" @@ -174,6 +175,7 @@ class TestProject { &local_exec_config, p.GetRepoConfig(), auth, + &RetryConfig::Instance(), remote_config}; GraphTraverser const gt{clargs.gtargs, p.GetRepoConfig(), @@ -206,6 +208,7 @@ class TestProject { &local_exec_config, p.GetRepoConfig(), auth, + &RetryConfig::Instance(), remote_config}; GraphTraverser const gt_get_exec{clargs_exec.gtargs, p.GetRepoConfig(), @@ -250,6 +253,7 @@ class TestProject { &local_exec_config, p.GetRepoConfig(), auth, + &RetryConfig::Instance(), remote_config}; GraphTraverser const gt{clargs.gtargs, p.GetRepoConfig(), @@ -289,6 +293,7 @@ class TestProject { &local_exec_config, p.GetRepoConfig(), auth, + &RetryConfig::Instance(), remote_config}; GraphTraverser const gt{clargs.gtargs, p.GetRepoConfig(), @@ -348,6 +353,7 @@ class TestProject { &local_exec_config, full_hello_world.GetRepoConfig(), auth, + &RetryConfig::Instance(), remote_config}; GraphTraverser const gt_upload{clargs_update_cpp.gtargs, full_hello_world.GetRepoConfig(), @@ -413,6 +419,7 @@ static void TestBlobsUploadedAndUsed( &local_exec_config, p.GetRepoConfig(), auth, + &RetryConfig::Instance(), remote_config}; GraphTraverser gt{clargs.gtargs, p.GetRepoConfig(), @@ -460,6 +467,7 @@ static void TestEnvironmentVariablesSetAndUsed( &local_exec_config, p.GetRepoConfig(), auth, + &RetryConfig::Instance(), remote_config}; GraphTraverser gt{clargs.gtargs, p.GetRepoConfig(), @@ -507,6 +515,7 @@ static void TestTreesUsed( &local_exec_config, p.GetRepoConfig(), auth, + &RetryConfig::Instance(), remote_config}; GraphTraverser gt{clargs.gtargs, p.GetRepoConfig(), @@ -554,6 +563,7 @@ static void TestNestedTreesUsed( &local_exec_config, p.GetRepoConfig(), auth, + &RetryConfig::Instance(), remote_config}; GraphTraverser gt{clargs.gtargs, p.GetRepoConfig(), @@ -600,6 +610,7 @@ static void TestFlakyHelloWorldDetected( &local_exec_config, p.GetRepoConfig(), auth, + &RetryConfig::Instance(), remote_config}; { |