rrobot

command module
v0.0.0-...-8ea90ef Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

README

rrobot

Experimental fast test framework for Rspamd

Usage

./rrobot --help
Usage of ./rrobot:
  -concurrency int
    	How many goroutines (default 8)
  -config string
    	Config file(s) to process
  -url string
    	Rspamd URL (default "http://127.0.0.1:11333/checkv2")

Example config

test "MY TEST NAME" {
  assertions = [
    "Result.Action == 'no action' || Result.Action == 'greylist'",
    "not('FAKE_REPLY' in Result.Symbols)",
  ]
  inputs = [
    "/home/adam/emails/kaminski-v/*/*",
  ]
  headers = {
    IP = "127.0.0.1",
  }
}

The format of the file is Hashicorp HCL. antonmedv/expr is used for assertions.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址