mirror of https://github.com/apache/nifi.git
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:
parent
6b5015e39b
commit
60d4672195
|
@ -58,7 +58,7 @@ limitations under the License.
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.hortonworks.registries</groupId>
|
<groupId>com.hortonworks.registries</groupId>
|
||||||
<artifactId>schema-registry-client</artifactId>
|
<artifactId>schema-registry-client</artifactId>
|
||||||
<version>0.2.1</version>
|
<version>${hwx.registry.version}</version>
|
||||||
<exclusions>
|
<exclusions>
|
||||||
<exclusion>
|
<exclusion>
|
||||||
<groupId>org.apache.avro</groupId>
|
<groupId>org.apache.avro</groupId>
|
||||||
|
|
|
@ -98,7 +98,7 @@ public class TestHortonworksSchemaRegistry {
|
||||||
@Test
|
@Test
|
||||||
public void testCacheUsed() throws Exception {
|
public void testCacheUsed() throws Exception {
|
||||||
final String text = new String(Files.readAllBytes(Paths.get("src/test/resources/empty-schema.avsc")));
|
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);
|
schemaVersionInfoMap.put("unit-test", info);
|
||||||
|
|
||||||
final SchemaMetadata metadata = new SchemaMetadata.Builder("unit-test")
|
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")
|
@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 {
|
public void testCacheExpires() throws Exception {
|
||||||
final String text = new String(Files.readAllBytes(Paths.get("src/test/resources/empty-schema.avsc")));
|
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);
|
schemaVersionInfoMap.put("unit-test", info);
|
||||||
|
|
||||||
final SchemaMetadata metadata = new SchemaMetadata.Builder("unit-test")
|
final SchemaMetadata metadata = new SchemaMetadata.Builder("unit-test")
|
||||||
|
|
1
pom.xml
1
pom.xml
|
@ -106,6 +106,7 @@
|
||||||
<hive.hadoop.version>2.6.2</hive.hadoop.version>
|
<hive.hadoop.version>2.6.2</hive.hadoop.version>
|
||||||
<hbase.version>1.1.2</hbase.version>
|
<hbase.version>1.1.2</hbase.version>
|
||||||
<storm.version>1.0.1</storm.version>
|
<storm.version>1.0.1</storm.version>
|
||||||
|
<hwx.registry.version>0.3.0</hwx.registry.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<repositories>
|
<repositories>
|
||||||
|
|
Loading…
Reference in New Issue