Ejemplo n.º 1
0
 def testBadIp(self, prefix):
     uc = UpgradeCheck("test",
                       url="200.200.200.200",
                       version="%s%s" % (prefix, omero_version))
     uc.run()
     assert uc.isUpgradeNeeded() is False
     assert uc.isExceptionThrown() is True
Ejemplo n.º 2
0
 def testBadUrl(self, url):
     uc = UpgradeCheck("test", url=url, version="XYZ" + omero_version)
     uc.run()
     assert uc.isUpgradeNeeded() is False
     assert uc.isExceptionThrown() is True
Ejemplo n.º 3
0
 def testNoActionOnEmpty(self):
     uc = UpgradeCheck("test", url="")
     uc.run()
     assert uc.isUpgradeNeeded() is False
     assert uc.isExceptionThrown() is False
Ejemplo n.º 4
0
 def testSlowResponse(self, port):
     uc = UpgradeCheck("test", url="http://127.0.0.1:%s" % port)
     uc.run()
     assert uc.isUpgradeNeeded() is False
     assert uc.isExceptionThrown() is True
Ejemplo n.º 5
0
 def testReal(self):
     uc = UpgradeCheck("test", version="test")
     uc.run()
     assert uc.isUpgradeNeeded() is True
     assert uc.isExceptionThrown() is False
Ejemplo n.º 6
0
 def testNoActionOnNull(self):
     uc = UpgradeCheck("test", url=None)
     uc.run()
     assert uc.isUpgradeNeeded() is False
     assert uc.isExceptionThrown() is True
Ejemplo n.º 7
0
 def testBadUrl(self, url):
     uc = UpgradeCheck("test", url=url, version="XYZ" + omero_version)
     uc.run()
     assert uc.isUpgradeNeeded() is False
     assert uc.isExceptionThrown() is True
Ejemplo n.º 8
0
 def testBadIp(self, prefix):
     uc = UpgradeCheck("test", url="200.200.200.200",
                       version="%s%s" % (prefix, omero_version))
     uc.run()
     assert uc.isUpgradeNeeded() is False
     assert uc.isExceptionThrown() is True
Ejemplo n.º 9
0
 def testSlowResponse(self, port):
     uc = UpgradeCheck("test", url="http://127.0.0.1:%s" % port)
     uc.run()
     assert uc.isUpgradeNeeded() is False
     assert uc.isExceptionThrown() is True
Ejemplo n.º 10
0
 def testNoActionOnEmpty(self):
     uc = UpgradeCheck("test", url="")
     uc.run()
     assert uc.isUpgradeNeeded() is False
     assert uc.isExceptionThrown() is False
Ejemplo n.º 11
0
 def testNoActionOnNull(self):
     uc = UpgradeCheck("test", url=None)
     uc.run()
     assert uc.isUpgradeNeeded() is False
     assert uc.isExceptionThrown() is True