Exemplo n.º 1
0
 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())
Exemplo n.º 2
0
 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'
                 ))
Exemplo n.º 3
0
 def uri(self):
     return service_uri(service='postgres')
Exemplo n.º 4
0
 def uri(self):
     return service_uri(service='worker')
Exemplo n.º 5
0
 def uri(self):
     return service_uri(service='repository')
Exemplo n.º 6
0
 def uri(self):
     return service_uri(service='mongodb')