diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2016-01-14 06:31:28 +0100 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2016-01-14 06:31:28 +0100 |
commit | 67a38ac6f104030cc61a71f4a3fa10908658410d (patch) | |
tree | 612eae5aab60eab8381358c452e6acea822e347f /testing/tests/swanctl/config-payload/pretest.dat | |
parent | e7b5171e430a1b60936d487dbb9483dda2a2cc1a (diff) | |
download | strongswan-67a38ac6f104030cc61a71f4a3fa10908658410d.tar.bz2 strongswan-67a38ac6f104030cc61a71f4a3fa10908658410d.tar.xz |
testing: Added swanctl/config-payload scenario
Diffstat (limited to 'testing/tests/swanctl/config-payload/pretest.dat')
-rwxr-xr-x | testing/tests/swanctl/config-payload/pretest.dat | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testing/tests/swanctl/config-payload/pretest.dat b/testing/tests/swanctl/config-payload/pretest.dat new file mode 100755 index 000000000..9c281d032 --- /dev/null +++ b/testing/tests/swanctl/config-payload/pretest.dat @@ -0,0 +1,12 @@ +moon::iptables-restore < /etc/iptables.rules +carol::iptables-restore < /etc/iptables.rules +dave::iptables-restore < /etc/iptables.rules +moon::cat /etc/swanctl/swanctl_base.conf +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 |