def test_service_uri_using_env(self): """Generate the service uri.""" expected = ( "https://api.30loops.net/0.9/env_service/" "apps/env_service/services/env_service" ) env.account = env.appname = env.service = 'env_service' eq_(expected, service_uri())
def test_service_uri(self): """Generate the service uri.""" expected = ( "https://api.30loops.net/0.9/30loops/" "apps/thirtyblog/services/postgres" ) eq_(expected, service_uri( account='30loops', appname='thirtyblog', service='postgres' ))
def uri(self): return service_uri(service='postgres')
def uri(self): return service_uri(service='worker')
def uri(self): return service_uri(service='repository')
def uri(self): return service_uri(service='mongodb')