Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(java): add configurations for Storage tests (#1305)
* fix(java): add native image configurations for Storage classes and tests
- Loading branch information
Showing
5 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
...orage/src/main/resources/META-INF/native-image/com/google/cloud/storage/proxy-config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[ | ||
{ | ||
"interfaces":["com.google.cloud.storage.spi.v1.StorageRpc"] | ||
} | ||
] |
4 changes: 4 additions & 0 deletions
4
...age/src/main/resources/META-INF/native-image/com/google/cloud/storage/reflect-config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[{ | ||
"name":"com.google.cloud.storage.BlobInfo$ImmutableEmptyMap", | ||
"methods":[{"name":"<init>","parameterTypes":[] }]} | ||
] |
32 changes: 32 additions & 0 deletions
32
...src/test/resources/META-INF/native-image/com/google/cloud/storage/native-image.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|
||
|
||
|
22 changes: 22 additions & 0 deletions
22
...age/src/test/resources/META-INF/native-image/com/google/cloud/storage/reflect-config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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":[] }]} | ||
] |
7 changes: 7 additions & 0 deletions
7
...ge/src/test/resources/META-INF/native-image/com/google/cloud/storage/resource-config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"resources":{ | ||
"includes":[ | ||
{"pattern": ".*.txt"} | ||
] | ||
} | ||
} |