diff --git a/tools/shell/regression/testcases/resource.exp b/tools/shell/regression/testcases/resource.exp index d58cd74ac5..b3bc9e84e4 100644 --- a/tools/shell/regression/testcases/resource.exp +++ b/tools/shell/regression/testcases/resource.exp @@ -1,414 +1,392 @@ .TRY resource status p0 .EXT crm_resource -W -r 'p0' resource p0 is NOT running .SETENV showobj=p3 .TRY resource start p3 .EXT crm_resource --meta -r 'p3' -p target-role -v 'Started' .INP: configure .INP: _regtest on .INP: show xml p3 .TRY resource stop p3 .EXT crm_resource --meta -r 'p3' -p target-role -v 'Stopped' .INP: configure .INP: _regtest on .INP: show xml p3 .SETENV showobj=c1 .TRY resource manage c1 .EXT crm_resource --meta -r 'c1' -p is-managed -v 'true' .INP: configure .INP: _regtest on .INP: show xml c1 .TRY resource unmanage c1 .EXT crm_resource --meta -r 'c1' -p is-managed -v 'false' .INP: configure .INP: _regtest on .INP: show xml c1 .SETENV showobj=cli-prefer-p3 .TRY resource migrate p3 .EXT crm_resource -M -r 'p3' Resource p3 not moved: not-active and no prefered location specified. Error performing operation: cib object missing .INP: configure .INP: _regtest on .INP: show xml cli-prefer-p3 .TRY resource migrate p3 node1 .EXT crm_resource -M -r 'p3' -H 'node1' .INP: configure .INP: _regtest on .INP: show xml cli-prefer-p3 .TRY resource unmigrate p3 .EXT crm_resource -U -r 'p3' .INP: configure .INP: _regtest on .INP: show xml cli-prefer-p3 .SETENV showobj=p0 .TRY resource param p0 set a0 "1 2 3" .EXT crm_resource -r 'p0' -p 'a0' -v '1 2 3' .INP: configure .INP: _regtest on .INP: show xml p0 .TRY resource param p0 show a0 .EXT crm_resource -r 'p0' -g 'a0' 1 2 3 .INP: configure .INP: _regtest on .INP: show xml p0 .TRY resource param p0 delete a0 .EXT crm_resource -r 'p0' -d 'a0' Deleted p0 option: id=p0-instance_attributes-a0 name=a0 .INP: configure .INP: _regtest on .INP: show xml p0 - - - + .TRY resource meta p0 set m0 123 .EXT crm_resource --meta -r 'p0' -p 'm0' -v '123' .INP: configure .INP: _regtest on .INP: show xml p0 - .TRY resource meta p0 show m0 .EXT crm_resource --meta -r 'p0' -g 'm0' 123 .INP: configure .INP: _regtest on .INP: show xml p0 - .TRY resource meta p0 delete m0 .EXT crm_resource --meta -r 'p0' -d 'm0' Deleted p0 option: id=p0-meta_attributes-m0 name=m0 .INP: configure .INP: _regtest on .INP: show xml p0 - - - - + .TRY resource failcount p0 set node1 5 .EXT crm_failcount -r 'p0' -N 'node1' -v '5' .INP: configure .INP: _regtest on .INP: show xml p0 - - - - + .TRY resource failcount p0 show node1 .EXT crm_failcount -r 'p0' -N 'node1' -G scope=status name=fail-count-p0 value=0 .INP: configure .INP: _regtest on .INP: show xml p0 - - - - + .TRY resource failcount p0 delete node1 .EXT crm_failcount -r 'p0' -N 'node1' -D .INP: configure .INP: _regtest on .INP: show xml p0 - - - - + .TRY resource cleanup p0 node1 .EXT crm_resource -C -r 'p0' -H 'node1' Cleaning up p0 on node1 .INP: configure .INP: _regtest on .INP: show xml p0 - - - - + .TRY resource cleanup p0 .EXT crm_resource -C -r 'p0' -H 'node1' Cleaning up p0 on node1 .INP: configure .INP: _regtest on .INP: show xml p0 - - - - +