diff --git a/integration-tests/source/systemtest/testcase.py b/integration-tests/source/systemtest/testcase.py index 98057ed32855f9c67840bcbaddf79fe05bc985e7..7412d672e7e567a375dda8051a7a2e1189103e85 100644 --- a/integration-tests/source/systemtest/testcase.py +++ b/integration-tests/source/systemtest/testcase.py @@ -696,13 +696,18 @@ class OpenbisController(_Controller): destination = "%s/%s" % (corePluginsFolder, self.instanceName) shutil.rmtree(destination, ignore_errors=True) shutil.copytree("%s/core-plugins/%s" % (self.templatesFolder, self.instanceName), destination) + self.enableCorePlugin(self.instanceName) + + def enableCorePlugin(self, pluginName): + corePluginsFolder = "%s/servers/core-plugins" % self.installPath corePluginsPropertiesFile = "%s/core-plugins.properties" % corePluginsFolder corePluginsProperties = util.readProperties(corePluginsPropertiesFile) enabledModules = corePluginsProperties['enabled-modules'] - enabledModules = "%s, %s" % (enabledModules, self.instanceName) if len(enabledModules) > 0 else self.instanceName + enabledModules = "%s, %s" % (enabledModules, pluginName) if len(enabledModules) > 0 else pluginName corePluginsProperties['enabled-modules'] = enabledModules util.writeProperties(corePluginsPropertiesFile, corePluginsProperties) + def _setUpStore(self): templateStore = "%s/stores/%s" % (self.templatesFolder, self.instanceName) if os.path.isdir(templateStore): diff --git a/integration-tests/test_openbis_sync.py b/integration-tests/test_openbis_sync.py index 834850e86a25c902f06abc512e85a8f81cfb0eba..dd308f36c1cb949c8cf04f29e9e1519bf709570f 100755 --- a/integration-tests/test_openbis_sync.py +++ b/integration-tests/test_openbis_sync.py @@ -53,6 +53,7 @@ class TestCase(systemtest.testcase.TestCase): openbis1.createTestDatabase('openbis') openbis1.createTestDatabase('pathinfo') openbis1.createTestDatabase('imaging') + openbis1.enableCorePlugin("openbis-sync") '''Copy master data script''' filePath = "%s/servers/core-plugins/%s/1/as" % (openbis1.installPath, openbis1.instanceName)