added and cheched JUnit Test case
This commit is contained in:
parent
edc1d8910e
commit
e2a3a37065
|
@ -6,15 +6,15 @@
|
|||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="src" path="src/main/resources"/>
|
||||
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
|
||||
<attributes>
|
||||
<attribute name="test" value="true"/>
|
||||
<attribute name="optional" value="true"/>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
<attribute name="test" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="src" path="src/test/resources"/>
|
||||
<classpathentry kind="src" path="src/main/resources"/>
|
||||
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
|
||||
<wb-module deploy-name="ckan-util-library">
|
||||
<wb-resource deploy-path="/" source-path="/src/main/java"/>
|
||||
<wb-resource deploy-path="/" source-path="/src/test/resources"/>
|
||||
<wb-resource deploy-path="/" source-path="/src/main/resources"/>
|
||||
</wb-module>
|
||||
</project-modules>
|
||||
|
|
|
@ -108,6 +108,7 @@ public class DataCatalogueRunningCluster {
|
|||
* Nov 12, 2019
|
||||
*/
|
||||
//Added by Francesco, see #18039
|
||||
public static final String PUBLIC_VRE_CATALOGUE_URL = "public-vre-url";
|
||||
public static enum ACCESS_LEVEL_TO_CATALOGUE_PORTLET {PUBLIC_GATEWAY, PUBLIC_VRE, PRIVATE_VRE};
|
||||
public Map<ACCESS_LEVEL_TO_CATALOGUE_PORTLET, String> mapAccessURLToCatalogue;
|
||||
|
||||
|
@ -456,7 +457,7 @@ public class DataCatalogueRunningCluster {
|
|||
}
|
||||
|
||||
currValue = null;
|
||||
currValue = helper.evaluate("/Resource/Profile/Body/vre-public-url/text()");
|
||||
currValue = helper.evaluate("/Resource/Profile/Body/"+PUBLIC_VRE_CATALOGUE_URL+"/text()");
|
||||
if (currValue != null && currValue.size() > 0) {
|
||||
logger.debug("Portlet url found is " + currValue.get(0));
|
||||
//return currValue.get(0);
|
||||
|
|
|
@ -585,5 +585,12 @@ public class TestDataCatalogueLib {
|
|||
String url = instance.getUrlFromDatasetIdOrName(datasetName);
|
||||
logger.debug("url is " + url);
|
||||
}
|
||||
|
||||
//@Test
|
||||
public void getCatalogueURLs() throws Exception{
|
||||
DataCatalogueImpl util = factory.getUtilsPerScope("/gcube/devNext/NextNext");
|
||||
logger.debug("MAP ACCESS URL TO CATALOGUE:" +util.getMapAccessURLToCatalogue());
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue