summaryrefslogtreecommitdiff
path: root/test/data/auth/fallback.auth-script
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2011-01-31 17:37:59 +0000
committerSimon McVittie <smcv@debian.org>2011-01-31 17:37:59 +0000
commit24fbe571516161d48b499d587f9adb3e683dbf88 (patch)
tree7d70909156dcf587d91f693b8e1216eb4e0465e1 /test/data/auth/fallback.auth-script
parent9b72896b3730a9fceb961be28bb95762a7b4e9d6 (diff)
downloaddbus-upstream/1.2.24.tar.gz
Imported Upstream version 1.2.24upstream/1.2.24
Diffstat (limited to 'test/data/auth/fallback.auth-script')
-rw-r--r--test/data/auth/fallback.auth-script17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/data/auth/fallback.auth-script b/test/data/auth/fallback.auth-script
new file mode 100644
index 00000000..0d880c00
--- /dev/null
+++ b/test/data/auth/fallback.auth-script
@@ -0,0 +1,17 @@
+## this tests that a client can fallback to a secondary auth mech
+
+CLIENT
+
+## Will try EXTERNAL by default first without first calling AUTH alone.
+
+EXPECT_COMMAND AUTH
+SEND 'REJECTED EXTERNAL DBUS_COOKIE_SHA1 DBUS_TEST_NONEXISTENT_MECH'
+
+## And this time we get DBUS_COOKIE_SHA1
+
+EXPECT_COMMAND AUTH
+## of course real DBUS_COOKIE_SHA1 would not send this here...
+SEND 'OK 1234deadbeef'
+
+EXPECT_COMMAND BEGIN
+EXPECT_STATE AUTHENTICATED