Skip to content

Commit

Permalink
Dev: behave: remove unused functional tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasyang2022 committed Sep 13, 2024
1 parent d6d6a56 commit a4c37d4
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 105 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/crmsh-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -357,22 +357,6 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}
flags: integration

functional_test_healthcheck:
runs-on: ubuntu-20.04
timeout-minutes: 40
steps:
- uses: actions/checkout@v4
- name: functional test for healthcheck
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
index=`$GET_INDEX_OF healthcheck`
$DOCKER_SCRIPT $index && $DOCKER_SCRIPT -d && $DOCKER_SCRIPT $index -u
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: integration

functional_test_cluster_api:
runs-on: ubuntu-20.04
timeout-minutes: 40
Expand Down
4 changes: 2 additions & 2 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ coverage:
threshold: 0.1%
codecov:
notify:
after_n_builds: 26
after_n_builds: 25
comment:
after_n_builds: 26
after_n_builds: 25
layout: "condensed_header, flags, files, condensed_footer"
1 change: 0 additions & 1 deletion data-manifest
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ test/features/coveragerc
test/features/crm_report_bugs.feature
test/features/environment.py
test/features/geo_setup.feature
test/features/healthcheck.feature
test/features/ocfs2.feature
test/features/qdevice_options.feature
test/features/qdevice_setup_remove.feature
Expand Down
32 changes: 1 addition & 31 deletions test/features/bootstrap_bugs.feature
Original file line number Diff line number Diff line change
Expand Up @@ -183,20 +183,10 @@ Feature: Regression test for bootstrap bugs
Given Cluster service is "stopped" on "hanode1"
And Cluster service is "stopped" on "hanode2"
When Run "crm cluster init -y" on "hanode1"
And Run "rm -f /root/.ssh/id_rsa.pub" on "hanode1"
Then Cluster service is "started" on "hanode1"
When Run "crm cluster join -c hanode1 -y" on "hanode2"
Then Cluster service is "started" on "hanode2"
When Run "rm -f /root/.ssh/id_rsa.pub" on "hanode1"
When Run "rm -f /root/.ssh/id_rsa.pub" on "hanode2"
When Run "rm -f /var/lib/crmsh/upgrade_seq" on "hanode1"
When Run "rm -f /var/lib/crmsh/upgrade_seq" on "hanode2"
When Run "rm -rf /var/lib/heartbeat/cores/hacluster/.ssh" on "hanode1"
And Run "rm -rf /var/lib/heartbeat/cores/hacluster/.ssh" on "hanode2"
And Run "usermod -s /usr/sbin/nologin hacluster" on "hanode1"
And Run "usermod -s /usr/sbin/nologin hacluster" on "hanode2"
And Run "crm status" on "hanode1"
Then Check user shell for hacluster between "hanode1 hanode2"
Then Check passwordless for hacluster between "hanode1 hanode2"

@skip_non_root
@clean
Expand Down Expand Up @@ -229,23 +219,3 @@ Feature: Regression test for bootstrap bugs
And Expected "hacluster:haclient" in stdout
And Run "stat -c '%U:%G' ~hacluster/.ssh/authorized_keys" OK on "hanode2"
And Expected "hacluster:haclient" in stdout
# in an upgraded cluster in which ~hacluster/.ssh/authorized_keys exists
When Run "chown root:root ~hacluster/.ssh/authorized_keys && chmod 0600 ~hacluster/.ssh/authorized_keys" on "hanode1"
And Run "chown root:root ~hacluster/.ssh/authorized_keys && chmod 0600 ~hacluster/.ssh/authorized_keys" on "hanode2"
And Run "rm -f /var/lib/crmsh/upgrade_seq" on "hanode1"
And Run "rm -f /var/lib/crmsh/upgrade_seq" on "hanode2"
And Run "crm status" on "hanode1"
Then Run "stat -c '%U:%G' ~hacluster/.ssh/authorized_keys" OK on "hanode1"
And Expected "hacluster:haclient" in stdout
Then Run "stat -c '%U:%G' ~hacluster/.ssh/authorized_keys" OK on "hanode2"
And Expected "hacluster:haclient" in stdout
# in an upgraded cluster in which ~hacluster/.ssh/authorized_keys does not exist
When Run "rm -rf /var/lib/heartbeat/cores/hacluster/.ssh/" on "hanode1"
And Run "rm -rf /var/lib/heartbeat/cores/hacluster/.ssh/" on "hanode2"
And Run "rm -f /var/lib/crmsh/upgrade_seq" on "hanode1"
And Run "rm -f /var/lib/crmsh/upgrade_seq" on "hanode2"
And Run "crm status" on "hanode1"
Then Run "stat -c '%U:%G' ~hacluster/.ssh/authorized_keys" OK on "hanode1"
And Expected "hacluster:haclient" in stdout
Then Run "stat -c '%U:%G' ~hacluster/.ssh/authorized_keys" OK on "hanode2"
And Expected "hacluster:haclient" in stdout
18 changes: 0 additions & 18 deletions test/features/bootstrap_init_join_remove.feature
Original file line number Diff line number Diff line change
Expand Up @@ -183,21 +183,3 @@ Feature: crmsh bootstrap process - init, join and remove
Then Cluster service is "started" on "hanode3"
And Online nodes are "hanode1 hanode2 hanode3"
And Check passwordless for hacluster between "hanode1 hanode2 hanode3"

Scenario: Check hacluster's user shell
Given Cluster service is "stopped" on "hanode3"
When Run "crm cluster join -c hanode1 -y" on "hanode3"
Then Cluster service is "started" on "hanode3"
And Online nodes are "hanode1 hanode2 hanode3"
When Run "rm -rf /var/lib/heartbeat/cores/hacluster/.ssh" on "hanode1"
And Run "rm -rf /var/lib/heartbeat/cores/hacluster/.ssh" on "hanode2"
And Run "rm -rf /var/lib/heartbeat/cores/hacluster/.ssh" on "hanode3"
And Run "usermod -s /usr/sbin/nologin hacluster" on "hanode1"
And Run "usermod -s /usr/sbin/nologin hacluster" on "hanode2"
And Run "usermod -s /usr/sbin/nologin hacluster" on "hanode3"
And Run "rm -f /var/lib/crmsh/upgrade_seq" on "hanode1"
And Run "rm -f /var/lib/crmsh/upgrade_seq" on "hanode2"
And Run "rm -f /var/lib/crmsh/upgrade_seq" on "hanode3"
And Run "crm status" on "hanode1"
Then Check user shell for hacluster between "hanode1 hanode2 hanode3"
Then Check passwordless for hacluster between "hanode1 hanode2 hanode3"
37 changes: 0 additions & 37 deletions test/features/healthcheck.feature

This file was deleted.

0 comments on commit a4c37d4

Please sign in to comment.