diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 06:48:59 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 06:48:59 +0000 |
commit | d835b2cae8abc71958b69362162e6a70c3d7ef63 (patch) | |
tree | 81052e3d2ce3e1bcda085f73d925e9d6257dec15 /test/testcases/bundle | |
parent | Initial commit. (diff) | |
download | crmsh-d835b2cae8abc71958b69362162e6a70c3d7ef63.tar.xz crmsh-d835b2cae8abc71958b69362162e6a70c3d7ef63.zip |
Adding upstream version 4.6.0.upstream/4.6.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | test/testcases/bundle | 20 | ||||
-rw-r--r-- | test/testcases/bundle.exp | 57 |
2 files changed, 77 insertions, 0 deletions
diff --git a/test/testcases/bundle b/test/testcases/bundle new file mode 100644 index 0000000..463687d --- /dev/null +++ b/test/testcases/bundle @@ -0,0 +1,20 @@ +show Basic configure +node node1 +delete node1 +node node1 \ + attributes mem=16G +node node2 utilization cpu=4 +primitive st stonith:ssh \ + params hostlist='node1 node2' \ + meta target-role="Started" requires=nothing \ + op start timeout=60s \ + op monitor interval=60m timeout=60s +primitive st2 stonith:ssh \ + params hostlist='node1 node2' +bundle id=bundle-test1 docker image=test network ip-range-start=10.10.10.123 port-mapping id=port1 port=80 storage storage-mapping id=storage1 target-dir=test source-dir=test meta target-role=Stopped +primitive id=dummy ocf:heartbeat:Dummy op monitor interval=10 meta target-role=Stopped +bundle id=bundle-test2 docker image=test network ip-range-start=10.10.10.123 primitive dummy meta target-role=Stopped priority=1 +property stonith-enabled=true +_test +verify +. diff --git a/test/testcases/bundle.exp b/test/testcases/bundle.exp new file mode 100644 index 0000000..f6284ce --- /dev/null +++ b/test/testcases/bundle.exp @@ -0,0 +1,57 @@ +.TRY Basic configure +.INP: configure +.INP: _regtest on +.INP: erase +.INP: erase nodes +.INP: node node1 +.INP: delete node1 +.INP: node node1 attributes mem=16G +.INP: node node2 utilization cpu=4 +.INP: primitive st stonith:ssh params hostlist='node1 node2' meta target-role="Started" requires=nothing op start timeout=60s op monitor interval=60m timeout=60s +.EXT crm_resource --show-metadata stonith:ssh +.EXT stonithd metadata +.INP: primitive st2 stonith:ssh params hostlist='node1 node2' +.INP: bundle id=bundle-test1 docker image=test network ip-range-start=10.10.10.123 port-mapping id=port1 port=80 storage storage-mapping id=storage1 target-dir=test source-dir=test meta target-role=Stopped +.INP: primitive id=dummy ocf:heartbeat:Dummy op monitor interval=10 meta target-role=Stopped +.EXT crm_resource --show-metadata ocf:heartbeat:Dummy +.INP: bundle id=bundle-test2 docker image=test network ip-range-start=10.10.10.123 primitive dummy meta target-role=Stopped priority=1 +.INP: property stonith-enabled=true +.INP: _test +.INP: verify +.EXT crmd metadata +.EXT pengine metadata +.EXT cib metadata +.INP: show +node node1 \ + attributes mem=16G +node node2 \ + utilization cpu=4 +primitive dummy Dummy \ + meta target-role=Stopped \ + op monitor interval=10 timeout=20s \ + op start timeout=20s interval=0s \ + op stop timeout=20s interval=0s +primitive st stonith:ssh \ + params hostlist="node1 node2" \ + meta target-role=Started requires=nothing \ + op start timeout=60s interval=0s \ + op monitor interval=60m timeout=60s \ + op stop timeout=15 interval=0s +primitive st2 stonith:ssh \ + params hostlist="node1 node2" \ + op monitor timeout=20 interval=3600 \ + op start timeout=20 interval=0s \ + op stop timeout=15 interval=0s +bundle bundle-test1 \ + docker image=test \ + network ip-range-start=10.10.10.123 port-mapping id=port1 port=80 \ + storage storage-mapping id=storage1 target-dir=test source-dir=test \ + meta target-role=Stopped +bundle bundle-test2 \ + docker image=test \ + network ip-range-start=10.10.10.123 \ + primitive dummy \ + meta target-role=Stopped priority=1 +property cib-bootstrap-options: \ + stonith-enabled=true +.INP: commit |