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

SSDM-2458: Testing in test-map.js and test-search.js correct post-registered...

SSDM-2458: Testing in test-map.js and test-search.js correct post-registered flag. Post-registration is configured to be not successful.

SVN: 34601
parent c6d529ca
No related branches found
No related tags found
No related merge requests found
......@@ -97,7 +97,14 @@ define([ 'jquery', 'underscore', 'openbis', 'test/common' ], function($, _, open
}
var fMap = function(facade, permIds) {
return facade.mapDataSets(permIds, new c.DataSetFetchOptions());
var result = facade.mapDataSets(permIds, new c.DataSetFetchOptions());
result.then(function(map) {
permIds.forEach(function(permId) {
var entity = map[permId];
c.assertEqual(entity.isPostRegistered(), false, "post registered for " + permId);
});
});
return result;
}
testMap(c, fCreate, fMap);
......
......@@ -219,6 +219,7 @@ define([ 'jquery', 'underscore', 'openbis', 'test/common' ], function($, _, open
c.assertEqual(dataSet.getExperiment().getCode(), "TEST-EXPERIMENT-2", "Experiment code");
c.assertEqual(dataSet.getSample().getCode(), "TEST-SAMPLE-2", "Sample code");
c.assertEqual(dataSet.getProperties()["DESCRIPTION"], "403 description", "Property DESCRIPTION");
c.assertEqual(dataSet.isPostRegistered(), true, "post registered");
var externalData = dataSet.getExternalData();
c.assertEqual(externalData.getShareId(), "1", "Share id");
......
......@@ -108,9 +108,14 @@ post-registration.class = ch.systemsx.cisd.etlserver.postregistration.PostRegist
post-registration.interval = 30
post-registration.cleanup-tasks-folder = ${root-dir}/post-registration/cleanup-tasks
post-registration.last-seen-data-set-file = ${root-dir}/post-registration/last-seen-data-set.txt
post-registration.post-registration-tasks = pathinfo-feeding
post-registration.post-registration-tasks = pathinfo-feeding, notifying
post-registration.pathinfo-feeding.class = ch.systemsx.cisd.etlserver.path.PathInfoDatabaseFeedingTask
post-registration.pathinfo-feeding.compute-checksum = true
# The NotifyingTask throws an exception. Thus, post-registration will always fail.
# This is needed to have an example of a data set which isn't post-registered.
post-registration.notifying.class = ch.systemsx.cisd.etlserver.postregistration.NotifyingTask
post-registration.notifying.destination-path-template = targets/${unknown-placeholder-preventing-post-registration}
post-registration.notifying.message-template = hello
# Maintenance task for deleting entries from pathinfo database after deletion of a data set
path-info-deletion.class = ch.systemsx.cisd.etlserver.plugins.DeleteFromExternalDBMaintenanceTask
......
......@@ -103,14 +103,19 @@ path-info-db.scriptFolder = ../../../../datastore_server/source/sql
# Comma separated names of maintenance plugins. Each plugin should have configuration properties prefixed with its name.
maintenance-plugins = post-registration, path-info-deletion
# Maintenance task for post registration of all paths of a freshly registered data set to be fed into pathinfo database
# Maintenance task for post registration of all paths of a freshly registered data set to be fed into pathinfo database
post-registration.class = ch.systemsx.cisd.etlserver.postregistration.PostRegistrationMaintenanceTask
post-registration.interval = 30
post-registration.cleanup-tasks-folder = ${root-dir}/post-registration/cleanup-tasks
post-registration.last-seen-data-set-file = ${root-dir}/post-registration/last-seen-data-set.txt
post-registration.post-registration-tasks = pathinfo-feeding
post-registration.post-registration-tasks = pathinfo-feeding, notifying
post-registration.pathinfo-feeding.class = ch.systemsx.cisd.etlserver.path.PathInfoDatabaseFeedingTask
post-registration.pathinfo-feeding.compute-checksum = true
# The NotifyingTask throws an exception. Thus, post-registration will always fail.
# This is needed to have an example of a data set which isn't post-registered.
post-registration.notifying.class = ch.systemsx.cisd.etlserver.postregistration.NotifyingTask
post-registration.notifying.destination-path-template = targets/${unknown-placeholder-preventing-post-registration}
post-registration.notifying.message-template = hello
# Maintenance task for deleting entries from pathinfo database after deletion of a data set
path-info-deletion.class = ch.systemsx.cisd.etlserver.plugins.DeleteFromExternalDBMaintenanceTask
......
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