ankursinglaadobe commented on code in PR #12:
URL: 
https://github.com/apache/sling-org-apache-sling-installer-provider-jcr/pull/12#discussion_r4703727327


##########
src/test/java/org/apache/sling/installer/provider/jcr/impl/JcrHandleUpdateTest.java:
##########
@@ -43,20 +43,20 @@ public class JcrHandleUpdateTest extends JcrInstallTestBase 
{
     private static final String EXPECTED_JSON_EXTENSION = ".cfg.json";
     
     private static final String TEST_CONFIG_NAME = "testConfiguration";
-    private static final String TEST_CONFIG_PATH = "/path/to/" + 
TEST_CONFIG_NAME;
     private static final String APPS_BASE_PATH = "/apps/myapp";
     private static final String LIBS_BASE_PATH = "/libs/sling";
+    private static final String TEST_CONFIG_PATH = APPS_BASE_PATH + "/config/" 
+ TEST_CONFIG_NAME;
 
     /**
      * Tests URL transformation for various configuration file extensions.
      * 
-     * Verifies that different file extensions (.config, .properties, .cfg, 
.xml, .json)
-     * are properly converted to the standardized .cfg.json format.
+     * Verifies that the configuration file extensions supported by the 
installer
+     * (.config, .properties, .cfg) are properly converted to the standardized 
.cfg.json format.
      */
     @Test
     public void testTransformConfigurationFileExtensionsToStandardizedFormat() 
throws Exception {
         // Given: Various configuration file extensions
-        String[] fileExtensions = {".config", ".properties", ".cfg", ".xml", 
".json"};
+        String[] fileExtensions = {".config", ".properties", ".cfg"};

Review Comment:
   These extensions shall be preserved. Added a separate test for same



##########
src/test/java/org/apache/sling/installer/provider/jcr/impl/JcrHandleUpdateTest.java:
##########
@@ -87,7 +87,7 @@ public void testHandleDeeplyNestedDirectoryPaths() throws 
Exception {
         // Given: Deeply nested configuration paths
         String[] nestedPaths = {
             "/apps/myapp/config/install/" + TEST_CONFIG_NAME + ".config",
-            "/libs/sling/installer/provider/jcr/" + TEST_CONFIG_NAME + 
".config"
+            "/apps/sling/installer/provider/jcr/" + TEST_CONFIG_NAME + 
".config"
         };

Review Comment:
   Removed



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

Reply via email to