DRILL-3100: TestImpersonationDisabledWithMiniDFS fails on Windows
Project: http://git-wip-us.apache.org/repos/asf/drill/repo Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/d8b19759 Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/d8b19759 Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/d8b19759 Branch: refs/heads/master Commit: d8b19759657698581cc0d01d7038797952888123 Parents: 36ff259 Author: Aditya Kishore <[email protected]> Authored: Thu May 14 22:00:34 2015 -0700 Committer: Jacques Nadeau <[email protected]> Committed: Thu May 14 22:18:03 2015 -0700 ---------------------------------------------------------------------- .../impersonation/TestImpersonationDisabledWithMiniDFS.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/drill/blob/d8b19759/exec/java-exec/src/test/java/org/apache/drill/exec/impersonation/TestImpersonationDisabledWithMiniDFS.java ---------------------------------------------------------------------- diff --git a/exec/java-exec/src/test/java/org/apache/drill/exec/impersonation/TestImpersonationDisabledWithMiniDFS.java b/exec/java-exec/src/test/java/org/apache/drill/exec/impersonation/TestImpersonationDisabledWithMiniDFS.java index e38d6da..6c3b96f 100644 --- a/exec/java-exec/src/test/java/org/apache/drill/exec/impersonation/TestImpersonationDisabledWithMiniDFS.java +++ b/exec/java-exec/src/test/java/org/apache/drill/exec/impersonation/TestImpersonationDisabledWithMiniDFS.java @@ -46,6 +46,7 @@ public class TestImpersonationDisabledWithMiniDFS extends BaseTestImpersonation miniDfsPluginConfig.connection = conf.get(FileSystem.FS_DEFAULT_NAME_KEY); Map<String, WorkspaceConfig> workspaces = Maps.newHashMap(lfsPluginConfig.workspaces); + createAndAddWorkspace(dfsCluster.getFileSystem(), "dfstemp", "/tmp", (short)0777, processUser, processUser, workspaces); miniDfsPluginConfig.workspaces = workspaces; miniDfsPluginConfig.formats = ImmutableMap.copyOf(lfsPluginConfig.formats); @@ -54,13 +55,13 @@ public class TestImpersonationDisabledWithMiniDFS extends BaseTestImpersonation pluginRegistry.createOrUpdate(MINIDFS_STORAGE_PLUGIN_NAME, miniDfsPluginConfig, true); // Create test table in minidfs.tmp schema for use in test queries - test(String.format("CREATE TABLE %s.tmp.dfsRegion AS SELECT * FROM cp.`region.json`", MINIDFS_STORAGE_PLUGIN_NAME)); + test(String.format("CREATE TABLE %s.dfstemp.dfsRegion AS SELECT * FROM cp.`region.json`", MINIDFS_STORAGE_PLUGIN_NAME)); } @Test // DRILL-3037 public void testSimpleQuery() throws Exception { final String query = - String.format("SELECT sales_city, sales_country FROM tmp.dfsRegion ORDER BY region_id DESC LIMIT 2"); + String.format("SELECT sales_city, sales_country FROM dfstemp.dfsRegion ORDER BY region_id DESC LIMIT 2"); testBuilder() .optionSettingQueriesForTestQuery(String.format("USE %s", MINIDFS_STORAGE_PLUGIN_NAME))
