pytest-pve-cloud 3.2.2__tar.gz → 3.2.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (20) hide show
  1. {pytest_pve_cloud-3.2.2/src/pytest_pve_cloud.egg-info → pytest_pve_cloud-3.2.3}/PKG-INFO +2 -2
  2. {pytest_pve_cloud-3.2.2 → pytest_pve_cloud-3.2.3}/requirements.txt +1 -1
  3. pytest_pve_cloud-3.2.3/src/pve_cloud_test/_version.py +1 -0
  4. {pytest_pve_cloud-3.2.2 → pytest_pve_cloud-3.2.3}/src/pve_cloud_test/k8s_fixtures.py +30 -0
  5. {pytest_pve_cloud-3.2.2 → pytest_pve_cloud-3.2.3/src/pytest_pve_cloud.egg-info}/PKG-INFO +2 -2
  6. {pytest_pve_cloud-3.2.2 → pytest_pve_cloud-3.2.3}/src/pytest_pve_cloud.egg-info/requires.txt +1 -1
  7. pytest_pve_cloud-3.2.2/src/pve_cloud_test/_version.py +0 -1
  8. {pytest_pve_cloud-3.2.2 → pytest_pve_cloud-3.2.3}/LICENSE.md +0 -0
  9. {pytest_pve_cloud-3.2.2 → pytest_pve_cloud-3.2.3}/README.md +0 -0
  10. {pytest_pve_cloud-3.2.2 → pytest_pve_cloud-3.2.3}/pyproject.toml +0 -0
  11. {pytest_pve_cloud-3.2.2 → pytest_pve_cloud-3.2.3}/setup.cfg +0 -0
  12. {pytest_pve_cloud-3.2.2 → pytest_pve_cloud-3.2.3}/src/pve_cloud_test/cloud_fixtures.py +0 -0
  13. {pytest_pve_cloud-3.2.2 → pytest_pve_cloud-3.2.3}/src/pve_cloud_test/options.py +0 -0
  14. {pytest_pve_cloud-3.2.2 → pytest_pve_cloud-3.2.3}/src/pve_cloud_test/tdd_watchdog.py +0 -0
  15. {pytest_pve_cloud-3.2.2 → pytest_pve_cloud-3.2.3}/src/pve_cloud_test/terraform.py +0 -0
  16. {pytest_pve_cloud-3.2.2 → pytest_pve_cloud-3.2.3}/src/pve_cloud_test/test_env_schema.yaml +0 -0
  17. {pytest_pve_cloud-3.2.2 → pytest_pve_cloud-3.2.3}/src/pytest_pve_cloud.egg-info/SOURCES.txt +0 -0
  18. {pytest_pve_cloud-3.2.2 → pytest_pve_cloud-3.2.3}/src/pytest_pve_cloud.egg-info/dependency_links.txt +0 -0
  19. {pytest_pve_cloud-3.2.2 → pytest_pve_cloud-3.2.3}/src/pytest_pve_cloud.egg-info/entry_points.txt +0 -0
  20. {pytest_pve_cloud-3.2.2 → pytest_pve_cloud-3.2.3}/src/pytest_pve_cloud.egg-info/top_level.txt +0 -0
@@ -1,10 +1,10 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pytest-pve-cloud
3
- Version: 3.2.2
3
+ Version: 3.2.3
4
4
  Author-email: Tobias Huebner <tobias.huebner@vmzberlin.com>
5
5
  License-Expression: GPL-3.0-or-later
6
6
  License-File: LICENSE.md
7
- Requires-Dist: py-pve-cloud<3.3.0,>=3.2.2
7
+ Requires-Dist: py-pve-cloud<3.3.0,>=3.2.3
8
8
  Requires-Dist: kubernetes==34.1.0
9
9
  Requires-Dist: pytest==8.4.2
10
10
  Requires-Dist: ansible-runner==2.4.2
@@ -1,4 +1,4 @@
1
- py-pve-cloud>=3.2.2,<3.3.0
1
+ py-pve-cloud>=3.2.3,<3.3.0
2
2
  kubernetes==34.1.0
3
3
  pytest==8.4.2
4
4
  ansible-runner==2.4.2
@@ -0,0 +1 @@
1
+ __version__ = "3.2.3"
@@ -288,6 +288,21 @@ def get_secondary_kubeconfig(get_test_env):
288
288
  )
289
289
 
290
290
 
291
+ @pytest.fixture(scope="session")
292
+ def get_k8s_api_v1_batch(get_primary_kubeconfig):
293
+ kubeconfig = get_primary_kubeconfig
294
+
295
+ # auth kubernetes api
296
+ with tempfile.NamedTemporaryFile(mode="w", delete=False) as temp_file:
297
+ temp_file.write(kubeconfig)
298
+ temp_file.flush()
299
+ config.load_kube_config(config_file=temp_file.name)
300
+
301
+ v1 = client.BatchV1Api()
302
+
303
+ return v1
304
+
305
+
291
306
  @pytest.fixture(scope="session")
292
307
  def get_k8s_api_v1(get_primary_kubeconfig):
293
308
  kubeconfig = get_primary_kubeconfig
@@ -303,6 +318,21 @@ def get_k8s_api_v1(get_primary_kubeconfig):
303
318
  return v1
304
319
 
305
320
 
321
+ @pytest.fixture(scope="session")
322
+ def get_k8s_secondary_api_v1_batch(get_secondary_kubeconfig):
323
+ kubeconfig = get_secondary_kubeconfig
324
+
325
+ # auth kubernetes api
326
+ with tempfile.NamedTemporaryFile(mode="w", delete=False) as temp_file:
327
+ temp_file.write(kubeconfig)
328
+ temp_file.flush()
329
+ config.load_kube_config(config_file=temp_file.name)
330
+
331
+ v1 = client.BatchV1Api()
332
+
333
+ return v1
334
+
335
+
306
336
  @pytest.fixture(scope="session")
307
337
  def get_k8s_secondary_api_v1(get_secondary_kubeconfig):
308
338
  kubeconfig = get_secondary_kubeconfig
@@ -1,10 +1,10 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pytest-pve-cloud
3
- Version: 3.2.2
3
+ Version: 3.2.3
4
4
  Author-email: Tobias Huebner <tobias.huebner@vmzberlin.com>
5
5
  License-Expression: GPL-3.0-or-later
6
6
  License-File: LICENSE.md
7
- Requires-Dist: py-pve-cloud<3.3.0,>=3.2.2
7
+ Requires-Dist: py-pve-cloud<3.3.0,>=3.2.3
8
8
  Requires-Dist: kubernetes==34.1.0
9
9
  Requires-Dist: pytest==8.4.2
10
10
  Requires-Dist: ansible-runner==2.4.2
@@ -1,4 +1,4 @@
1
- py-pve-cloud<3.3.0,>=3.2.2
1
+ py-pve-cloud<3.3.0,>=3.2.3
2
2
  kubernetes==34.1.0
3
3
  pytest==8.4.2
4
4
  ansible-runner==2.4.2
@@ -1 +0,0 @@
1
- __version__ = "3.2.2"