diracx-testing 0.0.1a20__tar.gz → 0.0.1a21__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {diracx_testing-0.0.1a20 → diracx_testing-0.0.1a21}/PKG-INFO +1 -1
- {diracx_testing-0.0.1a20 → diracx_testing-0.0.1a21}/src/diracx/testing/__init__.py +52 -3
- {diracx_testing-0.0.1a20 → diracx_testing-0.0.1a21}/src/diracx_testing.egg-info/PKG-INFO +1 -1
- {diracx_testing-0.0.1a20 → diracx_testing-0.0.1a21}/README.md +0 -0
- {diracx_testing-0.0.1a20 → diracx_testing-0.0.1a21}/pyproject.toml +0 -0
- {diracx_testing-0.0.1a20 → diracx_testing-0.0.1a21}/setup.cfg +0 -0
- {diracx_testing-0.0.1a20 → diracx_testing-0.0.1a21}/src/diracx/testing/dummy_osdb.py +0 -0
- {diracx_testing-0.0.1a20 → diracx_testing-0.0.1a21}/src/diracx/testing/mock_osdb.py +0 -0
- {diracx_testing-0.0.1a20 → diracx_testing-0.0.1a21}/src/diracx/testing/osdb.py +0 -0
- {diracx_testing-0.0.1a20 → diracx_testing-0.0.1a21}/src/diracx/testing/routers.py +0 -0
- {diracx_testing-0.0.1a20 → diracx_testing-0.0.1a21}/src/diracx_testing.egg-info/SOURCES.txt +0 -0
- {diracx_testing-0.0.1a20 → diracx_testing-0.0.1a21}/src/diracx_testing.egg-info/dependency_links.txt +0 -0
- {diracx_testing-0.0.1a20 → diracx_testing-0.0.1a21}/src/diracx_testing.egg-info/requires.txt +0 -0
- {diracx_testing-0.0.1a20 → diracx_testing-0.0.1a21}/src/diracx_testing.egg-info/top_level.txt +0 -0
@@ -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.
|
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.
|
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
|
-
|
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
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{diracx_testing-0.0.1a20 → diracx_testing-0.0.1a21}/src/diracx_testing.egg-info/dependency_links.txt
RENAMED
File without changes
|
{diracx_testing-0.0.1a20 → diracx_testing-0.0.1a21}/src/diracx_testing.egg-info/requires.txt
RENAMED
File without changes
|
{diracx_testing-0.0.1a20 → diracx_testing-0.0.1a21}/src/diracx_testing.egg-info/top_level.txt
RENAMED
File without changes
|