Skip to main content

infrahub_sdk.pytest_plugin.models

Classes​

InfrahubTestExpectedResult ​

InfrahubTestResource ​

InfrahubBaseTest ​

Basic Infrahub test model used as a common ground for all tests.

InfrahubInputOutputTest ​

Methods:

parse_user_provided_data ​

parse_user_provided_data(path: Path | None) -> Any

Read and parse user provided data depending on a file extension.

This function handles JSON and YAML as they can be used to achieve the same goal. However some users may be more used to one format or another. If the file extension isn't known, assume the content is plain text.

update_paths ​

update_paths(self, base_dir: Path) -> None

get_input_data ​

get_input_data(self) -> Any

get_output_data ​

get_output_data(self) -> Any

InfrahubIntegrationTest ​

Methods:

update_paths ​

update_paths(self, base_dir: Path) -> None

get_variables_data ​

get_variables_data(self) -> dict[str, Any]

InfrahubCheckSmokeTest ​

InfrahubCheckUnitProcessTest ​

InfrahubCheckIntegrationTest ​

InfrahubGraphQLQuerySmokeTest ​

InfrahubGraphQLQueryIntegrationTest ​

InfrahubJinja2TransformSmokeTest ​

InfrahubJinja2TransformUnitRenderTest ​

InfrahubJinja2TransformIntegrationTest ​

InfrahubPythonTransformSmokeTest ​

InfrahubPythonTransformUnitProcessTest ​

InfrahubPythonTransformIntegrationTest ​

InfrahubTest ​

InfrahubTestGroup ​

InfrahubTestFileV1 ​