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 Aug 27, 2019
1 parent 75c38f5 commit d1b37ed
Show file tree
Hide file tree
Showing 10 changed files with 29 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 @@ -34,6 +34,8 @@ filter "sed '/g1/s/p1/d1/'"
group g2 d3 d2
delete d2
commit
delete d3
show changed
_test
verify
.
12 changes: 7 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 @@ -44,14 +46,17 @@ INFO: 24: modified colocation:cl1 from c1 to g1
.INP: group g2 d3 d2
.INP: delete d2
.INP: commit
.INP: delete d3
.INP: show changed
primitive d3 Dummy
group g2
.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 +68,9 @@ 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
1 change: 1 addition & 0 deletions test/testcases/confbasic.exp
Original file line number Diff line number Diff line change
Expand Up @@ -147,3 +147,4 @@ 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
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 @@ -168,3 +168,5 @@ rsc_defaults rsc_options: \
op_defaults op-options: \
timeout=60s
.INP: commit
.EXT crm_resource --show-metadata ocf:pacemaker:Dummy
.EXT crm_resource --show-metadata ocf:heartbeat:Delay
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 d1b37ed

Please sign in to comment.