1
0
mirror of https://github.com/ubuntu/microk8s.git synced 2021-05-23 02:23:41 +03:00

Skip tests under time presure

This commit is contained in:
Konstantinos Tsakalozos
2019-02-06 19:57:20 +02:00
parent 7c3311a6d2
commit dedbbab386
3 changed files with 29 additions and 20 deletions

View File

@@ -1,4 +1,5 @@
import pytest
import os
import platform
from validators import (
@@ -22,6 +23,8 @@ from utils import (
)
from subprocess import Popen, PIPE, STDOUT, CalledProcessError
under_time_pressure = os.environ.get('UNDER_TIME_PRESURE', 'False')
class TestAddons(object):
@@ -132,22 +135,26 @@ class TestAddons(object):
print("Fluentd, prometheus, jaeger tests are only relevant in x86 architectures")
return
# Prometheus operator on our lxc is chashlooping disabling the test for now.
#print("Enabling prometheus")
#microk8s_enable("prometheus")
#print("Validating Prometheus")
#validate_prometheus()
#print("Disabling prometheus")
#microk8s_disable("prometheus")
print("Enabling fluentd")
microk8s_enable("fluentd")
print("Validating the Fluentd")
validate_fluentd()
print("Disabling fluentd")
microk8s_disable("fluentd")
print("Enabling jaeger")
microk8s_enable("jaeger")
print("Validating the Jaeger operator")
validate_jaeger()
print("Disabling jaeger")
microk8s_disable("jaeger")
if under_time_pressure == 'False':
# Prometheus operator on our lxc is chashlooping disabling the test for now.
#print("Enabling prometheus")
#microk8s_enable("prometheus")
#print("Validating Prometheus")
#validate_prometheus()
#print("Disabling prometheus")
#microk8s_disable("prometheus")
print("Enabling fluentd")
microk8s_enable("fluentd")
print("Enabling jaeger")
microk8s_enable("jaeger")
print("Validating the Jaeger operator")
validate_jaeger()
print("Validating the Fluentd")
validate_fluentd()
print("Disabling jaeger")
microk8s_disable("jaeger")
print("Disabling fluentd")
microk8s_disable("fluentd")
else:
print('Skipping jaeger, prometheus and fluentd tests')