watts-plugin-tester

command module
v0.0.0-...-e5bdb66 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2017 License: Apache-2.0 Imports: 13 Imported by: 0

README

watts-plugin-tester

build

go get   github.com/indigo-dc/watts-plugin-tester

This will build the tester and install it at $GOPATH/bin

or

utils/compile.sh

get started

./watts-plugin-tester --help

features

  • machine readable json output

  • complement the plugin input with (highest precendence first)

    • a json string
    • a json file
    • a watts.conf (only for the conf_params)
  • validate the plugin input

  • validate the plugin output

    • check: check that the json is conforming with the api of watts
    • test: do check and also compare the output with a provided expected output
    • tests: do multiple tests using a configuration file. See test/ for an example
  • generate a default json from the output of the plugins parameter action

  • generate a default json with valid encoded fields, e.g. the watts_userid

watts version support

  • 1.0.0

Remark: leading 'v's in a provided version will be ignored

interpretation of exit codes

0 -- validation passed
1 -- error with the plugin output / validation failed
2 -- error executing the plugin
3 -- internal error
4 -- user error. possibly a malformed json file

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