?>Array ( [id] => 135 )
Scénario de test & Cas d'usage
Simulate a CAS environment that is already in a high-availability state, with one primary and one backup controller.
| 1 | /* Initial state: 1 primary controller, 1 backup controller. */ |
| 1 | PROC CAS; |
| 2 | BUILTINS.serverStatus; |
| 3 | RUN; |
| 1 | PROC CAS; |
| 2 | BUILTINS.addNode / |
| 3 | node={"cascontroller03.example.com"}, |
| 4 | role="CONTROLLER"; |
| 5 | RUN; |
The `addNode` action must fail. The CAS log should produce a clear and specific error message indicating that a backup controller already exists and a third controller cannot be added. A subsequent check of the server status should show that the cluster topology remains unchanged (still one primary and one backup controller).