Git Product home page Git Product logo

container_test's Introduction

Container_Test

Installation

Execution

  • Execute the command python main.py

Overview

The main class in this project is stack.py which provide base class and api for chaos creation.

infoParser.py : provide a sample parser for inventory which return a instance of stack. you could wirte your own parser.

serviceParser.py : return a serviceDic which contains all the services. you could add service to services.json.

in stack.py it provide container test and service test.

container test will first update container info and generate two lists for running containers and stoped containers. then it will random choose one container to start or stop.

service test first will get servicedic, then update service state. also service test needs to generate running list and stoped list. after get a random node it will create joblist for start/stop the service in the node.

Usage

usage: main.py [-h] [--act {container,service}] [--log {critical,error,warning,debug,info,notest}] [--min MIN] [--max MAX]

Process Chaos creation.

optional arguments: -h, --help show this help message and exit --act {container,service} Usage for act on container/service level, default=container --log {critical,error,warning,debug,info,notest} Usage for log level, default=debug --min MIN Usage for min sec, should be > 30 sec --max MAX Usage for max sec, should be > 50 sec

container_test's People

Contributors

hakusama1024 avatar rydor avatar

Watchers

James Cloos avatar  avatar

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.