Skip to content

Commit

Permalink
SEBSERV-570 fixed, skip full integration test for plugin version 1
Browse files Browse the repository at this point in the history
  • Loading branch information
anhefti committed Aug 13, 2024
1 parent c9bb7d6 commit 4b6af4e
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,17 @@ public LmsSetupTestResult testAdHoc(final LmsSetup lmsSetup) {
}

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();
Expand Down

0 comments on commit 4b6af4e

Please sign in to comment.