Skip to content
This repository has been archived by the owner on Sep 15, 2023. It is now read-only.

Commit

Permalink
fix verifier-ws
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Gstoehl committed Aug 16, 2023
1 parent b382fec commit b8184f7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import ch.admin.bag.covidcertificate.backend.config.shared.helper.CheckModeInfoHelper;
import ch.admin.bag.covidcertificate.backend.config.shared.helper.CovidCertNewsHelper;
import ch.admin.bag.covidcertificate.backend.config.shared.helper.FaqHelper;
import ch.admin.bag.covidcertificate.backend.config.shared.helper.InfoBoxHelper;
import ch.admin.bag.covidcertificate.backend.config.shared.poeditor.Messages;
import ch.admin.bag.covidcertificate.backend.config.verifier.ws.controller.VerifierConfigController;
import org.springframework.beans.factory.annotation.Value;
Expand All @@ -31,8 +32,9 @@ public VerifierConfigController verifierConfigController(
@Value("${ws.verifier.timeshiftDetection.enabled:false}")
boolean timeShiftDetectionEnabled,
@Value("${ws.verifier.checkModeReselectionAfterHours:48}")
int checkModeReselectionAfterHours) {
int checkModeReselectionAfterHours,
InfoBoxHelper infoBoxHelper) {
return new VerifierConfigController(
messages, checkModeInfoHelper, faqHelper, covidCertNewsHelper, timeShiftDetectionEnabled, checkModeReselectionAfterHours);
messages, checkModeInfoHelper, faqHelper, covidCertNewsHelper, timeShiftDetectionEnabled, checkModeReselectionAfterHours, infoBoxHelper);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,15 @@ public VerifierConfigController(
FaqHelper faqHelper,
CovidCertNewsHelper covidCertNewsHelper,
boolean timeshiftDetectionEnabled,
int checkModeReselectAfterHours) {
int checkModeReselectAfterHours,
InfoBoxHelper infoBoxHelper) {
this.messages = messages;
this.checkModeInfoHelper = checkModeInfoHelper;
this.faqHelper = faqHelper;
this.covidCertNewsHelper = covidCertNewsHelper;
this.timeshiftDetectionEnabled = timeshiftDetectionEnabled;
this.checkModeReselectAfterHours = checkModeReselectAfterHours;
this.infoBoxHelper = infoBoxHelper;
}

@Documentation(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public void testForUpdateNote() throws Exception {
.getResponse();
ConfigResponse resp =
testHelper.toConfigResponse(result, acceptMediaType, TestHelper.PATH_TO_CA_PEM);
ConfigAsserter.assertNoUpdate(resp);
ConfigAsserter.assertInfoBox(resp);
}

@Test
Expand Down

0 comments on commit b8184f7

Please sign in to comment.