vapor-ware / kubetest

Kubernetes integration testing in Python via pytest
https://kubetest.readthedocs.io/en/latest/
GNU General Public License v3.0
206 stars 57 forks source link

Provide TestClient.load_job() #216

Open guhcampos opened 3 years ago

guhcampos commented 3 years ago

I recently stumbled into the project and evaluated it for the testing needs of a kubernetes operator I'm working on, but noticed the absence of a TestClient.load_job() feature which I believe makes sense as part of the plugin.

My particular use case, for context, is:

  1. load several jobs into the cluster: a failed, a succeeded and a currently running (sleeps for a long time) jobs from a pytest fixture
  2. yield
  3. run tests which are supposed to react to different job states
  4. delete the loaded jobs from the cluster