chiark / gitweb /
Testing: Login/logout interrupted session tests
authorIan Jackson <ian.jackson@eu.citrix.com>
Wed, 28 Oct 2015 16:36:18 +0000 (16:36 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 28 Oct 2015 16:36:18 +0000 (16:36 +0000)
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
tests/autotest

index 2561f56..a999b32 100755 (executable)
@@ -72,6 +72,24 @@ send "/Logout\r"
 submitform-expect "You have been logged out"
 
 send "B\x10/Make sponges\r"
-#submitform-expect "Something sane"
+submitform-expect "You need to log in"
+
+fillformfield bob
+fillformfield sesame
+send "\t"
+submitform-expect "ACCESSGRANTED"
+
+send "/Logout\r"
+submitform-expect "You have been logged out"
+
+send "/Log in again\r"
+submitform-expect "need to log in"
+fillformfield bob
+fillformfield sesame
+send "\t"
+submitform-expect "ACCESSGRANTED"
+
+send "BBB\x10/Make sponges\r"
+submitform-expect "Login session interrupted"
 
 puts ok