Skip to content

fatalbanana/rrobot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Experimental fast test framework for Rspamd

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages