Skip to content

Commit 389b214

Browse files
SK-2440: fix vault controller tests
1 parent b032597 commit 389b214

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727

2828
- uses: actions/setup-java@v3
2929
with:
30-
java-version: "8"
30+
java-version: "17"
3131
distribution: "temurin"
3232
cache: "maven"
3333

@@ -47,7 +47,7 @@ jobs:
4747
echo TEST_REUSABLE_TOKEN=${{ secrets.TEST_REUSABLE_TOKEN }} >> .env
4848
4949
- name: Build & Run tests with Maven
50-
run: mvn -B clean test jacoco:report -pl v3 -am -Dmaven.javadoc.skip=true
50+
run: mvn -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn clean test jacoco:report -pl v3 -am -Dmaven.javadoc.skip=true
5151

5252
- name: Codecov
5353
uses: codecov/codecov-action@v3

v3/src/test/java/com/skyflow/vault/controller/VaultControllerTests.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,12 @@
2525

2626
import static org.junit.Assert.*;
2727

28+
import org.junit.runner.RunWith;
29+
import org.powermock.core.classloader.annotations.PowerMockIgnore; // Import this
30+
import org.powermock.modules.junit4.PowerMockRunner;
2831

32+
@RunWith(PowerMockRunner.class)
33+
@PowerMockIgnore({"javax.management.*", "java.nio.*", "com.sun.*", "jdk.internal.reflect.*", "javax.crypto.*"})
2934
public class VaultControllerTests {
3035
private static final String ENV_PATH = "./.env";
3136

0 commit comments

Comments
 (0)