aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests/swanctl/rw-pubkey-keyid/pretest.dat
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2016-01-05 05:35:21 +0100
committerAndreas Steffen <andreas.steffen@strongswan.org>2016-01-09 07:23:30 +0100
commitb83cef24120b1b65837860e460f6f534dd4b731e (patch)
treed8af2b4a0e37268bda84a5a41803959d4893983f /testing/tests/swanctl/rw-pubkey-keyid/pretest.dat
parent4c38c79452d3b4768792a0d4ba78cf6ba00c7fba (diff)
downloadstrongswan-b83cef24120b1b65837860e460f6f534dd4b731e.tar.bz2
strongswan-b83cef24120b1b65837860e460f6f534dd4b731e.tar.xz
testing: added swanctl scenarios net2net-pubkey, rw-pubkey-keyid and rw-dnssec
Diffstat (limited to 'testing/tests/swanctl/rw-pubkey-keyid/pretest.dat')
-rwxr-xr-xtesting/tests/swanctl/rw-pubkey-keyid/pretest.dat14
1 files changed, 14 insertions, 0 deletions
diff --git a/testing/tests/swanctl/rw-pubkey-keyid/pretest.dat b/testing/tests/swanctl/rw-pubkey-keyid/pretest.dat
new file mode 100755
index 000000000..4d9dccf12
--- /dev/null
+++ b/testing/tests/swanctl/rw-pubkey-keyid/pretest.dat
@@ -0,0 +1,14 @@
+moon::iptables-restore < /etc/iptables.rules
+carol::iptables-restore < /etc/iptables.rules
+dave::iptables-restore < /etc/iptables.rules
+moon::cd /etc/swanctl; rm x509/* x509ca/*
+carol::cd /etc/swanctl; rm x509/* x509ca/*
+dave::cd /etc/swanctl; rm x509/* x509ca/*
+moon::service charon start 2> /dev/null
+carol::service charon start 2> /dev/null
+dave::service charon start 2> /dev/null
+moon::expect-connection rw-carol
+carol::expect-connection home
+carol::swanctl --initiate --child home 2> /dev/null
+dave::expect-connection home
+dave::swanctl --initiate --child home 2> /dev/null