def test_https_health_check_healthy(protocol): """ Test HTTPS and MESOS_HTTPS protocols with a prepared nginx image that enables SSL (using self-signed certificate) and listens on 443 """ client = marathon.create_client() app_def = nginx_with_ssl_support() assert_app_healthy(client, app_def, health_check(protocol=protocol, port_index=1))
def test_https_health_check_healthy(protocol='MESOS_HTTPS'): """ Test HTTPS and MESOS_HTTPS protocols with a prepared nginx image that enables SSL (using self-signed certificate) and listens on 443 """ # marathon version captured here will work for root and mom requires_marathon_version('1.4.2') client = marathon.create_client() app_def = nginx_with_ssl_support() assert_app_healthy(client, app_def, health_check(protocol=protocol, port_index=1))
def test_https_health_check_healthy(protocol='MESOS_HTTPS'): """ Test HTTPS and MESOS_HTTPS protocols with a prepared nginx image that enables SSL (using self-signed certificate) and listens on 443 """ # marathon version captured here will work for root and mom if marthon_version_less_than('1.4.2'): pytest.skip() client = marathon.create_client() app_def = nginx_with_ssl_support() assert_app_healthy(client, app_def, health_check(protocol=protocol, port_index=1))