Bug 1325079 - Delete unused test_certificates.py; r?whimboo draft
authorAndreas Tolfsen <ato@mozilla.com>
Thu, 29 Dec 2016 15:11:33 +0000
changeset 455325 442a7554fb114ecc799a4a2d9ca9cbdc14d4bb93
parent 455291 232424f9511d61179912ccaf5b169fb45f05599a
child 540953 61d819a271578150ac16944d4fb99a2e084d2b72
push id40198
push userbmo:ato@mozilla.com
push dateTue, 03 Jan 2017 14:34:16 +0000
reviewerswhimboo
bugs1325079
milestone53.0a1
Bug 1325079 - Delete unused test_certificates.py; r?whimboo The test was accidentally committed at some earlier point (hard to research due to hg not tracking file renamings) and the functionality is sufficiently tested by testing/marionette/harness/marionette_harness/tests/unit/test_navigation.py:170. MozReview-Commit-ID: D0lAAGDm22z
testing/marionette/harness/marionette_harness/tests/unit/test_certificates.py
testing/marionette/harness/marionette_harness/tests/unit/unit-tests.ini
deleted file mode 100644
--- a/testing/marionette/harness/marionette_harness/tests/unit/test_certificates.py
+++ /dev/null
@@ -1,34 +0,0 @@
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-
-from marionette_driver.errors import UnknownException
-
-from marionette_harness import MarionetteTestCase, skip
-
-
-class TestCertificates(MarionetteTestCase):
-
-    @skip("Bug 1325079")
-    def test_block_insecure_sites(self):
-        self.marionette.delete_session()
-        self.marionette.start_session()
-
-        self.marionette.navigate(self.fixtures.where_is("test.html", on="http"))
-        self.assertIn("http://", self.marionette.get_url())
-        with self.assertRaises(UnknownException):
-            self.marionette.navigate(self.fixtures.where_is("test.html", on="https"))
-
-    @skip("Bug 1325079")
-    def test_accept_all_insecure(self):
-        self.marionette.delete_session()
-        self.marionette.start_session({"desiredCapability": {"acceptSslCerts": ["*"]}})
-        self.marionette.navigate(self.fixtures.where_is("test.html", on="https"))
-        self.assertIn("https://", self.marionette.url)
-
-    @skip("Bug 1325079")
-    def test_accept_some_insecure(self):
-        self.marionette.delete_session()
-        self.marionette.start_session({"requiredCapabilities": {"acceptSslCerts": ["127.0.0.1"]}})
-        self.marionette.navigate(self.fixtures.where_is("test.html", on="https"))
-        self.assertIn("https://", self.marionette.url)
--- a/testing/marionette/harness/marionette_harness/tests/unit/unit-tests.ini
+++ b/testing/marionette/harness/marionette_harness/tests/unit/unit-tests.ini
@@ -2,17 +2,16 @@
 [test_geckoinstance.py]
 [test_data_driven.py]
 [test_session.py]
 [test_capabilities.py]
 [test_accessibility.py]
 [test_expectedfail.py]
 expected = fail
 [test_import_script.py]
-[test_certificates.py]
 [test_click.py]
 [test_click_chrome.py]
 skip-if = appname == 'fennec'
 [test_checkbox.py]
 [test_checkbox_chrome.py]
 skip-if = appname == 'fennec'
 [test_elementsize.py]
 [test_elementsize_chrome.py]