This modules contains apps useful for testing HTTP applications.

Functions
  • gatling_app_factory(kube_cluster, app_factory) (iterable of callable(str, dict(str: str), optional: ConfiguredApp)) A factory fixture to return a function that can produce Gatling instances. Gatling is a HTTP performance testing tool.</>
  • stormforger_load_app_factory(app_factory) (callable(int, str, dict(str: str), optional: ConfiguredApp)) A factory fixture to return a function that can produce Stromforger Load App instances.</>
function

pytest_helm_charts.giantswarm_app_platform.apps.http_testing.stormforger_load_app_factory(app_factory)

A factory fixture to return a function that can produce Stromforger Load App instances.

Parameters
Returns (callable(int, str, dict(str: str), optional: ConfiguredApp))

A function you can use to create stormforger instances. The function has the following args.

Examples

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"})
generator

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.

Parameters
Returns (iterable of callable(str, dict(str: str), optional: ConfiguredApp))

A function you can use to create Gatling instances.