morihuang opened a new issue, #6227:
URL: https://github.com/apache/hop/issues/6227

   ### Apache Hop version?
   
   2.15.0
   
   ### Java version?
   
   openjdk 17.0.14
   
   ### Operating system
   
   Other
   
   ### What happened?
   
   Encountering the Unit Testing functionality issue in Apache Hop 2.15.0 
particularly when running Hop Web in a Kubernetes environment.
   
   ### Problem Description
   
   According to the official doc, the Unit Testing category should include the 
following components:
   
   - Set input data set
   - Clear input data set
   - Set golden data set
   - Clear golden data set
   - Create data set
   - Write rows to data set
   - Remove from test
   - Include in test
   - Bypass in test
   - Remove bypass in test
   
   However only the following components appear in my Hop Web UI:
   
   - Create data set
   - Write rows to data set
   
   After further investigation, it seems that Hop Web is not detecting the unit 
test file correctly, based on the following behavior:
   
   - A unit test file is created in the metadata folder 
"/usr/local/tomcat/webapps/ROOT/config/projects/samples/metadata/unit-test/”, 
the pipeline is able to detect the unit test file and is visible in the unit 
test drop-down list.
   - When clicking "Edit the selected unit test", no panel is opened.
   - When clicking "Detach the unit test from this pipeline", got the following 
error message:
   
     ```
     NullPointerException: Cannot invoke 
"org.apache.hop.testing.PipelineUnitTest.getName()" because "unitTest" is null
     Root cause: NullPointerException: Cannot invoke 
"org.apache.hop.testing.PipelineUnitTest.getName()" because "unitTest" is null
     ```
   
   - When selecting a transform (e.g. get `${PRM_EXAMPLE})`, the expected "Unit 
Testing" components do not appear, left only "Create data set" and "Write rows 
to data set".
   
   I have created and run the unit test correctly with the pipeline using Hop 
GUI (2.15.0) on my local machine, but when the project directory is copied into 
the k8s cluster, the issue mentioned above occurred again.
   
   ### Environment Details
   
   Deployment: Kubernetes
   
   Installation method: Helm chart
   
   Apache Hop versions tested:
   
   - 2.15.0 (Helm and Docker)
   - 2.14.0 (Helm)
   - 2.13.0 (Helm)
   - 2.12.0 (Docker)
   
   → All of the above exhibit the same issue.
   
   Hop 2.9.0 and 2.10.0 however do not have this problem.
   
   
   
   ### Issue Priority
   
   Priority: 2
   
   ### Issue Component
   
   Component: Pipelines


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