mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 02:58:20 +00:00
Merge branch 'topic/christian/controller-renaming'
* topic/christian/controller-renaming: Bump external cluster testsuite to reflect Management framework reorg Bump zeek-client to reflect Management framework reorg Reorg of the cluster controller to new "Management framework" layout
This commit is contained in:
commit
40fa1a0769
29 changed files with 565 additions and 539 deletions
|
@ -2,8 +2,8 @@
|
|||
### NOTE: This file has been sorted with diff-sort.
|
||||
warning in <...>/extract-certs-pem.zeek, line 1: deprecated script loaded from <...>/__load__.zeek:12 "Remove in v5.1. Use log-certs-base64.zeek instead."
|
||||
warning in <...>/extract-certs-pem.zeek, line 1: deprecated script loaded from command line arguments "Remove in v5.1. Use log-certs-base64.zeek instead."
|
||||
warning in <...>/log-ocsp.zeek, line 1: deprecated script loaded from <...>/test-all-policy.zeek:59 ("Remove in v5.1. OCSP logging is now enabled by default")
|
||||
warning in <...>/log-ocsp.zeek, line 1: deprecated script loaded from <...>/test-all-policy.zeek:59 ("Remove in v5.1. OCSP logging is now enabled by default")
|
||||
warning in <...>/log-ocsp.zeek, line 1: deprecated script loaded from <...>/test-all-policy.zeek:61 ("Remove in v5.1. OCSP logging is now enabled by default")
|
||||
warning in <...>/log-ocsp.zeek, line 1: deprecated script loaded from <...>/test-all-policy.zeek:61 ("Remove in v5.1. OCSP logging is now enabled by default")
|
||||
warning in <...>/log-ocsp.zeek, line 1: deprecated script loaded from command line arguments ("Remove in v5.1. OCSP logging is now enabled by default")
|
||||
warning in <...>/notary.zeek, line 1: deprecated script loaded from <...>/__load__.zeek:4 ("Remove in v5.1. Please switch to other more modern approaches like SCT validation (validate-sct.zeek).")
|
||||
warning in <...>/notary.zeek, line 1: deprecated script loaded from command line arguments ("Remove in v5.1. Please switch to other more modern approaches like SCT validation (validate-sct.zeek).")
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# This test verifies basic agent-controller communication. We launch agent and
|
||||
# controller via the supervisor, add an extra handler for the notify_agent_hello
|
||||
# event that travels agent -> controller, and verify its print output in the
|
||||
# controller's stdout log.
|
||||
# This test verifies basic agent-controller communication in the Management
|
||||
# framework. We launch agent and controller via the supervisor, add an extra
|
||||
# handler for the notify_agent_hello event that travels agent -> controller, and
|
||||
# verify its print output in the controller's stdout log.
|
||||
|
||||
# The following env vars is known to the controller framework
|
||||
# @TEST-PORT: ZEEK_CONTROLLER_PORT
|
||||
|
@ -12,20 +12,20 @@
|
|||
# @TEST-EXEC: btest-bg-wait 10
|
||||
# @TEST-EXEC: btest-diff zeek/controller.stdout
|
||||
|
||||
@load policy/frameworks/cluster/agent
|
||||
@load policy/frameworks/cluster/controller
|
||||
@load policy/frameworks/management/agent
|
||||
@load policy/frameworks/management/controller
|
||||
|
||||
redef Broker::default_port = to_port(getenv("BROKER_PORT"));
|
||||
|
||||
redef ClusterController::name = "controller";
|
||||
redef ClusterAgent::name = "agent";
|
||||
redef Management::Controller::name = "controller";
|
||||
redef Management::Agent::name = "agent";
|
||||
|
||||
# Tell the agent where to locate the controller.
|
||||
redef ClusterAgent::controller = [$address="127.0.0.1", $bound_port=to_port(getenv("ZEEK_CONTROLLER_PORT"))];
|
||||
redef Management::Agent::controller = [$address="127.0.0.1", $bound_port=to_port(getenv("ZEEK_CONTROLLER_PORT"))];
|
||||
|
||||
@if ( Supervisor::is_supervised() )
|
||||
|
||||
@load policy/frameworks/cluster/agent/api
|
||||
@load policy/frameworks/management/agent/api
|
||||
|
||||
global logged = F;
|
||||
|
||||
|
@ -41,7 +41,7 @@ event zeek_init()
|
|||
}
|
||||
}
|
||||
|
||||
event ClusterAgent::API::notify_agent_hello(instance: string, host: addr, api_version: count)
|
||||
event Management::Agent::API::notify_agent_hello(instance: string, host: addr, api_version: count)
|
||||
{
|
||||
if ( Supervisor::node()$name == "controller" )
|
||||
{
|
|
@ -1 +1 @@
|
|||
8e0401661fca089e941ab844694f9d2314f1401f
|
||||
3528e248d7d35e102c39c8e8050fc1a6dfa477bf
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue