HDFS-15212. TestEncryptionZones.testVersionAndSuiteNegotiation fails in trunk. Contributed by Ayush Saxena.

This commit is contained in:
Inigo Goiri 2020-03-06 10:14:53 -08:00
parent ea0444851d
commit 4062217189

View File

@ -1051,6 +1051,8 @@ private static void testCipherSuiteNegotiation(DistributedFileSystem fs,
noCodecConf.set(confKey, ""); noCodecConf.set(confKey, "");
fs.dfs = new DFSClient(null, mcp, noCodecConf, null); fs.dfs = new DFSClient(null, mcp, noCodecConf, null);
mockCreate(mcp, suite, CryptoProtocolVersion.ENCRYPTION_ZONES); mockCreate(mcp, suite, CryptoProtocolVersion.ENCRYPTION_ZONES);
Mockito.when(mcp.complete(anyString(), anyString(), any(), anyLong()))
.thenReturn(true);
try { try {
fs.create(new Path("/mock")); fs.create(new Path("/mock"));
fail("Created with no configured codecs!"); fail("Created with no configured codecs!");