From 4062217189621a8a8532f7b88d8e4e4e1a6f91e5 Mon Sep 17 00:00:00 2001 From: Inigo Goiri Date: Fri, 6 Mar 2020 10:14:53 -0800 Subject: [PATCH] HDFS-15212. TestEncryptionZones.testVersionAndSuiteNegotiation fails in trunk. Contributed by Ayush Saxena. --- .../test/java/org/apache/hadoop/hdfs/TestEncryptionZones.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestEncryptionZones.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestEncryptionZones.java index 6c9fea6dbd..451fe9c883 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestEncryptionZones.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestEncryptionZones.java @@ -1051,6 +1051,8 @@ private static void testCipherSuiteNegotiation(DistributedFileSystem fs, noCodecConf.set(confKey, ""); fs.dfs = new DFSClient(null, mcp, noCodecConf, null); mockCreate(mcp, suite, CryptoProtocolVersion.ENCRYPTION_ZONES); + Mockito.when(mcp.complete(anyString(), anyString(), any(), anyLong())) + .thenReturn(true); try { fs.create(new Path("/mock")); fail("Created with no configured codecs!");