aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@canonical.com>2016-04-05 14:09:49 -0300
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-08-29 14:37:39 +0200
commit1f73b610287f28ae1f6779d80e9509b0220d5f44 (patch)
treec9350591651854c2e6e3795b12b9493628e2e7ae
parentbce738fc440a3f3de205fa1ec096288c03640794 (diff)
downloadayatana-indicator-datetime-1f73b610287f28ae1f6779d80e9509b0220d5f44.tar.gz
ayatana-indicator-datetime-1f73b610287f28ae1f6779d80e9509b0220d5f44.tar.bz2
ayatana-indicator-datetime-1f73b610287f28ae1f6779d80e9509b0220d5f44.zip
Update non attending test with a recurrence example.
-rw-r--r--tests/test-eds-ics-non-attending-alarms.cpp2
-rw-r--r--tests/test-eds-ics-non-attending-alarms.ics.in53
2 files changed, 43 insertions, 12 deletions
diff --git a/tests/test-eds-ics-non-attending-alarms.cpp b/tests/test-eds-ics-non-attending-alarms.cpp
index b636e6f..227ae7f 100644
--- a/tests/test-eds-ics-non-attending-alarms.cpp
+++ b/tests/test-eds-ics-non-attending-alarms.cpp
@@ -80,7 +80,7 @@ TEST_F(VAlarmFixture, NonAttendingEvent)
// the planner should match what we've got in the calendar.ics file
const auto appts = planner->appointments().get();
- ASSERT_EQ(0, appts.size());
+ ASSERT_EQ(2, appts.size());
// cleanup
g_time_zone_unref(gtz);
diff --git a/tests/test-eds-ics-non-attending-alarms.ics.in b/tests/test-eds-ics-non-attending-alarms.ics.in
index 444b2d1..7adc8ab 100644
--- a/tests/test-eds-ics-non-attending-alarms.ics.in
+++ b/tests/test-eds-ics-non-attending-alarms.ics.in
@@ -4,19 +4,50 @@ PRODID:-//Ximian//NONSGML Evolution Calendar//EN
VERSION:2.0
X-EVOLUTION-DATA-REVISION:2015-04-05T21:32:47.354433Z(2)
BEGIN:VEVENT
-UID:g9nur97k1pmj4uop7n3q994rdo
-DTSTAMP:20160328T183018Z
-DTSTART:20160328T170000Z
-DTEND:20160328T180000Z
-SUMMARY:Meeting
-ATTENDEE;MEMBER=;ROLE=REQ-PARTICIPANT;PARTSTAT=DECLINED;RSVP=FALSE;
- CN=Uphablet:mailto:uphablet@lomiri.com
+STATUS:CONFIRMED
+DTSTAMP:20160405T152128Z
+CREATED:20160405T152128Z
+UID:ddtvl069dn2cquo8dhg3j9c360@google.com
SEQUENCE:1
-LAST-MODIFIED:20160328T183018Z
+TRANSP:OPAQUE
+SUMMARY:Every day at 4PM
+DTSTART;TZID=/freeassociation.sourceforge.net/Tzfile/America/Recife:
+ 20160404T160000
+RRULE:FREQ=DAILY;UNTIL=20160406T190000Z
+DTEND;TZID=/freeassociation.sourceforge.net/Tzfile/America/Recife:
+ 20160404T170000
+ATTENDEE;CN=Uphablet;PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT;
+ CUTYPE=INDIVIDUAL:mailto:uphablet@lomiri.com
+LAST-MODIFIED:20160405T152128Z
BEGIN:VALARM
-X-EVOLUTION-ALARM-UID:20160328T183018Z-29840-32011-1844-2
-ACTION:AUDIO
-TRIGGER;VALUE=DURATION;RELATED=START:-PT30M
+TRIGGER;VALUE=DURATION:-PT30M
+ACTION:EMAIL
+DESCRIPTION:This is an event reminder
+X-EVOLUTION-ALARM-UID:20160405T152128Z-2848-32011-1844-65@lomiri-phablet
+END:VALARM
+END:VEVENT
+BEGIN:VEVENT
+STATUS:CONFIRMED
+DTSTAMP:20160405T152128Z
+CREATED:20160405T151054Z
+UID:ddtvl069dn2cquo8dhg3j9c360@google.com
+SEQUENCE:1
+TRANSP:OPAQUE
+SUMMARY::Every day at 4PM
+DTSTART;TZID=/freeassociation.sourceforge.net/Tzfile/America/Fortaleza:
+ 20160405T160000
+RECURRENCE-ID;TZID=/freeassociation.sourceforge.net/Tzfile/America/Recife:
+ 20160405T160000
+DTEND;TZID=/freeassociation.sourceforge.net/Tzfile/America/Fortaleza:
+ 20160405T170000
+ATTENDEE;CN=Uphablet;PARTSTAT=DECLINED;ROLE=REQ-PARTICIPANT;
+ CUTYPE=INDIVIDUAL:mailto:uphablet@lomiri.com
+LAST-MODIFIED:20160405T152128Z
+BEGIN:VALARM
+TRIGGER;VALUE=DURATION:-PT30M
+ACTION:EMAIL
+DESCRIPTION:This is an event reminder
+X-EVOLUTION-ALARM-UID:20160405T152128Z-2848-32011-1844-66@lomiri-phablet
END:VALARM
END:VEVENT
END:VCALENDAR