示例#1
0
def test_invalid_choice(application_name):
    instance_management = InstanceManagement(
        huskar_client, application_name, 'config')
    with raises(AssertionError):
        InstanceManagement(huskar_client, application_name, 'woo')
    with raises(AssertionError):
        instance_management.get_service_info()
    with raises(AssertionError):
        instance_management.get_cluster_info('any')
示例#2
0
 def setup_default_zpath(self):
     im = InstanceManagement(huskar_client, self.application_name,
                             SERVICE_SUBDOMAIN)
     info = im.get_service_info()
     try:
         if info.stat is None:
             info.data = {}
             info.save()
     except OutOfSyncError:
         pass