Giter Site home page Giter Site logo

api-testing's Introduction

API-testing

test script and data for MG-RAST API tests

This script harvests example API calls from the MG-RAST API at http://api.mg-rast.org/1, invokes them with curl, and compares the outputs to previously saved outputs in the data directory.

API-testing.py -t   # generates a list of the example API calls

This invokation runs tests and puts output in word directoery genereates files

API-testing.py -f -w work
f7f488249d0fbc943fa0c9ca27707a1c.call  # contains the URI
f7f488249d0fbc943fa0c9ca27707a1c.err   # HTTP headers
f7f488249d0fbc943fa0c9ca27707a1c.test  # judgement pass/fail
f7f488249d0fbc943fa0c9ca27707a1c.time  # time to return (s)
f7f488249d0fbc943fa0c9ca27707a1c.out   # output from API server
additionally, if the test fails, the script generates 
f7f488249d0fbc943fa0c9ca27707a1c.out1  and 
f7f488249d0fbc943fa0c9ca27707a1c.out2  
to facilitate debugging the differences.

build & run

docker build -t mgrast/api-testing .
docker run -ti --rm --name api-testing mgrast/api-testing

api-testing's People

Contributors

teharrison avatar wgerlach avatar wilke avatar wltrimbl avatar

Watchers

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