Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (testpypi.python.org).
Help us improve Python packaging - Donate today!

Wrapper around requests lib for simple API smoketesting

Project Description

Api-Attic

So you’re developing an API client in the attic.

You need a framework for smoketesting api calls.

The API developer has defined their tests in json format. You can then run these tests to verify that you’re getting the expected behavior and escape the attic.

Anne Frank would have dug it.

Example Usage

api-attic 10.0.0.1 api_attic_example.json –force

What it does

It wraps the “requests” python library inserting headers, authentication etc and making your requests to a host, provided as a command line argument.

It checks the response from the server for expected status codes and body/header/json dpath contents and passes or fails the test based on definition.

Can be used to specify and pass/fail on performance of api response.

Copy/paste curl equivalent of the request is included in the output for convenience.

See the api_attic_example.json file as an example of a subset of the the tests available.

Easily introduced into a CI/CD deploy pipeline.

Without –force, any API requests that are not GET’s will be skipped as a safety mechanism to ensure we’re not overwriting or creating data unconciously.

Installation

pip install api-attic

Release History

Release History

This version
History Node

0.7.1

History Node

0.6.1

History Node

0.4.1

History Node

0.2.1

History Node

unversioned

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
api-attic-0.7.1.tar.gz (6.9 kB) Copy SHA256 Checksum SHA256 Source Jan 7, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting