priyeshkaratha commented on code in PR #8227:
URL: https://github.com/apache/ozone/pull/8227#discussion_r2030057826


##########
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/shell/TestOzoneDebugShell.java:
##########
@@ -72,11 +80,26 @@ public abstract class TestOzoneDebugShell implements 
NonHATests.TestCase {
 
   private OzoneClient client;
   private OzoneDebug ozoneDebugShell;
+  private OMMetadataManager omMetadataManager;
+  private OzoneConfiguration conf;
+  private OzoneManager ozoneManager;
+  @TempDir
+  private java.nio.file.Path folder;
 
   @BeforeEach
   void init() throws Exception {
     ozoneDebugShell = new OzoneDebug();
     client = cluster().newClient();
+
+    conf = new OzoneConfiguration();
+    conf.set(OZONE_OM_DB_DIRS, folder.toAbsolutePath().toString());
+    ozoneManager = mock(OzoneManager.class);
+    when(ozoneManager.getMetadataManager()).thenReturn(omMetadataManager);
+
+    OzoneConfiguration ozoneConfiguration = mock(OzoneConfiguration.class);
+    when(ozoneManager.getConfiguration()).thenReturn(ozoneConfiguration);
+
+    omMetadataManager = new OmMetadataManagerImpl(conf, ozoneManager);

Review Comment:
   Thank you @adoroszlai for all the review comments. I have addressed the 
changes requested



-- 
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]

Reply via email to