Skip to content
Snippets Groups Projects
Commit eb157360 authored by pkupczyk's avatar pkupczyk
Browse files

SP-789 / BIS-503 : SOB-125 exception logged when calling load data sets - add js tests

SVN: 29617
parent 8236c202
No related branches found
No related tags found
No related merge requests found
......@@ -1534,6 +1534,18 @@ test("getPathToDataSet()", function(){
});
});
test("tryGetPathToDataSet()", function(){
createFacadeAndLogin(function(facade){
var dataSetCode = "20130412152036861-380";
var overrideStoreRootPathOrNull = "";
facade.tryGetPathToDataSet(dataSetCode, overrideStoreRootPathOrNull, function(response){
equal(response.result, "/1/1FD3FF61-1576-4908-AE3D-296E60B4CE06/7e/71/80/20130412152036861-380", "Data set path is correct");
facade.close();
});
});
});
test("listAllShares()", function(){
createFacadeAndLogin(function(facade){
try{
......
......@@ -1534,6 +1534,22 @@ openbis.prototype.getPathToDataSet = function(dataSetCode, overrideStoreRootPath
});
}
/**
* @see IDssServiceRpcGeneric.tryGetPathToDataSet(String, String, String)
* @method
*/
openbis.prototype.tryGetPathToDataSet = function(dataSetCode, overrideStoreRootPathOrNull, action) {
var openbisObj = this;
this._internal.getDataStoreApiUrlForDataSetCode(dataSetCode, function(dataStoreApiUrl){
openbisObj._internal.ajaxRequest({
url: dataStoreApiUrl,
data: { "method" : "tryGetPathToDataSet",
"params" : [ openbisObj.getSession(), dataSetCode, overrideStoreRootPathOrNull ] },
success: action
});
});
}
/**
* List shares from the default data store.
*
......
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