updated Test cases
This commit is contained in:
parent
f51896e28d
commit
3db873b17e
|
@ -34,11 +34,11 @@ import org.gcube.portlets.user.uriresolvermanager.resolvers.query.GeoportalResol
|
|||
|
||||
public class CreateGeoportalGisLinkInTheCentroidLayers {
|
||||
|
||||
// private static String CONTEXT = "/gcube/devsec/devVRE";
|
||||
// private static String TOKEN = ""; // devVRE
|
||||
private static String CONTEXT = "/gcube/devsec/devVRE";
|
||||
private static String TOKEN = ""; // devVRE
|
||||
|
||||
private static final String CONTEXT = "/pred4s/preprod/preVRE";
|
||||
private static final String TOKEN = ""; //preVRE
|
||||
// private static final String CONTEXT = "/pred4s/preprod/preVRE";
|
||||
// private static final String TOKEN = ""; //preVRE
|
||||
|
||||
// private static final String CONTEXT = "/d4science.research-infrastructures.eu/D4OS/GNA";
|
||||
// private static final String TOKEN = ""; //GNA
|
||||
|
@ -54,8 +54,8 @@ public class CreateGeoportalGisLinkInTheCentroidLayers {
|
|||
private static final String platformName = "postgis";
|
||||
private static final String category = "Database";
|
||||
// private static final String resourceName = "GNA-POSTGIS-DB"; // devVRE
|
||||
private static final String resourceName = "Geoserver-t postgis"; //preVRE
|
||||
// private static final String resourceName = "GNA-postgis"; // GNA
|
||||
//private static final String resourceName = "Geoserver-t postgis"; //preVRE
|
||||
private static final String resourceName = "GNA-postgis"; // GNA
|
||||
|
||||
private static final String TABLE_COLUMN_GEO_VIEWER_LINK = "geov_link";
|
||||
|
||||
|
@ -85,17 +85,17 @@ public class CreateGeoportalGisLinkInTheCentroidLayers {
|
|||
initGeoportalClient();
|
||||
|
||||
//devVRE
|
||||
// PROFILE_ID = "profiledConcessioni";
|
||||
// String tableName = "profiledconcessioni_devvre_centroids";
|
||||
// tableName = "profiledconcessioni_internal__devvre_centroids";
|
||||
PROFILE_ID = "profiledConcessioni";
|
||||
String tableName = "profiledconcessioni_devvre_centroids";
|
||||
tableName = "profiledconcessioni_internal__devvre_centroids";
|
||||
// PROFILE_ID = "concessioni-estere";
|
||||
// String tableName = "concessioni_estere_devvre_centroids";
|
||||
// tableName = "concessioni_estere_internal__devvre_centroids";
|
||||
|
||||
// preVRE
|
||||
PROFILE_ID = "profiledConcessioni";
|
||||
// PROFILE_ID = "profiledConcessioni";
|
||||
//String tableName = "profiledconcessioni_internal__prevre_centroids";
|
||||
String tableName = "profiledconcessioni_prevre_centroids";
|
||||
// String tableName = "profiledconcessioni_prevre_centroids";
|
||||
// PROFILE_ID = "concessioni-estere";
|
||||
// String tableName = "concessioni_estere_internal__prevre_centroids";
|
||||
// tableName = "concessioni_estere_prevre_centroids";
|
||||
|
@ -103,10 +103,10 @@ public class CreateGeoportalGisLinkInTheCentroidLayers {
|
|||
// GNA
|
||||
// PROFILE_ID = "concessioni-estere";
|
||||
// String tableName = "concessioni_estere_internal__gna_centroids";
|
||||
// tableName = "concessioni_estere_gna_centroids";
|
||||
// PROFILE_ID = "profiledConcessioni";
|
||||
// String tableName = "concessioni_estere_gna_centroids";
|
||||
PROFILE_ID = "profiledConcessioni";
|
||||
// String tableName = "profiledconcessioni_internal__gna_centroids";
|
||||
// tableName = "profiledconcessioni_gna_centroids";
|
||||
// String tableName = "profiledconcessioni_gna_centroids";
|
||||
|
||||
long startTime = System.currentTimeMillis();
|
||||
|
||||
|
|
|
@ -53,15 +53,15 @@ public class Project_Tests {
|
|||
// private static String CONTEXT = "/pred4s/preprod/preVRE";
|
||||
// private static String TOKEN = ""; //preVRE
|
||||
|
||||
// private static String CONTEXT = "/gcube/devsec/devVRE";
|
||||
// private static String TOKEN = "c41a00c0-7897-48d2-a67a-05190d6ce5e6-98187548"; // devVRE
|
||||
// private static String PROFILE_ID = "concessioni-estere";
|
||||
// private static String PROJECT_ID = "6399de68a0a4545420373257";
|
||||
|
||||
private static String CONTEXT = "/pred4s/preprod/preVRE";
|
||||
private static String TOKEN = "5c3c7551-870d-4259-bd77-a7e603fe4949-980114272"; // preVRE
|
||||
private static String CONTEXT = "/gcube/devsec/devVRE";
|
||||
private static String TOKEN = ""; // devVRE
|
||||
private static String PROFILE_ID = "profiledConcessioni";
|
||||
private static String PROJECT_ID = "638488d4308f5c28c5ee074d";
|
||||
private static String PROJECT_ID = "642d3a1ac2133270c058ebe5";
|
||||
|
||||
// private static String CONTEXT = "/pred4s/preprod/preVRE";
|
||||
// private static String TOKEN = ""; // preVRE
|
||||
// private static String PROFILE_ID = "profiledConcessioni";
|
||||
// private static String PROJECT_ID = "642d3a1ac2133270c058ebe5";
|
||||
|
||||
// private static String CONTEXT = "/pred4s/preprod/preVRE";
|
||||
// private static String TOKEN = ""; // preVRE
|
||||
|
@ -109,6 +109,21 @@ public class Project_Tests {
|
|||
|
||||
System.out.println(projectDV.getSpatialReference());
|
||||
}
|
||||
|
||||
//@Test
|
||||
public void checkDocumentSerDes() throws Exception {
|
||||
Project project = client.getProjectByID(PROFILE_ID, PROJECT_ID);
|
||||
|
||||
String documentValueAsJson = project.getTheDocument().toJson();
|
||||
System.out.println("1 "+documentValueAsJson);
|
||||
String updatedDocumentAsJson = new Document(Project.THE_DOCUMENT,documentValueAsJson).toJson();
|
||||
System.out.println("2 "+updatedDocumentAsJson);
|
||||
Document setUpdatedDocument = new Document("$set", updatedDocumentAsJson);
|
||||
System.out.println("3 "+setUpdatedDocument);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
// @Test
|
||||
public void getListProjectsDV() throws Exception {
|
||||
|
@ -371,7 +386,7 @@ public class Project_Tests {
|
|||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
//@Test
|
||||
public void testEvaluateRelationshipsChain() throws Exception {
|
||||
System.out.println("testEvaluateRelationshipsChain test");
|
||||
|
||||
|
|
Loading…
Reference in New Issue