Skip to content

Commit aa17646

Browse files
committed
Dev: behave: Add corosync_ui.feature to collect test cases for crm corosync ui
1 parent 8ffd435 commit aa17646

File tree

4 files changed

+29
-2
lines changed

4 files changed

+29
-2
lines changed

.github/workflows/crmsh-ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,22 @@ jobs:
165165
token: ${{ secrets.CODECOV_TOKEN }}
166166
flags: integration
167167

168+
functional_test_corosync_ui:
169+
runs-on: ubuntu-24.04
170+
timeout-minutes: 40
171+
steps:
172+
- uses: actions/checkout@v4
173+
- name: functional test for crm corosync subcommand
174+
run: |
175+
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
176+
sudo systemctl restart docker.service
177+
index=`$GET_INDEX_OF corosync_ui`
178+
$DOCKER_SCRIPT $index
179+
- uses: codecov/codecov-action@v4
180+
with:
181+
token: ${{ secrets.CODECOV_TOKEN }}
182+
flags: integration
183+
168184
functional_test_bootstrap_options_non_root:
169185
runs-on: ubuntu-24.04
170186
timeout-minutes: 40

codecov.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ coverage:
88
threshold: 0.35%
99
codecov:
1010
notify:
11-
after_n_builds: 26
11+
after_n_builds: 27
1212
comment:
13-
after_n_builds: 26
13+
after_n_builds: 27
1414
layout: "condensed_header, flags, files, condensed_footer"
1515

1616
ignore:

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)