Giter Site home page Giter Site logo

mcameron / smolder Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sky-shiny/smolder

1.0 1.0 0.0 352 KB

Simple rest smoke tests.

Home Page: http://sky-shiny.github.io/smolder

License: BSD 3-Clause "New" or "Revised" License

Python 100.00%

smolder's Introduction

Smolder

"Requests for humans." :) Build Status

The prevalence of SOA, microservices and dev/stage/live environment build processes precipitated the development of smolder. The challenges these technologies pose requires the use of restful api tests which are simple and repeatable on different endpoints without modifying the tests or the endpoints. A lot of these environments require agents running the tests to be inside the network boundary and running inside internal build pipelines.

Smolder aims to solve these problems by providing features such as:

  • Smoke test your rest API.
  • Validate response times.
  • Validate redirects.
  • Validate ssl certificates.
  • Validate headers.
  • Validate json object types using validictory
  • More

Installation

pip install git+https://github.com/sky-shiny/smolder.git

Example

After installing copy/paste the following into a bash shell:

cat <<EOF > github_status.yaml
---
tests:
  -
    name: "Github Status"
    outcomes:
      expect_status_code: 301
      response_redirect: "https://status.github.com/api/status.json"
    inputs:
      headers:
        User-Agent: "Smolder smoke test library"
    uri: /api/status.json
  -
    inputs:
      headers:
        User-Agent: "Smolder smoke test library"
    name: "Github Status ssl"
    outcomes:
      response_json_contains:
        status: good
      response_max_time_ms: 200
    port: 443
    protocol: https
    uri: /api/status.json
EOF
smolder status.github.com github_status.yaml

Expected Output: Output

Documentation

readthedocs

  1. tests
  2. plugins
  3. examples
  4. contributing
  5. history

Similar Projects

  1. Runscope
  2. vrest.io
  3. Stackoverflow

Thanks

https://github.com/njsaunders

https://github.com/nielsdraaisma

https://github.com/lotia

https://github.com/casibbald

smolder's People

Contributors

mcameron avatar sky-shiny avatar hekaldama avatar thomaswunderlich avatar

Stargazers

Roman 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.