Giter VIP home page Giter VIP logo

chaostoolkit-chaoshub's Introduction

chaostoolkit-chaoshub

Build Status

The Chaos Hub plugin library.

Purpose

The purpose of this library is to provide [Chaos Hub][] collaboration and sharing support to the Chaos Toolkit.

Features

The library adds the ability to login to a Chaos Hub, by default ChaosHub.com, and then to be able to publish experiment's and experimental findings into the hub.

Install

Install this package as any other Python packages:

$ pip install -U chaostoolkit-chaoshub

Notice that this draws a few dependencies:

Usage

Once installed, new login and publish subcommands will be made available to the chaos command. You can use them as follows:

$ chaos login
$ chaos publish journal.json

The login command sets up your chaos toolkit installation to target a particular Chaos Hub. The chaos publish command enables you to manually push your experimental findings, typically recorded in the journal.json, to your Chaos Hub account.

By default, once you have logged into your Chaos Hub you will automatically publish your experiment's findings to your own organization and workspace when you execute chaos run. You can turn this behaviour off by specifying --no-publish as shown here:

$ chaos run experiment.json --no-publish

Contribute

Contributors to this project are welcome as this is an open-source effort that seeks discussions and continuous improvement.

From a code perspective, if you wish to contribute, you will need to run a Python 3.5+ environment. Then, fork this repository and submit a PR. The project cares for code readability and checks the code style to match best practices defined in PEP8. Please also make sure you provide tests whenever you submit a PR so we keep the code reliable.

Develop

If you wish to develop on this project, make sure to install the development dependencies. But first, create a virtual environment and then install those dependencies.

$ pip install -r requirements-dev.txt -r requirements.txt 

Then, point your environment to this directory:

$ python setup.py develop

Now, you can edit the files and they will be automatically be seen by your environment, even when running from the chaos command locally.

Test

To run the tests for the project execute the following:

$ pytest

chaostoolkit-chaoshub's People

Contributors

lawouach avatar russmiles avatar

Stargazers

 avatar

Watchers

 avatar  avatar

chaostoolkit-chaoshub's Issues

Rename auth token

It will be more formal to use the existing Authorization header as such:

Authorization: Bearer <TOKEN>

Add this project to Travis CI

Will also be used to test that our custom classifier, see #9 , will be initially ignored by the public index on module publication.

chaos login with no settings.yaml fails

Attempting to push experimental outcome to a loca Chaos Hub (running in docker) I found that the chaos login command fails if you have no settings.yaml file.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.