norrishuang commented on PR #18069:
URL: 
https://github.com/apache/dolphinscheduler/pull/18069#issuecomment-4108991895

   Thank you for the guidance @SbloodyS!
   
   I have added an api-test for the EMR Serverless task plugin. Since this 
plugin depends on AWS EMR Serverless (a cloud service), running actual e2e 
tests in CI would require real AWS credentials and a running EMR Serverless 
application. To solve this, I used **WireMock** to mock the AWS EMR Serverless 
HTTP API — it's open-source and works entirely offline.
   
   **What was added (commit: norrishuang/dolphinscheduler@b96944c):**
   
   1. `EmrServerlessTaskAPITest` — api-test that exercises the full task 
execution flow via DolphinScheduler REST API:
      - Login → create project → import workflow definition → online workflow → 
trigger execution → assert success
   
   2. `docker-compose.yaml` — spins up DolphinScheduler standalone + WireMock:
      - WireMock mocks `POST /applications/*/jobruns` (StartJobRun) and `GET 
/applications/*/jobruns/*` (GetJobRun → SUCCESS)
      - DS connects to WireMock via 
`EMR_SERVERLESS_ENDPOINT=http://wiremock:8080`
   
   3. Fixed deprecated `ObjectMapper.configure()` calls by switching to 
`JsonMapper.builder()` pattern (addresses the CodeQL warning)
   
   Please let me know if any adjustments are needed.


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