Skip to content

Commit 2bacf92

Browse files
authored
fix(java): add configurations for Storage tests (#1305)
* fix(java): add native image configurations for Storage classes and tests
1 parent d0c5361 commit 2bacf92

File tree

5 files changed

+70
-0
lines changed

5 files changed

+70
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[
2+
{
3+
"interfaces":["com.google.cloud.storage.spi.v1.StorageRpc"]
4+
}
5+
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[{
2+
"name":"com.google.cloud.storage.BlobInfo$ImmutableEmptyMap",
3+
"methods":[{"name":"<init>","parameterTypes":[] }]}
4+
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# The JUnitFeature which is brought in by Graal explicitly initializes
2+
# Parameterized at image build time. This causes ParallelParameterized and
3+
# subsequently com.google.cloud.storage.conformance.retry.ITRetryConformanceTest
4+
# and other classes ITRetryConformanceTest references to also be initialized at
5+
# build time. Initializing these classes explicitly at build time results in a
6+
# successful build.
7+
Args = \
8+
--initialize-at-build-time=com.google.cloud.conformance.storage.v1,\
9+
com.google.protobuf,\
10+
com.google.auth.oauth2,\
11+
com.google.cloud.storage.conformance.retry,\
12+
com.google.common.base.Charsets,\
13+
com.google.gson.stream.JsonReader,\
14+
com.google.api.client.util,\
15+
com.google.api.client.http.javanet.NetHttpTransport,\
16+
com.google.api.client.http.HttpTransport,\
17+
com.google.api.client.json,\
18+
com.google.common.io.BaseEncoding,\
19+
com.google.common.math.IntMath$1,\
20+
com.google.common.collect.Platform,\
21+
com.google.gson.Gson,\
22+
com.google.common.truth,\
23+
com.google.common.collect,\
24+
com.google.gson.internal.reflect,\
25+
com.google.gson.internal.bind,\
26+
com.google.gson.internal,\
27+
com.google.gson.internal.sql.SqlTypesSupport,\
28+
com.google.gson.FieldNamingPolicy$3,\
29+
com.google.gson.LongSerializationPolicy$2
30+
31+
32+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[
2+
{
3+
"name":"org.apache.commons.logging.LogFactory",
4+
"allDeclaredFields":true,
5+
"allDeclaredMethods":true,
6+
"allDeclaredConstructors": true
7+
},
8+
{
9+
"name":"org.apache.commons.logging.impl.Jdk14Logger",
10+
"methods":[{"name":"<init>","parameterTypes":["java.lang.String"] }]}
11+
,
12+
{
13+
"name":"org.apache.commons.logging.impl.LogFactoryImpl",
14+
"allDeclaredFields":true,
15+
"allDeclaredMethods":true,
16+
"methods":[{"name":"<init>","parameterTypes":[] }]}
17+
,
18+
{
19+
"name":"com.google.cloud.storage.conformance.retry.TestBench$RetryTestResource",
20+
"allDeclaredFields":true,
21+
"methods":[{"name":"<init>","parameterTypes":[] }]}
22+
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"resources":{
3+
"includes":[
4+
{"pattern": ".*.txt"}
5+
]
6+
}
7+
}

0 commit comments

Comments
 (0)