From cbc64f1496349b8b5046c3ce52786acecd8150bb Mon Sep 17 00:00:00 2001 From: Stefaan Lippens Date: Fri, 8 Oct 2021 09:31:27 +0200 Subject: [PATCH] fixup! Issue #7 EP-4046 WIP --- tests/conftest.py | 1 + tests/test_views.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index 6fbce6d4..b96a7ac0 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -47,6 +47,7 @@ def config(backend1, backend2) -> AggregatorConfig: # conf.flask_error_handling = False # Temporary disable flask error handlers to simplify debugging (better stack traces). conf.oidc_providers = [ + OidcProvider(id="egi", issuer="https://egi.test", title="EGI"), OidcProvider(id="x-agg", issuer="https://x.test", title="X (agg)"), OidcProvider(id="y-agg", issuer="https://y.test", title="Y (agg)"), OidcProvider(id="z-agg", issuer="https://z.test", title="Z (agg)"), diff --git a/tests/test_views.py b/tests/test_views.py index a77cf6f8..55dbdbc3 100644 --- a/tests/test_views.py +++ b/tests/test_views.py @@ -66,7 +66,7 @@ def test_credentials_oidc_intersection(self, requests_mock, config, backend1, ba res = api100.get("/credentials/oidc").assert_status_code(200).json assert res == {"providers": [ - {"id": "y", "issuer": "https://y.test", "title": "YY", "scopes": ["openid"]} + {"id": "y-agg", "issuer": "https://y.test", "title": "Y (agg)", "scopes": ["openid"]} ]} def test_me_unauthorized(self, api100):