____ __ ____ __ .__ __. .__ __. ___ __ ___ _______ .______
\ \ / \ / / | | | \ | | | \ | | / \ | |/ / | ____|| _ \
\ \/ \/ / | | | \| | | \| | / ^ \ | ' / | |__ | |_) |
\ / | | | . ` | | . ` | / /_\ \ | < | __| | /
\ /\ / | | | |\ | | |\ | / _____ \ | . \ | |____ | |\ \----.
\__/ \__/ |__| |__| \__| |__| \__| /__/ \__\ |__|\__\ |_______|| _| `._____|
Auditing tool for Spinnaker. Real Testing in real browser !
- a spinnaker url
- a sample app
- a sample pipeline
-
Build Docker:
docker build -t winnaker .
-
Config :
edit and replace default values in
./src/config.sh
-
Run:
./run.sh
- Logs in to
spinnaker
through chromium browser - Searches for
sampleapp
app - Searches for
samplepipeline
the pipleline - Gets the last build status
- Generates screenshot :
./src/outputs/applications.png
./src/outputs/pipelines.png
./src/outputs/last_build_status.png
./src/outputs/login.png
./src/outputs/stage1.png
- Any error will result in a non-zero code to the system.
- Error screenshots will be timestaped.
Config file is located at ./src/config.sh but you can simply add any of the options bellow to your run.sh commnand.
optional arguments:
-h, --help show this help message and exit
-s, --start starts manual execution of the pipline
-fb, --forcebake force bake, to be used wth --start
-a APP, --app APP the name of application to look for
-p PIPELINE, --pipeline PIPELINE
the name of pipline to test
-nl, --nologin will not attempt to login
-hl, --headless will run in an xfvb display
./run.sh
./run.sh -s
./run.sh -s -fb
./run.sh -s -p "deploy to npe"
use with --caution--, will override the sample app.
./run.sh -a "differentapp" -p "diffrent pipleine"
- create a hipchat bot
- grab the post url
it should look like
https://INSERT_HIPCHAT_BASE_URL.com/v2/room/INSERT_ROOM_ID/notification?auth_token=INSERT_TOKEN
pip install git+git://github.com/target/winnaker
- Then in your python script you can import the Winnaker modules. For example you can import the
models
module viafrom winnaker import models