Open Bug 1802325 Opened 2 years ago Updated 19 days ago

Should have automated tests for Windows 10+ SSO code

Categories

(Core :: Networking, task, P3)

Desktop
Windows
task

Tracking

()

People

(Reporter: Gijs, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [necko-triaged])

The code in bug 1695693 is indicated as having no coverage in searchfox (see e.g. https://searchfox.org/mozilla-central/rev/5a49163b7012ded5fa1c4da5aa4f8d3f7c85a5e7/netwerk/protocol/http/nsHttpChannel.cpp#419 and the AddWindowsSSO function referenced there). There don't appear to be automated tests in https://phabricator.services.mozilla.com/D114540 and https://searchfox.org/mozilla-central/search?q=windows-sso.enabled&path=test&case=false&regexp=false shows no hits other than the test that checks that enabling the policy flips the pref - we don't test making any requests with that pref set, or verify the headers that are set.

We should fix that so we don't break this going forward.

We couldn't come up with any way to test this. It requires that a Windows login be enabled on the build machine to verify the API has produced the correct results.

Presumably we could add a mock for the windows methods like we do here

Severity: -- → N/A
Priority: -- → P3
Whiteboard: [necko-triaged]
You need to log in before you can comment on or make changes to this bug.