Skip to content
Snippets Groups Projects
Commit 80566021 authored by felmer's avatar felmer
Browse files

SSDM-4098: set thumbnail resolutions back in test_scu_microscopy.py

SVN: 37437
parent f1cda2f1
No related branches found
No related tags found
No related merge requests found
......@@ -34,12 +34,23 @@ class TestCase(systemtest.testcase.TestCase):
def setUpAndStartOpenbis(self):
util.printWhoAmI()
self.installOpenbis(technologies = ['microscopy'])
self.setThumbnailResolutions(openbisController, ['256x256'])
openbisController = self.createOpenbisController(databasesToDrop=['openbis', 'pathinfo'])
openbisController.setDssMaxHeapSize("3g")
openbisController.createTestDatabase("openbis")
openbisController.allUp()
return openbisController
def setThumbnailResolutions(self, openbisController, resolutions):
path = "%s/servers/core-plugins/microscopy/1/dss/drop-boxes/MicroscopyDropbox/GlobalSettings.py" % openbisController.installPath
with open(path, "r") as f:
content = f.readlines()
with open(path, "w") as f:
for line in content:
if line.find('ImageResolutions') > 0:
line = line.replace('[]', str(resolutions))
f.write("%s" % line)
def getTestDataFolder(self, openbisController):
testDataFolder = "%s/../../test-data/integration_%s" % (self.playgroundFolder, self.name)
if os.path.exists(testDataFolder):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment