public class TestPluginRegistry extends BaseTest
Tests are somewhat large because each needs a running Drillbit. This is several big tests because of the setup cost of starting the Drillbits in the needed config.
| Modifier and Type | Field and Description |
|---|---|
static BaseDirTestWatcher |
dirTestWatcher |
| Constructor and Description |
|---|
TestPluginRegistry() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup() |
void |
testBadPlugin()
Test to illustrate problems discussed in DRILL-7624
|
void |
testEnabledState()
Tests the dedicated setEnabled() method to cleanly update the
enabled status of a plugin by name.
|
void |
testEnableWithPut()
Tests the other way to enable/disabled plugins: make a **COPY** of the
config and set the enable/disable status.
|
void |
testEphemeralLifecycle()
Test the ephemeral cache where plugin instances live after their
configs are changed or disabled so that any running queries see
the prior plugin config an instance.
|
void |
testEphemeralWithoutInstance() |
void |
testFormatPlugin() |
void |
testLifecycle() |
void |
testStoreSync() |
public static final BaseDirTestWatcher dirTestWatcher
public void testEnabledState()
throws Exception
Exceptionpublic void testEnableWithPut()
throws Exception
Exceptionpublic void testEphemeralLifecycle()
throws Exception
Note that each call to update a plugin must work with a copy of a config. Results are undefined if a client changes a stored config.
Exceptionpublic void testEphemeralWithoutInstance()
throws Exception
ExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.