core: return relative app launch URL to improve app list performance #21937
Annotations
13 errors and 1 warning
|
|
|
|
|
|
|
|
|
|
authentik/core/tests/test_applications_api.py#L58
TestApplicationsAPI.test_list_superuser_full_list
AssertionError: {'pag[209 chars]d', 'provider': 25, 'provider_obj': {'pk': 25,[1125 chars]''}]} != {'pag[209 chars]d', 'group': '', 'provider': 25, 'provider_obj[1081 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/rHHwMkJnwSSZ8CZZhxK4',
'meta_description': '',
'meta_icon': None,
'meta_launch_url': 'https://goauthentik.io/%(username)s',
'meta_publisher': '',
'name': 'allowed',
'open_in_new_tab': True,
'pk': '611ec523-91bc-444a-b3d9-dc0db38b1afc',
'policy_engine_mode': 'any',
'provider': 25,
'provider_obj': {'assigned_application_name': 'allowed',
'assigned_application_slug': 'allowed',
'authentication_flow': None,
'authorization_flow': '8a4e1647-1c9d-4ef7-951c-b9692d8daaae',
'component': 'ak-provider-oauth2-form',
'meta_model_name': 'authentik_providers_oauth2.oauth2provider',
'name': 'test',
'pk': 25,
'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': 'e40762cb-3494-46d4-97a6-4727efdd5167',
'policy_engine_mode': 'any',
'provider': None,
'provider_obj': None,
'slug': 'denied'}]}
|
authentik/core/tests/test_applications_api.py#L58
TestApplicationsAPI.test_list
AssertionError: {'pag[209 chars]d', 'provider': 28, 'provider_obj': {'pk': 28,[721 chars]''}]} != {'pag[209 chars]d', 'group': '', 'provider': 28, 'provider_obj[719 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/7pAHVAZ36raroN97rFp7',
'meta_description': '',
'meta_icon': None,
'meta_launch_url': 'https://goauthentik.io/%(username)s',
'meta_publisher': '',
'name': 'allowed',
'open_in_new_tab': True,
'pk': 'c636af06-1440-4342-8b8a-9704a697a5f1',
'policy_engine_mode': 'any',
'provider': 28,
'provider_obj': {'assigned_application_name': 'allowed',
'assigned_application_slug': 'allowed',
'authentication_flow': None,
'authorization_flow': '7e441618-d85e-457d-8fa7-242487adcaac',
'component': 'ak-provider-oauth2-form',
'meta_model_name': 'authentik_providers_oauth2.oauth2provider',
'name': 'test',
'pk': 28,
'property_mappings': [],
'verbose_name': 'OAuth2/OpenID Provider',
'verbose_name_plural': 'OAuth2/OpenID '
'Providers'},
'slug': 'allowed'}]}
|
|
|
This job failed
Loading