Skip to content

aravindavk/binnacle-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

binnacle-python

Easy to use Infra and Tests automation Tool.

Install

Usage

ReST APIs testing example,

from binnacle import *

base_url("http://localhost:5001")

# Without API Key
get("/api/v1/folders", status=403)

# With wrong API Key
set_header("x-api-key", "ABC")
get("/api/v1/folders", status=401)

# With valid API Key
set_header("x-api-key", "user_26a5fa8c7d8ad3729d218bcecf38c3aa9a7d4e40106072b4fd3f313af5c0682f")
data = get("/api/v1/folders")
debug(data)
folders = validated_json(data)

show_summary()

To execute commands,

from binnacle import *

validated_json('{"name": 100}')

command_run("ls /tmp")
show_summary()

Comparision:

from binnacle import *

compare_equal(len(folders), 4)
compare_not_equal(100, 100)

show_summary()

About

Infra and Tests automation Tool

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages