add integration tests for genericProcessService#52
Conversation
There was a problem hiding this comment.
The PR adds generic ProcessService integration and hybrid tests alongside the corresponding service handlers and CDS action definitions. There are several correctness issues worth addressing: the genericStart handler uses emit (fire-and-forget) and passes businessKey as a data payload rather than as a CDS header, which misaligns with how both the local and BTP ProcessService implementations read it; the integration tests for lifecycle operations do not poll for intermediate states before asserting final status, making them prone to race conditions; and the getOutputs integration test queries outputs from a process that is still RUNNING, causing the property assertions to fail. These should be fixed before the tests can be considered reliable.
PR Bot Information
Version: 1.19.1 | 📖 Documentation | 🚨 Create Incident | 💬 Feedback
- LLM:
anthropic--claude-4.6-sonnet - Event Trigger:
pull_request.opened - Correlation ID:
fc85d2c0-2694-11f1-8618-7016bba7ccdc
There was a problem hiding this comment.
I think you dont need any hybrid test with process binding at all since we already test the same functionality with the specific process.
The integration tests are enough
SummaryThe following content is AI-generated and provides a summary of the pull request: Add Integration Tests for
|
There was a problem hiding this comment.
The PR adds generic ProcessService handlers and integration tests, but has significant correctness issues: all four lifecycle event handlers (genericStart, genericCancel, genericSuspend, genericResume) bypass the CDS outbox by using bare emit instead of cds.queued(...).emit, which is inconsistent with the production implementation and risks silent message loss. Additionally, the integration tests assert on live remote process state immediately after fire-and-forget events, which will produce flaky results, and the JSON.parse call in genericStart lacks error handling.
PR Bot Information
Version: 1.19.1 | 📖 Documentation | 🚨 Create Incident | 💬 Feedback
- Correlation ID:
79e7e0c0-2698-11f1-94ff-47f78f8f9712 - Event Trigger:
pull_request.ready_for_review - LLM:
anthropic--claude-4.6-sonnet
| describe('getAttributes', () => { | ||
| it('should return attributes for a running process instance', async () => { |
There was a problem hiding this comment.
only one test in describe => only test
…egration-tests' into generic-service-integration-tests
Have you...