Skip to content

Commit

Permalink
fix(java): add additional configurations to fix native image tests (#…
Browse files Browse the repository at this point in the history
…1859)

* fix(java): add configurations to fix native image tests

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
mpeddada1 and gcf-owl-bot[bot] committed Feb 14, 2022
1 parent b3b5398 commit 3e82960
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
Expand Up @@ -125,10 +125,10 @@
import com.google.common.io.BaseEncoding;
import com.google.gson.JsonObject;
import java.io.IOException;
import java.io.InputStream;
import java.math.BigDecimal;
import java.nio.ByteBuffer;
import java.nio.charset.StandardCharsets;
import java.nio.file.FileSystems;
import java.time.Instant;
import java.time.Period;
import java.util.ArrayList;
Expand Down Expand Up @@ -472,9 +472,10 @@ public static void beforeClass() throws InterruptedException, IOException {
.setContentType("application/json")
.build(),
JSON_CONTENT_SIMPLE.getBytes(StandardCharsets.UTF_8));
InputStream stream =
ITBigQueryTest.class.getClassLoader().getResourceAsStream("QueryTestData.csv");
storage.createFrom(
BlobInfo.newBuilder(BUCKET, LOAD_FILE_LARGE).setContentType("text/plain").build(),
FileSystems.getDefault().getPath("src/test/resources", "QueryTestData.csv"));
BlobInfo.newBuilder(BUCKET, LOAD_FILE_LARGE).setContentType("text/plain").build(), stream);
DatasetInfo info =
DatasetInfo.newBuilder(DATASET).setDescription(DESCRIPTION).setLabels(LABELS).build();
bigquery.create(info);
Expand Down
@@ -0,0 +1,23 @@
[
{
"name":"java.lang.Object",
"methods":[{"name":"<init>","parameterTypes":[] }]
},
{
"name":"com.google.api.client.googleapis.json.GoogleJsonError",
"methods":[
{"name":"<init>","parameterTypes":[] }]
},
{
"name":"com.google.api.client.googleapis.json.GoogleJsonError$Details",
"methods":[{"name":"<init>","parameterTypes":[] }]
},
{
"name":"com.google.api.client.googleapis.json.GoogleJsonError$ErrorInfo",
"methods":[{"name":"<init>","parameterTypes":[]}]
},
{
"name":"java.util.HashMap",
"methods":[{"name":"<init>","parameterTypes":[] }]
}
]
@@ -0,0 +1,3 @@
{
"resources":[{"pattern": ".*.csv"}]
}

0 comments on commit 3e82960

Please sign in to comment.