Skip to content
/ adsrex Public

Collection of functional tests for ADS Api and Bumblebee

License

Notifications You must be signed in to change notification settings

adsabs/adsrex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

adsrex

Collection of functional tests for ADS Api and Bumblebee.

A minimal configuration is necessary, create a local_config.py and set the values as described in the config.py

The tests have to be self-contained, i.e. v1_0 should not share any code with v1_1!

These tests are python 3.x!

How to write new tests

There are 3 use types:

- anonymous_user: will make requests to the API without any token
- bumblebee_user: will make requests to the API as short-lived BBB (anonymous) user
- authenticated_user: special account `tester@ads` represents a logged-in, authenticated user; this account has very high ratelimits everything else (permissions) is the same as standard users

Tests are organized per module/microservice. Each should exercise these 3 user categories. Typically, for authenticated/bumblebee user you can just write one test and pass in the user object, i.e.

def test(user=authenticated_user):
    r = user.get('/some/url', ....)
    assert r.status_code == 200

usage

py.test v1_0

About

Collection of functional tests for ADS Api and Bumblebee

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages