diff options
Diffstat (limited to '')
-rw-r--r-- | test/testcases/rset.exp | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/test/testcases/rset.exp b/test/testcases/rset.exp new file mode 100644 index 0000000..79b03f4 --- /dev/null +++ b/test/testcases/rset.exp @@ -0,0 +1,66 @@ +.TRY Resource sets +.INP: configure +.INP: _regtest on +.INP: erase +.INP: erase nodes +.INP: node node1 +.INP: primitive st stonith:ssh params hostlist='node1' op start timeout=60s +.EXT crm_resource --show-metadata stonith:ssh +.EXT stonithd metadata +.INP: primitive d1 ocf:pacemaker:Dummy +.EXT crm_resource --show-metadata ocf:pacemaker:Dummy +.INP: primitive d2 ocf:heartbeat:Dummy +.EXT crm_resource --show-metadata ocf:heartbeat:Dummy +.INP: primitive d3 ocf:heartbeat:Dummy +.INP: primitive d4 ocf:heartbeat:Dummy +.INP: primitive d5 ocf:heartbeat:Dummy +.INP: order o1 Serialize: d1 d2 ( d3 d4 ) +.INP: colocation c1 inf: d4 ( d1 d2 d3 ) +.INP: colocation c2 inf: d1 d2 d3 d4 +.INP: colocation c3 inf: ( d3 d4 ) ( d1 d2 ) +.INP: delete d2 +INFO: 16: constraint order:o1 updated +INFO: 16: constraint colocation:c1 updated +INFO: 16: constraint colocation:c2 updated +INFO: 16: constraint colocation:c3 updated +.INP: show o1 c1 c2 c3 +colocation c1 inf: d4 ( d1 d3 ) +colocation c2 inf: d1 d3 d4 +colocation c3 inf: ( d3 d4 ) ( d1 ) +order o1 Serialize: d1 ( d3 d4 ) +.INP: delete d4 +INFO: 18: constraint order:o1 updated +INFO: 18: constraint colocation:c1 updated +INFO: 18: constraint colocation:c2 updated +INFO: 18: constraint colocation:c3 updated +.INP: show o1 c1 c2 c3 +colocation c1 inf: ( d1 d3 ) +colocation c2 inf: d3 d1 +colocation c3 inf: d3 d1 +order o1 Serialize: d1 d3 +.INP: _test +.INP: verify +.INP: show +node node1 +primitive d1 ocf:pacemaker:Dummy \ + op monitor timeout=20s interval=10s \ + op start timeout=20s interval=0s \ + op stop timeout=20s interval=0s +primitive d3 Dummy \ + op monitor timeout=20s interval=10s \ + op start timeout=20s interval=0s \ + op stop timeout=20s interval=0s +primitive d5 Dummy \ + op monitor timeout=20s interval=10s \ + op start timeout=20s interval=0s \ + op stop timeout=20s interval=0s +primitive st stonith:ssh \ + params hostlist=node1 \ + op start timeout=60s interval=0s \ + op monitor timeout=20 interval=3600 \ + op stop timeout=15 interval=0s +colocation c1 inf: ( d1 d3 ) +colocation c2 inf: d3 d1 +colocation c3 inf: d3 d1 +order o1 Serialize: d1 d3 +.INP: commit |