core: return relative app launch URL to improve app list performance #21937
Annotations
3 errors and 1 warning
authentik/core/tests/test_applications_api.py#L58
TestApplicationsAPI.test_list
AssertionError: {'pag[209 chars]d', 'provider': 151, 'provider_obj': {'pk': 15[723 chars]''}]} != {'pag[209 chars]d', 'group': '', 'provider': 151, 'provider_ob[721 chars]y'}]}
{'pagination': {'count': 2,
'current': 1,
'end_index': 2,
'next': 0,
'previous': 0,
'start_index': 1,
'total_pages': 1},
'results': [{'backchannel_providers': [],
'backchannel_providers_obj': [],
'group': '',
- 'launch_url': 'http://testserver/application/launch/allowed/',
+ 'launch_url': 'https://goauthentik.io/cFXciqlgROxgAGmvV0dx',
'meta_description': '',
'meta_icon': None,
'meta_launch_url': 'https://goauthentik.io/%(username)s',
'meta_publisher': '',
'name': 'allowed',
'open_in_new_tab': True,
'pk': '7a1ec0fd-6ae6-4e7e-9405-7d3239875a6b',
'policy_engine_mode': 'any',
'provider': 151,
'provider_obj': {'assigned_application_name': 'allowed',
'assigned_application_slug': 'allowed',
'authentication_flow': None,
'authorization_flow': 'f7b1f59b-675e-4c54-a4a0-8f8c344acc21',
'component': 'ak-provider-oauth2-form',
'meta_model_name': 'authentik_providers_oauth2.oauth2provider',
'name': 'test',
'pk': 151,
'property_mappings': [],
'verbose_name': 'OAuth2/OpenID Provider',
'verbose_name_plural': 'OAuth2/OpenID '
'Providers'},
'slug': 'allowed'}]}
|
authentik/core/tests/test_applications_api.py#L58
TestApplicationsAPI.test_list_superuser_full_list
AssertionError: {'pag[209 chars]d', 'provider': 153, 'provider_obj': {'pk': 15[1127 chars]''}]} != {'pag[209 chars]d', 'group': '', 'provider': 153, 'provider_ob[1083 chars]d'}]}
{'pagination': {'count': 2,
'current': 1,
'end_index': 2,
'next': 0,
'previous': 0,
'start_index': 1,
'total_pages': 1},
'results': [{'backchannel_providers': [],
'backchannel_providers_obj': [],
'group': '',
- 'launch_url': 'http://testserver/application/launch/allowed/',
+ 'launch_url': 'https://goauthentik.io/clu0Mi5yey6osR8FGM4z',
'meta_description': '',
'meta_icon': None,
'meta_launch_url': 'https://goauthentik.io/%(username)s',
'meta_publisher': '',
'name': 'allowed',
'open_in_new_tab': True,
'pk': '478586b8-c2fa-4429-a94e-b83a22339c38',
'policy_engine_mode': 'any',
'provider': 153,
'provider_obj': {'assigned_application_name': 'allowed',
'assigned_application_slug': 'allowed',
'authentication_flow': None,
'authorization_flow': 'e08b28c2-c629-4fa2-8a66-5aea7e618571',
'component': 'ak-provider-oauth2-form',
'meta_model_name': 'authentik_providers_oauth2.oauth2provider',
'name': 'test',
'pk': 153,
'property_mappings': [],
'verbose_name': 'OAuth2/OpenID Provider',
'verbose_name_plural': 'OAuth2/OpenID '
'Providers'},
'slug': 'allowed'},
{'backchannel_providers': [],
'backchannel_providers_obj': [],
'group': '',
- 'launch_url': 'http://testserver/application/launch/denied/',
+ 'launch_url': None,
'meta_description': '',
'meta_icon': None,
'meta_launch_url': '',
'meta_publisher': '',
'name': 'denied',
'open_in_new_tab': False,
'pk': '747a8497-9b84-4d8d-ac24-b16df9c97b59',
'policy_engine_mode': 'any',
'provider': None,
'provider_obj': None,
'slug': 'denied'}]}
|
|
|
This job failed
Loading