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 d5ccc0f commit f632cc9
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 f632cc9

Please sign in to comment.