Closed
Bug 1366071
Opened 7 years ago
Closed 7 years ago
Add check to talos tp6 to ensure mitmproxy certificate was installed
Categories
(Testing :: Talos, enhancement)
Tracking
(firefox57 fixed)
RESOLVED
FIXED
mozilla57
Tracking | Status | |
---|---|---|
firefox57 | --- | fixed |
People
(Reporter: rwood, Assigned: rwood)
References
Details
(Whiteboard: [PI:August])
Attachments
(1 file)
Improve the talos mitmproxy support (Bug 1357382) by adding a check to verify that the mitmproxy CA certificate was installed into Firefox. The code to install the cert is implemented, but we need a check after because without the certificate mitdump playback won't work with Firefox. /testing/talos/talos/run_tests.py:is_mitmproxy_cert_installed()
Updated•7 years ago
|
Whiteboard: [PI:June]
Assignee | ||
Updated•7 years ago
|
Whiteboard: [PI:June] → [PI:August]
Comment hidden (mozreview-request) |
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → rwood
Status: NEW → ASSIGNED
Assignee | ||
Updated•7 years ago
|
Summary: Add check to ensure mitmproxy certificate was installed → Add check to talos tp6 to ensure mitmproxy certificate was installed
Assignee | ||
Comment 2•7 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=8ba2876591e7a16686a9c7266d8d2b65c614a8d6
Comment 3•7 years ago
|
||
mozreview-review |
Comment on attachment 8899968 [details] Bug 1366071 - Add check in talos tp6 to ensure mitmproxy certificate was installed successfully; https://reviewboard.mozilla.org/r/171294/#review176710 ::: testing/talos/talos/mitmproxy/mitmproxy.py:84 (Diff revision 1) > + certificate = _read_certificate(DEFAULT_CERT_PATH) > + contents = read_autoconfig_file(browser_install) > + if (MITMPROXY_SETTINGS % {'cert': certificate}) in contents: > + LOG.info("Verified mitmproxy CA certificate is installed in Firefox") > + else: > + return False should we add more info here to expand on the failure so we don't have to guess what was in the contents?
Attachment #8899968 -
Flags: review?(jmaher) → review+
Assignee | ||
Comment 4•7 years ago
|
||
(In reply to Joel Maher ( :jmaher) (UTC-5) from comment #3) > Comment on attachment 8899968 [details] > Bug 1366071 - Add check in talos tp6 to ensure mitmproxy certificate was > installed successfully; > > https://reviewboard.mozilla.org/r/171294/#review176710 > > ::: testing/talos/talos/mitmproxy/mitmproxy.py:84 > (Diff revision 1) > > + certificate = _read_certificate(DEFAULT_CERT_PATH) > > + contents = read_autoconfig_file(browser_install) > > + if (MITMPROXY_SETTINGS % {'cert': certificate}) in contents: > > + LOG.info("Verified mitmproxy CA certificate is installed in Firefox") > > + else: > > + return False > > should we add more info here to expand on the failure so we don't have to > guess what was in the contents? Ok will do, thanks for the review!
Comment hidden (mozreview-request) |
Pushed by rwood@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ebbe081e9554 Add check in talos tp6 to ensure mitmproxy certificate was installed successfully; r=jmaher
Comment 7•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/ebbe081e9554
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox57:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
You need to log in
before you can comment on or make changes to this bug.
Description
•