Exemplo n.º 1
0
class TestHelmRegistryFunctions:
    helm_repo_name = "localhelm"
    helm_repo_url = os.environ.get("TEST_HELM_REGISTRY", "http://localhost:8080")

    def setup(self) -> None:
        self.helm = Helm()
        self.helm.add_repo(self.helm_repo_name, self.helm_repo_url)
        self.helm.setup_helm()
Exemplo n.º 2
0
def test_create_mysql_database(kubernetes: Kubernetes, test_namespace: str,
                               helm: Helm) -> None:
    helm_test_repo_url = os.environ.get("TEST_HELM_REGISTRY",
                                        "http://localhost:8080")
    helm.add_repo("testing", helm_test_repo_url)

    track = DEFAULT_TRACK

    mysql_service = MysqlService(track=track, chart="testing/mysql")

    kubernetes.deploy_service(service=mysql_service,
                              namespace=test_namespace,
                              track=track)