summaryrefslogtreecommitdiff
path: root/tests/white-box/openvpn.rb
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2013-12-30 18:04:30 -0800
committerelijah <elijah@riseup.net>2013-12-30 18:04:30 -0800
commit353475da8d535f2904e68977c3dafa6bb3bb483a (patch)
treebeb01b13f2f2b2e2040e0ece1bf1db13523b6e4f /tests/white-box/openvpn.rb
parent71f2d1b0b7db6bb35dd6bd9220795aed3174d90b (diff)
tests -- added tests to check that the right processes are running
Diffstat (limited to 'tests/white-box/openvpn.rb')
-rw-r--r--tests/white-box/openvpn.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/white-box/openvpn.rb b/tests/white-box/openvpn.rb
new file mode 100644
index 00000000..2b1276f4
--- /dev/null
+++ b/tests/white-box/openvpn.rb
@@ -0,0 +1,16 @@
+raise SkipTest unless $node["services"].include?("openvpn")
+
+class TestOpenvpn < LeapTest
+ depends_on "TestNetwork"
+
+ def setup
+ end
+
+ def test_01_daemons_running
+ assert_running '/usr/sbin/openvpn .* /etc/openvpn/tcp_config.conf'
+ assert_running '/usr/sbin/openvpn .* /etc/openvpn/udp_config.conf'
+ assert_running '/usr/sbin/unbound'
+ pass
+ end
+
+end