diff --git a/src/main/java/ch/ethz/seb/sebserver/gui/content/exam/LmsSetupForm.java b/src/main/java/ch/ethz/seb/sebserver/gui/content/exam/LmsSetupForm.java index f0644b52..74ed0f68 100644 --- a/src/main/java/ch/ethz/seb/sebserver/gui/content/exam/LmsSetupForm.java +++ b/src/main/java/ch/ethz/seb/sebserver/gui/content/exam/LmsSetupForm.java @@ -233,8 +233,7 @@ public class LmsSetupForm implements TemplateComposer { isEdit, () -> FormBuilder.text( Domain.LMS_SETUP.ATTR_LMS_REST_API_TOKEN, - FORM_TOKEN_LMS_TEXT_KEY) - .mandatory(!readonly)) + FORM_TOKEN_LMS_TEXT_KEY)) .addFieldIf( isEdit, diff --git a/src/test/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/moodle/plugin/MoodlePluginCourseRestrictionTest.java b/src/test/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/moodle/plugin/MoodlePluginCourseRestrictionTest.java index 42cd34df..31087aca 100644 --- a/src/test/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/moodle/plugin/MoodlePluginCourseRestrictionTest.java +++ b/src/test/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/moodle/plugin/MoodlePluginCourseRestrictionTest.java @@ -87,7 +87,7 @@ public class MoodlePluginCourseRestrictionTest { + "examId=1, " + "configKeys=[configKey1], " + "browserExamKeys=[BEK1, BEK2], " - + "additionalProperties={quit_link=quitLink, quit_secret=quitSecret}]", + + "additionalProperties={quitsecret=quitSecret, quitlink=quitLink}]", sebRestriction.toString()); Result sebClientRestriction = candidate.getSEBClientRestriction(exam); @@ -99,7 +99,7 @@ public class MoodlePluginCourseRestrictionTest { + "examId=1, " + "configKeys=[configKey1], " + "browserExamKeys=[BEK1, BEK2], " - + "additionalProperties={quit_link=quitLink, quit_secret=quitSecret}]", + + "additionalProperties={quitsecret=quitSecret, quitlink=quitLink}]", sebRestriction.toString()); assertTrue(candidate.hasSEBClientRestriction(exam)); @@ -120,7 +120,7 @@ public class MoodlePluginCourseRestrictionTest { + "examId=1, " + "configKeys=[], " + "browserExamKeys=[], " - + "additionalProperties={quit_link=quitLink, quit_secret=quitSecret}]", + + "additionalProperties={quitsecret=null, quitlink=null}]", sebRestriction.toString()); }