Skip to content

Commit be3fa72

Browse files
committed
Merge branch 'jul/migrate-fake-oidc-endpoint' into 'master'
fix(tests): migrate fake-oidc endpoints to /issuers/fake-oidc See merge request TankerHQ/sdk-python!314
2 parents 3e37c6e + 82093c4 commit be3fa72

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

poetry.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ pytest = "7.2.0"
4646
pytest-cov = "4.0.0"
4747
pytest-asyncio = "0.20.2"
4848
pytest-xdist = "3.0.2"
49-
tankeradminsdk = { version = "^5.0.0", source = "gitlab" }
49+
tankeradminsdk = { version = "^6.0.0", source = "gitlab" }
5050
tankersdk-identity = "3.3.2"
5151

5252
[tool.poetry.build]

test/test_tanker.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def read_test_config() -> Dict[str, Any]:
6969
"clientSecret": assert_env("TANKER_OIDC_CLIENT_SECRET"),
7070
"provider": assert_env("TANKER_OIDC_PROVIDER"),
7171
"issuer": assert_env("TANKER_OIDC_ISSUER"),
72-
"fakeOidcIssuerUrl": assert_env("TANKER_FAKE_OIDC_URL") + "/issuer",
72+
"fakeOidcIssuerUrl": assert_env("TANKER_FAKE_OIDC_URL") + "/issuers/main",
7373
}
7474
res["oidc"]["users"] = {
7575
"martine": {
@@ -1540,7 +1540,10 @@ def set_up_oidc(app: Dict[str, str], admin: Admin) -> Dict[str, str]:
15401540
app["id"],
15411541
oidc_providers=[
15421542
AppOidcProvider(
1543-
client_id=oidc_client_id, display_name=oidc_provider, issuer=oidc_issuer
1543+
client_id=oidc_client_id,
1544+
display_name=oidc_provider,
1545+
issuer=oidc_issuer,
1546+
provider_group_id="WXMnNsPtVsMmP-4frYkCVK7DKC1HrsfFjW_CC7kQ8Jg",
15441547
)
15451548
],
15461549
)
@@ -1558,7 +1561,10 @@ def set_up_fake_oidc(app: Dict[str, str], admin: Admin) -> Dict[str, str]:
15581561
app["id"],
15591562
oidc_providers=[
15601563
AppOidcProvider(
1561-
client_id=oidc_client_id, display_name=oidc_provider, issuer=oidc_issuer
1564+
client_id=oidc_client_id,
1565+
display_name=oidc_provider,
1566+
issuer=oidc_issuer,
1567+
provider_group_id="zHH4ySkOPdKbgLYD-e-ypGxGekJqp7Wl6zNB6KKPPjk",
15621568
)
15631569
],
15641570
)

0 commit comments

Comments
 (0)