mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00

With Cluster::Node$metrics_port being optional, there's not really a need for the extra script. New rule, if a metrics_port is set, the node will attempt to listen on it. Users can still redef Telemetry::metrics_port *after* base/frameworks/telemetry was loaded to change the port defined in cluster-layout.zeek.
12 lines
678 B
Text
12 lines
678 B
Text
# Makes sure any given zeek script in the scripts/ tree can be loaded in
|
|
# bare mode without error.
|
|
#
|
|
# Commonly, this test may fail if one forgets to @load some base/ scripts
|
|
# when writing a new zeek scripts.
|
|
#
|
|
# Require Spicy, otherwise its scripts cannot be loaded.
|
|
# @TEST-REQUIRES: have-spicy
|
|
#
|
|
# @TEST-EXEC: test -d $DIST/scripts
|
|
# @TEST-EXEC: for script in `find $DIST/scripts/ -name \*\.zeek`; do zeek -b --parse-only $script >>errors 2>&1; done
|
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER="grep -v -e 'load-balancing.zeek.*deprecated script loaded' | grep -v -e 'prometheus.zeek.*deprecated script loaded' | $SCRIPTS/diff-remove-abspath | $SCRIPTS/diff-sort" btest-diff errors
|