From e070260f155d5fd66eb480189142fb092d49d218 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D1=83=D1=81=D0=BB=D0=B0=D0=BD=20=D0=98=D0=B6=D0=B1?= =?UTF-8?q?=D1=83=D0=BB=D0=B0=D1=82=D0=BE=D0=B2?= Date: Sat, 4 Feb 2017 01:38:32 +0100 Subject: [PATCH] Add sspi test to test-auth test case. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=96577 --- test/data/valid-config-files/debug-allow-sspi.conf.in | 13 +++++++++++++ test/test-auth.c | 8 ++++++++ 2 files changed, 21 insertions(+) create mode 100644 test/data/valid-config-files/debug-allow-sspi.conf.in diff --git a/test/data/valid-config-files/debug-allow-sspi.conf.in b/test/data/valid-config-files/debug-allow-sspi.conf.in new file mode 100644 index 0000000..a27f38b --- /dev/null +++ b/test/data/valid-config-files/debug-allow-sspi.conf.in @@ -0,0 +1,13 @@ + + + @TEST_LISTEN@ + DBUS_WINDOWS_SSPI_NTLM + @DBUS_TEST_DATA@/valid-service-files + + + + + + + diff --git a/test/test-auth.c b/test/test-auth.c index fd4a4b6..bdceb15 100644 --- a/test/test-auth.c +++ b/test/test-auth.c @@ -169,6 +169,11 @@ static Config config_anonymous = { SPECIFY_ADDRESS }; +static Config config_sspi = { + "valid-config-files/debug-allow-sspi.conf", + SPECIFY_ADDRESS +}; + static Config config_any = { "valid-config-files/debug-allow-any.conf", SPECIFY_ADDRESS @@ -184,6 +189,9 @@ main (int argc, g_test_add ("/auth/external", Fixture, &config_external, setup, test_valid, teardown); g_test_add ("/auth/sha1", Fixture, &config_sha1, setup, test_valid, teardown); g_test_add ("/auth/anonymous", Fixture, &config_anonymous, setup, test_valid, teardown); +#ifdef DBUS_WIN + g_test_add ("/auth/sspi", Fixture, &config_sspi, setup, test_valid, teardown); +#endif g_test_add ("/auth/any", Fixture, &config_any, setup, test_valid, teardown); return g_test_run (); -- 2.6.6