Ejemplo n.º 1
0
    def test_prometheus(self):
        """
        Test prometheus.
        """

        print("Enabling prometheus")
        microk8s_enable("prometheus")
        print("Validating Prometheus")
        validate_prometheus()
        print("Disabling prometheus")
        microk8s_disable("prometheus")
        microk8s_reset()
Ejemplo n.º 2
0
 def test_cilium(self):
     """
     Sets up and validates Cilium.
     """
     print("Enabling Cilium")
     run(
         "/snap/bin/microk8s.enable cilium".split(),
         stdout=PIPE,
         input=b"N\n",
         stderr=STDOUT,
         check=True,
     )
     print("Validating Cilium")
     validate_cilium()
     print("Disabling Cilium")
     microk8s_disable("cilium")
     microk8s_reset()
Ejemplo n.º 3
0
 def clean_up(self):
     """
     Clean up after a test
     """
     yield
     microk8s_reset()