Skip to content

Commit

Permalink
Fix tests. (#10456)
Browse files Browse the repository at this point in the history
* Fix tests.

* Make sure to push the dockerfile.

* Update dockerfile.
  • Loading branch information
davinchia authored Feb 18, 2022
1 parent c4b172a commit 833f79a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,13 +270,13 @@ private static void assertExpectedOutputTypes(final Connection connection) throw

private ObjectNode jsonFieldExpectedValues() {
final ObjectNode expected = expectedValues();
ArrayNode arrayNode = new ObjectMapper().createArrayNode();
final ArrayNode arrayNode = new ObjectMapper().createArrayNode();
arrayNode.add("one");
arrayNode.add("two");
arrayNode.add("three");
expected.set("text_array", arrayNode);

ArrayNode arrayNode2 = new ObjectMapper().createArrayNode();
final ArrayNode arrayNode2 = new ObjectMapper().createArrayNode();
arrayNode2.add("1");
arrayNode2.add("2");
arrayNode2.add("3");
Expand All @@ -303,7 +303,7 @@ private ObjectNode expectedValues() {
expected.put("date", "2020-11-01T00:00:00Z");
// todo (cgardens) we should parse this to a time string
expected.put("time", "1970-01-01T05:00:00Z");
expected.put("timestamp", "2001-09-29T03:00:00Z");
expected.put("timestamp", "2001-09-29T03:00:00.000000Z");
expected.put("binary1", "aaaa".getBytes(Charsets.UTF_8));
return expected;
}
Expand Down
4 changes: 2 additions & 2 deletions airbyte-metrics/reporter/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ENV APPLICATION airbyte-metrics-reporter

WORKDIR /app

ADD bin/${APPLICATION}-0.35.30-alpha.tar /app
ADD bin/${APPLICATION}-0.35.31-alpha.tar /app

# wait for upstream dependencies to become available before starting server
ENTRYPOINT ["/bin/bash", "-c", "${APPLICATION}-0.35.30-alpha/bin/${APPLICATION}"]
ENTRYPOINT ["/bin/bash", "-c", "${APPLICATION}-0.35.31-alpha/bin/${APPLICATION}"]
7 changes: 7 additions & 0 deletions docker-compose.build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,10 @@ services:
context: airbyte-container-orchestrator
labels:
io.airbyte.git-revision: ${GIT_REVISION}
metric-reporter:
image: airbyte/metric-reporter:${VERSION}
build:
dockerfile: Dockerfile
context: airbyte-metrics/reporter
labels:
io.airbyte.git-revision: ${GIT_REVISION}

0 comments on commit 833f79a

Please sign in to comment.