Skip to content

Commit

Permalink
runmodes: suricata hint missing runmode
Browse files Browse the repository at this point in the history
Ticket: #5711
  • Loading branch information
comfort619 committed Oct 21, 2023
1 parent f1d0e54 commit 5928d87
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/runmode_test/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Suricata Missing Runmode Issue

This repository contains test files and documentation for addressing the "Missing runmode" issue 5711 in Suricata.

## Issue Description

The issue relates to Suricata not providing adequate feedback when the runmode is missing, leading to confusion for users.

## Test Files

- `test.yaml`: This file defines a verification test that checks for the "Missing runmode" error.
- `runmode_test`: A directory where you can place any necessary configuration files or rules for the test.


10 changes: 10 additions & 0 deletions tests/runmode_test/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
requires:
min-version: 7.0.0
pcap: false

checks:
- shell:
args: suricata
expect: 1 # Expect an exit code of 1, indicating an error
expect-output: "ERROR: Missing runmode" # Verify that the error message is present

0 comments on commit 5928d87

Please sign in to comment.