YARN-2519. Credential Provider related unit tests failed on Windows. Contributed by Xiaoyu Yao.
(cherry picked from commit cbea1b10ef
)
This commit is contained in:
parent
1ea3883553
commit
af1d389157
|
@ -264,6 +264,9 @@ Release 2.6.0 - UNRELEASED
|
||||||
YARN-2431. NM restart: cgroup is not removed for reacquired containers
|
YARN-2431. NM restart: cgroup is not removed for reacquired containers
|
||||||
(jlowe)
|
(jlowe)
|
||||||
|
|
||||||
|
YARN-2519. Credential Provider related unit tests failed on Windows.
|
||||||
|
(Xiaoyu Yao via cnauroth)
|
||||||
|
|
||||||
Release 2.5.1 - UNRELEASED
|
Release 2.5.1 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -24,6 +24,7 @@ import static org.junit.Assert.assertEquals;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import org.apache.hadoop.conf.Configuration;
|
import org.apache.hadoop.conf.Configuration;
|
||||||
|
import org.apache.hadoop.fs.Path;
|
||||||
import org.apache.hadoop.http.HttpServer2;
|
import org.apache.hadoop.http.HttpServer2;
|
||||||
import org.apache.hadoop.http.HttpServer2.Builder;
|
import org.apache.hadoop.http.HttpServer2.Builder;
|
||||||
import org.apache.hadoop.security.alias.CredentialProvider;
|
import org.apache.hadoop.security.alias.CredentialProvider;
|
||||||
|
@ -74,8 +75,9 @@ public class TestWebAppUtils {
|
||||||
"target/test-dir"));
|
"target/test-dir"));
|
||||||
|
|
||||||
Configuration conf = new Configuration();
|
Configuration conf = new Configuration();
|
||||||
|
final Path jksPath = new Path(testDir.toString(), "test.jks");
|
||||||
final String ourUrl =
|
final String ourUrl =
|
||||||
JavaKeyStoreProvider.SCHEME_NAME + "://file/" + testDir + "/test.jks";
|
JavaKeyStoreProvider.SCHEME_NAME + "://file" + jksPath.toUri();
|
||||||
|
|
||||||
File file = new File(testDir, "test.jks");
|
File file = new File(testDir, "test.jks");
|
||||||
file.delete();
|
file.delete();
|
||||||
|
|
Loading…
Reference in New Issue