[gnome-calendar] tests: Enable unauthorized discovery test
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] tests: Enable unauthorized discovery test
- Date: Fri, 12 Mar 2021 14:03:34 +0000 (UTC)
commit d38c1f2f419193895dc4de1543f68bf8466c285f
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Fri Feb 26 19:32:44 2021 -0300
tests: Enable unauthorized discovery test
This one is actually implemented, what's not implemented is the WebDAV one.
tests/test-discoverer.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/tests/test-discoverer.c b/tests/test-discoverer.c
index 3db53ce3..dbbe6d31 100644
--- a/tests/test-discoverer.c
+++ b/tests/test-discoverer.c
@@ -82,12 +82,10 @@ discoverer_file (void)
/*********************************************************************************************************************/
-#if 0
-
static void
-discovered_webdav_no_auth_cb (GObject *source_object,
- GAsyncResult *result,
- gpointer user_data)
+discovered_webdav_unauthorized_cb (GObject *source_object,
+ GAsyncResult *result,
+ gpointer user_data)
{
g_autoptr (GPtrArray) sources = NULL;
g_autoptr (GError) error = NULL;
@@ -100,7 +98,7 @@ discovered_webdav_no_auth_cb (GObject *source_object,
}
static void
-discoverer_webdav_no_auth (void)
+discoverer_webdav_unauthorized (void)
{
g_autoptr (GcalSimpleServer) server = NULL;
g_autoptr (GMainLoop) mainloop = NULL;
@@ -119,7 +117,7 @@ discoverer_webdav_no_auth (void)
NULL,
NULL,
NULL,
- discovered_webdav_no_auth_cb,
+ discovered_webdav_unauthorized_cb,
mainloop);
g_main_loop_run (mainloop);
@@ -127,6 +125,8 @@ discoverer_webdav_no_auth (void)
/*********************************************************************************************************************/
+#if 0
+
// TODO: Implement raw CalDAV server in GcalSimpleServer
static void
@@ -183,7 +183,7 @@ main (gint argc,
g_test_init (&argc, &argv, NULL);
g_test_add_func ("/discoverer/file", discoverer_file);
- //g_test_add_func ("/discoverer/webdav/no-auth", discoverer_webdav_no_auth);
+ g_test_add_func ("/discoverer/webdav/unauthorized", discoverer_webdav_unauthorized);
return g_test_run ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]