Most important fixtures included
The current list of all available fixtures can be found by running pytest --fixtures
.
The most important list is included below.
Generic fixture
This package contains modules for working with standard kubernetes API objects
Flux CD
This package includes fixtures and utilities to work with Flux CD.
Giant Swarm App Platform
This package includes utilities to work with Giant Swarm application platform.
Applications useful for testing
We provide fixtures delivering some applications that might be useful for testing apps, like load generators or simple test apps. They are deployed using Giant Swarm App Platform fixtures.
HTTP testing
pytest_helm_charts.giantswarm_app_platform.apps.http_testing.
gatling_app_factory
(
kube_cluster
, app_factory
)
A factory fixture to return a function that can produce Gatling instances. Gatling is a HTTP performance testing tool. Fixture's scope is 'module'..
kube_cluster
(Cluster) — auto-injected kube_cluster fixture.app_factory
(AppFactoryFunc) — auto-injected app_factory fixture.
A function you can use to create Gatling instances.
A factory fixture to return a function that can produce Stromforger Load App instances. Fixture's scope is 'module'..
app_factory
(AppFactoryFunc) — auto-injected app_factory fixture.
A function you can use to create stormforger instances. The function has the following args.
Create and run using 8 replicas erving the 'loadtest.local' URL. Use affinity selector to run on the 'localhost' Kubernetes Node.
>>> stormforger_load_app_factory(8, "loadtest.local", {"kubernetes.io/hostname": "localhost"})