]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
testing: Assert proper ESA deletion
authorReto Buerki <reet@codelabs.ch>
Thu, 18 Dec 2014 16:32:09 +0000 (17:32 +0100)
committerMartin Willi <martin@revosec.ch>
Fri, 20 Feb 2015 12:34:52 +0000 (13:34 +0100)
Extend the tkm/host2host-initiator testcase by asserting proper ESA
deletion after connection shutdown.

testing/tests/tkm/host2host-initiator/evaltest.dat

index d8d44dff6aa3f0460f84b069cec509d95627f880..de50ab32bc74ec66526b8fd94faa9c66fc63794c 100644 (file)
@@ -10,3 +10,7 @@ moon::cat /tmp/tkm.log::Adding policy \[ 1, 192.168.0.1 <-> 192.168.0.2 \]::YES
 moon::cat /tmp/tkm.log::Checked CA certificate of CC context 1::YES
 moon::cat /tmp/tkm.log::Authentication of ISA context 1 successful::YES
 moon::cat /tmp/tkm.log::Adding SA \[ 1, 192.168.0.1 <-> 192.168.0.2, SPI_in.*, SPI_out.*, soft 30, hard 60 \]::YES
+moon::DAEMON_NAME=charon-tkm ipsec down conn1 && sleep 1::no output expected::NO
+moon::cat /var/log/daemon.log::deleting child SA (esa: 1, spi:.*)::YES
+moon::cat /tmp/tkm.log::Resetting ESA context 1::YES
+moon::cat /tmp/tkm.log::Deleting SA \[ 1, 192.168.0.1 <=> 192.168.0.2, SPI_in.*, SPI_out.* \]::YES