Skip to content

Commit

Permalink
fix(java): add configurations for Storage tests (#1305)
Browse files Browse the repository at this point in the history
* fix(java): add native image configurations for Storage classes and tests
  • Loading branch information
mpeddada1 committed Mar 30, 2022
1 parent d0c5361 commit 2bacf92
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 0 deletions.
@@ -0,0 +1,5 @@
[
{
"interfaces":["com.google.cloud.storage.spi.v1.StorageRpc"]
}
]
@@ -0,0 +1,4 @@
[{
"name":"com.google.cloud.storage.BlobInfo$ImmutableEmptyMap",
"methods":[{"name":"<init>","parameterTypes":[] }]}
]
@@ -0,0 +1,32 @@
# The JUnitFeature which is brought in by Graal explicitly initializes
# Parameterized at image build time. This causes ParallelParameterized and
# subsequently com.google.cloud.storage.conformance.retry.ITRetryConformanceTest
# and other classes ITRetryConformanceTest references to also be initialized at
# build time. Initializing these classes explicitly at build time results in a
# successful build.
Args = \
--initialize-at-build-time=com.google.cloud.conformance.storage.v1,\
com.google.protobuf,\
com.google.auth.oauth2,\
com.google.cloud.storage.conformance.retry,\
com.google.common.base.Charsets,\
com.google.gson.stream.JsonReader,\
com.google.api.client.util,\
com.google.api.client.http.javanet.NetHttpTransport,\
com.google.api.client.http.HttpTransport,\
com.google.api.client.json,\
com.google.common.io.BaseEncoding,\
com.google.common.math.IntMath$1,\
com.google.common.collect.Platform,\
com.google.gson.Gson,\
com.google.common.truth,\
com.google.common.collect,\
com.google.gson.internal.reflect,\
com.google.gson.internal.bind,\
com.google.gson.internal,\
com.google.gson.internal.sql.SqlTypesSupport,\
com.google.gson.FieldNamingPolicy$3,\
com.google.gson.LongSerializationPolicy$2



@@ -0,0 +1,22 @@
[
{
"name":"org.apache.commons.logging.LogFactory",
"allDeclaredFields":true,
"allDeclaredMethods":true,
"allDeclaredConstructors": true
},
{
"name":"org.apache.commons.logging.impl.Jdk14Logger",
"methods":[{"name":"<init>","parameterTypes":["java.lang.String"] }]}
,
{
"name":"org.apache.commons.logging.impl.LogFactoryImpl",
"allDeclaredFields":true,
"allDeclaredMethods":true,
"methods":[{"name":"<init>","parameterTypes":[] }]}
,
{
"name":"com.google.cloud.storage.conformance.retry.TestBench$RetryTestResource",
"allDeclaredFields":true,
"methods":[{"name":"<init>","parameterTypes":[] }]}
]
@@ -0,0 +1,7 @@
{
"resources":{
"includes":[
{"pattern": ".*.txt"}
]
}
}

0 comments on commit 2bacf92

Please sign in to comment.