GithubHelp home page GithubHelp logo

isabella232 / golem Goto Github PK

View Code? Open in Web Editor NEW

This project forked from docker-archive/golem

0.0 0.0 0.0 3.15 MB

Integration test framework using Docker

License: Apache License 2.0

Shell 2.44% Ruby 0.33% Go 95.14% Makefile 2.09%

golem's Introduction

Golem Integration Test Runner

The golem integration test runner is a flexible and robust way to run integration tests on top of Docker. It is designed for running tests which require complicated components such as proxies, databases, and docker. The test runner leverages docker's ability to run docker inside of a docker container and docker compose for orchestrating test components.

Key Features

  • Leverages docker compose for setting up a test
  • Runs each test inside its own test container for isolation
  • Customizable run configuration for testing development builds
  • Log capture of each test component for failure analysis
  • Parallel test execution and multi-configuration tests

Planned Features

  • Ability to run on a swarm cluster for test scaling
  • Web UI for realtime test monitoring and log analysis

Goals

  • Optimized for test driven development. Tests are able to leverage a cache to avoid rebuilding components during test setup.
  • Easily fit into CI workflow.
  • Handle complicated matrix testing.

Configuration

Golem is configured through toml files (default named "golem.conf") in the directory containing a test suite. Each configuration file may specify multiple suite configuration.

Configuration example

[[suite]]
  # name is used to set the name of this suite, if none is set here then the name
  # should be set by the runner configuration or using the directory name
  name = "registry"

  # dind (or "Docker in Docker") is used to run a docker daemon inside the test container. This will
  # always be set if docker compose is used.
  dind=true

  # images which should exist in the test container
  # automatically set dind to true
  images=[ "nginx:1.9", "golang:1.4", "hello-world:latest" ]

  [[suite.pretest]]
    command="/bin/sh ./install_certs.sh localregistry"

  [[suite.testrunner]]
    command="bats -t ."
    format="tap"
    env=["TEST_REPO=hello-world", "TEST_TAG=latest", "TEST_USER=testuser", "TEST_PASSWORD=passpassword", "TEST_REGISTRY=localregistry", "TEST_SKIP_PULL=true"]

  # customimage allow runtime selection of an image inside the container
  # automatically set dind to true
  [[suite.customimage]]
    # tag is the tag that will exist for the image inside the container
    tag="golem-distribution:latest"
    # default is the default image to use from docker instance which
    # is building the golem test containers
    default="registry:2.2.1"
    # version is used to set an environment variable inside the running
    # container which can be used to selectively run tests based on version.
    # In this case the environment variable "GOLEM_DISTRIBUTION_VERSION" will
    # be set to "2.2.1". The default value will either be a tag set on the
    # source image for the tag, else the target image tag when the default has
    # no tag.
    version="2.2.1"
  [[suite.customimage]]
    tag="golem-registry:latest"
    default="registry:0.9.1"

Copyright and license

Copyright © 2015-2016 Docker, Inc. All rights reserved, except as follows. Code is released under the Apache 2.0 license. The README.md file, and files in the "docs" folder are licensed under the Creative Commons Attribution 4.0 International License under the terms and conditions set forth in the file "LICENSE.docs". You may obtain a duplicate copy of the same license, titled CC-BY-SA-4.0, at http://creativecommons.org/licenses/by/4.0/.

golem's People

Contributors

dmcgowan avatar aaronlehmann avatar marcellodesales 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.