commit fdb29089d2e9d77f4c06f73e19987ff34cbfd2b4 Author: meskio meskio@torproject.org Date: Thu Nov 11 13:31:10 2021 +0100
Skip all the tests that needs rdsys running
We don't run rdsys for the tests, let's skip the tests that requires getting bridges from it. --- bridgedb/test/test_bridgedb_script.py | 4 ++++ bridgedb/test/test_https.py | 12 ++++++++++++ 2 files changed, 16 insertions(+)
diff --git a/bridgedb/test/test_bridgedb_script.py b/bridgedb/test/test_bridgedb_script.py index 5bf9e4e..b2d5ace 100644 --- a/bridgedb/test/test_bridgedb_script.py +++ b/bridgedb/test/test_bridgedb_script.py @@ -60,6 +60,8 @@ class BridgeDBCliTest(unittest.TestCase): This test ensures that an ``assignments.log`` file is created after a BridgeDB process was started. """ + raise SkipTest("We can't get bridges as rdsys is not running") + if os.environ.get("CI"): if not self.pid or not processExists(self.pid): raise FailTest("Could not start BridgeDB process on CI server!") @@ -73,6 +75,8 @@ class BridgeDBCliTest(unittest.TestCase): """Test that BridgeDB creates a new ``assignments.log`` file after receiving a SIGHUP. """ + raise SkipTest("We can't get bridges as rdsys is not running") + if os.environ.get("CI"): if not self.pid or not processExists(self.pid): raise FailTest("Could not start BridgeDB process on CI server!") diff --git a/bridgedb/test/test_https.py b/bridgedb/test/test_https.py index 8e3de1b..8af43ff 100644 --- a/bridgedb/test/test_https.py +++ b/bridgedb/test/test_https.py @@ -189,6 +189,8 @@ class HTTPTests(unittest.TestCase): self.assertRaises(mechanize.HTTPError, self.br.open, page)
def test_get_vanilla_ipv4(self): + raise SkipTest("We can't get bridges as rdsys is not running") + self.openBrowser() self.goToOptionsPage()
@@ -202,6 +204,8 @@ class HTTPTests(unittest.TestCase): self.assertIsInstance(ipaddress.ip_address(addr), ipaddress.IPv4Address)
def test_get_vanilla_ipv6(self): + raise SkipTest("We can't get bridges as rdsys is not running") + self.openBrowser() self.goToOptionsPage()
@@ -221,6 +225,8 @@ class HTTPTests(unittest.TestCase): This is a regression test for #12932, see https://bugs.torproject.org/12932. """ + raise SkipTest("We can't get bridges as rdsys is not running") + self.openBrowser() self.goToOptionsPage()
@@ -246,6 +252,8 @@ class HTTPTests(unittest.TestCase): """Ask for obfs4 bridges and check that there is an 'iat-mode' PT argument in the bridge lines. """ + raise SkipTest("We can't get bridges as rdsys is not running") + self.openBrowser() self.goToOptionsPage()
@@ -273,6 +281,8 @@ class HTTPTests(unittest.TestCase): """Ask for obfs4 bridges and check that there is an 'public-key' PT argument in the bridge lines. """ + raise SkipTest("We can't get bridges as rdsys is not running") + self.openBrowser() self.goToOptionsPage()
@@ -300,6 +310,8 @@ class HTTPTests(unittest.TestCase): """Ask for obfs4 bridges and check that there is an 'node-id' PT argument in the bridge lines. """ + raise SkipTest("We can't get bridges as rdsys is not running") + self.openBrowser() self.goToOptionsPage()
tor-commits@lists.torproject.org