File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ add_crmv1_group () {
4+ crmv1 group testgrp rsc1 Dummy rsc2 Dummy fake=test
5+ }
6+
7+ rm_crmv1_group () {
8+ crmv1 group delete testgrp
9+ }
10+
11+ check_resources () {
12+ export OCF_ROOT=/usr/lib/ocf
13+ export OCF_RESOURCE_INSTANCE=rsc1
14+ . /usr/lib/ocf/lib/heartbeat/ocf-shellfuncs
15+ /usr/lib/ocf/resource.d/heartbeat/Dummy monitor || return 1
16+ OCF_RESOURCE_INSTANCE=rsc2
17+ export OCF_RESKEY_fake=test
18+ /usr/lib/ocf/resource.d/heartbeat/Dummy monitor || return 1
19+ return 0
20+ }
21+
22+ # crmv1 start a group
23+ setup_crmv1_group_start_ok () {
24+ add_crmv1_group
25+ }
26+ test_crmv1_group_start_ok () {
27+ wait_exp
28+ wait_timeout
29+ }
30+ check_crmv1_group_start_ok () {
31+ check_resources
32+ }
33+ recover_crmv1_group_start_ok () {
34+ stop_site ` get_site 1`
35+ stop_site ` get_site 2`
36+ rm_crmv1_group
37+ }
38+
39+ check_crmv1_group_start_ok
You can’t perform that action at this time.
0 commit comments