testing/btest/*zeek: Comment all @TEST lines

This commit is contained in:
Arne Welzel 2025-04-17 15:32:11 +02:00
parent 2f0be32f5f
commit 85b8c8866b
311 changed files with 1272 additions and 1272 deletions

View file

@ -12,13 +12,13 @@
@load policy/frameworks/cluster/experimental
@TEST-START-FILE cluster-layout.zeek
# @TEST-START-FILE cluster-layout.zeek
redef Cluster::nodes = {
["manager-1"] = [$node_type=Cluster::MANAGER, $ip=127.0.0.1, $p=to_port(getenv("BROKER_PORT1"))],
["proxy-1"] = [$node_type=Cluster::PROXY, $ip=127.0.0.1, $p=to_port(getenv("BROKER_PORT2")), $manager="manager-1"],
["proxy-2"] = [$node_type=Cluster::PROXY, $ip=127.0.0.1, $p=to_port(getenv("BROKER_PORT3")), $manager="manager-1"],
};
@TEST-END-FILE
# @TEST-END-FILE
global my_pool_spec: Cluster::PoolSpec =
Cluster::PoolSpec(

View file

@ -12,13 +12,13 @@
@load policy/frameworks/cluster/experimental
@TEST-START-FILE cluster-layout.zeek
# @TEST-START-FILE cluster-layout.zeek
redef Cluster::nodes = {
["manager-1"] = [$node_type=Cluster::MANAGER, $ip=127.0.0.1, $p=to_port(getenv("BROKER_PORT1"))],
["proxy-1"] = [$node_type=Cluster::PROXY, $ip=127.0.0.1, $p=to_port(getenv("BROKER_PORT2")), $manager="manager-1"],
["proxy-2"] = [$node_type=Cluster::PROXY, $ip=127.0.0.1, $p=to_port(getenv("BROKER_PORT3")), $manager="manager-1"],
};
@TEST-END-FILE
# @TEST-END-FILE
global my_pool_spec: Cluster::PoolSpec =
Cluster::PoolSpec(

View file

@ -12,13 +12,13 @@
@load policy/frameworks/cluster/experimental
@TEST-START-FILE cluster-layout.zeek
# @TEST-START-FILE cluster-layout.zeek
redef Cluster::nodes = {
["manager-1"] = [$node_type=Cluster::MANAGER, $ip=127.0.0.1, $p=to_port(getenv("BROKER_PORT1"))],
["worker-1"] = [$node_type=Cluster::WORKER, $ip=127.0.0.1, $p=to_port(getenv("BROKER_PORT2")), $manager="manager-1"],
["worker-2"] = [$node_type=Cluster::WORKER, $ip=127.0.0.1, $p=to_port(getenv("BROKER_PORT3")), $manager="manager-1"],
};
@TEST-END-FILE
# @TEST-END-FILE
redef Broker::forward_messages = T;

View file

@ -25,12 +25,12 @@
# @TEST-EXEC: TEST_DIFF_CANONIFIER='sed -r "s/[0-9]{2}/XX/g"' btest-diff out
@TEST-START-FILE cluster-layout.zeek
# @TEST-START-FILE cluster-layout.zeek
redef Cluster::nodes = {
["logger-1"] = [$node_type=Cluster::LOGGER, $ip=127.0.0.1, $p=1234/tcp],
["logger-2"] = [$node_type=Cluster::LOGGER, $ip=127.0.0.1, $p=1235/tcp],
};
@TEST-END-FILE
# @TEST-END-FILE
# Switch settings into a supervisor/non-zeekctl setup
redef Log::default_rotation_dir = "log-queue";

View file

@ -16,7 +16,7 @@
@load policy/frameworks/cluster/experimental
@TEST-START-FILE cluster-layout.zeek
# @TEST-START-FILE cluster-layout.zeek
redef Cluster::manager_is_logger = F;
redef Cluster::nodes = {
@ -26,7 +26,7 @@ redef Cluster::nodes = {
["logger-10"] = [$node_type=Cluster::LOGGER, $ip=127.0.0.1, $p=to_port(getenv("BROKER_PORT4")), $manager="manager"]
};
@TEST-END-FILE
# @TEST-END-FILE
redef Log::default_rotation_interval = 0sec;

View file

@ -21,7 +21,7 @@
@load base/frameworks/cluster
@TEST-START-FILE cluster-layout.zeek
# @TEST-START-FILE cluster-layout.zeek
redef Cluster::manager_is_logger = F;
redef Cluster::nodes = {
["logger-1"] = [$node_type=Cluster::LOGGER, $ip=127.0.0.1, $p=to_port(getenv("BROKER_PORT1"))],
@ -31,7 +31,7 @@ redef Cluster::nodes = {
["worker-1"] = [$node_type=Cluster::WORKER, $ip=127.0.0.1, $p=to_port(getenv("BROKER_PORT5")), $manager="manager-1"],
["worker-2"] = [$node_type=Cluster::WORKER, $ip=127.0.0.1, $p=to_port(getenv("BROKER_PORT6")), $manager="manager-1"],
};
@TEST-END-FILE
# @TEST-END-FILE
global peer_count = 0;

View file

@ -18,7 +18,7 @@
@load base/frameworks/cluster
@TEST-START-FILE cluster-layout.zeek
# @TEST-START-FILE cluster-layout.zeek
redef Cluster::nodes = {
["manager-1"] = [$node_type=Cluster::MANAGER, $ip=127.0.0.1, $p=to_port(getenv("BROKER_PORT1"))],
["proxy-1"] = [$node_type=Cluster::PROXY, $ip=127.0.0.1, $p=to_port(getenv("BROKER_PORT2")), $manager="manager-1"],
@ -26,7 +26,7 @@ redef Cluster::nodes = {
["worker-1"] = [$node_type=Cluster::WORKER, $ip=127.0.0.1, $p=to_port(getenv("BROKER_PORT4")), $manager="manager-1"],
["worker-2"] = [$node_type=Cluster::WORKER, $ip=127.0.0.1, $p=to_port(getenv("BROKER_PORT5")), $manager="manager-1"],
};
@TEST-END-FILE
# @TEST-END-FILE
global peer_count = 0;

View file

@ -12,13 +12,13 @@
@load policy/frameworks/cluster/experimental
@TEST-START-FILE cluster-layout.zeek
# @TEST-START-FILE cluster-layout.zeek
redef Cluster::nodes = {
["manager-1"] = [$node_type=Cluster::MANAGER, $ip=127.0.0.1, $p=to_port(getenv("BROKER_PORT1"))],
["proxy-1"] = [$node_type=Cluster::PROXY, $ip=127.0.0.1, $p=to_port(getenv("BROKER_PORT2")), $manager="manager-1"],
["proxy-2"] = [$node_type=Cluster::PROXY, $ip=127.0.0.1, $p=to_port(getenv("BROKER_PORT3")), $manager="manager-1"],
};
@TEST-END-FILE
# @TEST-END-FILE
event go_away()
{

View file

@ -14,13 +14,13 @@
@load policy/frameworks/cluster/experimental
@TEST-START-FILE cluster-layout.zeek
# @TEST-START-FILE cluster-layout.zeek
redef Cluster::nodes = {
["manager-1"] = [$node_type=Cluster::MANAGER, $ip=127.0.0.1, $p=to_port(getenv("BROKER_PORT1"))],
["proxy-1"] = [$node_type=Cluster::PROXY, $ip=127.0.0.1, $p=to_port(getenv("BROKER_PORT2")), $manager="manager-1"],
["proxy-2"] = [$node_type=Cluster::PROXY, $ip=127.0.0.1, $p=to_port(getenv("BROKER_PORT3")), $manager="manager-1"],
};
@TEST-END-FILE
# @TEST-END-FILE
global q = 0;

View file

@ -16,13 +16,13 @@
@load policy/frameworks/cluster/experimental
@TEST-START-FILE cluster-layout.zeek
# @TEST-START-FILE cluster-layout.zeek
redef Cluster::nodes = {
["manager-1"] = [$node_type=Cluster::MANAGER, $ip=127.0.0.1, $p=to_port(getenv("BROKER_PORT1"))],
["proxy-1"] = [$node_type=Cluster::PROXY, $ip=127.0.0.1, $p=to_port(getenv("BROKER_PORT2")), $manager="manager-1"],
["proxy-2"] = [$node_type=Cluster::PROXY, $ip=127.0.0.1, $p=to_port(getenv("BROKER_PORT3")), $manager="manager-1"],
};
@TEST-END-FILE
# @TEST-END-FILE
global q = 0;