Scénario de test & Cas d'usage
This action is for server monitoring. No data preparation is required. This scenario simulates two states: one where a node addition is failing, and one where no addition is in progress.
| 1 | /* No |
| 2 | data creation is necessary. This scenario tests the action's output in both failure and idle conditions. */ |
| 1 | /* This assumes an addNode operation was just attempted and is hanging */ |
| 2 | PROC CAS; |
| 3 | SESSION.addNodeStatus RESULT=failedNodeStatus; |
| 4 | PRINT failedNodeStatus; |
| 5 | RUN; |
| 1 | /* This assumes all addNode operations have completed or been cancelled */ |
| 2 | PROC CAS; |
| 3 | SESSION.addNodeStatus RESULT=idleStatus; |
| 4 | PRINT idleStatus; |
| 5 | RUN; |
In step 1, the 'failedNodeStatus' result should contain a table with one row for the problematic node, showing a state such as 'pending' or 'timeout'. This confirms the node is stuck and helps the administrator pinpoint the issue. In step 2, the 'idleStatus' result is expected to be empty or contain a message indicating that 'no add-node operations are in progress', validating the action's behavior in a quiescent state.