[evolution-kolab/ek-wip-porting] test-kolab-mail-access: adapt to KolabMailAccess API change
- From: Christian Hilberg <chilberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-kolab/ek-wip-porting] test-kolab-mail-access: adapt to KolabMailAccess API change
- Date: Mon, 16 Jul 2012 09:25:18 +0000 (UTC)
commit 53c37e07c69b55a213c8a88c5bfc9c6d0d502e43
Author: Christian Hilberg <hilberg kernelconcepts de>
Date: Mon Jul 16 11:23:12 2012 +0200
test-kolab-mail-access: adapt to KolabMailAccess API change
* after connecting, explicitly call the new synchronize()
function (no more automatic sync after connecting)
* fixed wrong check for security setting
.../integration/libekolab/test-kolab-mail-access.c | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/src/tests/integration/libekolab/test-kolab-mail-access.c b/src/tests/integration/libekolab/test-kolab-mail-access.c
index a34447f..bd7e6b4 100644
--- a/src/tests/integration/libekolab/test-kolab-mail-access.c
+++ b/src/tests/integration/libekolab/test-kolab-mail-access.c
@@ -101,7 +101,7 @@ kolab_itest_koma_ksettings_envset (KolabSettingsHandler *ksettings,
g_assert (username != NULL);
g_assert (userpass != NULL);
g_assert (pkcs11pin != NULL);
- g_assert (security < CAMEL_NETWORK_SECURITY_METHOD_STARTTLS_ON_STANDARD_PORT);
+ g_assert (security <= CAMEL_NETWORK_SECURITY_METHOD_STARTTLS_ON_STANDARD_PORT);
camel_network_settings_set_user (network_settings, username);
camel_network_settings_set_host (network_settings, servername);
@@ -300,6 +300,15 @@ test_kolab_mail_access (KolabFolderContextID context)
if (! ok)
goto test_part_cleanup;
+ /* synchronize metadata and caches with server */
+ ok = kolab_mail_access_synchronize (kmailaccess,
+ NULL, /* all folders */
+ TRUE, /* full sync */
+ NULL,
+ &tmp_err);
+ if (! ok)
+ goto test_part_cleanup;
+
/* access folders according to context (retrieve/store of PIM objects) */
ok = test_kolab_mail_access_retrieve_store (kmailaccess,
context,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]