Browse Source

Fix black-box tests compilation on Spring Boot 4

pull/16341/head
Viacheslav Klimov 2 months ago
parent
commit
0075302108
Failed to extract signature
  1. 1
      msa/black-box-tests/src/test/java/org/thingsboard/server/msa/ContainerTestSuite.java
  2. 2
      msa/black-box-tests/src/test/java/org/thingsboard/server/msa/ui/base/AbstractDriverBaseTest.java
  3. 6
      pom.xml

1
msa/black-box-tests/src/test/java/org/thingsboard/server/msa/ContainerTestSuite.java

@ -147,7 +147,6 @@ public class ContainerTestSuite {
testContainer = new DockerComposeContainerImpl(targetDir, composeFiles)
.withPull(false)
.withLocalCompose(true)
.withOptions("--compatibility")
.withTailChildContainers(!skipTailChildContainers)
.withEnv(installTb.getEnv())

2
msa/black-box-tests/src/test/java/org/thingsboard/server/msa/ui/base/AbstractDriverBaseTest.java

@ -15,7 +15,6 @@ import org.openqa.selenium.WebDriverException;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;
import org.openqa.selenium.html5.WebStorage;
import org.openqa.selenium.remote.LocalFileDetector;
import org.openqa.selenium.remote.RemoteWebDriver;
import org.openqa.selenium.support.ui.ExpectedConditions;
@ -70,7 +69,6 @@ abstract public class AbstractDriverBaseTest extends AbstractContainerTest {
private JavascriptExecutor js;
public static final long WAIT_TIMEOUT = TimeUnit.SECONDS.toMillis(10);
private final Duration duration = Duration.ofMillis(WAIT_TIMEOUT);
private WebStorage webStorage;
@BeforeClass
public void startUp() throws MalformedURLException {

6
pom.xml

@ -111,6 +111,7 @@
<spatial4j.version>0.8</spatial4j.version>
<jts.version>1.19.0</jts.version>
<elasticsearch-rest-client.version>8.18.8</elasticsearch-rest-client.version> <!-- not managed by Spring Boot 4 -->
<rest-assured.version>5.5.7</rest-assured.version> <!-- not managed by Spring Boot 4 -->
<spotbugs-annotations.version>4.8.6</spotbugs-annotations.version>
<jcip-annotations.version>1.0-1</jcip-annotations.version>
<bouncycastle.version>1.86</bouncycastle.version> <!-- to fix CVE-2026-18036, CVE-2026-71888, CVE-2026-71889, CVE-2026-71891, CVE-2026-8763, CVE-2026-12185, CVE-2026-12802, CVE-2026-12803, CVE-2026-12816, CVE-2026-12860, CVE-2026-13506, CVE-2026-14682, CVE-2026-58059, CVE-2026-58060, CVE-2026-58061, CVE-2026-58062, CVE-2026-59639, CVE-2026-59642, CVE-2026-59645, CVE-2026-59650, CVE-2026-59651 (supersedes the earlier 1.84 pin for CVE-2026-5588, CVE-2026-5598, CVE-2025-14813). Not managed by the Spring Boot BOM — this pin is the sole source of the bouncycastle version. -->
@ -1987,6 +1988,11 @@
<artifactId>elasticsearch-rest-client</artifactId>
<version>${elasticsearch-rest-client.version}</version>
</dependency>
<dependency>
<groupId>io.rest-assured</groupId>
<artifactId>rest-assured</artifactId>
<version>${rest-assured.version}</version>
</dependency>
<dependency>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-annotations</artifactId>

Loading…
Cancel
Save