zeek/docker/container-structure-test.yaml
Benjamin Bannier ddae1398f1 Add a minimal containerized environment
This patch adds a minimal Zeek environment packaged as a container.
Since this is intended both as a base layer for other images and as a
quick way to explore Zeek we install only zeek and zkg as basic
functionality.

Closes #1625.
2021-09-24 11:48:19 +02:00

37 lines
1 KiB
YAML

# See the file "COPYING" in the main distribution directory for copyright.
# This file contains a test configuration for
# https://github.com/GoogleContainerTools/container-structure-test.
schemaVersion: 2.0.0
commandTests:
- name: zeek can be run
command: zeek
args: ["-v"]
expectedOutput: ["^zeek version .*"]
- name: is release build
command: zeek-config
args: ["--build_type"]
expectedOutput: ["release"]
- name: btest can be run
command: btest
args: ["--version"]
expectedOutput: ["\\d\\.\\d"]
- name: valid zkg config
command: zkg
args: ["config"]
# Just validate that we some some valid entry here.
expectedOutput: ["state_dir = /usr/local/zeek/var/lib/zkg"]
- name: plugin can be installed
command: zkg
# We pick any plugin with minimal deps here.
args: ["install", "--force", "sethhall/domain-tld"]
expectedOutput:
- "Installing \"zeek/sethhall/domain-tld\""
- "Installed \"zeek/sethhall/domain-tld\" (.*)"
- "Loaded \"zeek/sethhall/domain-tld\""