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 used for testing (from command line argument).</>
  • kube_cluster(_existing_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).</>
  • namespace_factory(kube_cluster) (callable(str: Namespace)) Return a new namespace that is deleted once the fixture is disposed.</>
  • random_namespace(namespace_factory) (Namespace) Create and return a random kubernetes namespace that will be deleted at the end of test run.</>
  • 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 used for testing (from command line argument).

Parameters
  • pytestconfig (Config)
generator

pytest_helm_charts.fixtures.kube_cluster(_existing_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
  • _existing_cluster_factory (callable of Cluster)
generator

pytest_helm_charts.fixtures.namespace_factory(kube_cluster) → callable(str: Namespace)

Return a new namespace that is deleted once the fixture is disposed.

Parameters
function

pytest_helm_charts.fixtures.random_namespace(namespace_factory) → Namespace

Create and return a random kubernetes namespace that will be deleted at the end of test run.

Parameters
  • namespace_factory (callable(str: Namespace))