Closed Bug 1730635 Opened 3 years ago Closed 3 years ago

Add tests of CalDAV/CardDAV discovery using DNS

Categories

(Thunderbird :: Address Book, task)

Tracking

(thunderbird_esr91 fixed)

RESOLVED FIXED
94 Branch
Tracking Status
thunderbird_esr91 --- fixed

People

(Reporter: darktrojan, Assigned: darktrojan)

Details

Attachments

(2 files)

We use DNS to find calendars and address books. There should be tests of this but until recently I hadn't figured out how to do it.

These tests hijack the DNS module's functions to return the intended result.

We can't use the mock servers for the tests because we only do discovery for HTTPS, and the mock servers can't speak HTTPS. Instead, we direct the code to some files on the Mochitest server.

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/aee118489a59
Add tests of CalDAV/CardDAV discovery using DNS. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 94 Branch

Looks like calendar/test/browser/browser_calDAV_discovery.js has been permafailing on win32 since this landed.

Comment on attachment 9241051 [details]
Bug 1730635 - Add tests of CalDAV/CardDAV discovery using DNS. r=mkmelin

[Triage Comment]
Test changes; needed for bug 1732565 to apply cleanly.

Attachment #9241051 - Flags: approval-comm-esr91+

Bug 1683865 changed some elements from XUL to HTML and this behaves differently in the test.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: