Repository: incubator-slider Updated Branches: refs/heads/develop 1ba58cd04 -> 60bfad558
attempt to fix build by changing temp file location Project: http://git-wip-us.apache.org/repos/asf/incubator-slider/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-slider/commit/60bfad55 Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/60bfad55 Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/60bfad55 Branch: refs/heads/develop Commit: 60bfad5583f134097f08b22c9490b7edd2ed1e04 Parents: 1ba58cd Author: Jon Maron <[email protected]> Authored: Wed Oct 15 21:38:37 2014 -0400 Committer: Jon Maron <[email protected]> Committed: Wed Oct 15 21:38:37 2014 -0400 ---------------------------------------------------------------------- .../org/apache/slider/client/TestInstallKeytab.groovy | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/60bfad55/slider-core/src/test/groovy/org/apache/slider/client/TestInstallKeytab.groovy ---------------------------------------------------------------------- diff --git a/slider-core/src/test/groovy/org/apache/slider/client/TestInstallKeytab.groovy b/slider-core/src/test/groovy/org/apache/slider/client/TestInstallKeytab.groovy index b8a14eb..2bbad6a 100644 --- a/slider-core/src/test/groovy/org/apache/slider/client/TestInstallKeytab.groovy +++ b/slider-core/src/test/groovy/org/apache/slider/client/TestInstallKeytab.groovy @@ -54,7 +54,7 @@ class TestInstallKeytab extends ServiceLauncherBaseTest { public void testInstallKeytab() throws Throwable { // create a mock keytab file File localKeytab = - FileUtil.createLocalTempFile(FileUtils.getTempDirectory(), "test", true); + FileUtil.createLocalTempFile(tempLocation, "test", true); String contents = UUID.randomUUID().toString() FileUtils.write(localKeytab, contents); YarnConfiguration conf = SliderUtils.createConfiguration() @@ -77,7 +77,7 @@ class TestInstallKeytab extends ServiceLauncherBaseTest { public void testInstallKeytabWithNoFolder() throws Throwable { // create a mock keytab file File localKeytab = - FileUtil.createLocalTempFile(FileUtils.getTempDirectory(), "test", true); + FileUtil.createLocalTempFile(tempLocation, "test", true); String contents = UUID.randomUUID().toString() FileUtils.write(localKeytab, contents); YarnConfiguration conf = SliderUtils.createConfiguration() @@ -95,7 +95,7 @@ class TestInstallKeytab extends ServiceLauncherBaseTest { public void testInstallKeytabWithNoKeytab() throws Throwable { // create a mock keytab file File localKeytab = - FileUtil.createLocalTempFile(FileUtils.getTempDirectory(), "test", true); + FileUtil.createLocalTempFile(tempLocation, "test", true); String contents = UUID.randomUUID().toString() FileUtils.write(localKeytab, contents); YarnConfiguration conf = SliderUtils.createConfiguration() @@ -113,7 +113,7 @@ class TestInstallKeytab extends ServiceLauncherBaseTest { public void testInstallKeytabAllowingOverwrite() throws Throwable { // create a mock keytab file File localKeytab = - FileUtil.createLocalTempFile(FileUtils.getTempDirectory(), "test", true); + FileUtil.createLocalTempFile(tempLocation, "test", true); String contents = UUID.randomUUID().toString() FileUtils.write(localKeytab, contents); YarnConfiguration conf = SliderUtils.createConfiguration() @@ -148,7 +148,7 @@ class TestInstallKeytab extends ServiceLauncherBaseTest { public void testInstallKeytabNotAllowingOverwrite() throws Throwable { // create a mock keytab file File localKeytab = - FileUtil.createLocalTempFile(FileUtils.getTempDirectory(), "test", true); + FileUtil.createLocalTempFile(tempLocation, "test", true); String contents = UUID.randomUUID().toString() FileUtils.write(localKeytab, contents); YarnConfiguration conf = SliderUtils.createConfiguration() @@ -192,6 +192,10 @@ class TestInstallKeytab extends ServiceLauncherBaseTest { } } + private File getTempLocation () { + return new File(System.getProperty("user.dir") + "/target"); + } + static class TestSliderClient extends SliderClient { public TestSliderClient() { super()
