Skip to content

Commit

Permalink
[Fix_@818] Fixing native python test on Java 17 (#3349)
Browse files Browse the repository at this point in the history
  • Loading branch information
fjtirado authored Jan 15, 2024
1 parent f919ff3 commit 7a42795
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion quarkus/addons/python/integration-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
<artifactId>maven-failsafe-plugin</artifactId>
<configuration>
<environmentVariables>
<LD_LIBRARY_PATH>${env.JAVA_HOME}/lib/server</LD_LIBRARY_PATH>
<LD_LIBRARY_PATH>${env.JAVA_HOME}/lib/server;${env.GRAALVM_HOME}/lib/server</LD_LIBRARY_PATH>
</environmentVariables>
</configuration>
</plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,13 @@

import org.junit.jupiter.api.Test;

import io.quarkus.test.junit.DisabledOnIntegrationTest;
import io.quarkus.test.junit.QuarkusIntegrationTest;
import io.restassured.http.ContentType;

import static io.restassured.RestAssured.given;
import static org.hamcrest.CoreMatchers.is;

@QuarkusIntegrationTest
@DisabledOnIntegrationTest(
value = "Temporarily disabling test since python cannot be properly initialized inside the native image",
forArtifactTypes = DisabledOnIntegrationTest.ArtifactType.NATIVE_BINARY)
class PythonFlowIT {

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
{
"name": "java.util.Map$Entry[]"
},
{"name":"java.lang.reflect.AnnotatedElement", "allPublicMethods": true},
{"name":"java.lang.IllegalStateException","allPublicMethods":true},
{"name":"java.lang.NoSuchMethodError","allPublicMethods":true,"allPublicConstructors":true, "allPublicClasses": true},
{"name":"java.lang.IllegalStateException[]","allPublicMethods":true},
Expand Down Expand Up @@ -237,6 +238,10 @@
{
"name": "jep.MainInterpreter"
},
{
"name": "jep.PyMethod",
"allPublicMethods": true
},
{
"name": "jep.NDArray",
"allPublicMethods": true,
Expand All @@ -245,5 +250,9 @@
{
"name": "jep.ClassList",
"allPublicMethods": true
},
{
"name": "java.lang.reflect.Executable",
"allPublicMethods": true
}
]

0 comments on commit 7a42795

Please sign in to comment.