Skip to content

Commit

Permalink
Updates kdbx files to speed up unit tests (#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
haroon-sheikh authored Jan 27, 2025
1 parent e6d0459 commit 16066cb
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@
<vault-java-driver.version>6.2.0</vault-java-driver.version>
<wiremock-standalone.version>3.10.0</wiremock-standalone.version>
<junit.version>5.8.2</junit.version>
<java.version>11</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
</properties>

<build>
Expand Down Expand Up @@ -143,9 +146,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<release>11</release>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -190,7 +190,7 @@
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>10.21.1</version>
<version>10.21.2</version>
</dependency>
</dependencies>
<executions>
Expand Down Expand Up @@ -304,7 +304,7 @@
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<version>3.27.2</version>
<version>3.27.3</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import java.util.List;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import uk.org.webcompere.systemstubs.environment.EnvironmentVariables;
Expand All @@ -20,6 +21,12 @@ class EnvConfigUtilsTest {
@SystemStub
private final SystemProperties systemProperties = new SystemProperties();

@BeforeEach
void setUp() {
systemProperties.remove(EnvConfigKey.CONFIG_ENV.getProperty());
environmentVariables.remove(EnvConfigKey.CONFIG_ENV.getEnvProperty());
}

@Test
void testCanGetProcessedPropertyKey() {
assertEquals("foo.key", EnvConfigUtils.getProcessedPropertyKey("FOO_KEY"));
Expand Down
Binary file modified src/test/resources/kdbx3.kdbx
Binary file not shown.
Binary file modified src/test/resources/kdbx4.kdbx
Binary file not shown.

0 comments on commit 16066cb

Please sign in to comment.