.getMetadataProvider();
Assert.assertTrue("Repo is using a HCatalogExternalMetadataProvider",
provider instanceof HCatalogExternalMetadataProvider);
// verify location
DatasetDescriptor created = provider.create("test",
new DatasetDescriptor.Builder()
.schemaLiteral("\"string\"")
.build());
Assert.assertEquals("Location should be in HDFS",
"hdfs", created.getLocation().getScheme());
Assert.assertEquals("Location should have the correct HDFS host",
hdfsUri.getHost(), created.getLocation().getHost());
Assert.assertEquals("Location should have the correct HDFS port",
hdfsUri.getPort(), created.getLocation().getPort());
Assert.assertTrue("Location should be in the repo path",
created.getLocation().getPath().startsWith("/tmp/hive-repo"));
}