testing: modify LinkedItems test data for Exchange

TZID is modified, TZNAME/X-LIC-LOCATION are not preserved.
(cherry picked from commit 6aad9a4cd4)
This commit is contained in:
Patrick Ohly 2011-08-29 13:57:45 +02:00
parent e0dc15c83e
commit 589693d4f1

View file

@ -4845,6 +4845,18 @@ void ClientTest::getTestData(const char *type, Config &config)
"DESCRIPTION:second instance modified\n"
"END:VEVENT\n"
"END:VCALENDAR\n";
} else if (server == "exchange") {
BOOST_FOREACH(std::string &item, (*config.linkedItems)[0]) {
// time zone name changes on server to "Standard Timezone",
// with some information stripped
boost::replace_all(item,
"/softwarestudio.org/Olson_20011030_5/Europe/Berlin",
"Standard Timezone");
// some properties are not stored/supported
boost::replace_all(item, "TZNAME:CET\n", "");
boost::replace_all(item, "TZNAME:CEST\n", "");
boost::replace_all(item, "X-LIC-LOCATION:Europe/Berlin\n", "");
}
} else {
// in particular for Google Calendar: also try with
// VALARM, because testing showed that the server works