Skip to content

Commit

Permalink
Dev: testcase: update testcases for 'crm configure show changed'
Browse files Browse the repository at this point in the history
  • Loading branch information
liangxin1300 committed Dec 10, 2019
1 parent 8023fe8 commit a914ce7
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 5 deletions.
2 changes: 2 additions & 0 deletions test/testcases/acl.exp
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,5 @@ acl_target bob \
acl_target cyrus \
cyrus-role
.INP: commit
.EXT crm_resource --show-metadata ocf:heartbeat:Delay
.EXT crm_resource --show-metadata stonith:null
5 changes: 5 additions & 0 deletions test/testcases/bugs.exp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ primitive p6 Dummy
clone cl-p5 p5
colocation c2 inf: ( p1 p2 ) p3 p4
.INP: commit
.EXT crm_resource --show-metadata ocf:pacemaker:Dummy
.EXT crm_resource --show-metadata ocf:heartbeat:Delay
.INP: _test
.INP: verify
.INP: show
Expand Down Expand Up @@ -109,6 +111,9 @@ primitive st stonith:null \
property SAPHanaSR: \
hana_ha1_site_lss_WDF1=4
.INP: commit
WARNING: 6: c2: resource p1 does not exist
.EXT crm_resource --show-metadata ocf:heartbeat:Dummy
WARNING: 6: loc1: resource None does not exist
.INP: _test
.INP: verify
.INP: property SAPHanaSR_2: hana_ha1_site_iss_WDF1=cde hana_ha1_site_bss_WDF1=abc
Expand Down
3 changes: 3 additions & 0 deletions test/testcases/bundle.exp
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,6 @@ bundle bundle-test2 \
property cib-bootstrap-options: \
stonith-enabled=true
.INP: commit
.EXT crm_resource --show-metadata ocf:pacemaker:Dummy
.EXT crm_resource --show-metadata ocf:heartbeat:Delay
.EXT crm_resource --show-metadata stonith:null
2 changes: 2 additions & 0 deletions test/testcases/commit
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ commit
filter "sed '/g1/s/p1/d1/'"
group g2 d3 d2
delete d2
delete d3
show changed
commit
_test
verify
Expand Down
15 changes: 10 additions & 5 deletions test/testcases/commit.exp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
.EXT crm_resource --show-metadata stonith:null
.EXT stonithd metadata
.INP: commit
.EXT crm_resource --show-metadata ocf:pacemaker:Dummy
.EXT crm_resource --show-metadata ocf:heartbeat:Delay
WARNING: 7: st: unknown attribute 'yoyo-meta'
.INP: node node1 attributes mem=16G
.INP: primitive p1 ocf:heartbeat:Dummy op monitor interval=60m op monitor interval=120m OCF_CHECK_LEVEL=10
Expand Down Expand Up @@ -43,15 +45,19 @@ INFO: 24: modified colocation:cl1 from c1 to g1
.INP: filter "sed '/g1/s/p1/d1/'"
.INP: group g2 d3 d2
.INP: delete d2
.INP: delete d3
.INP: show changed
primitive d2 Dummy
primitive d3 Dummy
group g1 d1 p2
.INP: commit
.INP: _test
.INP: verify
WARNING: 35: st: unknown attribute 'yoyo-meta'
WARNING: 37: st: unknown attribute 'yoyo-meta'
.INP: show
node node1 \
attributes mem=16G
primitive d1 Dummy
primitive d3 Dummy
primitive p1 Dummy \
op monitor interval=60m \
op monitor interval=120m \
Expand All @@ -63,12 +69,11 @@ primitive st stonith:null \
meta yoyo-meta="yoyo 2" requires=nothing \
op monitor interval=60m
group g1 d1 p2
group g2 d3
colocation cl1 inf: g1 p3
location l1 p3 100: node1
order o1 inf: p3 g1
op_defaults op-options: \
timeout=2m
.INP: commit
INFO: 37: apparently there is nothing to commit
INFO: 37: try changing something first
INFO: 39: apparently there is nothing to commit
INFO: 39: try changing something first
1 change: 1 addition & 0 deletions test/testcases/confbasic.exp
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ op_defaults opsdef2: \
record-pending=true
.INP: commit
WARNING: 55: c2: resource d1 is grouped, constraints should apply to the group
.EXT crm_resource --show-metadata stonith:null
.TRY -F node maintenance node1
.TRY -F resource maintenance g1 off
.TRY -F resource maintenance d1
Expand Down
2 changes: 2 additions & 0 deletions test/testcases/delete.exp
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,5 @@ primitive st stonith:ssh \
.INP: # verify
.INP: verify
.INP: commit
.EXT crm_resource --show-metadata ocf:heartbeat:Delay
.EXT crm_resource --show-metadata stonith:null
2 changes: 2 additions & 0 deletions test/testcases/edit.exp
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ op_defaults op-options: \
.EXT crmd metadata
.EXT pengine metadata
.EXT cib metadata
.EXT crm_resource --show-metadata ocf:pacemaker:Dummy
.EXT crm_resource --show-metadata ocf:heartbeat:Delay
.INP: _test
.INP: verify
.INP: primitive a0 ocf:heartbeat:Dummy
Expand Down
3 changes: 3 additions & 0 deletions test/testcases/newfeatures.exp
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,6 @@ alert notify_9 "/usr/share/pacemaker/alerts/alert_snmp.sh" \
.EXT pengine metadata
.EXT cib metadata
.INP: commit
.EXT crm_resource --show-metadata ocf:pacemaker:Dummy
.EXT crm_resource --show-metadata ocf:heartbeat:Delay
.EXT crm_resource --show-metadata stonith:null
2 changes: 2 additions & 0 deletions test/testcases/rset.exp
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,5 @@ colocation c2 inf: d3 d1
colocation c3 inf: d3 d1
order o1 Serialize: d1 d3
.INP: commit
.EXT crm_resource --show-metadata ocf:heartbeat:Delay
.EXT crm_resource --show-metadata stonith:null

0 comments on commit a914ce7

Please sign in to comment.