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/delete | |
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 'test/testcases/delete')
-rw-r--r-- | test/testcases/delete | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/test/testcases/delete b/test/testcases/delete new file mode 100644 index 0000000..7d0dc57 --- /dev/null +++ b/test/testcases/delete @@ -0,0 +1,64 @@ +session Delete/Rename test +configure +# erase to start from scratch +erase +erase nodes +node node1 +# create one stonith so that verify does not complain +primitive st stonith:ssh \ + params hostlist='node1' \ + meta target-role="Started" \ + op start timeout=60s \ + op monitor interval=60m timeout=60s +primitive d1 ocf:pacemaker:Dummy +primitive d2 ocf:pacemaker:Dummy +location d1-pref d1 100: node1 +show +_test +rename d1 p1 +show +# delete primitive +delete d2 +_test +show +# delete primitive with constraint +delete p1 +_test +show +primitive d1 ocf:pacemaker:Dummy +location d1-pref d1 100: node1 +_test +# delete primitive belonging to a group +primitive d2 ocf:pacemaker:Dummy +_test +group g1 d2 d1 +delete d2 +show +_test +delete g1 +show +verify +# delete a group which is in a clone +primitive d2 ocf:pacemaker:Dummy +group g1 d2 d1 +clone c1 g1 +delete g1 +show +_test +group g1 d2 d1 +clone c1 g1 +_test +# delete group from a clone (again) +delete g1 +show +_test +group g1 d2 d1 +clone c1 g1 +# delete primitive and its group and their clone +delete d2 d1 c1 g1 +show +_test +# verify +verify +commit +. |