Skip to content

Commit 5862937

Browse files
committed
Dev: behave: Adjust functional test for previous commit
1 parent f410851 commit 5862937

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

test/features/cluster_api.feature

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)