From 4ffaf4b082df9d5f90a1a45dca72bd57408440d9 Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Tue, 25 Jun 2024 17:49:21 +0200 Subject: [PATCH] upgraded procedure to upgrade models in the DB --- .../types/SchemaManagementImplTest.java | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/test/java/org/gcube/informationsystem/resourceregistry/types/SchemaManagementImplTest.java b/src/test/java/org/gcube/informationsystem/resourceregistry/types/SchemaManagementImplTest.java index bd9d2a4..a4752db 100644 --- a/src/test/java/org/gcube/informationsystem/resourceregistry/types/SchemaManagementImplTest.java +++ b/src/test/java/org/gcube/informationsystem/resourceregistry/types/SchemaManagementImplTest.java @@ -14,29 +14,30 @@ import org.gcube.informationsystem.model.reference.entities.Entity; import org.gcube.informationsystem.model.reference.entities.Facet; import org.gcube.informationsystem.model.reference.entities.Resource; import org.gcube.informationsystem.model.reference.properties.Encrypted; +import org.gcube.informationsystem.model.reference.properties.Event; import org.gcube.informationsystem.model.reference.properties.Metadata; import org.gcube.informationsystem.model.reference.properties.PropagationConstraint; import org.gcube.informationsystem.model.reference.properties.Property; import org.gcube.informationsystem.model.reference.relations.ConsistsOf; import org.gcube.informationsystem.model.reference.relations.IsRelatedTo; import org.gcube.informationsystem.model.reference.relations.Relation; +import org.gcube.informationsystem.queries.templates.reference.properties.TemplateVariable; import org.gcube.informationsystem.resourceregistry.ContextTest; import org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaAlreadyPresentException; import org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaException; import org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaNotFoundException; import org.gcube.informationsystem.types.TypeMapper; import org.gcube.informationsystem.types.reference.Type; +import org.gcube.informationsystem.types.reference.properties.PropertyDefinition; import org.gcube.informationsystem.types.reference.relations.RelationType; import org.gcube.informationsystem.utils.Version; import org.gcube.resourcemanagement.model.reference.entities.facets.AccessPointFacet; import org.gcube.resourcemanagement.model.reference.entities.facets.ContactFacet; -import org.gcube.resourcemanagement.model.reference.entities.facets.TemplateFacet; +import org.gcube.resourcemanagement.model.reference.entities.facets.EventFacet; import org.gcube.resourcemanagement.model.reference.entities.resources.Actor; -import org.gcube.resourcemanagement.model.reference.entities.resources.ConfigurationTemplate; import org.gcube.resourcemanagement.model.reference.entities.resources.EService; import org.gcube.resourcemanagement.model.reference.entities.resources.RunningPlugin; import org.gcube.resourcemanagement.model.reference.entities.resources.Service; -import org.gcube.resourcemanagement.model.reference.properties.AttributeProperty; import org.gcube.resourcemanagement.model.reference.properties.ValueSchema; import org.gcube.resourcemanagement.model.reference.relations.consistsof.HasVolatileMemory; import org.gcube.resourcemanagement.model.reference.relations.isrelatedto.Hosts; @@ -405,7 +406,7 @@ public class SchemaManagementImplTest extends ContextTest { @Test - public void updateTypeISModel7_1_0() throws Exception { + public void update_to_IS_Model_7_1_0_and_GCube_Model_5_1_0() throws Exception { // TypeManagement typeManagement = new TypeManagement(); // String typeName = PropertyDefinition.NAME; // typeManagement.setTypeName(typeName); @@ -440,6 +441,10 @@ public class SchemaManagementImplTest extends ContextTest { // create(TemplateFacet.class); // update(ConfigurationTemplate.class, true); + +// create(Event.class); + +// update(EventFacet.class, true); } }