[evolution-data-server] Bug 735523 - test-book-client-custom-summary: Add 'exists' tests



commit efe03fbc626c1ec30508db43fc4b6245d9c3dfee
Author: David Woodhouse <David Woodhouse intel com>
Date:   Tue Aug 26 13:48:39 2014 +0100

    Bug 735523 - test-book-client-custom-summary: Add 'exists' tests
    
    ... for email and X509 certificates.

 .../client/test-book-client-custom-summary.c       |   24 ++++++++++++++++++++
 tests/libebook/data/vcards/custom-7.vcf            |    1 +
 2 files changed, 25 insertions(+), 0 deletions(-)
---
diff --git a/tests/libebook/client/test-book-client-custom-summary.c 
b/tests/libebook/client/test-book-client-custom-summary.c
index 1d7f3eb..fb9809a 100644
--- a/tests/libebook/client/test-book-client-custom-summary.c
+++ b/tests/libebook/client/test-book-client-custom-summary.c
@@ -762,6 +762,30 @@ main (gint argc,
                        suites[i].custom,
                        FALSE);
 
+               add_client_test (
+                       suites[i].prefix,
+                       "/Exists/Email",
+                       suites[i].func,
+                       e_book_query_field_exists (
+                               E_CONTACT_EMAIL),
+                       /* There are 13 contacts with email addresses */
+                       13,
+                       suites[i].direct,
+                       suites[i].custom,
+                       FALSE);
+
+               add_client_test (
+                       suites[i].prefix,
+                       "/Exists/X509",
+                       suites[i].func,
+                       e_book_query_field_exists (
+                               E_CONTACT_X509_CERT),
+                       /* There is 1 contact with a cert listed */
+                       1,
+                       suites[i].direct,
+                       suites[i].custom,
+                       FALSE);
+
                /*********************************************
                 *                PHONE NUMBERS              *
                 *********************************************/
diff --git a/tests/libebook/data/vcards/custom-7.vcf b/tests/libebook/data/vcards/custom-7.vcf
index 2141e36..dae210a 100644
--- a/tests/libebook/data/vcards/custom-7.vcf
+++ b/tests/libebook/data/vcards/custom-7.vcf
@@ -2,4 +2,5 @@ BEGIN:VCARD
 UID:custom-7
 FN:Purple Goose
 TEL;HOME:+49-89-7888 99
+KEY;ENCODING=b;TYPE=X509:AA==
 END:VCARD


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]