Skip to content

bluecats/bluecats-python-dman-api-testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bluecats-python-dman-api-testing

Testing Library for BlueCats Device Management (DMAN) API

This library involves the following forms of testing:

1.) Functional Testing (API)
2.) End-2-End (E2E) Testing (Frontend)

What this library does not test:

 1.) Unit Testing
 2.) Integration Testing

** Installation **

  • pip install pytest
  • pip install tavern
  • pip install pytest-xdist

Instructions

Testing Authorization:

Setting Environmental Variables:

MAC CLI:

$ export SECRET_AUTH="base64(appToken:username:password)"

Running Tests

** Defaults: All tests in the library start off initially in the skip position (False), to turn on a test switch Skip to True **

  • Skip: False (Test is turned off)
  • Skip: True (Test is turned on)

*** Pytest allows one to mark certain tests, such marks permit certain test to run tandum and exclude others: ***

  • GET Test Commands: $ pytest -m "get"
  • POST Test Commands: $ pytest -m "post"
  • PATCH Test Command: $ pytest -m "patch"
  • Delete Test Commands: $ pytest -m "delete"

Pytest Automation Libraries - Local Development:

*** Please Note: Automation tools may run test in parrallel with multi-processors causing false positives & vice versa test results to occur. ***

About

Testing library for BlueCats' Device Management API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published