1
0
mirror of https://github.com/ubuntu/microk8s.git synced 2021-05-23 02:23:41 +03:00
Files
microk8s/tests/test-live-addons.py
Kenneth Koski 7c5607a6b6 Add flake8 to CI checks (#1482)
* Add flake8 to CI checks

black doesn't catch some things such as unused variables or trailing
spaces in docstrings, so add flake8 to the CI process.

flake8 and black disagree on a few things, and black is probably in the
right, at least according to pep8. So, add a few lint ignores, as in
https://github.com/psf/black/blob/master/docs/compatible_configs.md
2020-09-01 11:33:22 +03:00

127 lines
2.3 KiB
Python

from validators import (
validate_dns_dashboard,
validate_storage,
validate_ingress,
validate_ambassador,
validate_istio,
validate_knative,
validate_registry,
validate_forward,
validate_metrics_server,
validate_jaeger,
validate_cilium,
validate_multus,
validate_linkerd,
validate_gpu,
validate_kubeflow,
)
from utils import wait_for_pod_state
class TestLiveAddons(object):
"""
Validates a microk8s with all the addons enabled
"""
def test_dns_dashboard(self):
"""
Validates dns and dashboards work.
"""
wait_for_pod_state("", "kube-system", "running", label="k8s-app=kube-dns")
validate_dns_dashboard()
def test_storage(self):
"""
Validates storage works.
"""
validate_storage()
def test_ingress(self):
"""
Validates ingress works.
"""
validate_ingress()
def test_ambassador(self):
"""
Validates Ambassador works.
"""
validate_ambassador()
def test_istio(self):
"""
Validate Istio works.
"""
validate_istio()
def test_knative(self):
"""
Validate Knative works.
"""
validate_knative()
def test_gpu(self):
"""
Validates GPU
"""
validate_gpu()
def test_registry(self):
"""
Validates the registry works.
"""
validate_registry()
def test_forward(self):
"""
Validates port forward works.
"""
validate_forward()
def test_metrics_server(self):
"""
Validates metrics server works.
"""
validate_metrics_server()
def test_jaeger(self):
"""
Validates jaeger operator.
"""
validate_jaeger()
def test_cilium(self):
"""
Validates Cilium works.
"""
validate_cilium()
def test_multus(self):
"""
Validates Multus works.
"""
validate_multus()
def test_linkerd(self):
"""
Validates linkerd works.
"""
validate_linkerd()
def test_kubeflow(self):
"""
Validates kubeflow.
"""
validate_kubeflow()