From f632cc97500ecbcf338c908e68147124f6cf7006 Mon Sep 17 00:00:00 2001 From: anhefti Date: Tue, 13 Aug 2024 09:43:52 +0200 Subject: [PATCH] SEBSERV-570 fixed, skip full integration test for plugin version 1 --- .../servicelayer/lms/impl/LmsTestServiceImpl.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/LmsTestServiceImpl.java b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/LmsTestServiceImpl.java index 62356884..0cc67b27 100644 --- a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/LmsTestServiceImpl.java +++ b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/LmsTestServiceImpl.java @@ -93,12 +93,17 @@ public class LmsTestServiceImpl implements LmsTestService { } final LmsSetupTestResult lmsSetupTestResult = fullIntegrationTest(lmsSetupTemplate); - if (lmsSetupTestResult != null) return lmsSetupTestResult; + if (lmsSetupTestResult != null) { + return lmsSetupTestResult; + } return LmsSetupTestResult.ofOkay(lmsSetupTemplate.lmsSetup().getLmsType()); } private LmsSetupTestResult fullIntegrationTest(final LmsAPITemplate template) { + if (!template.fullIntegrationActive()) { + return null; + } if (template.lmsSetup().getLmsType().features.contains(LmsSetup.Features.LMS_FULL_INTEGRATION)) { final Long lmsSetupId = template.lmsSetup().id; final LmsSetupTestResult lmsSetupTestResult = template.testFullIntegrationAPI();