goasis

module
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2020 License: GPL-3.0

README ΒΆ

OASIS

Open API Specification Intelligence Services. Or in a less fancy way, a tool to test APIs which uses OAS/Swagger spec files as a test suite.

Build Status Go Report Card

Work in progress.

Usage

Oasis can be used either in manual mode, which allows to test single operations, or in script mode, which is designed to test complex interaction scenarios, involving multiple endpoints and reusing data across them.

β˜‘οΈ Manual mode

run/oasis from spec/petstore.yaml test findPetsByStatus

Oasis uses the example value for the status query parameter for the findPetsByStatus operation defined in the spec file.

You can override any parameter from CLI:

run/oasis from spec/petstore.yaml test getPetById use path parameters petId=10

Increase logging verbosity to see how parameters are used.

run/oasis from spec/petstore.yaml test getPetById log at level 6 use path parameters petId=10

For an example of error reporting use the malformed spec file which doesn't correspond to the actual API responses:

run/oasis from spec/errors.yaml test taskList log at level 6

run/oasis from spec/errors.yaml test configTypes log at level 6

πŸ“– Learn more about CLI

πŸ“– Learn more about operation parameters

πŸ”€ Script mode

For complex scenarios involving multiple endpoints and data reuse across them there is a script mode:

run/oasis execute script/petstore.yaml run/oasis execute script/nuxeo.yaml

Script is a graph of dependent operations. Cycles are not allowed:

run/oasis execute script/cycle.yaml

πŸ“– Learn more about scripts

Resources

OpenAPI Spec

HTTP Auth Registry

Stoplight OAS Editor

Reyesoft API Playground

Nuxeo API Playground

Oasis V2

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL