Skip to content

Commit

Permalink
Merge branch 'jul/migrate-fake-oidc-endpoint' into 'master'
Browse files Browse the repository at this point in the history
fix(tests): migrate fake-oidc endpoints to /issuers/fake-oidc

See merge request TankerHQ/sdk-python!314
  • Loading branch information
JMounier committed Jul 19, 2024
2 parents 3e37c6e + 82093c4 commit be3fa72
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
10 changes: 5 additions & 5 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ pytest = "7.2.0"
pytest-cov = "4.0.0"
pytest-asyncio = "0.20.2"
pytest-xdist = "3.0.2"
tankeradminsdk = { version = "^5.0.0", source = "gitlab" }
tankeradminsdk = { version = "^6.0.0", source = "gitlab" }
tankersdk-identity = "3.3.2"

[tool.poetry.build]
Expand Down
12 changes: 9 additions & 3 deletions test/test_tanker.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def read_test_config() -> Dict[str, Any]:
"clientSecret": assert_env("TANKER_OIDC_CLIENT_SECRET"),
"provider": assert_env("TANKER_OIDC_PROVIDER"),
"issuer": assert_env("TANKER_OIDC_ISSUER"),
"fakeOidcIssuerUrl": assert_env("TANKER_FAKE_OIDC_URL") + "/issuer",
"fakeOidcIssuerUrl": assert_env("TANKER_FAKE_OIDC_URL") + "/issuers/main",
}
res["oidc"]["users"] = {
"martine": {
Expand Down Expand Up @@ -1540,7 +1540,10 @@ def set_up_oidc(app: Dict[str, str], admin: Admin) -> Dict[str, str]:
app["id"],
oidc_providers=[
AppOidcProvider(
client_id=oidc_client_id, display_name=oidc_provider, issuer=oidc_issuer
client_id=oidc_client_id,
display_name=oidc_provider,
issuer=oidc_issuer,
provider_group_id="WXMnNsPtVsMmP-4frYkCVK7DKC1HrsfFjW_CC7kQ8Jg",
)
],
)
Expand All @@ -1558,7 +1561,10 @@ def set_up_fake_oidc(app: Dict[str, str], admin: Admin) -> Dict[str, str]:
app["id"],
oidc_providers=[
AppOidcProvider(
client_id=oidc_client_id, display_name=oidc_provider, issuer=oidc_issuer
client_id=oidc_client_id,
display_name=oidc_provider,
issuer=oidc_issuer,
provider_group_id="zHH4ySkOPdKbgLYD-e-ypGxGekJqp7Wl6zNB6KKPPjk",
)
],
)
Expand Down

0 comments on commit be3fa72

Please sign in to comment.