Bug 1322772 - Add extra safety checks for TLS cert tests; r=maja_zf,whimboo a=test-only
authorAndreas Tolfsen <ato@mozilla.com>
Fri, 09 Dec 2016 15:31:56 -1000
changeset 353317 218db8b47b80de47bf6fe624aea9c545a3e01e4e
parent 353316 d01aa3ae2908a2882dbcc71c7e3b26ee74900526
child 353318 98f702a24bea42d7e3f248cdaa74b66daf83a17e
push id6795
push userjlund@mozilla.com
push dateMon, 23 Jan 2017 14:19:46 +0000
treeherdermozilla-esr52@76101b503191 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmaja_zf, whimboo, test-only
bugs1322772
milestone52.0a2
Bug 1322772 - Add extra safety checks for TLS cert tests; r=maja_zf,whimboo a=test-only MozReview-Commit-ID: 3lnIONYybAi
testing/marionette/harness/marionette_harness/tests/unit/test_navigation.py
--- a/testing/marionette/harness/marionette_harness/tests/unit/test_navigation.py
+++ b/testing/marionette/harness/marionette_harness/tests/unit/test_navigation.py
@@ -199,25 +199,27 @@ class TestTLSNavigation(MarionetteTestCa
             pass
         MarionetteTestCase.tearDown(self)
 
     @contextlib.contextmanager
     def safe_session(self):
         try:
             self.capabilities = self.marionette.start_session(
                 desired_capabilities=self.secure_tls)
+            self.assertFalse(self.capabilities["acceptInsecureCerts"])
             yield self.marionette
         finally:
             self.marionette.delete_session()
 
     @contextlib.contextmanager
     def unsafe_session(self):
         try:
             self.capabilities = self.marionette.start_session(
                 desired_capabilities=self.insecure_tls)
+            self.assertTrue(self.capabilities["acceptInsecureCerts"])
             yield self.marionette
         finally:
             self.marionette.delete_session()
 
     def test_navigate_by_command(self):
         self.marionette.navigate(
             self.fixtures.where_is("/test.html", on="https"))
         self.assertIn("https", self.marionette.get_url())