public class TestMetastoreVersion
extends junit.framework.TestCase
Constructor and Description |
---|
TestMetastoreVersion() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMetaStoreVersion() |
void |
setMetaStoreVersion(java.lang.String newVersion,
java.lang.String comment) |
protected void |
setUp() |
protected void |
tearDown() |
void |
testDefaults()
Test config defaults
|
void |
testMetastoreVersion()
Test that with no verification, hive populates the schema and version correctly
|
void |
testVersionMatching()
Test that with verification enabled, hive works when the correct schema is already populated
|
void |
testVersionMisMatch()
Store garbage version in metastore and verify that hive fails when verification is on
|
void |
testVersionRestriction()
Test schema verification property
|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
protected HiveConf hiveConf
protected void setUp() throws java.lang.Exception
setUp
in class junit.framework.TestCase
java.lang.Exception
protected void tearDown() throws java.lang.Exception
tearDown
in class junit.framework.TestCase
java.lang.Exception
public void testDefaults()
public void testVersionRestriction() throws java.lang.Exception
java.lang.Exception
public void testMetastoreVersion() throws java.lang.Exception
java.lang.Exception
public void testVersionMatching() throws java.lang.Exception
java.lang.Exception
public void testVersionMisMatch() throws java.lang.Exception
java.lang.Exception
public java.lang.String getMetaStoreVersion() throws HiveMetaException
HiveMetaException
public void setMetaStoreVersion(java.lang.String newVersion, java.lang.String comment) throws HiveMetaException
HiveMetaException
Copyright © 2012 The Apache Software Foundation