MODULE

PYTEST_HELM_CHARTS.FIXTURES

This module defines fixtures for testing Helm Charts.

Functions
  • chart_extra_info(pytestconfig) (dict(str: str)) Return an optional dict of keywords and values passed to the test using '--chart-extra-info' config option.</>
  • chart_path(pytestconfig) (str) Return a path to the chart under test (from command line argument).</>
  • chart_version(pytestconfig) (str) Return a value that needs to be used as chart version override (from command line argument).</>
  • cluster_type(pytestconfig) (str) Return a type of cluster to provide to the test environment. Currently supported values are: "existing".</>
  • kube_cluster(cluster_type, _existing_cluster_factory, _kind_cluster_factory, _giantswarm_cluster_factory) (Cluster) Return a ready Cluster object, which can already be used in test to connect to the cluster. Specific implementation used to provide the cluster depends on the '--cluster-type' command line option.</>
  • kube_config(pytestconfig) (str) Return a path to the kube.config file that points to a running cluster with app catalog platform tools already installed. Used only if --cluster-type=existing (from command line argument).</>
  • values_file_path(pytestconfig) (str) Return a path to the yaml file that needs to be used to configure chart under test (from command line argument).</>
function

pytest_helm_charts.fixtures.chart_path(pytestconfig) → str

Return a path to the chart under test (from command line argument).

Parameters
  • pytestconfig (Config)
function

pytest_helm_charts.fixtures.chart_version(pytestconfig) → str

Return a value that needs to be used as chart version override (from command line argument).

Parameters
  • pytestconfig (Config)
function

pytest_helm_charts.fixtures.chart_extra_info(pytestconfig) → dict(str: str)

Return an optional dict of keywords and values passed to the test using '--chart-extra-info' config option.

Parameters
  • pytestconfig (Config)
function

pytest_helm_charts.fixtures.values_file_path(pytestconfig) → str

Return a path to the yaml file that needs to be used to configure chart under test (from command line argument).

Parameters
  • pytestconfig (Config)
function

pytest_helm_charts.fixtures.kube_config(pytestconfig) → str

Return a path to the kube.config file that points to a running cluster with app catalog platform tools already installed. Used only if --cluster-type=existing (from command line argument).

Parameters
  • pytestconfig (Config)
function

pytest_helm_charts.fixtures.cluster_type(pytestconfig) → str

Return a type of cluster to provide to the test environment. Currently supported values are: "existing".

Parameters
  • pytestconfig (Config)
generator

pytest_helm_charts.fixtures.kube_cluster(cluster_type, _existing_cluster_factory, _kind_cluster_factory, _giantswarm_cluster_factory)Cluster

Return a ready Cluster object, which can already be used in test to connect to the cluster. Specific implementation used to provide the cluster depends on the '--cluster-type' command line option.

Parameters
  • cluster_type (str)
  • _existing_cluster_factory (callable of Cluster)
  • _kind_cluster_factory (callable of Cluster)
  • _giantswarm_cluster_factory (callable of Cluster)