[Debian-ha-commits] [sbd] 05/05: debian/tests: add tests for diskless mode

Valentin Vidic vvidic-guest at moszumanska.debian.org
Tue Jul 25 15:18:25 UTC 2017


This is an automated email from the git hooks/post-receive script.

vvidic-guest pushed a commit to branch master
in repository sbd.

commit df30b704df6e4af9e8c97c08606937494c99a15f
Author: Valentin Vidic <Valentin.Vidic at CARNet.hr>
Date:   Tue Jul 25 17:10:25 2017 +0200

    debian/tests: add tests for diskless mode
    
    Diskless mode works with corosync and pacemaker-remote,
    requires only isolation-container.
---
 debian/tests/control          | 8 ++++++++
 debian/tests/corosync         | 9 +++++++++
 debian/tests/pacemaker-remote | 9 +++++++++
 3 files changed, 26 insertions(+)

diff --git a/debian/tests/control b/debian/tests/control
index 7275895..ebc4466 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,5 +1,13 @@
 Tests: help
 
+Depends: @, corosync
+Restrictions: needs-root, isolation-container
+Tests: corosync
+
+Depends: @, pacemaker-remote
+Restrictions: needs-root, isolation-container
+Tests: pacemaker-remote
+
 Restrictions: needs-root, isolation-machine
 Tests: watch
 
diff --git a/debian/tests/corosync b/debian/tests/corosync
new file mode 100755
index 0000000..dacb3b1
--- /dev/null
+++ b/debian/tests/corosync
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+sed -i 's/\/dev\/watchdog/\/dev\/null/' /etc/default/sbd
+service corosync restart
+sleep 5
+
+pgrep --list-full sbd
diff --git a/debian/tests/pacemaker-remote b/debian/tests/pacemaker-remote
new file mode 100755
index 0000000..9912dc1
--- /dev/null
+++ b/debian/tests/pacemaker-remote
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+sed -i 's/\/dev\/watchdog/\/dev\/null/' /etc/default/sbd
+service pacemaker_remote restart
+sleep 5
+
+pgrep --list-full sbd

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-ha/sbd.git



More information about the Debian-HA-Commits mailing list