NIFI-4304 Extracting HWX Schema Registry client version to a property and bumping to latest 0.3.0 release

Signed-off-by: Matthew Burgess <mattyb149@apache.org>

This closes #2096
This commit is contained in:
Bryan Bende 2017-08-17 13:08:33 -04:00 committed by Matthew Burgess
parent 6b5015e39b
commit 60d4672195
3 changed files with 4 additions and 3 deletions

View File

@ -58,7 +58,7 @@ limitations under the License.
<dependency>
<groupId>com.hortonworks.registries</groupId>
<artifactId>schema-registry-client</artifactId>
<version>0.2.1</version>
<version>${hwx.registry.version}</version>
<exclusions>
<exclusion>
<groupId>org.apache.avro</groupId>

View File

@ -98,7 +98,7 @@ public class TestHortonworksSchemaRegistry {
@Test
public void testCacheUsed() throws Exception {
final String text = new String(Files.readAllBytes(Paths.get("src/test/resources/empty-schema.avsc")));
final SchemaVersionInfo info = new SchemaVersionInfo(1, text, 2L, "description");
final SchemaVersionInfo info = new SchemaVersionInfo(1L, "unit-test", 2, text, System.currentTimeMillis(), "description");
schemaVersionInfoMap.put("unit-test", info);
final SchemaMetadata metadata = new SchemaMetadata.Builder("unit-test")
@ -135,7 +135,7 @@ public class TestHortonworksSchemaRegistry {
@Ignore("This can be useful for manual testing/debugging, but will keep ignored for now because we don't want automated builds to run this, since it depends on timing")
public void testCacheExpires() throws Exception {
final String text = new String(Files.readAllBytes(Paths.get("src/test/resources/empty-schema.avsc")));
final SchemaVersionInfo info = new SchemaVersionInfo(1, text, 2L, "description");
final SchemaVersionInfo info = new SchemaVersionInfo(1L, "unit-test", 2, text, System.currentTimeMillis(), "description");
schemaVersionInfoMap.put("unit-test", info);
final SchemaMetadata metadata = new SchemaMetadata.Builder("unit-test")

View File

@ -106,6 +106,7 @@
<hive.hadoop.version>2.6.2</hive.hadoop.version>
<hbase.version>1.1.2</hbase.version>
<storm.version>1.0.1</storm.version>
<hwx.registry.version>0.3.0</hwx.registry.version>
</properties>
<repositories>