Coder Social home page Coder Social logo

salt-test-runner's Introduction

salt-test-runner

Experimental salt stack module and state testing using Docker

Status: Basic multi-node environments and tests work in rudimentary fashion but I've decided to break out the docker container management into a separate project called dockermix. Currently salt states have problems with the minimal enironments of docker containers and you can't currently run init under docker. There is patch waiting merge.

Provide a distributed test environment for salt stack modules and states that runs within a single VM.

Requires: Salt Stack & Docker

Build a docker template with the salt-minion installed.

docker build -t salt-minion-precise - < salttest/docker/salt-minion-precise.docker

That container can then be executed by running, but the tests will handle container setup automatically.

docker run -d salt-minion

For test execution run as user that can run the salt command.

python example_test/test/test_init.py

Limitations of testing with docker

Container based system doesn't have any control over the kernel and does not run standard OS init process in most cases. This will vary depending on the base container you start from but since docker is intended to run a single command per container the images tend to be light.

salt-test-runner's People

Contributors

kstaken avatar

Watchers

James Cloos 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.