diff options
author | Simon McVittie <smcv@collabora.com> | 2018-01-12 16:50:20 +0000 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2018-01-15 14:05:21 +0000 |
commit | 8a4928af767c07b9d48b06f7b07ca445b428b9de (patch) | |
tree | 6a156259f970389be53904eaf68703d3bbb88653 /test/data | |
parent | 064c478e145b10a44e9c385be74d9c666666af1c (diff) | |
download | dbus-8a4928af767c07b9d48b06f7b07ca445b428b9de.tar.gz |
test: Add a test for authenticating with an empty authorization identity
Signed-off-by: Simon McVittie <smcv@collabora.com>
Reviewed-by: Philip Withnall <withnall@endlessm.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=104588
Diffstat (limited to 'test/data')
-rw-r--r-- | test/data/auth/external-auto.auth-script | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/data/auth/external-auto.auth-script b/test/data/auth/external-auto.auth-script new file mode 100644 index 00000000..ddef4e1e --- /dev/null +++ b/test/data/auth/external-auto.auth-script @@ -0,0 +1,18 @@ +# Test that we can authenticate with an empty authorization identity +SERVER +EXPECT_HAVE_NO_CREDENTIALS + +# C: "I want to use EXTERNAL, I decline to specify an initial response" +SEND 'AUTH EXTERNAL' +# S: "OK, who do you claim to be?" +EXPECT_COMMAND DATA +EXPECT_STATE WAITING_FOR_INPUT +EXPECT_HAVE_NO_CREDENTIALS +# C: "I am whoever the kernel says I am" +SEND 'DATA' +# S: "I suppose I can't argue with that" +EXPECT_COMMAND OK +EXPECT_STATE WAITING_FOR_INPUT +SEND 'BEGIN' +EXPECT_STATE AUTHENTICATED +EXPECT_HAVE_SOME_CREDENTIALS |