/usr/share/crmsh/tests/testcases/edit.exp is in crmsh 2.3.2-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 | .TRY Configuration editing
.INP: configure
.INP: _regtest on
.INP: erase
.INP: erase nodes
.INP: property default-action-timeout=2m
.INP: node node1 attributes mem=16G
.INP: primitive st stonith:null params hostlist='node1' meta description="some description here" op start requires=nothing op monitor interval=60m
.INP: primitive p1 ocf:heartbeat:Dummy op monitor interval=60m op monitor interval=120m OCF_CHECK_LEVEL=10
.INP: filter "sed '$aprimitive p2 ocf:heartbeat:Dummy'"
.INP: filter "sed '$agroup g1 p1 p2'"
.INP: show
node node1 \
attributes mem=16G
primitive p1 Dummy \
op monitor interval=60m \
op monitor interval=120m OCF_CHECK_LEVEL=10
primitive p2 Dummy
primitive st stonith:null \
params hostlist=node1 \
meta description="some description here" \
op start requires=nothing interval=0 \
op monitor interval=60m
group g1 p1 p2
property cib-bootstrap-options: \
default-action-timeout=2m
.INP: filter "sed 's/p2/p3/;$aprimitive p3 ocf:heartbeat:Dummy'" g1
.INP: show
node node1 \
attributes mem=16G
primitive p1 Dummy \
op monitor interval=60m \
op monitor interval=120m OCF_CHECK_LEVEL=10
primitive p2 Dummy
primitive p3 Dummy
primitive st stonith:null \
params hostlist=node1 \
meta description="some description here" \
op start requires=nothing interval=0 \
op monitor interval=60m
group g1 p1 p3
property cib-bootstrap-options: \
default-action-timeout=2m
.INP: filter "sed '$aclone c1 p2'"
.INP: filter "sed 's/p2/g1/'" c1
.INP: filter "sed '/clone/s/g1/p2/'" c1 g1
.INP: filter "sed '/clone/s/p2/g1/;s/p3/p2/'" c1 g1
.INP: filter "sed '1,$d'" c1 g1
.INP: filter "sed -e '$aclone c1 g1' -e '$agroup g1 p1 p2'"
.INP: location l1 p3 100: node1
.INP: order o1 inf: p3 c1
.INP: colocation cl1 inf: c1 p3
.INP: filter "sed '/cl1/s/p3/p2/'"
.INP: filter "sed '/cl1/d'"
.INP: primitive d1 ocf:heartbeat:Dummy
.INP: primitive d2 ocf:heartbeat:Dummy
.INP: primitive d3 ocf:heartbeat:Dummy
.INP: group g2 d1 d2
.INP: filter "sed '/g2/s/d1/p1/;/g1/s/p1/d1/'"
ERROR: 29: Cannot create group:g1: Child primitive:d1 already in group:g2
.INP: filter "sed '/g1/s/d1/p1/;/g2/s/p1/d1/'"
.INP: filter "sed '$alocation loc-d1 d1 rule $id=r1 -inf: not_defined webserver rule $id=r2 webserver: defined webserver'"
.INP: filter "sed 's/not_defined webserver/& or mem number:lte 0/'" loc-d1
.INP: filter "sed 's/ or mem number:lte 0//'" loc-d1
.INP: filter "sed 's/not_defined webserver/& rule -inf: not_defined a2/'" loc-d1
.INP: filter "sed 's/not_defined webserver/& or mem number:lte 0/'" loc-d1
.INP: modgroup g1 add d3
.INP: modgroup g1 remove p1
.INP: modgroup g1 add p1 after p2
.INP: modgroup g1 remove p1
.INP: modgroup g1 add p1 before p2
.INP: modgroup g1 add p1
ERROR: 1: syntax in group: child p1 listed more than once in group g1 parsing 'group g1 p1 p2 d3 p1'
.INP: modgroup g1 remove st
ERROR: 42: configure.modgroup: st is not member of g1
.INP: modgroup g1 remove c1
ERROR: 43: configure.modgroup: c1 is not member of g1
.INP: modgroup g1 remove nosuch
ERROR: 44: configure.modgroup: nosuch is not member of g1
.INP: modgroup g1 add c1
ERROR: 45: a group may contain only primitives; c1 is clone
.INP: modgroup g1 add nosuch
ERROR: 46: g1 refers to missing object nosuch
.INP: filter "sed 's/^/# this is a comment\n/'" loc-d1
.INP: rsc_defaults $id="rsc_options" failure-timeout=10m
.INP: filter "sed 's/2m/60s/'" cib-bootstrap-options
.INP: show rsc_options
rsc_defaults rsc_options: \
failure-timeout=10m
.INP: property stonith-enabled=true
.INP: show cib-bootstrap-options
property cib-bootstrap-options: \
default-action-timeout=60s \
stonith-enabled=true
.INP: filter 'sed "s/stonith-enabled=true//"'
.INP: show cib-bootstrap-options
property cib-bootstrap-options: \
default-action-timeout=60s
.INP: primitive d4 ocf:heartbeat:Dummy
.INP: primitive d5 ocf:heartbeat:Dummy
.INP: primitive d6 ocf:heartbeat:Dummy
.INP: order o-d456 d4 d5 d6
.INP: tag t-d45: d4 d5
.INP: show type:order
order o-d456 d4 d5 d6
order o1 inf: p3 c1
.INP: show related:d4
primitive d4 Dummy
tag t-d45 d4 d5
order o-d456 d4 d5 d6
.INP: _test
.INP: verify
.EXT crm_resource --show-metadata stonith:null
.EXT stonithd metadata
.EXT crm_resource --show-metadata ocf:heartbeat:Dummy
.EXT crmd metadata
.EXT pengine metadata
.EXT cib metadata
.INP: show
node node1 \
attributes mem=16G
primitive d1 Dummy
primitive d2 Dummy
primitive d3 Dummy
primitive d4 Dummy
primitive d5 Dummy
primitive d6 Dummy
primitive p1 Dummy \
op monitor interval=60m \
op monitor interval=120m OCF_CHECK_LEVEL=10
primitive p2 Dummy
primitive p3 Dummy
primitive st stonith:null \
params hostlist=node1 \
meta description="some description here" \
op start requires=nothing interval=0 \
op monitor interval=60m
group g1 p1 p2 d3
group g2 d1 d2
clone c1 g1
tag t-d45 d4 d5
location l1 p3 100: node1
location loc-d1 d1 \
rule -inf: not_defined webserver or mem number:lte 0 \
rule -inf: not_defined a2 \
rule webserver: defined webserver
order o-d456 d4 d5 d6
order o1 inf: p3 c1
property cib-bootstrap-options: \
default-action-timeout=60s
rsc_defaults rsc_options: \
failure-timeout=10m
.INP: commit
|