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 e221fe4a4f..53c12ec40e 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 @@ -326,7 +326,9 @@ public void testProvisionTrash() throws Exception { public void testBasicOperations() throws Exception { int numZones = 0; - + /* Number of EZs should be 0 if no EZ is created */ + assertEquals("Unexpected number of encryption zones!", numZones, + cluster.getNamesystem().getNumEncryptionZones()); /* Test failure of create EZ on a directory that doesn't exist. */ final Path zoneParent = new Path("/zones"); final Path zone1 = new Path(zoneParent, "zone1");