File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,23 @@ Feature: Functional test to cover SAP clusterAPI
2121 When Run "echo 'export PATH=$PATH:/usr/sbin/' > ~hacluster/.bashrc" on "hanode1"
2222 When Run "echo 'export PATH=$PATH:/usr/sbin/' > ~hacluster/.bashrc" on "hanode2"
2323
24+ @clean
25+ Scenario : Test cluster copy
26+ When Try "crm cluster copy /tmp/none"
27+ Then Expected "/tmp/none does not exist" in stderr
28+ When Run "touch /tmp/file1" on "hanode1"
29+ When Run "crm cluster copy /tmp/file1" on "hanode1"
30+ When Run "ls /tmp/file1" on "hanode2"
31+ Then Expected return code is "0"
32+ When Run "touch /tmp/file2" on "hanode1"
33+ When Run "cd /tmp; crm cluster copy file2" on "hanode1"
34+ When Run "ls /tmp/file2" on "hanode2"
35+ Then Expected return code is "0"
36+ When Run "mkdir -p /tmp/dir1/dir2" on "hanode1"
37+ When Run "crm cluster copy /tmp/dir1/dir2" on "hanode1"
38+ When Run "test -d /tmp/dir1/dir2" on "hanode2"
39+ Then Expected return code is "0"
40+
2441 @clean
2542 Scenario : Start and stop resource by hacluster
2643 When Run "su - hacluster -c 'crm resource stop d'" on "hanode1"
You can’t perform that action at this time.
0 commit comments