[Debian-ha-commits] [pcs] 02/02: debian/tests: Run "pcs cluster status". (No pcsd checks yet.)

Christoph Berg myon at debian.org
Mon Jun 20 10:31:42 UTC 2016


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

myon pushed a commit to branch master
in repository pcs.

commit 3ff57615909a98727bbafc35855b1edffa5bec8b
Author: Christoph Berg <christoph.berg at credativ.de>
Date:   Mon Jun 20 12:31:28 2016 +0200

    debian/tests: Run "pcs cluster status". (No pcsd checks yet.)
---
 debian/changelog     |  6 +++++-
 debian/tests/control |  3 +++
 debian/tests/status  | 15 +++++++++++++++
 3 files changed, 23 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index e9adebf..3b1ae77 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,6 @@
 pcs (0.9.151-1) unstable; urgency=medium
 
+  [ Valentin Vidic ]
   * New upstream version.
   * Replace orderedhash with active_support. (Closes: #818760)
   * Update Architecture from any to all.
@@ -8,7 +9,10 @@ pcs (0.9.151-1) unstable; urgency=medium
   * Fix pcsd listening on IPv6 only.
   * Update python dependencies.
 
- -- Valentin Vidic <Valentin.Vidic at CARNet.hr>  Fri, 17 Jun 2016 13:12:04 +0200
+  [ Christoph Berg ]
+  * debian/tests: Run "pcs cluster status". (No pcsd checks yet.)
+
+ -- Christoph Berg <christoph.berg at credativ.de>  Mon, 20 Jun 2016 12:29:41 +0200
 
 pcs (0.9.149-1) unstable; urgency=medium
 
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..222d455
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Depends: @, pacemaker, pacemaker-cli-utils
+Tests: status
+Restrictions: needs-root
diff --git a/debian/tests/status b/debian/tests/status
new file mode 100644
index 0000000..ea30e0b
--- /dev/null
+++ b/debian/tests/status
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+cleanup () {
+  service pacemaker stop
+  service corosync stop
+}
+
+trap "cleanup" 0 2 3 15
+
+service corosync start
+service pacemaker start
+
+sleep 60
+
+pcs cluster status 2>&1 | grep -20 "1 node and 0 resources configured"

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



More information about the Debian-HA-Commits mailing list