shuan1026 commented on code in PR #10873:
URL: https://github.com/apache/ozone/pull/10873#discussion_r3777390214
##########
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/hdds/scm/TestSecretKeySnapshot.java:
##########
@@ -87,24 +67,26 @@ public final class TestSecretKeySnapshot {
public static final int ROTATE_DURATION_MS = 30_000;
public static final int EXPIRY_DURATION_MS = 61_000;
- private MiniKdc miniKdc;
- private OzoneConfiguration conf;
- @TempDir
- private File workDir;
- private File ozoneKeytab;
- private File spnegoKeytab;
private MiniOzoneHAClusterImpl cluster;
+ @Override
+ protected boolean createTestUserPrincipal() {
+ return false;
+ }
+
+ @Override
+ protected boolean enableSecurityAuthorizationByDefault() {
+ return false;
+ }
+
@BeforeEach
public void init() throws Exception {
- conf = new OzoneConfiguration();
- conf.set(OZONE_SCM_CLIENT_ADDRESS_KEY, "localhost");
-
ExitUtils.disableSystemExit();
- startMiniKdc();
- setSecureConfig();
- createCredentialsInKDC();
+ initKerberos();
+ OzoneConfiguration conf = getConf();
+ conf.set(OZONE_SCM_CLIENT_ADDRESS_KEY, "localhost");
Review Comment:
Thanks @yandrey321! Moved it into the base's configureSecurityBasics().
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]