Beispiel #1
0
    def test_knative_istio(self):
        """
        Sets up and validate istio.

        """
        if platform.machine() != 'x86_64':
            print("Istio tests are only relevant in x86 architectures")
            return

        if under_time_pressure != 'False':
            print(
                "Skipping istio and knative tests as we are under time pressure"
            )
            return

        print("Enabling Knative and Istio")
        p = Popen("/snap/bin/microk8s.enable knative".split(),
                  stdout=PIPE,
                  stdin=PIPE,
                  stderr=STDOUT)
        p.communicate(input=b'N\n')[0]
        print("Validating Istio")
        validate_istio()
        print("Validating Knative")
        validate_knative()
        print("Disabling Knative")
        microk8s_disable("knative")
        print("Disabling Istio")
        microk8s_disable("istio")
Beispiel #2
0
    def test_knative_istio(self):
        """
        Sets up and validate istio.

        """

        print("Enabling Knative and Istio")
        microk8s_enable("knative")
        print("Validating Istio")
        validate_istio()
        print("Validating Knative")
        validate_knative()
        print("Disabling Knative")
        microk8s_disable("knative")
        wait_for_namespace_termination("knative-serving", timeout_insec=600)
        print("Disabling Istio")
        microk8s_disable("istio")
Beispiel #3
0
    def test_istio(self):
        """
        Sets up and validate istio.

        """
        print("Enabling Istio")
        p = Popen("/snap/bin/microk8s.enable istio".split(),
                  stdout=PIPE,
                  stdin=PIPE,
                  stderr=STDOUT)
        p.communicate(input=b'N\n')[0]
        print("Validating Istio")
        validate_istio()
        print("Disabling Istio")
        microk8s_disable("istio")
        print("Disabling DNS")
        microk8s_disable("dns")
Beispiel #4
0
    def test_knative_istio(self):
        """
        Sets up and validate istio.

        """

        print("Enabling Knative and Istio")
        p = Popen("/snap/bin/microk8s.enable knative".split(), stdout=PIPE, stdin=PIPE, stderr=STDOUT)
        print("Validating Istio")
        validate_istio()
        print("Validating Knative")
        validate_knative()
        print("Disabling Knative")
        microk8s_disable("knative")
        wait_for_namespace_termination("knative-serving", timeout_insec=600)
        print("Disabling Istio")
        microk8s_disable("istio")
Beispiel #5
0
    def test_istio(self):
        """
        Sets up and validate istio.

        """
        if platform.machine() != 'x86_64':
            print("Istio tests are only relevant in x86 architectures")
            return

        print("Enabling Istio")
        p = Popen("/snap/bin/microk8s.enable istio".split(), stdout=PIPE, stdin=PIPE, stderr=STDOUT)
        p.communicate(input=b'N\n')[0]
        print("Validating Istio")
        validate_istio()
        print("Disabling Istio")
        microk8s_disable("istio")
        print("Disabling DNS")
        microk8s_disable("dns")
Beispiel #6
0
    def test_istio(self):
        """
        Validate Istio works.

        """
        validate_istio()