Skip to content

Commit 0c14aea

Browse files
committed
fix: Set up fake oidc with new python admin sdk API
1 parent d2e5039 commit 0c14aea

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

test/test_tanker.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1556,9 +1556,11 @@ def set_up_fake_oidc(app: Dict[str, str], admin: Admin) -> Dict[str, str]:
15561556
oidc_provider = "fake-oidc"
15571557
admin.update_app(
15581558
app["id"],
1559-
oidc_client_id=oidc_client_id,
1560-
oidc_display_name=oidc_provider,
1561-
oidc_issuer=oidc_issuer,
1559+
oidc_providers=[
1560+
AppOidcProvider(
1561+
client_id=oidc_client_id, display_name=oidc_provider, issuer=oidc_issuer
1562+
)
1563+
],
15621564
)
15631565

15641566
return cast(Dict[str, str], admin.get_app(app["id"])["oidc_providers"][0])

0 commit comments

Comments
 (0)