Skip to content

Commit

Permalink
Merge pull request #126 from RADAR-base/security-updates
Browse files Browse the repository at this point in the history
Security updates
  • Loading branch information
Bdegraaf1234 authored Apr 22, 2024
2 parents 38f1904 + 4f26630 commit 5607b7a
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 28 deletions.
20 changes: 9 additions & 11 deletions buildSrc/src/main/kotlin/Versions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ object Versions {
const val project = "0.4.2-SNAPSHOT"

const val java = 17
const val kotlin = "1.9.10"
const val kotlin = "1.9.22"
const val wrapper = "8.4"

const val radarCommons = "1.1.2"
Expand All @@ -14,20 +14,18 @@ object Versions {
const val managementPortal = "2.0.0"

// From image
const val jackson = "2.16.1"
const val jackson = "2.17.0"

const val log4j2 = "2.20.0"
const val slf4j = "2.0.9"
const val log4j2 = "2.23.1"
const val slf4j = "2.0.13"

const val okhttp = "4.12.0"

const val firebaseAdmin = "9.1.0"
const val firebaseAdmin = "9.2.0"
const val radarSchemas = "0.8.7-hotfix"
const val ktor = "2.3.5"
const val ktor = "2.3.10"

const val junit = "5.9.3"
const val wiremock = "2.27.2"
const val mockito = "5.3.1"

const val kotlinVersion = "1.9.10"
const val junit = "5.10.2"
const val wiremock = "3.0.1"
const val mockito = "5.11.0"
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,11 @@

package org.radarbase.connect.rest;

import static com.github.tomakehurst.wiremock.client.WireMock.aResponse;
import static com.github.tomakehurst.wiremock.client.WireMock.equalTo;
import static com.github.tomakehurst.wiremock.client.WireMock.matching;
import static com.github.tomakehurst.wiremock.client.WireMock.post;
import static com.github.tomakehurst.wiremock.client.WireMock.postRequestedFor;
import static com.github.tomakehurst.wiremock.client.WireMock.resetAllRequests;
import static com.github.tomakehurst.wiremock.client.WireMock.stubFor;
import static com.github.tomakehurst.wiremock.client.WireMock.urlEqualTo;
import static com.github.tomakehurst.wiremock.client.WireMock.urlMatching;
import static com.github.tomakehurst.wiremock.client.WireMock.verify;
import static com.github.tomakehurst.wiremock.core.WireMockConfiguration.wireMockConfig;
import static org.junit.jupiter.api.Assertions.assertEquals;

import com.github.tomakehurst.wiremock.WireMockServer;
import com.github.tomakehurst.wiremock.client.VerificationException;
import com.github.tomakehurst.wiremock.client.WireMock;
import com.github.tomakehurst.wiremock.verification.LoggedRequest;
import com.github.tomakehurst.wiremock.verification.NearMiss;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.kafka.connect.source.SourceRecord;
import org.apache.kafka.connect.source.SourceTaskContext;
import org.apache.kafka.connect.storage.OffsetStorageReader;
Expand All @@ -56,6 +40,23 @@
import org.radarbase.connect.rest.single.SingleRestSourceConnector;
import org.radarbase.connect.rest.single.SingleRestSourceConnectorConfig;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import static com.github.tomakehurst.wiremock.client.WireMock.aResponse;
import static com.github.tomakehurst.wiremock.client.WireMock.equalTo;
import static com.github.tomakehurst.wiremock.client.WireMock.matching;
import static com.github.tomakehurst.wiremock.client.WireMock.post;
import static com.github.tomakehurst.wiremock.client.WireMock.postRequestedFor;
import static com.github.tomakehurst.wiremock.client.WireMock.resetAllRequests;
import static com.github.tomakehurst.wiremock.client.WireMock.stubFor;
import static com.github.tomakehurst.wiremock.client.WireMock.urlEqualTo;
import static com.github.tomakehurst.wiremock.client.WireMock.urlMatching;
import static com.github.tomakehurst.wiremock.client.WireMock.verify;
import static com.github.tomakehurst.wiremock.core.WireMockConfiguration.wireMockConfig;
import static org.junit.jupiter.api.Assertions.assertEquals;

@ExtendWith(WireMockRule.class)
public class RestTaskTest {

Expand Down Expand Up @@ -167,7 +168,7 @@ public void afterEach(ExtensionContext context) {
}
}

private void checkForUnmatchedRequests() {
public void checkForUnmatchedRequests() {
List<LoggedRequest> unmatchedRequests = findAllUnmatchedRequests();
if (!unmatchedRequests.isEmpty()) {
List<NearMiss> nearMisses = findNearMissesForAllUnmatchedRequests();
Expand Down

0 comments on commit 5607b7a

Please sign in to comment.