From 722a8a177e8d588d617a98b5776373366adcc23f Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Fri, 3 Oct 2014 12:04:53 +0200 Subject: [PATCH] testing: Make sure the whitelist plugin is ready before configuring it --- testing/tests/ikev2/rw-whitelist/pretest.dat | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/testing/tests/ikev2/rw-whitelist/pretest.dat b/testing/tests/ikev2/rw-whitelist/pretest.dat index 87760775a..0f246a8a4 100644 --- a/testing/tests/ikev2/rw-whitelist/pretest.dat +++ b/testing/tests/ikev2/rw-whitelist/pretest.dat @@ -4,12 +4,14 @@ dave::iptables-restore < /etc/iptables.rules carol::ipsec start dave::ipsec start moon::ipsec start +moon::expect-connection rw moon::ipsec whitelist add alice@strongswan.org moon::ipsec whitelist add bob@strongswan.org moon::ipsec whitelist add carol@strongswan.org moon::ipsec whitelist enable moon::ipsec whitelist list -carol::sleep 2 +carol::expect-connection home carol::ipsec up home +dave::expect-connection home dave::ipsec up home carol::sleep 1