Commit e8276c19 by Shwetha GS

hive hook - added test for create db idempotency

parent 1c90177f
......@@ -77,7 +77,11 @@ public class HiveHookIT {
public void testCreateDatabase() throws Exception {
String dbName = "db" + random();
runCommand("create database " + dbName);
assertDatabaseIsRegistered(dbName);
//There should be just one entity per dbname
runCommand("drop database " + dbName);
runCommand("create database " + dbName);
assertDatabaseIsRegistered(dbName);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment