If I host my endpoints with base URL at http://example.com/dev/ and want to use pyresttest with params: resttest.py http://example.com/dev/ test.yml, it will try to hit URLs ignoring the /dev/ portion.
This is a problem because I'm using the Zappa to deploy my REST API and while locally the endpoints can have a base URL, the deployments with zappa will add another relative path based on if it's the dev or prod instance.
Is there any good way to work around or get the same set of tests to work with two sets of base URLs where one of them contains a relative path?
If I host my endpoints with base URL at
http://example.com/dev/
and want to use pyresttest with params:resttest.py http://example.com/dev/ test.yml
, it will try to hit URLs ignoring the/dev/
portion.This is a problem because I'm using the Zappa to deploy my REST API and while locally the endpoints can have a base URL, the deployments with zappa will add another relative path based on if it's the
dev
orprod
instance.Is there any good way to work around or get the same set of tests to work with two sets of base URLs where one of them contains a relative path?