Grant Henke has submitted this change and it was merged. ( 
http://gerrit.cloudera.org:8080/10924 )

Change subject: [Java] Fix the use of resource files in tests
......................................................................

[Java] Fix the use of resource files in tests

This is preliminary work needed to run the java tests
on dist-test.

Our tests currently reference files/resources that are
not available in the output test artifacts. This means
our tests work when they are run from source in the
expected location but fail when they are run from the
compiled artifacts.

This fixes those failing tests by discovering the correct
location via Class.getResource and ensuring all needed
files are packaged in the resources directory.

Change-Id: Ia3a90bac67652b58f2eef802c509983c68d8a299
Reviewed-on: http://gerrit.cloudera.org:8080/10924
Reviewed-by: Andrew Wong <[email protected]>
Tested-by: Grant Henke <[email protected]>
Reviewed-by: Mike Percy <[email protected]>
---
M java/kudu-flume-sink/build.gradle
M java/kudu-flume-sink/pom.xml
M 
java/kudu-flume-sink/src/test/java/org/apache/kudu/flume/sink/AvroKuduOperationsProducerTest.java
R java/kudu-flume-sink/src/test/resources/testAvroKuduOperationsProducer.avsc
M 
java/kudu-spark-tools/src/test/scala/org/apache/kudu/spark/tools/TestImportExportFiles.scala
5 files changed, 26 insertions(+), 15 deletions(-)

Approvals:
  Andrew Wong: Looks good to me, but someone else must approve
  Grant Henke: Verified
  Mike Percy: Looks good to me, approved

--
To view, visit http://gerrit.cloudera.org:8080/10924
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ia3a90bac67652b58f2eef802c509983c68d8a299
Gerrit-Change-Number: 10924
Gerrit-PatchSet: 2
Gerrit-Owner: Grant Henke <[email protected]>
Gerrit-Reviewer: Andrew Wong <[email protected]>
Gerrit-Reviewer: Grant Henke <[email protected]>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Mike Percy <[email protected]>

Reply via email to