#!perl use Cassandane::Tiny; sub test_multiinvite_add_person_only { my ($self) = @_; my $CalDAV = $self->{caldav}; my $CalendarId = $CalDAV->NewCalendar({name => 'invite3'}); $self->assert_not_null($CalendarId); my $uuid = "db5c26fd-238f-41e4-a679-54cc9d9c8efc"; my $href = "$CalendarId/$uuid.ics"; my $card = <Request('PUT', $href, $card, 'Content-Type' => 'text/calendar'); $self->assert_caldav_notified( { recipient => "test1\@example.com", is_update => JSON::false, method => 'REQUEST' }, { recipient => "test2\@example.com", is_update => JSON::false, method => 'REQUEST' }, ); # add an override instance my $override = <Request('PUT', $href, $card, 'Content-Type' => 'text/calendar'); # only test3 is notified $self->assert_caldav_notified( { recipient => "test3\@example.com", is_update => JSON::false, method => 'REQUEST', event => { uid => $uuid, replyTo => { imip => "mailto:cassandane\@example.com" }, recurrenceOverrides => { '2016-06-08T15:30:00' => { title => "An Event", participants => { "cassandane\@example.com" => { email => "cassandane\@example.com" }, "test1\@example.com" => { email => "test1\@example.com" }, "test3\@example.com" => { email => "test3\@example.com" }, }, }, }, }, }, ); }