HDDS-1841. Fix TestSecureContainerServer. (#1136)
This commit is contained in:
parent
4aa76e327d
commit
acdb0a1276
@ -34,6 +34,7 @@
|
||||
import org.apache.hadoop.hdds.security.exception.SCMSecurityException;
|
||||
import org.apache.hadoop.hdds.security.token.OzoneBlockTokenIdentifier;
|
||||
import org.apache.hadoop.hdds.security.x509.SecurityConfig;
|
||||
import org.apache.hadoop.metrics2.lib.DefaultMetricsSystem;
|
||||
import org.apache.hadoop.ozone.OzoneConfigKeys;
|
||||
import org.apache.hadoop.ozone.RatisTestHelper;
|
||||
import org.apache.hadoop.ozone.client.CertificateClientTestImpl;
|
||||
@ -97,6 +98,7 @@ private GrpcReplicationService createReplicationService(
|
||||
|
||||
@BeforeClass
|
||||
static public void setup() throws Exception {
|
||||
DefaultMetricsSystem.setMiniClusterMode(true);
|
||||
CONF.set(HddsConfigKeys.HDDS_METADATA_DIR_NAME, TEST_DIR);
|
||||
CONF.setBoolean(OZONE_SECURITY_ENABLED_KEY, true);
|
||||
CONF.setBoolean(HDDS_BLOCK_TOKEN_ENABLED, true);
|
||||
|
Loading…
Reference in New Issue
Block a user