Skip to content

Commit f118056

Browse files
committed
Dev: behave: Add corosync_ui.feature to collect test cases for crm corosync ui
1 parent 2b321ec commit f118056

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

.github/workflows/crmsh-ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,19 @@ jobs:
140140
$DOCKER_SCRIPT $index
141141
- uses: codecov/codecov-action@v3
142142

143+
functional_test_corosync_ui:
144+
runs-on: ubuntu-20.04
145+
timeout-minutes: 40
146+
steps:
147+
- uses: actions/checkout@v3
148+
- name: functional test for crm corosync subcommand
149+
run: |
150+
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
151+
sudo systemctl restart docker.service
152+
index=`$GET_INDEX_OF corosync_ui`
153+
$DOCKER_SCRIPT $index
154+
- uses: codecov/codecov-action@v3
155+
143156
functional_test_bootstrap_options_non_root:
144157
runs-on: ubuntu-20.04
145158
timeout-minutes: 40

data-manifest

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ test/features/bootstrap_sbd_normal.feature
7373
test/features/cluster_api.feature
7474
test/features/configure_bugs.feature
7575
test/features/constraints_bugs.feature
76+
test/features/corosync_ui.feature
7677
test/features/coveragerc
7778
test/features/crm_report_bugs.feature
7879
test/features/crm_report_normal.feature

test/features/corosync_ui.feature

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
@bootstrap
2+
Feature: crm corosync ui test cases
3+
4+
Need nodes: hanode1 hanode2
5+
6+
Scenario: Empty cluster
7+
When Try "crm corosync show" on "hanode1"
8+
Then Except "No such file or directory: '/etc/corosync/corosync.conf'" in stderr
9+
When Try "crm corosync set totem.cluster_name xin" on "hanode1"
10+
Then Except "No such file or directory: '/etc/corosync/corosync.conf'" in stderr

0 commit comments

Comments
 (0)