Use local folder for UCD tests
This commit is contained in:
parent
d78cdc30e4
commit
f0d04b8c62
|
@ -1,8 +1,11 @@
|
||||||
package org.gcube.application.geoportal.service;
|
package org.gcube.application.geoportal.service;
|
||||||
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.gcube.application.cms.implementations.ImplementationProvider;
|
||||||
import org.gcube.application.cms.tests.TokenSetter;
|
import org.gcube.application.cms.tests.TokenSetter;
|
||||||
import org.gcube.application.geoportal.common.utils.tests.GCubeTest;
|
import org.gcube.application.geoportal.common.utils.tests.GCubeTest;
|
||||||
|
import org.gcube.application.geoportal.service.engine.providers.ucd.LocalFolderProfileMapCache;
|
||||||
|
import org.gcube.application.geoportal.service.engine.providers.ucd.ProfileMap;
|
||||||
import org.gcube.application.geoportal.service.rest.GuardedMethod;
|
import org.gcube.application.geoportal.service.rest.GuardedMethod;
|
||||||
import org.gcube.application.cms.serialization.Serialization;
|
import org.gcube.application.cms.serialization.Serialization;
|
||||||
import org.glassfish.jersey.test.JerseyTest;
|
import org.glassfish.jersey.test.JerseyTest;
|
||||||
|
@ -33,6 +36,8 @@ public class BasicServiceTestUnit extends JerseyTest {
|
||||||
TokenSetter.set(context);
|
TokenSetter.set(context);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
// Loads UCDs from local folder
|
||||||
|
ImplementationProvider.get().setEngine(new LocalFolderProfileMapCache(), ProfileMap.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -45,6 +45,7 @@
|
||||||
"_username": "fabio.sinibaldi"
|
"_username": "fabio.sinibaldi"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"_data_access_policy" : [
|
"_data_access_policy" : [
|
||||||
{"_policy" : {"_read" : "own", "_write" : "own"}, "_roles":[]},
|
{"_policy" : {"_read" : "own", "_write" : "own"}, "_roles":[]},
|
||||||
{"_policy" : {"_read" : "any", "_write" : "none"}, "_roles":["Guest"],
|
{"_policy" : {"_read" : "any", "_write" : "none"}, "_roles":["Guest"],
|
Loading…
Reference in New Issue