fixed tests

This commit is contained in:
anhefti 2023-01-25 09:13:29 +01:00
parent 4888b4596c
commit b97152f91a
2 changed files with 4 additions and 5 deletions

View file

@ -233,8 +233,7 @@ public class LmsSetupForm implements TemplateComposer {
isEdit, isEdit,
() -> FormBuilder.text( () -> FormBuilder.text(
Domain.LMS_SETUP.ATTR_LMS_REST_API_TOKEN, Domain.LMS_SETUP.ATTR_LMS_REST_API_TOKEN,
FORM_TOKEN_LMS_TEXT_KEY) FORM_TOKEN_LMS_TEXT_KEY))
.mandatory(!readonly))
.addFieldIf( .addFieldIf(
isEdit, isEdit,

View file

@ -87,7 +87,7 @@ public class MoodlePluginCourseRestrictionTest {
+ "examId=1, " + "examId=1, "
+ "configKeys=[configKey1], " + "configKeys=[configKey1], "
+ "browserExamKeys=[BEK1, BEK2], " + "browserExamKeys=[BEK1, BEK2], "
+ "additionalProperties={quit_link=quitLink, quit_secret=quitSecret}]", + "additionalProperties={quitsecret=quitSecret, quitlink=quitLink}]",
sebRestriction.toString()); sebRestriction.toString());
Result<SEBRestriction> sebClientRestriction = candidate.getSEBClientRestriction(exam); Result<SEBRestriction> sebClientRestriction = candidate.getSEBClientRestriction(exam);
@ -99,7 +99,7 @@ public class MoodlePluginCourseRestrictionTest {
+ "examId=1, " + "examId=1, "
+ "configKeys=[configKey1], " + "configKeys=[configKey1], "
+ "browserExamKeys=[BEK1, BEK2], " + "browserExamKeys=[BEK1, BEK2], "
+ "additionalProperties={quit_link=quitLink, quit_secret=quitSecret}]", + "additionalProperties={quitsecret=quitSecret, quitlink=quitLink}]",
sebRestriction.toString()); sebRestriction.toString());
assertTrue(candidate.hasSEBClientRestriction(exam)); assertTrue(candidate.hasSEBClientRestriction(exam));
@ -120,7 +120,7 @@ public class MoodlePluginCourseRestrictionTest {
+ "examId=1, " + "examId=1, "
+ "configKeys=[], " + "configKeys=[], "
+ "browserExamKeys=[], " + "browserExamKeys=[], "
+ "additionalProperties={quit_link=quitLink, quit_secret=quitSecret}]", + "additionalProperties={quitsecret=null, quitlink=null}]",
sebRestriction.toString()); sebRestriction.toString());
} }