*: fix tests for new field show_source_labels
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
8d995011b8
commit
bfc8a56a0b
|
@ -545,6 +545,7 @@ class TestFlowExecutor(APITestCase):
|
||||||
"password_fields": False,
|
"password_fields": False,
|
||||||
"primary_action": "Log in",
|
"primary_action": "Log in",
|
||||||
"sources": [],
|
"sources": [],
|
||||||
|
"show_source_labels": False,
|
||||||
"user_fields": [UserFields.E_MAIL],
|
"user_fields": [UserFields.E_MAIL],
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
|
@ -60,6 +60,7 @@ class TestFlowInspector(APITestCase):
|
||||||
"password_fields": False,
|
"password_fields": False,
|
||||||
"primary_action": "Log in",
|
"primary_action": "Log in",
|
||||||
"sources": [],
|
"sources": [],
|
||||||
|
"show_source_labels": False,
|
||||||
"user_fields": ["username"],
|
"user_fields": ["username"],
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
|
@ -75,6 +75,7 @@ class AuthenticatorValidateStageTests(APITestCase):
|
||||||
},
|
},
|
||||||
"user_fields": ["username"],
|
"user_fields": ["username"],
|
||||||
"sources": [],
|
"sources": [],
|
||||||
|
"show_source_labels": False,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -123,6 +123,7 @@ class TestIdentificationStage(APITestCase):
|
||||||
"name": "test",
|
"name": "test",
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"show_source_labels": False,
|
||||||
"user_fields": ["email"],
|
"user_fields": ["email"],
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
@ -158,6 +159,7 @@ class TestIdentificationStage(APITestCase):
|
||||||
{"code": "invalid", "string": "Failed to " "authenticate."}
|
{"code": "invalid", "string": "Failed to " "authenticate."}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"show_source_labels": False,
|
||||||
"flow_info": {
|
"flow_info": {
|
||||||
"background": self.flow.background_url,
|
"background": self.flow.background_url,
|
||||||
"cancel_url": reverse("authentik_flows:cancel"),
|
"cancel_url": reverse("authentik_flows:cancel"),
|
||||||
|
@ -218,6 +220,7 @@ class TestIdentificationStage(APITestCase):
|
||||||
"authentik_core:if-flow",
|
"authentik_core:if-flow",
|
||||||
kwargs={"flow_slug": "unique-enrollment-string"},
|
kwargs={"flow_slug": "unique-enrollment-string"},
|
||||||
),
|
),
|
||||||
|
"show_source_labels": False,
|
||||||
"primary_action": "Log in",
|
"primary_action": "Log in",
|
||||||
"flow_info": {
|
"flow_info": {
|
||||||
"background": flow.background_url,
|
"background": flow.background_url,
|
||||||
|
@ -267,6 +270,7 @@ class TestIdentificationStage(APITestCase):
|
||||||
"authentik_core:if-flow",
|
"authentik_core:if-flow",
|
||||||
kwargs={"flow_slug": "unique-recovery-string"},
|
kwargs={"flow_slug": "unique-recovery-string"},
|
||||||
),
|
),
|
||||||
|
"show_source_labels": False,
|
||||||
"primary_action": "Log in",
|
"primary_action": "Log in",
|
||||||
"flow_info": {
|
"flow_info": {
|
||||||
"background": flow.background_url,
|
"background": flow.background_url,
|
||||||
|
|
Reference in New Issue