Пример #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())
Пример #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'
                 ))
Пример #3
0
 def uri(self):
     return service_uri(service='postgres')
Пример #4
0
 def uri(self):
     return service_uri(service='worker')
Пример #5
0
 def uri(self):
     return service_uri(service='repository')
Пример #6
0
 def uri(self):
     return service_uri(service='mongodb')