?>Array ( [id] => 133 )
Scénario de test & Cas d'usage
Simulate an initial small CAS cluster environment. No data tables are required as this is an administrative action. The initial state is assumed to be one controller and one worker node.
| 1 | /* Initial state: 1 controller, 1 worker. We will add two more workers. */ |
| 1 | PROC CAS; |
| 2 | BUILTINS.serverStatus; |
| 3 | RUN; |
| 1 | PROC CAS; |
| 2 | BUILTINS.addNode / |
| 3 | node={"casworker02.example.com", "casworker03.example.com"}, |
| 4 | role="WORKER"; |
| 5 | RUN; |
| 1 | PROC CAS; |
| 2 | BUILTINS.serverStatus; |
| 3 | RUN; |
The final server status should show that the two new worker nodes ('casworker02.example.com' and 'casworker03.example.com') are active and part of the cluster. The total number of workers should have increased by two. The action's log should indicate success for both nodes.