summaryrefslogtreecommitdiff
path: root/test/data/auth/anonymous-server-successful.auth-script
blob: c53b30f9d72866ace586683f2d65c66318f4abd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
## this tests the server side in a successful auth of type ANONYMOUS 

## Act as a server that accepts anonymous authorization
SERVER_ANONYMOUS
## verify that prior to doing anything, we haven't authed as anyone
EXPECT_HAVE_NO_CREDENTIALS
SEND 'AUTH ANONYMOUS 442d42757320312e312e31'
EXPECT_COMMAND OK
EXPECT_STATE WAITING_FOR_INPUT
SEND 'BEGIN'
EXPECT_STATE AUTHENTICATED
## verify that we are still anonymous
EXPECT_HAVE_NO_CREDENTIALS