Exemple #1
0
def service_updated(context, name, version):
    K8sDriver(Context(context).default_namespace()).verify_get(
        '%s/version' % url_for(Context(context).get_app_for(name, version)),
        lambda response: json.loads(response)['version'] == version)
Exemple #2
0
def jobs_were_invoked_on_service(context, service, version):
    K8sDriver(Context(context).default_namespace()).verify_get(
        '%s/state' % url_for(Context(context).get_app_for(service, version)),
        lambda output: json.loads(output)['state']
    )
Exemple #3
0
def verify_port_available(context):
    K8sDriver(Context(context).default_namespace()).verify_get(
        '%s/greet' % url_for(Context(context).last_deployed_app(), 5000),
        lambda output: output == "Hello Ported")
Exemple #4
0
 def __app_healthy(self, app):
     output = self.__get_in_k8s('%s/health' % url_for(app))
     if json.loads(output)['status']['code'] == 'UP':
         return True
     raise Exception('app %s not healthy' % app.name())
def verify_config_was_overriden(context):
    K8sDriver(Context(context).default_namespace()).verify_get(
        '%s/greeting' % url_for(Context(context).last_deployed_app()),
        lambda output: output == 'Hello overridden world')