diracx-testing 0.0.1a19__py3-none-any.whl → 0.0.1a21__py3-none-any.whl

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.
@@ -6,6 +6,7 @@ import asyncio
6
6
  import contextlib
7
7
  import os
8
8
  import re
9
+ import ssl
9
10
  import subprocess
10
11
  from datetime import datetime, timedelta, timezone
11
12
  from functools import partial
@@ -20,7 +21,7 @@ import requests
20
21
 
21
22
  if TYPE_CHECKING:
22
23
  from diracx.core.settings import DevelopmentSettings
23
- from diracx.routers.job_manager.sandboxes import SandboxStoreSettings
24
+ from diracx.routers.jobs.sandboxes import SandboxStoreSettings
24
25
  from diracx.routers.utils.users import AuthorizedUserInfo, AuthSettings
25
26
 
26
27
 
@@ -123,7 +124,7 @@ def aio_moto(worker_id):
123
124
 
124
125
  @pytest.fixture(scope="session")
125
126
  def test_sandbox_settings(aio_moto) -> SandboxStoreSettings:
126
- from diracx.routers.job_manager.sandboxes import SandboxStoreSettings
127
+ from diracx.routers.jobs.sandboxes import SandboxStoreSettings
127
128
 
128
129
  yield SandboxStoreSettings(
129
130
  bucket_name="sandboxes",
@@ -456,6 +457,50 @@ def with_config_repo(tmp_path_factory):
456
457
  }
457
458
  },
458
459
  "Operations": {"Defaults": {}},
460
+ "Systems": {
461
+ "WorkloadManagement": {
462
+ "Production": {
463
+ "Databases": {
464
+ "JobDB": {
465
+ "DBName": "xyz",
466
+ "Host": "xyz",
467
+ "Port": 9999,
468
+ "MaxRescheduling": 3,
469
+ },
470
+ "JobLoggingDB": {
471
+ "DBName": "xyz",
472
+ "Host": "xyz",
473
+ "Port": 9999,
474
+ },
475
+ "PilotAgentsDB": {
476
+ "DBName": "xyz",
477
+ "Host": "xyz",
478
+ "Port": 9999,
479
+ },
480
+ "SandboxMetadataDB": {
481
+ "DBName": "xyz",
482
+ "Host": "xyz",
483
+ "Port": 9999,
484
+ },
485
+ "TaskQueueDB": {
486
+ "DBName": "xyz",
487
+ "Host": "xyz",
488
+ "Port": 9999,
489
+ },
490
+ "ElasticJobParametersDB": {
491
+ "DBName": "xyz",
492
+ "Host": "xyz",
493
+ "Port": 9999,
494
+ },
495
+ "VirtualMachineDB": {
496
+ "DBName": "xyz",
497
+ "Host": "xyz",
498
+ "Port": 9999,
499
+ },
500
+ },
501
+ },
502
+ },
503
+ },
459
504
  }
460
505
  )
461
506
  cs_file.write_text(example_cs.model_dump_json())
@@ -516,7 +561,11 @@ def cli_env(monkeypatch, tmp_path, demo_urls, demo_dir):
516
561
  raise RuntimeError(f"Could not find {ca_path}, is the demo running?")
517
562
 
518
563
  # Ensure the demo is working
519
- r = httpx.get(f"{diracx_url}/api/openapi.json", verify=ca_path)
564
+
565
+ r = httpx.get(
566
+ f"{diracx_url}/api/openapi.json",
567
+ verify=ssl.create_default_context(cafile=ca_path),
568
+ )
520
569
  r.raise_for_status()
521
570
  assert r.json()["info"]["title"] == "Dirac"
522
571
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: diracx-testing
3
- Version: 0.0.1a19
3
+ Version: 0.0.1a21
4
4
  Summary: TODO
5
5
  License: GPL-3.0-only
6
6
  Classifier: Intended Audience :: Science/Research
@@ -16,4 +16,3 @@ Requires-Dist: pytest-cov
16
16
  Requires-Dist: pytest-xdist
17
17
  Provides-Extra: testing
18
18
  Requires-Dist: diracx-testing; extra == "testing"
19
-
@@ -0,0 +1,9 @@
1
+ diracx/testing/__init__.py,sha256=U8uISRWj_nVGNvNrBQ4HravoymI-QhsMW_wPUEaKfHw,23537
2
+ diracx/testing/dummy_osdb.py,sha256=bNk3LF8KgMuQx3RVFNYuw4hMmpG2A80sZ58rEZqHo7M,907
3
+ diracx/testing/mock_osdb.py,sha256=1TFb3b0xDb2vIy4Q4V23VtrsWoT3RE5kOZmOs8n541g,5862
4
+ diracx/testing/osdb.py,sha256=m6mUBLnGOoQLTCIBie9P2GhmLMybrgzIrlIYfhF1_Ss,3230
5
+ diracx/testing/routers.py,sha256=UW-TnikMQgcNxF5sUZD5DWoucGiCpP6s8mYmuahDiSc,979
6
+ diracx_testing-0.0.1a21.dist-info/METADATA,sha256=MTdA9v7Ye9PgdJOrm34XiwmmExlr_cfYDwm9-toO0MY,613
7
+ diracx_testing-0.0.1a21.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
8
+ diracx_testing-0.0.1a21.dist-info/top_level.txt,sha256=vJx10tdRlBX3rF2Psgk5jlwVGZNcL3m_7iQWwgPXt-U,7
9
+ diracx_testing-0.0.1a21.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.1.0)
2
+ Generator: setuptools (75.6.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,9 +0,0 @@
1
- diracx/testing/__init__.py,sha256=vuPYuD45HWaIJKJ2mp8GCHWMy7JH7q4YsEmJF_2BEgQ,21658
2
- diracx/testing/dummy_osdb.py,sha256=bNk3LF8KgMuQx3RVFNYuw4hMmpG2A80sZ58rEZqHo7M,907
3
- diracx/testing/mock_osdb.py,sha256=1TFb3b0xDb2vIy4Q4V23VtrsWoT3RE5kOZmOs8n541g,5862
4
- diracx/testing/osdb.py,sha256=m6mUBLnGOoQLTCIBie9P2GhmLMybrgzIrlIYfhF1_Ss,3230
5
- diracx/testing/routers.py,sha256=UW-TnikMQgcNxF5sUZD5DWoucGiCpP6s8mYmuahDiSc,979
6
- diracx_testing-0.0.1a19.dist-info/METADATA,sha256=StjnXtu3Qoj5sn5c_XnAlOmLtPE_1jgk5M7GljluGug,614
7
- diracx_testing-0.0.1a19.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
8
- diracx_testing-0.0.1a19.dist-info/top_level.txt,sha256=vJx10tdRlBX3rF2Psgk5jlwVGZNcL3m_7iQWwgPXt-U,7
9
- diracx_testing-0.0.1a19.dist-info/RECORD,,