summaryrefslogtreecommitdiff
path: root/test/data/auth/extra-bytes.auth-script
diff options
context:
space:
mode:
Diffstat (limited to 'test/data/auth/extra-bytes.auth-script')
-rw-r--r--test/data/auth/extra-bytes.auth-script10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/data/auth/extra-bytes.auth-script b/test/data/auth/extra-bytes.auth-script
new file mode 100644
index 00000000..df8df52b
--- /dev/null
+++ b/test/data/auth/extra-bytes.auth-script
@@ -0,0 +1,10 @@
+## this tests that we have the expected extra bytes at the end
+
+SERVER
+SEND 'AUTH EXTERNAL USERNAME_BASE64'
+EXPECT_COMMAND OK
+EXPECT_STATE WAITING_FOR_INPUT
+SEND 'BEGIN\r\nHello'
+EXPECT_STATE AUTHENTICATED_WITH_UNUSED_BYTES
+EXPECT_UNUSED 'Hello\r\n'
+EXPECT_STATE AUTHENTICATED