Closed Bug 616182 Opened 14 years ago Closed 9 years ago

Add a pref to return 127.0.0.1 for all DNS queries to be used by our test suites

Categories

(Core :: Networking, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: ehsan.akhgari, Unassigned)

References

Details

We need to add a pref to return 127.0.0.1 for all DNS queries, so that we can use it in order to minimize the effect of tests depending on external resources.
The pref should contain the IP address to use. The HTTP server isn't on 127.0.0.1 for mobile testing.
OS: Mac OS X → All
Hardware: x86 → All
(In reply to comment #1) > The pref should contain the IP address to use. The HTTP server isn't on > 127.0.0.1 for mobile testing. Right, and this should probably also be set for the xpcshell and reftest harnesses as well since they also use httpd.js to serve files for themselves (just not as many as mochitest does). One way we could solve this is to set the prefvalue in automation.py to a default 127.0.0.1 and in the derived class (remoteautomation.py perhaps or remote test runners) we set it to the value of the remote-webserver option. CC'ing jmaher too so he can tell me if I'm smoking crack or not.
we use the ip address to send a cli parameter to xpcshell + httpd.js webserver. Reading from a pref would simplify that process. What Clint suggested by putting it in automation.py would just populate the profile and that would work for mochitest/reftest/xpcshell on local and remote testing scenarios.
network.dns.localDomains
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.