Skip to content

An App that crashes on purpose with specified exception conditions. Used to debug e2e flow and integration.

License

Notifications You must be signed in to change notification settings

FNNDSC/pl-errorgenerator

Repository files navigation

pl-errormessage

https://travis-ci.org/FNNDSC/errorgenerator.svg?branch=master

errorgenerator is a simple app that raises an error message of errorType. If called with an optional --customErrorMessage the plugin will append the message to the error.

python errorgenerator.py                                        \
    [-v <level>] [--verbosity <level>]                          \
    [--errorType <typeError>]                                   \
    [--customErrorMessage <message>]                            \
    [--delayTime <secondsDelay>]                                \
    [--version]                                                 \
    [--man]                                                     \
    [--meta]                                                    \
    /tmp

This plugin can be run in two modes: natively as a python package or as a containerized docker image.

To run from PyPI, simply do a

pip install errorgenerator

and run with

errorgenerator.py --errorType Exception /tmp

to attach a message to the error, simply do

errorgenerator.py --errorType Exception             \
                  --customErrorMessage Errored      \
                  /tmp

To run using docker, prefix all calls with

docker run --rm                                     \
    fnndsc/pl-errorgenerator errorgenerator.py
docker run --rm                                     \
    fnndsc/pl-errorgenerator errorgenerator.py      \
    --errorType UnboundLocalError                   \
    /tmp
docker run --rm                                     \
    fnndsc/pl-errorgenerator errorgenerator.py      \
    --errorType UnboundLocalError                   \
    --customErrorMessage ErrorOccured               \
    /tmp
docker run --rm                                     \
    fnndsc/pl-errorgenerator errorgenerator.py      \
    --errorType UnboundLocalError                   \
    --delayTime 5                                   \
    /tmp

About

An App that crashes on purpose with specified exception conditions. Used to debug e2e flow and integration.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 2

  •  
  •