Skip to content

Commit a594613

Browse files
committed
fix required registry URL
1 parent 3e3d2f1 commit a594613

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

services/director-v2/tests/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ def mock_env(
186186
"REGISTRY_PW": "test",
187187
"REGISTRY_SSL": "false",
188188
"REGISTRY_USER": "test",
189+
"REGISTRY_URL": faker.url(),
189190
"SC_BOOT_MODE": "production",
190191
"SIMCORE_SERVICES_NETWORK_NAME": "test_network_name",
191192
"SWARM_STACK_NAME": "pytest-simcore",

services/dynamic-sidecar/.env-devel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ DY_SIDECAR_RUN_ID=1689771013_f7c1bd87-4da5-4709-9471-3d60c8a70639
2222
DY_SIDECAR_USER_SERVICES_HAVE_INTERNET_ACCESS=false
2323

2424
# DOCKER REGISTRY
25-
DY_DEPLOYMENT_REGISTRY_SETTINGS='{"REGISTRY_AUTH":"false","REGISTRY_USER":"test","REGISTRY_PW":"test","REGISTRY_SSL":"false"}'
25+
DY_DEPLOYMENT_REGISTRY_SETTINGS='{"REGISTRY_AUTH":"false","REGISTRY_USER":"test","REGISTRY_PW":"test","REGISTRY_SSL":"false", "REGISTRY_URL": "fake.registry.com"}'
2626

2727
S3_ENDPOINT=http://111.111.111.111:12345
2828
S3_ACCESS_KEY=mocked

services/dynamic-sidecar/tests/conftest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ def base_mock_envs(
197197
"REGISTRY_USER": "test",
198198
"REGISTRY_PW": "test",
199199
"REGISTRY_SSL": "false",
200+
"REGISTRY_URL": "registry.pytest.com",
200201
}
201202
),
202203
"DYNAMIC_SIDECAR_TRACING": "null",
@@ -267,6 +268,7 @@ def mock_environment(
267268
"REGISTRY_USER": "test",
268269
"REGISTRY_PW": "test",
269270
"REGISTRY_SSL": "false",
271+
"REGISTRY_URL": "registry.pytest.com",
270272
}
271273
),
272274
},

services/dynamic-sidecar/tests/unit/test_core_external_dependencies.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,11 @@ def mock_environment(
5959
"POSTGRES_USER": "test",
6060
"POSTGRES_PASSWORD": "test",
6161
"POSTGRES_DB": "test",
62-
"REGISTRY_AUTH": "0",
63-
"REGISTRY_USER": "test",
64-
"REGISTRY_PW": "test",
65-
"REGISTRY_SSL": "0",
62+
"REGISTRY_AUTH": f"{faker.pybool()}",
63+
"REGISTRY_USER": faker.user_name(),
64+
"REGISTRY_PW": faker.password(),
65+
"REGISTRY_SSL": f"{faker.pybool()}",
66+
"REGISTRY_URL": faker.url(),
6667
**base_mock_envs,
6768
},
6869
)

0 commit comments

Comments
 (0)