summaryrefslogtreecommitdiff
path: root/test/buildtool/execution_engine/executor/executor.test.cpp
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-07-01 14:56:32 +0200
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-07-04 16:05:08 +0200
commit9ab21a7f3d7e349b05ceaad5862d7e72a6d7e7b4 (patch)
tree269b95c86875d9bd4fe16e117aa9ba75b6c60304 /test/buildtool/execution_engine/executor/executor.test.cpp
parent0cbc8e226b39ec731373b80024e23cc0580c27ac (diff)
downloadjustbuild-9ab21a7f3d7e349b05ceaad5862d7e72a6d7e7b4.tar.gz
Pass Auth::TLS instance to BazelApi and ServeApi
Diffstat (limited to 'test/buildtool/execution_engine/executor/executor.test.cpp')
-rw-r--r--test/buildtool/execution_engine/executor/executor.test.cpp90
1 files changed, 72 insertions, 18 deletions
diff --git a/test/buildtool/execution_engine/executor/executor.test.cpp b/test/buildtool/execution_engine/executor/executor.test.cpp
index f063ffe4..a55c398d 100644
--- a/test/buildtool/execution_engine/executor/executor.test.cpp
+++ b/test/buildtool/execution_engine/executor/executor.test.cpp
@@ -280,8 +280,14 @@ TEST_CASE("Executor: Process artifact", "[executor]") {
auto api = TestApi::Ptr{new TestApi{config}};
Statistics stats{};
Progress progress{};
- Executor runner{
- &repo_config, api.get(), api.get(), {}, {}, &stats, &progress};
+ Executor runner{&repo_config,
+ api.get(),
+ api.get(),
+ /*properties=*/{},
+ /*dispatch_list=*/{},
+ /*auth=*/nullptr,
+ &stats,
+ &progress};
CHECK(runner.Process(g.ArtifactNodeWithId(local_cpp_id)));
CHECK(runner.Process(g.ArtifactNodeWithId(known_cpp_id)));
@@ -293,8 +299,14 @@ TEST_CASE("Executor: Process artifact", "[executor]") {
auto api = TestApi::Ptr{new TestApi{config}};
Statistics stats{};
Progress progress{};
- Executor runner{
- &repo_config, api.get(), api.get(), {}, {}, &stats, &progress};
+ Executor runner{&repo_config,
+ api.get(),
+ api.get(),
+ /*properties=*/{},
+ /*dispatch_list=*/{},
+ /*auth=*/nullptr,
+ &stats,
+ &progress};
CHECK(not runner.Process(g.ArtifactNodeWithId(local_cpp_id)));
CHECK(runner.Process(g.ArtifactNodeWithId(known_cpp_id)));
@@ -306,8 +318,14 @@ TEST_CASE("Executor: Process artifact", "[executor]") {
auto api = TestApi::Ptr{new TestApi{config}};
Statistics stats{};
Progress progress{};
- Executor runner{
- &repo_config, api.get(), api.get(), {}, {}, &stats, &progress};
+ Executor runner{&repo_config,
+ api.get(),
+ api.get(),
+ /*properties=*/{},
+ /*dispatch_list=*/{},
+ /*auth=*/nullptr,
+ &stats,
+ &progress};
CHECK(runner.Process(g.ArtifactNodeWithId(local_cpp_id)));
CHECK(not runner.Process(g.ArtifactNodeWithId(known_cpp_id)));
@@ -342,8 +360,14 @@ TEST_CASE("Executor: Process action", "[executor]") {
auto api = TestApi::Ptr{new TestApi{config}};
Statistics stats{};
Progress progress{};
- Executor runner{
- &repo_config, api.get(), api.get(), {}, {}, &stats, &progress};
+ Executor runner{&repo_config,
+ api.get(),
+ api.get(),
+ /*properties=*/{},
+ /*dispatch_list=*/{},
+ /*auth=*/nullptr,
+ &stats,
+ &progress};
CHECK(runner.Process(g.ArtifactNodeWithId(local_cpp_id)));
CHECK(runner.Process(g.ArtifactNodeWithId(known_cpp_id)));
@@ -358,8 +382,14 @@ TEST_CASE("Executor: Process action", "[executor]") {
auto api = TestApi::Ptr{new TestApi{config}};
Statistics stats{};
Progress progress{};
- Executor runner{
- &repo_config, api.get(), api.get(), {}, {}, &stats, &progress};
+ Executor runner{&repo_config,
+ api.get(),
+ api.get(),
+ /*properties=*/{},
+ /*dispatch_list=*/{},
+ /*auth=*/nullptr,
+ &stats,
+ &progress};
CHECK(runner.Process(g.ArtifactNodeWithId(local_cpp_id)));
CHECK(runner.Process(g.ArtifactNodeWithId(known_cpp_id)));
@@ -374,8 +404,14 @@ TEST_CASE("Executor: Process action", "[executor]") {
auto api = TestApi::Ptr{new TestApi{config}};
Statistics stats{};
Progress progress{};
- Executor runner{
- &repo_config, api.get(), api.get(), {}, {}, &stats, &progress};
+ Executor runner{&repo_config,
+ api.get(),
+ api.get(),
+ /*properties=*/{},
+ /*dispatch_list=*/{},
+ /*auth=*/nullptr,
+ &stats,
+ &progress};
CHECK(runner.Process(g.ArtifactNodeWithId(local_cpp_id)));
CHECK(runner.Process(g.ArtifactNodeWithId(known_cpp_id)));
@@ -393,8 +429,14 @@ TEST_CASE("Executor: Process action", "[executor]") {
auto api = TestApi::Ptr{new TestApi{config}};
Statistics stats{};
Progress progress{};
- Executor runner{
- &repo_config, api.get(), api.get(), {}, {}, &stats, &progress};
+ Executor runner{&repo_config,
+ api.get(),
+ api.get(),
+ /*properties=*/{},
+ /*dispatch_list=*/{},
+ /*auth=*/nullptr,
+ &stats,
+ &progress};
CHECK(runner.Process(g.ArtifactNodeWithId(local_cpp_id)));
CHECK(runner.Process(g.ArtifactNodeWithId(known_cpp_id)));
@@ -409,8 +451,14 @@ TEST_CASE("Executor: Process action", "[executor]") {
auto api = TestApi::Ptr{new TestApi{config}};
Statistics stats{};
Progress progress{};
- Executor runner{
- &repo_config, api.get(), api.get(), {}, {}, &stats, &progress};
+ Executor runner{&repo_config,
+ api.get(),
+ api.get(),
+ /*properties=*/{},
+ /*dispatch_list=*/{},
+ /*auth=*/nullptr,
+ &stats,
+ &progress};
CHECK(runner.Process(g.ArtifactNodeWithId(local_cpp_id)));
CHECK(runner.Process(g.ArtifactNodeWithId(known_cpp_id)));
@@ -428,8 +476,14 @@ TEST_CASE("Executor: Process action", "[executor]") {
auto api = TestApi::Ptr{new TestApi{config}};
Statistics stats{};
Progress progress{};
- Executor runner{
- &repo_config, api.get(), api.get(), {}, {}, &stats, &progress};
+ Executor runner{&repo_config,
+ api.get(),
+ api.get(),
+ /*properties=*/{},
+ /*dispatch_list=*/{},
+ /*auth=*/nullptr,
+ &stats,
+ &progress};
CHECK(runner.Process(g.ArtifactNodeWithId(local_cpp_id)));
CHECK(runner.Process(g.ArtifactNodeWithId(known_cpp_id)));