20 lines
473 B
Plaintext
20 lines
473 B
Plaintext
# Test that plugins can define new node keys.
|
|
#
|
|
# @TEST-EXEC: bash %INPUT
|
|
# @TEST-EXEC: btest-diff out
|
|
|
|
. zeekctl-test-setup
|
|
|
|
while read line; do installfile $line; done << EOF
|
|
plugins/nodekeystest.py $ZEEKCTL_INSTALL_PYTHON_DIR/zeekctl/plugins --new
|
|
EOF
|
|
|
|
# Node configuration using custom node keys defined in nodekeystest.py plugin.
|
|
cat >> $ZEEKCTL_INSTALL_PREFIX/etc/node.cfg << EOF
|
|
nodekeystest.key1=this is a test
|
|
nodekeystest.key2=1
|
|
EOF
|
|
|
|
zeekctl exit
|
|
mv keys.out out
|