Skip to content
Snippets Groups Projects
Verified Commit 8ff75668 authored by Martin Weise's avatar Martin Weise
Browse files
parent f374e7e2
No related branches found
No related tags found
2 merge requests!395Library,!394Grafana
Showing
with 8625 additions and 1767 deletions
Source diff could not be displayed: it is too large. Options to address this: view the blob.
package at.ac.tuwien.ifs.dbrepo.core;
import at.ac.tuwien.ifs.dbrepo.core.test.BaseTest;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
......
package at.ac.tuwien.ifs.dbrepo.core.test;
import at.ac.tuwien.ifs.dbrepo.core.api.ExportResourceDto;
import at.ac.tuwien.ifs.dbrepo.core.api.amqp.CreateVirtualHostDto;
import at.ac.tuwien.ifs.dbrepo.core.api.amqp.ExchangeDto;
import at.ac.tuwien.ifs.dbrepo.core.api.amqp.GrantVirtualHostPermissionsDto;
import at.ac.tuwien.ifs.dbrepo.core.api.amqp.QueueDto;
import at.ac.tuwien.ifs.dbrepo.core.api.container.ContainerBriefDto;
import at.ac.tuwien.ifs.dbrepo.core.api.container.ContainerDto;
import at.ac.tuwien.ifs.dbrepo.core.api.container.image.*;
import at.ac.tuwien.ifs.dbrepo.core.api.database.*;
import at.ac.tuwien.ifs.dbrepo.core.api.database.query.FilterDto;
import at.ac.tuwien.ifs.dbrepo.core.api.database.query.FilterTypeDto;
import at.ac.tuwien.ifs.dbrepo.core.api.database.query.QueryDto;
import at.ac.tuwien.ifs.dbrepo.core.api.database.query.SubsetDto;
import at.ac.tuwien.ifs.dbrepo.core.api.database.table.*;
import at.ac.tuwien.ifs.dbrepo.core.api.database.table.columns.*;
import at.ac.tuwien.ifs.dbrepo.core.api.database.table.columns.concepts.ConceptBriefDto;
import at.ac.tuwien.ifs.dbrepo.core.api.database.table.columns.concepts.ConceptDto;
import at.ac.tuwien.ifs.dbrepo.core.api.database.table.columns.concepts.UnitBriefDto;
import at.ac.tuwien.ifs.dbrepo.core.api.database.table.columns.concepts.UnitDto;
import at.ac.tuwien.ifs.dbrepo.core.api.database.table.constraints.ConstraintsDto;
import at.ac.tuwien.ifs.dbrepo.core.api.database.table.constraints.CreateTableConstraintsDto;
import at.ac.tuwien.ifs.dbrepo.core.api.database.table.constraints.foreign.CreateForeignKeyDto;
import at.ac.tuwien.ifs.dbrepo.core.api.database.table.constraints.primary.PrimaryKeyDto;
import at.ac.tuwien.ifs.dbrepo.core.api.grafana.CreateDashboardDto;
import at.ac.tuwien.ifs.dbrepo.core.api.grafana.CreateDashboardResponseDto;
import at.ac.tuwien.ifs.dbrepo.core.api.identifier.IdentifierBriefDto;
import at.ac.tuwien.ifs.dbrepo.core.api.identifier.IdentifierDto;
import at.ac.tuwien.ifs.dbrepo.core.api.identifier.IdentifierFunderTypeDto;
import at.ac.tuwien.ifs.dbrepo.core.api.keycloak.*;
import at.ac.tuwien.ifs.dbrepo.core.api.maintenance.BannerMessageCreateDto;
import at.ac.tuwien.ifs.dbrepo.core.api.maintenance.BannerMessageDto;
import at.ac.tuwien.ifs.dbrepo.core.api.maintenance.BannerMessageTypeDto;
import at.ac.tuwien.ifs.dbrepo.core.api.maintenance.BannerMessageUpdateDto;
import at.ac.tuwien.ifs.dbrepo.core.api.semantics.OntologyBriefDto;
import at.ac.tuwien.ifs.dbrepo.core.api.semantics.OntologyCreateDto;
import at.ac.tuwien.ifs.dbrepo.core.api.semantics.OntologyDto;
import at.ac.tuwien.ifs.dbrepo.core.api.semantics.OntologyModifyDto;
import at.ac.tuwien.ifs.dbrepo.core.api.user.*;
import at.ac.tuwien.ifs.dbrepo.core.entity.container.Container;
import at.ac.tuwien.ifs.dbrepo.core.entity.container.image.ContainerImage;
import at.ac.tuwien.ifs.dbrepo.core.entity.container.image.Operator;
import at.ac.tuwien.ifs.dbrepo.core.entity.database.*;
import at.ac.tuwien.ifs.dbrepo.core.entity.database.table.Table;
import at.ac.tuwien.ifs.dbrepo.core.entity.database.table.columns.TableColumn;
import at.ac.tuwien.ifs.dbrepo.core.entity.database.table.columns.TableColumnConcept;
import at.ac.tuwien.ifs.dbrepo.core.entity.database.table.columns.TableColumnType;
import at.ac.tuwien.ifs.dbrepo.core.entity.database.table.columns.TableColumnUnit;
import at.ac.tuwien.ifs.dbrepo.core.entity.database.table.constraints.Constraints;
import at.ac.tuwien.ifs.dbrepo.core.entity.database.table.constraints.foreignKey.ForeignKey;
import at.ac.tuwien.ifs.dbrepo.core.entity.database.table.constraints.foreignKey.ForeignKeyReference;
import at.ac.tuwien.ifs.dbrepo.core.entity.database.table.constraints.foreignKey.ReferenceType;
import at.ac.tuwien.ifs.dbrepo.core.entity.database.table.constraints.primaryKey.PrimaryKey;
import at.ac.tuwien.ifs.dbrepo.core.entity.database.table.constraints.unique.Unique;
import at.ac.tuwien.ifs.dbrepo.core.entity.identifier.Identifier;
import at.ac.tuwien.ifs.dbrepo.core.entity.identifier.IdentifierFunderType;
import at.ac.tuwien.ifs.dbrepo.core.entity.maintenance.BannerMessage;
import at.ac.tuwien.ifs.dbrepo.core.entity.maintenance.BannerMessageType;
import at.ac.tuwien.ifs.dbrepo.core.entity.semantics.Ontology;
import at.ac.tuwien.ifs.dbrepo.core.entity.user.User;
import at.ac.tuwien.ifs.dbrepo.core.mapper.MetadataMapper;
import at.ac.tuwien.ifs.dbrepo.core.mapper.MetadataMapperImpl;
import at.ac.tuwien.ifs.dbrepo.core.test.utils.ArrayUtils;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.datatype.hibernate6.Hibernate6Module;
import com.fasterxml.jackson.datatype.jdk8.Jdk8Module;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
import org.springframework.core.io.InputStreamResource;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.test.context.TestPropertySource;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.security.Principal;
import java.time.Instant;
import java.time.LocalDate;
import java.time.ZoneOffset;
import java.util.*;
import java.util.stream.Collectors;
import static java.time.temporal.ChronoUnit.HOURS;
import static java.time.temporal.ChronoUnit.MINUTES;
/**
* Database 1 (Private Data, Private Schema, User 1) -> Container 1
* <ul>
* <li>Table 1 (Private Data, Private Schema)</li>
* <li>Table 2 (Private Data, Public Schema)</li>
* <li>Table 3 (Private Data, Private Schema)</li>
* <li>Table 4 (Public Data, Private Schema)</li>
* <li>Query 1</li>
* <li>View 1 (Private Data, Private Schema)</li>
* <li>View 2 (Public Data, Public Schema)</li>
* <li>View 3 (Public Data, Private Schema)</li>
* <li>Identifier 1 (Title=en, Description=en, type=database)</li>
* <li>Identifier 2 (Title=en, Description=en, type=subset, queryId=1)</li>
* <li>Identifier 3 (Title=en, Description=en, type=view, viewId=1)</li>
* <li>Identifier 4 (Title=en, Description=en, type=table, tableId=1)</li>
* </ul>
* <p>
* Database 2 (Private Data, Public Schema, User 2) -> Container 1
* <ul>
* <li>Table 5 (Public Data, Public Schema)</li>
* <li>Table 6 (Public Data, Private Schema)</li>
* <li>Table 7 (Public Data, Public Schema)</li>
* <li>Query 2</li>
* <li>Query 6</li>
* <li>View 4 (Public Data, Private Schema)</li>
* <li>Identifier 5 (Title=de, Description=de)</li>
* </ul>
* <p>
* Database 3 (Public Data, Private Schema, User 3) -> Container 1
* <ul>
* <li>Table 8 (Private Data, Private Schema)</li>
* <li>Query 3</li>
* <li>Query 4</li>
* <li>Query 5</li>
* <li>View 5 (Public Data, Public Schema)</li>
* <li>Identifier 6 (Title=en, Description=en, Query=3)</li>
* </ul>
* <p>
* Database 4 (Public Data, Public Schema, User 4) -> Container 4
* <li>Table 9</li>
* <li>Identifier 7</li>
* <li>Query 7</li>
* <ul>
* </ul>
* <br />
* User 1 (read)
* <br />
* User 2 (write-own)
* <br />
* User 3 (write-all)
*/
@TestPropertySource(locations = "classpath:application.properties")
public class BaseTest {
private static ObjectMapper objectMapper() {
final ObjectMapper objectMapper = new ObjectMapper();
objectMapper.registerModule(new Jdk8Module());
objectMapper.registerModule(new JavaTimeModule());
objectMapper.registerModule(new Hibernate6Module()); /* lazy load mapping on REST endpoints */
objectMapper.configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false);
objectMapper.setTimeZone(TimeZone.getTimeZone("UTC"));
objectMapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
objectMapper.enable(SerializationFeature.INDENT_OUTPUT);
return objectMapper;
}
private static final MetadataMapper metadataMapper = new MetadataMapperImpl();
private static final String resourcesPath = "./src/main/resources";
public static final String MINIO_IMAGE = "minio/minio:RELEASE.2024-06-06T09-36-42Z";
public static final String MARIADB_IMAGE = "mariadb:11.3.2";
public static final String RABBITMQ_IMAGE = "rabbitmq:3.13.7";
public static final String KEYCLOAK_IMAGE = "quay.io/keycloak/keycloak:26.0.4";
public static final ContainerImage IMAGE_1;
public static final Container CONTAINER_1;
public static final ContainerDto CONTAINER_1_DTO;
public static final ContainerBriefDto CONTAINER_1_BRIEF_DTO;
public static final Container CONTAINER_2;
public static final ContainerDto CONTAINER_2_DTO;
public static final ContainerBriefDto CONTAINER_2_BRIEF_DTO;
public static final Container CONTAINER_3;
public static final ContainerDto CONTAINER_3_DTO;
public static final ContainerBriefDto CONTAINER_3_BRIEF_DTO;
public static final Container CONTAINER_4;
public static final ContainerDto CONTAINER_4_DTO;
public static final ContainerBriefDto CONTAINER_4_BRIEF_DTO;
public static final Database DATABASE_1;
public static final DatabaseDto DATABASE_1_DTO;
public static final DatabaseBriefDto DATABASE_1_BRIEF_DTO;
public static final Database DATABASE_2;
public static final DatabaseDto DATABASE_2_DTO;
public static final DatabaseBriefDto DATABASE_2_BRIEF_DTO;
public static final Database DATABASE_3;
public static final DatabaseDto DATABASE_3_DTO;
public static final DatabaseBriefDto DATABASE_3_BRIEF_DTO;
public static final Database DATABASE_4;
public static final DatabaseDto DATABASE_4_DTO;
public static final DatabaseBriefDto DATABASE_4_BRIEF_DTO;
public static final QueryDto QUERY_1_DTO;
public static final QueryDto QUERY_2_DTO;
public static final QueryDto QUERY_3_DTO;
public static final QueryDto QUERY_4_DTO;
public static final QueryDto QUERY_5_DTO;
public static final QueryDto QUERY_6_DTO;
public static final QueryDto QUERY_7_DTO;
public static final QueryDto QUERY_8_DTO;
public static final QueryDto QUERY_9_DTO;
public static final TableColumnConcept CONCEPT_1;
public static final ConceptDto CONCEPT_1_DTO;
public static final ConceptBriefDto CONCEPT_1_BRIEF_DTO;
public static final TableColumnConcept CONCEPT_2;
public static final ConceptDto CONCEPT_2_DTO;
public static final ConceptBriefDto CONCEPT_2_BRIEF_DTO;
public static final TableColumnUnit UNIT_1;
public static final UnitDto UNIT_1_DTO;
public static final UnitBriefDto UNIT_1_BRIEF_DTO;
public static final TableColumnUnit UNIT_2;
public static final UnitDto UNIT_2_DTO;
public static final UnitBriefDto UNIT_2_BRIEF_DTO;
public static final User USER_1;
public static final UserDto USER_1_DTO;
public static final UserBriefDto USER_1_BRIEF_DTO;
public static final User USER_2;
public static final UserDto USER_2_DTO;
public static final UserBriefDto USER_2_BRIEF_DTO;
public static final User USER_3;
public static final UserDto USER_3_DTO;
public static final UserBriefDto USER_3_BRIEF_DTO;
public static final User USER_4;
public static final UserDto USER_4_DTO;
public static final UserBriefDto USER_4_BRIEF_DTO;
public static final User USER_5;
public static final UserDto USER_5_DTO;
public static final UserBriefDto USER_5_BRIEF_DTO;
public static final Identifier IDENTIFIER_1;
public static final IdentifierDto IDENTIFIER_1_DTO;
public static final IdentifierBriefDto IDENTIFIER_1_BRIEF_DTO;
public static final Identifier IDENTIFIER_2;
public static final IdentifierDto IDENTIFIER_2_DTO;
public static final IdentifierBriefDto IDENTIFIER_2_BRIEF_DTO;
public static final Identifier IDENTIFIER_3;
public static final IdentifierDto IDENTIFIER_3_DTO;
public static final IdentifierBriefDto IDENTIFIER_3_BRIEF_DTO;
public static final Identifier IDENTIFIER_4;
public static final IdentifierDto IDENTIFIER_4_DTO;
public static final IdentifierBriefDto IDENTIFIER_4_BRIEF_DTO;
public static final Identifier IDENTIFIER_5;
public static final IdentifierDto IDENTIFIER_5_DTO;
public static final IdentifierBriefDto IDENTIFIER_5_BRIEF_DTO;
public static final Identifier IDENTIFIER_6;
public static final IdentifierDto IDENTIFIER_6_DTO;
public static final IdentifierBriefDto IDENTIFIER_6_BRIEF_DTO;
public static final Identifier IDENTIFIER_7;
public static final IdentifierDto IDENTIFIER_7_DTO;
public static final IdentifierBriefDto IDENTIFIER_7_BRIEF_DTO;
public static final Table TABLE_1;
public static final TableDto TABLE_1_DTO;
public static final TableBriefDto TABLE_1_BRIEF_DTO;
public static final Table TABLE_2;
public static final TableDto TABLE_2_DTO;
public static final TableBriefDto TABLE_2_BRIEF_DTO;
public static final Table TABLE_3;
public static final TableDto TABLE_3_DTO;
public static final TableBriefDto TABLE_3_BRIEF_DTO;
public static final Table TABLE_4;
public static final TableDto TABLE_4_DTO;
public static final TableBriefDto TABLE_4_BRIEF_DTO;
public static final Table TABLE_5;
public static final TableDto TABLE_5_DTO;
public static final TableBriefDto TABLE_5_BRIEF_DTO;
public static final Table TABLE_6;
public static final TableDto TABLE_6_DTO;
public static final TableBriefDto TABLE_6_BRIEF_DTO;
public static final Table TABLE_7;
public static final TableDto TABLE_7_DTO;
public static final TableBriefDto TABLE_7_BRIEF_DTO;
public static final Table TABLE_8;
public static final TableDto TABLE_8_DTO;
public static final TableBriefDto TABLE_8_BRIEF_DTO;
public static final Table TABLE_9;
public static final TableDto TABLE_9_DTO;
public static final TableBriefDto TABLE_9_BRIEF_DTO;
static {
try {
IMAGE_1 = objectMapper().readValue(new File(resourcesPath + "/image-1.json"), ContainerImage.class);
CONTAINER_1 = objectMapper().readValue(new File(resourcesPath + "/container-1.json"), Container.class);
CONTAINER_1_DTO = metadataMapper.containerToContainerDto(CONTAINER_1);
CONTAINER_1_BRIEF_DTO = metadataMapper.containerToContainerBriefDto(CONTAINER_1);
CONTAINER_2 = objectMapper().readValue(new File(resourcesPath + "/container-2.json"), Container.class);
CONTAINER_2_DTO = metadataMapper.containerToContainerDto(CONTAINER_2);
CONTAINER_2_BRIEF_DTO = metadataMapper.containerToContainerBriefDto(CONTAINER_2);
CONTAINER_3 = objectMapper().readValue(new File(resourcesPath + "/container-3.json"), Container.class);
CONTAINER_3_DTO = metadataMapper.containerToContainerDto(CONTAINER_3);
CONTAINER_3_BRIEF_DTO = metadataMapper.containerToContainerBriefDto(CONTAINER_3);
CONTAINER_4 = objectMapper().readValue(new File(resourcesPath + "/container-4.json"), Container.class);
CONTAINER_4_DTO = metadataMapper.containerToContainerDto(CONTAINER_4);
CONTAINER_4_BRIEF_DTO = metadataMapper.containerToContainerBriefDto(CONTAINER_4);
DATABASE_1 = objectMapper().readValue(new File(resourcesPath + "/database-1.json"), Database.class);
DATABASE_1_DTO = metadataMapper.databaseToDatabaseDto(DATABASE_1);
DATABASE_1_BRIEF_DTO = metadataMapper.databaseToDatabaseBriefDto(DATABASE_1);
DATABASE_2 = objectMapper().readValue(new File(resourcesPath + "/database-2.json"), Database.class);
DATABASE_2_DTO = metadataMapper.databaseToDatabaseDto(DATABASE_2);
DATABASE_2_BRIEF_DTO = metadataMapper.databaseToDatabaseBriefDto(DATABASE_2);
DATABASE_3 = objectMapper().readValue(new File(resourcesPath + "/database-3.json"), Database.class);
DATABASE_3_DTO = metadataMapper.databaseToDatabaseDto(DATABASE_3);
DATABASE_3_BRIEF_DTO = metadataMapper.databaseToDatabaseBriefDto(DATABASE_3);
DATABASE_4 = objectMapper().readValue(new File(resourcesPath + "/database-4.json"), Database.class);
DATABASE_4_DTO = metadataMapper.databaseToDatabaseDto(DATABASE_4);
DATABASE_4_BRIEF_DTO = metadataMapper.databaseToDatabaseBriefDto(DATABASE_4);
QUERY_1_DTO = objectMapper().readValue(new File(resourcesPath + "/query-1.json"), QueryDto.class);
QUERY_2_DTO = objectMapper().readValue(new File(resourcesPath + "/query-2.json"), QueryDto.class);
QUERY_3_DTO = objectMapper().readValue(new File(resourcesPath + "/query-3.json"), QueryDto.class);
QUERY_4_DTO = objectMapper().readValue(new File(resourcesPath + "/query-4.json"), QueryDto.class);
QUERY_5_DTO = objectMapper().readValue(new File(resourcesPath + "/query-5.json"), QueryDto.class);
QUERY_6_DTO = objectMapper().readValue(new File(resourcesPath + "/query-6.json"), QueryDto.class);
QUERY_7_DTO = objectMapper().readValue(new File(resourcesPath + "/query-7.json"), QueryDto.class);
QUERY_8_DTO = objectMapper().readValue(new File(resourcesPath + "/query-8.json"), QueryDto.class);
QUERY_9_DTO = objectMapper().readValue(new File(resourcesPath + "/query-9.json"), QueryDto.class);
CONCEPT_1 = objectMapper().readValue(new File(resourcesPath + "/concept-1.json"), TableColumnConcept.class);
CONCEPT_1_DTO = metadataMapper.tableColumnConceptToConceptDto(CONCEPT_1);
CONCEPT_1_BRIEF_DTO = metadataMapper.tableColumnConceptToConceptBriefDto(CONCEPT_1);
CONCEPT_2 = objectMapper().readValue(new File(resourcesPath + "/concept-2.json"), TableColumnConcept.class);
CONCEPT_2_DTO = metadataMapper.tableColumnConceptToConceptDto(CONCEPT_2);
CONCEPT_2_BRIEF_DTO = metadataMapper.tableColumnConceptToConceptBriefDto(CONCEPT_2);
UNIT_1 = objectMapper().readValue(new File(resourcesPath + "/unit-1.json"), TableColumnUnit.class);
UNIT_1_DTO = metadataMapper.tableColumnUnitToUnitDto(UNIT_1);
UNIT_1_BRIEF_DTO = metadataMapper.tableColumnUnitToUnitBriefDto(UNIT_1);
UNIT_2 = objectMapper().readValue(new File(resourcesPath + "/unit-2.json"), TableColumnUnit.class);
UNIT_2_DTO = metadataMapper.tableColumnUnitToUnitDto(UNIT_2);
UNIT_2_BRIEF_DTO = metadataMapper.tableColumnUnitToUnitBriefDto(UNIT_2);
USER_1 = objectMapper().readValue(new File(resourcesPath + "/user-1.json"), User.class);
USER_1_DTO = metadataMapper.userToUserDto(USER_1);
USER_1_BRIEF_DTO = metadataMapper.userToUserBriefDto(USER_1);
USER_2 = objectMapper().readValue(new File(resourcesPath + "/user-2.json"), User.class);
USER_2_DTO = metadataMapper.userToUserDto(USER_1);
USER_2_BRIEF_DTO = metadataMapper.userToUserBriefDto(USER_1);
USER_3 = objectMapper().readValue(new File(resourcesPath + "/user-3.json"), User.class);
USER_3_DTO = metadataMapper.userToUserDto(USER_1);
USER_3_BRIEF_DTO = metadataMapper.userToUserBriefDto(USER_1);
USER_4 = objectMapper().readValue(new File(resourcesPath + "/user-4.json"), User.class);
USER_4_DTO = metadataMapper.userToUserDto(USER_1);
USER_4_BRIEF_DTO = metadataMapper.userToUserBriefDto(USER_1);
USER_5 = objectMapper().readValue(new File(resourcesPath + "/user-5.json"), User.class);
USER_5_DTO = metadataMapper.userToUserDto(USER_1);
USER_5_BRIEF_DTO = metadataMapper.userToUserBriefDto(USER_1);
IDENTIFIER_1 = objectMapper().readValue(new File(resourcesPath + "/identifier-1.json"), Identifier.class);
IDENTIFIER_1_DTO = metadataMapper.identifierToIdentifierDto(IDENTIFIER_1);
IDENTIFIER_1_BRIEF_DTO = metadataMapper.identifierToIdentifierBriefDto(IDENTIFIER_1);
IDENTIFIER_2 = objectMapper().readValue(new File(resourcesPath + "/identifier-2.json"), Identifier.class);
IDENTIFIER_2_DTO = metadataMapper.identifierToIdentifierDto(IDENTIFIER_2);
IDENTIFIER_2_BRIEF_DTO = metadataMapper.identifierToIdentifierBriefDto(IDENTIFIER_2);
IDENTIFIER_3 = objectMapper().readValue(new File(resourcesPath + "/identifier-3.json"), Identifier.class);
IDENTIFIER_3_DTO = metadataMapper.identifierToIdentifierDto(IDENTIFIER_3);
IDENTIFIER_3_BRIEF_DTO = metadataMapper.identifierToIdentifierBriefDto(IDENTIFIER_3);
IDENTIFIER_4 = objectMapper().readValue(new File(resourcesPath + "/identifier-4.json"), Identifier.class);
IDENTIFIER_4_DTO = metadataMapper.identifierToIdentifierDto(IDENTIFIER_4);
IDENTIFIER_4_BRIEF_DTO = metadataMapper.identifierToIdentifierBriefDto(IDENTIFIER_4);
IDENTIFIER_5 = objectMapper().readValue(new File(resourcesPath + "/identifier-5.json"), Identifier.class);
IDENTIFIER_5_DTO = metadataMapper.identifierToIdentifierDto(IDENTIFIER_5);
IDENTIFIER_5_BRIEF_DTO = metadataMapper.identifierToIdentifierBriefDto(IDENTIFIER_5);
IDENTIFIER_6 = objectMapper().readValue(new File(resourcesPath + "/identifier-6.json"), Identifier.class);
IDENTIFIER_6_DTO = metadataMapper.identifierToIdentifierDto(IDENTIFIER_6);
IDENTIFIER_6_BRIEF_DTO = metadataMapper.identifierToIdentifierBriefDto(IDENTIFIER_6);
IDENTIFIER_7 = objectMapper().readValue(new File(resourcesPath + "/identifier-7.json"), Identifier.class);
IDENTIFIER_7_DTO = metadataMapper.identifierToIdentifierDto(IDENTIFIER_7);
IDENTIFIER_7_BRIEF_DTO = metadataMapper.identifierToIdentifierBriefDto(IDENTIFIER_7);
TABLE_1 = objectMapper().readValue(new File(resourcesPath + "/table-1.json"), Table.class);
TABLE_1_DTO = metadataMapper.tableToTableDto(TABLE_1);
TABLE_1_BRIEF_DTO = metadataMapper.tableToTableBriefDto(TABLE_1);
TABLE_2 = objectMapper().readValue(new File(resourcesPath + "/table-2.json"), Table.class);
TABLE_2_DTO = metadataMapper.tableToTableDto(TABLE_2);
TABLE_2_BRIEF_DTO = metadataMapper.tableToTableBriefDto(TABLE_2);
TABLE_3 = objectMapper().readValue(new File(resourcesPath + "/table-3.json"), Table.class);
TABLE_3_DTO = metadataMapper.tableToTableDto(TABLE_3);
TABLE_3_BRIEF_DTO = metadataMapper.tableToTableBriefDto(TABLE_3);
TABLE_4 = objectMapper().readValue(new File(resourcesPath + "/table-4.json"), Table.class);
TABLE_4_DTO = metadataMapper.tableToTableDto(TABLE_4);
TABLE_4_BRIEF_DTO = metadataMapper.tableToTableBriefDto(TABLE_4);
TABLE_5 = objectMapper().readValue(new File(resourcesPath + "/table-5.json"), Table.class);
TABLE_5_DTO = metadataMapper.tableToTableDto(TABLE_5);
TABLE_5_BRIEF_DTO = metadataMapper.tableToTableBriefDto(TABLE_5);
TABLE_6 = objectMapper().readValue(new File(resourcesPath + "/table-6.json"), Table.class);
TABLE_6_DTO = metadataMapper.tableToTableDto(TABLE_6);
TABLE_6_BRIEF_DTO = metadataMapper.tableToTableBriefDto(TABLE_6);
TABLE_7 = objectMapper().readValue(new File(resourcesPath + "/table-7.json"), Table.class);
TABLE_7_DTO = metadataMapper.tableToTableDto(TABLE_7);
TABLE_7_BRIEF_DTO = metadataMapper.tableToTableBriefDto(TABLE_7);
TABLE_8 = objectMapper().readValue(new File(resourcesPath + "/table-8.json"), Table.class);
TABLE_8_DTO = metadataMapper.tableToTableDto(TABLE_8);
TABLE_8_BRIEF_DTO = metadataMapper.tableToTableBriefDto(TABLE_8);
TABLE_9 = objectMapper().readValue(new File(resourcesPath + "/table-9.json"), Table.class);
TABLE_9_DTO = metadataMapper.tableToTableDto(TABLE_9);
TABLE_9_BRIEF_DTO = metadataMapper.tableToTableBriefDto(TABLE_9);
} catch (IOException e) {
throw new RuntimeException("Failed to initialize core test library", e);
}
}
public static final String[] DEFAULT_SEMANTICS_HANDLING = new String[]{"default-semantics-handling",
"create-semantic-unit", "execute-semantic-query", "table-semantic-analyse", "create-semantic-concept"};
public static final String[] DEFAULT_VIEW_HANDLING = new String[]{"update-database-view", "create-database-view",
"delete-database-view", "list-database-views", "modify-view-visibility", "find-database-view"};
public static final String[] ESCALATED_SEMANTICS_HANDLING = new String[]{"escalated-semantics-handling",
"update-semantic-concept", "modify-foreign-table-column-semantics", "delete-ontology", "list-ontologies",
"update-semantic-unit", "create-ontology", "update-ontology"};
public static final String[] DEFAULT_CONTAINER_HANDLING = new String[]{"default-container-handling",
"create-container", "list-containers", "modify-container-state"};
public static final String[] ESCALATED_CONTAINER_HANDLING = new String[]{"escalated-container-handling",
"modify-foreign-container-state", "delete-container"};
public static final String[] DEFAULT_DATABASE_HANDLING = new String[]{"default-database-handling",
"update-database-access", "modify-database-visibility", "create-database", "modify-database-owner",
"delete-database-access", "check-database-access", "list-databases", "modify-database-image",
"create-database-access", "find-database", "import-database-data"};
public static final String[] ESCALATED_DATABASE_HANDLING = new String[]{"escalated-database-handling",
"delete-database"};
public static final String[] DEFAULT_IDENTIFIER_HANDLING = new String[]{"default-identifier-handling",
"create-identifier", "find-identifier", "list-identifiers", "publish-identifier", "delete-identifier"};
public static final String[] ESCALATED_IDENTIFIER_HANDLING = new String[]{"escalated-identifier-handling",
"modify-identifier-metadata", "update-foreign-identifier", "create-foreign-identifier"};
public static final String[] DEFAULT_QUERY_HANDLING = new String[]{"default-query-handling", "view-table-data",
"execute-query", "view-table-history", "list-database-views", "export-query-data", "create-database-view",
"delete-database-view", "delete-table-data", "export-table-data", "persist-query", "re-execute-query",
"insert-table-data", "find-database-view"};
public static final String[] ESCALATED_QUERY_HANDLING = new String[]{"escalated-query-handling"};
public static final String[] DEFAULT_TABLE_HANDLING = new String[]{"default-table-handling",
"list-tables", "create-table", "modify-table-column-semantics", "find-table", "delete-table",
"update-table-statistic", "update-table"};
public static final String[] ESCALATED_TABLE_HANDLING = new String[]{"escalated-table-handling",
"delete-foreign-table"};
public static final String[] DEFAULT_USER_HANDLING = new String[]{"default-user-handling", "modify-user-theme",
"modify-user-information"};
public static final String[] ESCALATED_USER_HANDLING = new String[]{"escalated-user-handling", "find-user"};
public static final String[] DEFAULT_RESEARCHER_ROLES = ArrayUtils.merge(List.of(new String[]{"default-researcher-roles"},
DEFAULT_CONTAINER_HANDLING, DEFAULT_DATABASE_HANDLING, DEFAULT_IDENTIFIER_HANDLING, DEFAULT_QUERY_HANDLING,
DEFAULT_TABLE_HANDLING, DEFAULT_USER_HANDLING, DEFAULT_SEMANTICS_HANDLING, DEFAULT_VIEW_HANDLING));
public static final String[] DEFAULT_DEVELOPER_ROLES = ArrayUtils.merge(List.of(new String[]{"default-developer-roles"},
DEFAULT_CONTAINER_HANDLING, DEFAULT_DATABASE_HANDLING, DEFAULT_IDENTIFIER_HANDLING, DEFAULT_QUERY_HANDLING,
DEFAULT_TABLE_HANDLING, DEFAULT_USER_HANDLING, ESCALATED_USER_HANDLING, ESCALATED_CONTAINER_HANDLING,
ESCALATED_DATABASE_HANDLING, ESCALATED_IDENTIFIER_HANDLING, ESCALATED_QUERY_HANDLING,
ESCALATED_TABLE_HANDLING, DEFAULT_VIEW_HANDLING));
public static final String[] DEFAULT_DATA_STEWARD_ROLES = ArrayUtils.merge(List.of(new String[]{"default-data-steward-roles"},
ESCALATED_IDENTIFIER_HANDLING, DEFAULT_SEMANTICS_HANDLING, ESCALATED_SEMANTICS_HANDLING, DEFAULT_VIEW_HANDLING));
public static final String[] DEFAULT_LOCAL_ADMIN_ROLES = new String[]{"system"};
public static final List<GrantedAuthorityDto> AUTHORITY_LOCAL_ADMIN_ROLES = Arrays.stream(DEFAULT_LOCAL_ADMIN_ROLES)
.map(GrantedAuthorityDto::new)
.collect(Collectors.toList());
public static final List<GrantedAuthorityDto> AUTHORITY_DEFAULT_RESEARCHER_ROLES = Arrays.stream(DEFAULT_RESEARCHER_ROLES)
.map(GrantedAuthorityDto::new)
.collect(Collectors.toList());
public static final List<GrantedAuthorityDto> AUTHORITY_DEFAULT_DEVELOPER_ROLES = Arrays.stream(DEFAULT_DEVELOPER_ROLES)
.map(GrantedAuthorityDto::new)
.collect(Collectors.toList());
public static final List<GrantedAuthorityDto> AUTHORITY_DEFAULT_DATA_STEWARD_ROLES = Arrays.stream(DEFAULT_DATA_STEWARD_ROLES)
.map(GrantedAuthorityDto::new)
.collect(Collectors.toList());
public static final List<GrantedAuthority> AUTHORITY_DEFAULT_LOCAL_ADMIN_AUTHORITIES = AUTHORITY_LOCAL_ADMIN_ROLES.stream()
.map(a -> new SimpleGrantedAuthority(a.getAuthority()))
.collect(Collectors.toList());
public static final List<GrantedAuthority> AUTHORITY_DEFAULT_RESEARCHER_AUTHORITIES = AUTHORITY_DEFAULT_RESEARCHER_ROLES.stream()
.map(a -> new SimpleGrantedAuthority(a.getAuthority()))
.collect(Collectors.toList());
public static final List<GrantedAuthority> AUTHORITY_DEFAULT_DEVELOPER_AUTHORITIES = AUTHORITY_DEFAULT_DEVELOPER_ROLES.stream()
.map(a -> new SimpleGrantedAuthority(a.getAuthority()))
.collect(Collectors.toList());
public static final List<GrantedAuthority> AUTHORITY_DEFAULT_DATA_STEWARD_AUTHORITIES = AUTHORITY_DEFAULT_DATA_STEWARD_ROLES.stream()
.map(a -> new SimpleGrantedAuthority(a.getAuthority()))
.collect(Collectors.toList());
public static final UUID REALM_DBREPO_ID = UUID.fromString("6264bf7b-d1d3-4562-9c07-ce4364a8f9d3");
public static final String REALM_DBREPO_NAME = "dbrepo";
public static final Boolean REALM_DBREPO_ENABLED = true;
public static final UUID ROLE_DEFAULT_REALM_DBREPO_ROLES_ID = UUID.fromString("c74cbbe7-3ab1-4472-9211-cc904567268");
public static final String ROLE_DEFAULT_REALM_DBREPO_ROLES_NAME = "default-dbrepo-roles";
public static final UUID ROLE_DEFAULT_REALM_DBREPO_ROLES_REALM_ID = REALM_DBREPO_ID;
public static final UUID ROLE_DEFAULT_RESEARCHER_ROLES_ID = UUID.fromString("c74cbbe7-3ab1-4472-9211-cc9045672682");
public static final String ROLE_DEFAULT_RESEARCHER_ROLES_NAME = "default-researcher-roles";
public static final UUID ROLE_DEFAULT_RESEARCHER_ROLES_REALM_ID = REALM_DBREPO_ID;
public static final CreateAccessDto UPDATE_DATABASE_ACCESS_READ_DTO = CreateAccessDto.builder()
.type(AccessTypeDto.READ)
.build();
public static final CreateAccessDto UPDATE_DATABASE_ACCESS_WRITE_OWN_DTO = CreateAccessDto.builder()
.type(AccessTypeDto.WRITE_OWN)
.build();
public static final CreateAccessDto UPDATE_DATABASE_ACCESS_WRITE_ALL_DTO = CreateAccessDto.builder()
.type(AccessTypeDto.WRITE_ALL)
.build();
public static final String TOKEN_ACCESS_TOKEN = "ey.yee.skrr";
public static final String TOKEN_ACCESS_SCOPE = "openid";
public static final TokenDto TOKEN_DTO = TokenDto.builder()
.accessToken(TOKEN_ACCESS_TOKEN)
.scope(TOKEN_ACCESS_SCOPE)
.build();
public static final String USER_BROKER_USERNAME = "guest";
@SuppressWarnings("java:S2068")
public static final String USER_BROKER_PASSWORD = "guest";
public static final UUID USER_LOCAL_ADMIN_ID = UUID.fromString("a54dcb2e-a644-4e82-87e7-05a96413983d");
public static final UUID USER_LOCAL_ADMIN_KEYCLOAK_ID = UUID.fromString("703c2ca0-8fc3-4c03-9bc5-4dae6b211e78");
public static final String USER_LOCAL_ADMIN_USERNAME = "admin";
@SuppressWarnings("java:S2068")
public static final String USER_LOCAL_ADMIN_PASSWORD = "admin";
public static final String USER_LOCAL_ADMIN_THEME = "dark";
public static final Boolean USER_LOCAL_ADMIN_IS_INTERNAL = true;
public static final Boolean USER_LOCAL_ADMIN_ENABLED = true;
@SuppressWarnings("java:S2068")
public static final String USER_LOCAL_ADMIN_MARIADB_PASSWORD = "*440BA4FD1A87A0999647DB67C0EE258198B247BA";
public static final UserDetails USER_LOCAL_ADMIN_DETAILS = UserDetailsDto.builder()
.id(USER_LOCAL_ADMIN_ID.toString())
.username(USER_LOCAL_ADMIN_USERNAME)
.password(USER_LOCAL_ADMIN_PASSWORD)
.authorities(AUTHORITY_DEFAULT_LOCAL_ADMIN_AUTHORITIES)
.build();
public static final User USER_LOCAL = User.builder()
.id(USER_LOCAL_ADMIN_ID)
.keycloakId(USER_LOCAL_ADMIN_KEYCLOAK_ID)
.username(USER_LOCAL_ADMIN_USERNAME)
.mariadbPassword(USER_LOCAL_ADMIN_MARIADB_PASSWORD)
.theme(USER_LOCAL_ADMIN_THEME)
.isInternal(USER_LOCAL_ADMIN_IS_INTERNAL)
.build();
public static final Principal USER_LOCAL_ADMIN_PRINCIPAL = new UsernamePasswordAuthenticationToken(USER_LOCAL_ADMIN_DETAILS,
USER_LOCAL_ADMIN_PASSWORD, USER_LOCAL_ADMIN_DETAILS.getAuthorities());
@SuppressWarnings("java:S2068")
public static final String USER_1_PASSWORD = "junit1";
public static final CredentialDto USER_1_KEYCLOAK_CREDENTIAL_1 = CredentialDto.builder()
.type(CredentialTypeDto.PASSWORD)
.temporary(false)
.value(USER_1_PASSWORD)
.build();
public static final CredentialDto USER_LOCAL_KEYCLOAK_CREDENTIAL_1 = CredentialDto.builder()
.type(CredentialTypeDto.PASSWORD)
.temporary(false)
.value(USER_LOCAL_ADMIN_PASSWORD)
.build();
public static final UserCreateDto USER_LOCAL_KEYCLOAK_SIGNUP_REQUEST = UserCreateDto.builder()
.username(USER_LOCAL_ADMIN_USERNAME)
.enabled(USER_LOCAL_ADMIN_ENABLED)
.credentials(new LinkedList<>(List.of(USER_LOCAL_KEYCLOAK_CREDENTIAL_1)))
.groups(new LinkedList<>(List.of("system")))
.attributes(UserCreateAttributesDto.builder()
.ldapId(String.valueOf(USER_LOCAL_ADMIN_ID))
.build())
.build();
public static final UserDetails USER_1_DETAILS = UserDetailsDto.builder()
.id(USER_1.getId().toString())
.username(USER_1.getUsername())
.password(USER_1_PASSWORD)
.authorities(AUTHORITY_DEFAULT_RESEARCHER_AUTHORITIES)
.build();
public static final Principal USER_1_PRINCIPAL = new UsernamePasswordAuthenticationToken(USER_1_DETAILS,
USER_1_PASSWORD, USER_1_DETAILS.getAuthorities());
@SuppressWarnings("java:S2068")
public static final String USER_2_PASSWORD = "junit2";
public static final UserDetails USER_2_DETAILS = UserDetailsDto.builder()
.id(USER_2.getId().toString())
.username(USER_2.getUsername())
.password(USER_2_PASSWORD)
.authorities(AUTHORITY_DEFAULT_RESEARCHER_AUTHORITIES)
.build();
public static final at.ac.tuwien.ifs.dbrepo.core.api.amqp.UserDetailsDto USER_2_DETAILS_DTO = at.ac.tuwien.ifs.dbrepo.core.api.amqp.UserDetailsDto.builder()
.name(USER_2.getUsername())
.tags(new String[]{})
.build();
public static final Principal USER_2_PRINCIPAL = new UsernamePasswordAuthenticationToken(USER_2_DETAILS,
USER_2_PASSWORD, USER_2_DETAILS.getAuthorities());
@SuppressWarnings("java:S2068")
public static final String USER_3_PASSWORD = "password";
public static final UserDetails USER_3_DETAILS = UserDetailsDto.builder()
.id(USER_3.getId().toString())
.username(USER_3.getUsername())
.password(USER_3_PASSWORD)
.authorities(AUTHORITY_DEFAULT_RESEARCHER_AUTHORITIES)
.build();
public static final Principal USER_3_PRINCIPAL = new UsernamePasswordAuthenticationToken(USER_3_DETAILS,
USER_3_PASSWORD, USER_3_DETAILS.getAuthorities());
public static final at.ac.tuwien.ifs.dbrepo.core.api.amqp.UserDetailsDto USER_3_DETAILS_DTO = at.ac.tuwien.ifs.dbrepo.core.api.amqp.UserDetailsDto.builder()
.name(USER_3.getUsername())
.tags(new String[]{})
.build();
@SuppressWarnings("java:S2068")
public static final String USER_4_PASSWORD = "junit4";
public static final UserDetails USER_4_DETAILS = UserDetailsDto.builder()
.id(USER_4.getId().toString())
.username(USER_4.getUsername())
.password(USER_4_PASSWORD)
.authorities(new LinkedList<>())
.build();
public static final Principal USER_4_PRINCIPAL = new UsernamePasswordAuthenticationToken(USER_4_DETAILS,
USER_4_PASSWORD, USER_4_DETAILS.getAuthorities());
@SuppressWarnings("java:S2068")
public static final String USER_5_PASSWORD = "junit5";
public static final UserDetails USER_5_DETAILS = UserDetailsDto.builder()
.id(USER_5.getId().toString())
.username(USER_5.getUsername())
.password(USER_5_PASSWORD)
.authorities(AUTHORITY_DEFAULT_DEVELOPER_AUTHORITIES)
.build();
public static final Principal USER_5_PRINCIPAL = new UsernamePasswordAuthenticationToken(USER_5_DETAILS,
USER_5_PASSWORD, USER_5_DETAILS.getAuthorities());
public static final String EXCHANGE_DBREPO_NAME = "dbrepo";
public static final Boolean EXCHANGE_DBREPO_AUTO_DELETE = true;
public static final Boolean EXCHANGE_DBREPO_DURABLE = true;
public static final Boolean EXCHANGE_DBREPO_INTERNAL = true;
public static final String EXCHANGE_DBREPO_TYPE = "topic";
public static final String EXCHANGE_DBREPO_VHOST = "dbrepo";
public static final ExchangeDto EXCHANGE_DBREPO_DTO = ExchangeDto.builder()
.autoDelete(EXCHANGE_DBREPO_AUTO_DELETE)
.type(EXCHANGE_DBREPO_TYPE)
.name(EXCHANGE_DBREPO_NAME)
.durable(EXCHANGE_DBREPO_DURABLE)
.vhost(EXCHANGE_DBREPO_VHOST)
.internal(EXCHANGE_DBREPO_INTERNAL)
.build();
public static final CreateDatabaseDto DATABASE_1_CREATE = CreateDatabaseDto.builder()
.name(DATABASE_1.getName())
.isPublic(DATABASE_1.getIsPublic())
.cid(CONTAINER_1.getId())
.build();
public static final String CONTAINER_1_PRIVILEGED_USERNAME = "root";
@SuppressWarnings("java:S2068")
public static final String CONTAINER_1_PRIVILEGED_PASSWORD = "dbrepo";
public static final Long TABLE_1_DATA_COUNT = 3L;
@SuppressWarnings("java:S3599")
public static final List<Map<String, Object>> TABLE_1_DATA_DTO = new LinkedList<>(List.of(
new HashMap<>() {{
put("id", BigInteger.valueOf(1L));
put("date", LocalDate.of(2008, 12, 1).atStartOfDay().toInstant(ZoneOffset.UTC));
put("location", "Albury");
put("mintemp", 13.4);
put("rainfall", 0.6);
}},
new HashMap<>() {{
put("id", BigInteger.valueOf(2L));
put("date", LocalDate.of(2008, 12, 2).atStartOfDay().toInstant(ZoneOffset.UTC));
put("location", "Albury");
put("mintemp", 7.4);
put("rainfall", 0);
}},
new HashMap<>() {{
put("id", BigInteger.valueOf(3L));
put("date", LocalDate.of(2008, 12, 3).atStartOfDay().toInstant(ZoneOffset.UTC));
put("location", "Albury");
put("mintemp", 12.9);
put("rainfall", 0);
}}
));
public static final SubsetDto QUERY_9_SUBSET_DTO = SubsetDto.builder()
.tableId(TABLE_9.getId())
.columns(new LinkedList<>(List.of(TABLE_9.getColumns().get(2).getId(), TABLE_9.getColumns().get(3).getId())))
.filter(new LinkedList<>(List.of(FilterDto.builder()
.columnId(TABLE_9.getColumns().get(1).getId())
.operatorId(IMAGE_1.getOperators().get(2).getId())
.value("Fuji")
.type(FilterTypeDto.WHERE)
.build())))
.build();
public static final ViewDto QUERY_9_VIEW_DTO = ViewDto.builder()
.query(QUERY_9_DTO.getQuery())
.queryHash(QUERY_9_DTO.getQueryHash())
.owner(USER_1_BRIEF_DTO)
.columns(new LinkedList<>(List.of(ViewColumnDto.builder()
.name("lat")
.internalName("lat")
.build(),
ViewColumnDto.builder()
.name("lng")
.internalName("lng")
.build())))
.build();
public static final String QUEUE_NAME = "dbrepo";
public static final String QUEUE_VHOST = "dbrepo";
public static final Boolean QUEUE_AUTO_DELETE = false;
public static final Boolean QUEUE_DURABLE = true;
public static final Boolean QUEUE_EXCLUSIVE = false;
public static final String QUEUE_TYPE = "quorum";
public static final QueueDto QUEUE_DTO = QueueDto.builder()
.name(QUEUE_NAME)
.vhost(QUEUE_VHOST)
.autoDelete(QUEUE_AUTO_DELETE)
.durable(QUEUE_DURABLE)
.exclusive(QUEUE_EXCLUSIVE)
.type(QUEUE_TYPE)
.build();
public static final Long TABLE_8_DATA_COUNT = 6L;
@SuppressWarnings("java:S3599")
public static final List<Map<String, Object>> TABLE_8_DATA_DTO = new LinkedList<>(List.of(
new HashMap<>() {{
put(TABLE_8.getColumns().get(0).getInternalName(), BigInteger.valueOf(1L));
put(TABLE_8.getColumns().get(1).getInternalName(), 11.2);
put(TABLE_8.getColumns().get(2).getInternalName(), null);
}},
new HashMap<>() {{
put(TABLE_8.getColumns().get(0).getInternalName(), BigInteger.valueOf(2L));
put(TABLE_8.getColumns().get(1).getInternalName(), 11.3);
put(TABLE_8.getColumns().get(2).getInternalName(), null);
}},
new HashMap<>() {{
put(TABLE_8.getColumns().get(0).getInternalName(), BigInteger.valueOf(3L));
put(TABLE_8.getColumns().get(1).getInternalName(), 11.4);
put(TABLE_8.getColumns().get(2).getInternalName(), null);
}},
new HashMap<>() {{
put(TABLE_8.getColumns().get(0).getInternalName(), BigInteger.valueOf(4L));
put(TABLE_8.getColumns().get(1).getInternalName(), 11.9);
put(TABLE_8.getColumns().get(2).getInternalName(), null);
}},
new HashMap<>() {{
put(TABLE_8.getColumns().get(0).getInternalName(), BigInteger.valueOf(5L));
put(TABLE_8.getColumns().get(1).getInternalName(), 12.3);
put(TABLE_8.getColumns().get(2).getInternalName(), null);
}},
new HashMap<>() {{
put(TABLE_8.getColumns().get(0).getInternalName(), BigInteger.valueOf(6L));
put(TABLE_8.getColumns().get(1).getInternalName(), 23.1);
put(TABLE_8.getColumns().get(2).getInternalName(), null);
}}
));
@SuppressWarnings("java:S3599")
public static final TableStatisticDto TABLE_8_STATISTIC_DTO = TableStatisticDto.builder()
.columns(new LinkedList<>(List.of(ColumnStatisticDto.builder()
.name(TABLE_8.getColumns().get(1).getInternalName())
.min(BigDecimal.valueOf(11.2))
.max(BigDecimal.valueOf(23.1))
.mean(BigDecimal.valueOf(13.5333))
.median(BigDecimal.valueOf(11.4))
.stdDev(BigDecimal.valueOf(4.2952))
.build())))
.build();
public static final List<Map<String, Object>> QUERY_4_RESULT_DTO = new LinkedList<>(List.of(
new HashMap<>() {{
put("id", BigInteger.valueOf(1L));
put("value", 11.2);
}}, new HashMap<>() {{
put("id", BigInteger.valueOf(2L));
put("value", 11.3);
}}, new HashMap<>() {{
put("id", BigInteger.valueOf(3L));
put("value", 11.4);
}}, new HashMap<>() {{
put("id", BigInteger.valueOf(4L));
put("value", 11.9);
}}, new HashMap<>() {{
put("id", BigInteger.valueOf(5L));
put("value", 12.3);
}}, new HashMap<>() {{
put("id", BigInteger.valueOf(6L));
put("value", 23.1);
}}));
public static final List<Map<String, Object>> QUERY_5_RESULT_DTO = new LinkedList<>(List.of(
Map.of("id", BigInteger.valueOf(1L), "value", 11.2),
Map.of("id", BigInteger.valueOf(2L), "value", 11.3),
Map.of("id", BigInteger.valueOf(3L), "value", 11.4),
Map.of("id", BigInteger.valueOf(4L), "value", 11.9),
Map.of("id", BigInteger.valueOf(5L), "value", 12.3),
Map.of("id", BigInteger.valueOf(6L), "value", 23.1)
));
public static final Long VIEW_1_DATA_COUNT = 3L;
public static final List<Map<String, Object>> VIEW_1_DATA_DTO = new LinkedList<>(List.of(
new HashMap<>() {{
put("location", "Albury");
put("lat", -36.0653583);
put("lng", 146.9112214);
}},
new HashMap<>() {{
put("location", "Sydney");
put("lat", -33.847927);
put("lng", 150.6517942);
}},
new HashMap<>() {{
put("location", "Vienna");
put("lat", null);
put("lng", null);
}}
));
public static final Long QUERY_1_RESULT_ID = 1L;
public static final List<Map<String, Object>> QUERY_1_RESULT_DTO = new LinkedList<>(List.of(
new HashMap<>() {{
put("location", "Albury");
put("lat", -36.0653583);
put("lng", 146.9112214);
}}, new HashMap<>() {{
put("location", "Sydney");
put("lat", -33.847927);
put("lng", 150.6517942);
}}));
public static final String LICENSE_1_IDENTIFIER = "MIT";
public static final String LICENSE_1_URI = "https://opensource.org/license/mit/";
public static final License LICENSE_1 = License.builder()
.identifier(LICENSE_1_IDENTIFIER)
.uri(LICENSE_1_URI)
.build();
public static final LicenseDto LICENSE_1_DTO = LicenseDto.builder()
.identifier(LICENSE_1_IDENTIFIER)
.uri(LICENSE_1_URI)
.build();
public static final String VIRTUAL_HOST_NAME = "fda";
public static final String VIRTUAL_HOST_DESCRIPTION = "FAIR Data Austria";
public static final String VIRTUAL_HOST_TAGS = "";
public static final CreateVirtualHostDto VIRTUAL_HOST_CREATE_DTO = CreateVirtualHostDto.builder()
.name(VIRTUAL_HOST_NAME)
.description(VIRTUAL_HOST_DESCRIPTION)
.tags(VIRTUAL_HOST_TAGS)
.build();
public static final ExchangeUpdatePermissionsDto VIRTUAL_HOST_EXCHANGE_UPDATE_DTO = ExchangeUpdatePermissionsDto.builder()
.exchange(DATABASE_1.getExchangeName())
.read(".*")
.write(".*")
.build();
public static final GrantVirtualHostPermissionsDto VIRTUAL_HOST_GRANT_DTO = GrantVirtualHostPermissionsDto.builder()
.read(".*")
.write(".*")
.configure(".*")
.build();
public static final UUID BANNER_MESSAGE_1_ID = UUID.fromString("81cf09b7-0d86-44ad-be8e-a407e7d114e1");
public static final String BANNER_MESSAGE_1_MESSAGE = "Next maintenance in 7 days!";
public static final BannerMessageType BANNER_MESSAGE_1_TYPE = BannerMessageType.INFO;
public static final BannerMessageTypeDto BANNER_MESSAGE_1_TYPE_DTO = BannerMessageTypeDto.INFO;
public static final Instant BANNER_MESSAGE_1_START = Instant.ofEpochSecond(1684577786L) /* 2022-12-23 22:00:00 (UTC) */;
public static final Instant BANNER_MESSAGE_1_END = null;
public static final BannerMessage BANNER_MESSAGE_1 = BannerMessage.builder()
.id(BANNER_MESSAGE_1_ID)
.message(BANNER_MESSAGE_1_MESSAGE)
.type(BANNER_MESSAGE_1_TYPE)
.displayStart(BANNER_MESSAGE_1_START)
.displayEnd(BANNER_MESSAGE_1_END)
.build();
public static final BannerMessageDto BANNER_MESSAGE_1_DTO = BannerMessageDto.builder()
.id(BANNER_MESSAGE_1_ID)
.message(BANNER_MESSAGE_1_MESSAGE)
.type(BANNER_MESSAGE_1_TYPE_DTO)
.displayStart(BANNER_MESSAGE_1_START)
.displayEnd(BANNER_MESSAGE_1_END)
.build();
public static final BannerMessageCreateDto BANNER_MESSAGE_1_CREATE_DTO = BannerMessageCreateDto.builder()
.message(BANNER_MESSAGE_1_MESSAGE)
.type(BANNER_MESSAGE_1_TYPE_DTO)
.displayStart(BANNER_MESSAGE_1_START)
.displayEnd(BANNER_MESSAGE_1_END)
.build();
public static final BannerMessageUpdateDto BANNER_MESSAGE_1_UPDATE_DTO = BannerMessageUpdateDto.builder()
.message(BANNER_MESSAGE_1_MESSAGE)
.type(BannerMessageTypeDto.WARNING)
.displayStart(BANNER_MESSAGE_1_START)
.displayEnd(BANNER_MESSAGE_1_END)
.build();
public static final UUID BANNER_MESSAGE_2_ID = UUID.fromString("1e7e2c03-e2c6-46b8-9fdc-6668ef055d99");
public static final String BANNER_MESSAGE_2_MESSAGE = "No operation on Christmas 2022!";
public static final BannerMessageType BANNER_MESSAGE_2_TYPE = BannerMessageType.ERROR;
public static final BannerMessageTypeDto BANNER_MESSAGE_2_TYPE_DTO = BannerMessageTypeDto.ERROR;
public static final Instant BANNER_MESSAGE_2_START = Instant.ofEpochSecond(1671836400L) /* 2022-12-23 22:00:00 (UTC) */;
public static final Instant BANNER_MESSAGE_2_END = Instant.ofEpochSecond(1672009200L) /* 2022-12-25 22:00:00 (UTC) */;
public static final BannerMessage BANNER_MESSAGE_2 = BannerMessage.builder()
.id(BANNER_MESSAGE_2_ID)
.message(BANNER_MESSAGE_2_MESSAGE)
.type(BANNER_MESSAGE_2_TYPE)
.displayStart(BANNER_MESSAGE_2_START)
.displayEnd(BANNER_MESSAGE_2_END)
.build();
public static final BannerMessageCreateDto BANNER_MESSAGE_2_CREATE_DTO = BannerMessageCreateDto.builder()
.message(BANNER_MESSAGE_2_MESSAGE)
.type(BANNER_MESSAGE_2_TYPE_DTO)
.displayStart(BANNER_MESSAGE_2_START)
.displayEnd(BANNER_MESSAGE_2_END)
.build();
public static final ExportResourceDto EXPORT_RESOURCE_DTO = ExportResourceDto.builder()
.filename("68b329da9893e34099c7d8ad5cb9c940")
.resource(new InputStreamResource(InputStream.nullInputStream()))
.build();
}
{
"id" : "8cabc011-4bdf-44d4-9d33-b2648e2ddbf1",
"uri" : "http://www.wikidata.org/entity/Q25257",
"name" : "precipitation"
}
\ No newline at end of file
{
"id" : "c5cf9914-15c1-4813-af11-eb2a070d59a9",
"uri" : "http://www.wikidata.org/entity/Q29032648",
"name" : "FAIR data",
"description" : "data compliant with the terms of the FAIR Data Principles"
}
\ No newline at end of file
{
"id" : "7ddb7e87-b965-43a2-9a24-4fa406d998f4",
"name" : "u01",
"internalName" : "dbrepo-userdb-u01",
"host" : "localhost",
"port" : 3308,
"uiHost" : "localhost",
"uiPort" : 3306,
"quota" : 4,
"uiAdditionalFlags" : "?sslMode=disable",
"image" : {
"id" : "e5449ade-acc1-4ba4-8858-e3496cdecd9c",
"name" : "mariadb",
"registry" : "docker.io",
"version" : "11.1.3",
"driverClass" : "org.mariadb.jdbc.Driver",
"dialect" : "org.hibernate.dialect.MariaDBDialect",
"jdbcMethod" : "mariadb",
"defaultPort" : 3306,
"isDefault" : true,
"operators" : [ ]
},
"created" : "2023-02-26T08:20:29.000Z",
"privilegedUsername" : "root",
"privilegedPassword" : "dbrepo"
}
\ No newline at end of file
{
"id" : "1731c7d2-8bd1-4392-85bc-18a3be99e01d",
"name" : "u03",
"internalName" : "dbrepo-userdb-u03",
"host" : "localhost",
"port" : 3310,
"quota" : 20,
"databases" : [ ],
"image" : {
"id" : "e5449ade-acc1-4ba4-8858-e3496cdecd9c",
"name" : "mariadb",
"registry" : "docker.io",
"version" : "11.1.3",
"driverClass" : "org.mariadb.jdbc.Driver",
"dialect" : "org.hibernate.dialect.MariaDBDialect",
"jdbcMethod" : "mariadb",
"defaultPort" : 3306,
"isDefault" : true,
"operators" : [ ]
},
"created" : "2023-02-26T08:21:12.000Z",
"privilegedUsername" : "root",
"privilegedPassword" : "dbrepo"
}
\ No newline at end of file
{
"id" : "67aee75c-791c-410b-abbb-175c11ddd252",
"name" : "u04",
"internalName" : "dbrepo-userdb-u04",
"host" : "localhost",
"port" : 3311,
"quota" : 0,
"image" : {
"id" : "e5449ade-acc1-4ba4-8858-e3496cdecd9c",
"name" : "mariadb",
"registry" : "docker.io",
"version" : "11.1.3",
"driverClass" : "org.mariadb.jdbc.Driver",
"dialect" : "org.hibernate.dialect.MariaDBDialect",
"jdbcMethod" : "mariadb",
"defaultPort" : 3306,
"isDefault" : true,
"operators" : [ ]
},
"created" : "2023-02-26T08:21:28.000Z",
"privilegedUsername" : "root",
"privilegedPassword" : "dbrepo"
}
\ No newline at end of file
{
"id" : "67aee75c-791c-410b-abbb-175c11ddd252",
"name" : "u04",
"internalName" : "dbrepo-userdb-u04",
"host" : "localhost",
"port" : 3311,
"quota" : 0,
"image" : {
"id" : "e5449ade-acc1-4ba4-8858-e3496cdecd9c",
"name" : "mariadb",
"registry" : "docker.io",
"version" : "11.1.3",
"driverClass" : "org.mariadb.jdbc.Driver",
"dialect" : "org.hibernate.dialect.MariaDBDialect",
"jdbcMethod" : "mariadb",
"defaultPort" : 3306,
"isDefault" : true,
"operators" : [ ]
},
"created" : "2023-02-26T08:21:28.000Z",
"privilegedUsername" : "root",
"privilegedPassword" : "dbrepo"
}
\ No newline at end of file
{
"id" : "b3bcb5bf-4f88-40e2-9726-9b0d2ee2b425",
"dashboardUid" : "2c7b6aeae843e41cf75b",
"ownedBy" : "cd5bab0d-7799-4069-85fb-c5d738572a0b",
"owner" : {
"id" : "cd5bab0d-7799-4069-85fb-c5d738572a0b",
"username" : "junit1",
"firstname" : "John",
"lastname" : "Doe",
"orcid" : "https://orcid.org/0000-0003-4216-302X",
"affiliation" : "TU Graz",
"language" : "en",
"theme" : "light"
},
"cid" : "7ddb7e87-b965-43a2-9a24-4fa406d998f4",
"container" : {
"id" : "7ddb7e87-b965-43a2-9a24-4fa406d998f4",
"name" : "u01",
"internalName" : "dbrepo-userdb-u01",
"host" : "localhost",
"port" : 3308,
"uiHost" : "localhost",
"uiPort" : 3306,
"quota" : 4,
"uiAdditionalFlags" : "?sslMode=disable",
"image" : {
"id" : "e5449ade-acc1-4ba4-8858-e3496cdecd9c",
"name" : "mariadb",
"registry" : "docker.io",
"version" : "11.1.3",
"driverClass" : "org.mariadb.jdbc.Driver",
"dialect" : "org.hibernate.dialect.MariaDBDialect",
"jdbcMethod" : "mariadb",
"defaultPort" : 3306,
"isDefault" : true,
"operators" : [ ]
},
"created" : "2023-02-26T08:20:29.000Z",
"privilegedUsername" : "root",
"privilegedPassword" : "dbrepo"
},
"name" : "Weather",
"internalName" : "weather",
"exchangeName" : "dbrepo",
"description" : "Weather in Australia",
"contactPerson" : "cd5bab0d-7799-4069-85fb-c5d738572a0b",
"contact" : {
"id" : "cd5bab0d-7799-4069-85fb-c5d738572a0b",
"username" : "junit1",
"firstname" : "John",
"lastname" : "Doe",
"orcid" : "https://orcid.org/0000-0003-4216-302X",
"affiliation" : "TU Graz",
"language" : "en",
"theme" : "light"
},
"identifiers" : [ ],
"subsets" : [ ],
"tables" : [ ],
"views" : [ ],
"accesses" : [ {
"user" : {
"id" : "cd5bab0d-7799-4069-85fb-c5d738572a0b",
"username" : "junit1",
"name" : "John Doe",
"orcid" : "https://orcid.org/0000-0003-4216-302X",
"qualified_name" : "John Doe — @junit1",
"given_name" : "John",
"family_name" : "Doe"
},
"type" : "read"
}, {
"user" : {
"id" : "eeb9a51b-4cd8-4039-90bf-e24f17372f7c",
"username" : "junit2",
"name" : "Jane Doe",
"orcid" : "https://orcid.org/0000-0002-9272-6225",
"qualified_name" : "Jane Doe — @junit2",
"given_name" : "Jane",
"family_name" : "Doe"
},
"type" : "write_own"
}, {
"user" : {
"id" : "7b080e33-d8db-4276-9d53-47208e657006",
"username" : "junit3",
"name" : "System System",
"qualified_name" : "System System — @junit3",
"given_name" : "System",
"family_name" : "System"
},
"type" : "write_all"
} ],
"isPublic" : false,
"isSchemaPublic" : false,
"isDashboardEnabled" : false,
"image" : "AQIDBAUGBwgJCg==",
"created" : "2023-02-26T08:22:21.000Z",
"lastModified" : "2023-02-26T08:22:21Z"
}
\ No newline at end of file
{
"id" : "dd9dfee2-9fbd-46b0-92d5-98f0f8866ffe",
"dashboardUid" : "7779bc9207daeae7e5a7",
"ownedBy" : "eeb9a51b-4cd8-4039-90bf-e24f17372f7c",
"owner" : {
"id" : "eeb9a51b-4cd8-4039-90bf-e24f17372f7c",
"username" : "junit2",
"firstname" : "Jane",
"lastname" : "Doe",
"orcid" : "https://orcid.org/0000-0002-9272-6225",
"affiliation" : "TU Wien",
"language" : "de",
"theme" : "light"
},
"cid" : "7ddb7e87-b965-43a2-9a24-4fa406d998f4",
"container" : {
"id" : "7ddb7e87-b965-43a2-9a24-4fa406d998f4",
"name" : "u01",
"internalName" : "dbrepo-userdb-u01",
"host" : "localhost",
"port" : 3308,
"uiHost" : "localhost",
"uiPort" : 3306,
"quota" : 4,
"uiAdditionalFlags" : "?sslMode=disable",
"image" : {
"id" : "e5449ade-acc1-4ba4-8858-e3496cdecd9c",
"name" : "mariadb",
"registry" : "docker.io",
"version" : "11.1.3",
"driverClass" : "org.mariadb.jdbc.Driver",
"dialect" : "org.hibernate.dialect.MariaDBDialect",
"jdbcMethod" : "mariadb",
"defaultPort" : 3306,
"isDefault" : true,
"operators" : [ ]
},
"created" : "2023-02-26T08:20:29.000Z",
"privilegedUsername" : "root",
"privilegedPassword" : "dbrepo"
},
"name" : "Zoo",
"internalName" : "zoo",
"exchangeName" : "dbrepo",
"description" : "Zoo data",
"contactPerson" : "eeb9a51b-4cd8-4039-90bf-e24f17372f7c",
"contact" : {
"id" : "eeb9a51b-4cd8-4039-90bf-e24f17372f7c",
"username" : "junit2",
"firstname" : "Jane",
"lastname" : "Doe",
"orcid" : "https://orcid.org/0000-0002-9272-6225",
"affiliation" : "TU Wien",
"language" : "de",
"theme" : "light"
},
"identifiers" : [ ],
"tables" : [ ],
"views" : [ ],
"accesses" : [ {
"user" : {
"id" : "eeb9a51b-4cd8-4039-90bf-e24f17372f7c",
"username" : "junit2",
"name" : "Jane Doe",
"orcid" : "https://orcid.org/0000-0002-9272-6225",
"qualified_name" : "Jane Doe — @junit2",
"given_name" : "Jane",
"family_name" : "Doe"
},
"type" : "write_all"
}, {
"user" : {
"id" : "7b080e33-d8db-4276-9d53-47208e657006",
"username" : "junit3",
"name" : "System System",
"qualified_name" : "System System — @junit3",
"given_name" : "System",
"family_name" : "System"
},
"type" : "read"
} ],
"isPublic" : false,
"isSchemaPublic" : true,
"isDashboardEnabled" : true,
"created" : "2023-02-26T08:22:52.000Z",
"lastModified" : "2023-02-26T08:22:52Z"
}
\ No newline at end of file
{
"id" : "9d8cb9a9-9468-4801-a2e0-2dac8bc67c31",
"dashboardUid" : "18d25f581fb272ac260b",
"ownedBy" : "7b080e33-d8db-4276-9d53-47208e657006",
"owner" : {
"id" : "7b080e33-d8db-4276-9d53-47208e657006",
"username" : "junit3",
"firstname" : "System",
"lastname" : "System",
"affiliation" : "TU Wien",
"theme" : "light"
},
"cid" : "7ddb7e87-b965-43a2-9a24-4fa406d998f4",
"container" : {
"id" : "7ddb7e87-b965-43a2-9a24-4fa406d998f4",
"name" : "u01",
"internalName" : "dbrepo-userdb-u01",
"host" : "localhost",
"port" : 3308,
"uiHost" : "localhost",
"uiPort" : 3306,
"quota" : 4,
"uiAdditionalFlags" : "?sslMode=disable",
"image" : {
"id" : "e5449ade-acc1-4ba4-8858-e3496cdecd9c",
"name" : "mariadb",
"registry" : "docker.io",
"version" : "11.1.3",
"driverClass" : "org.mariadb.jdbc.Driver",
"dialect" : "org.hibernate.dialect.MariaDBDialect",
"jdbcMethod" : "mariadb",
"defaultPort" : 3306,
"isDefault" : true,
"operators" : [ ]
},
"created" : "2023-02-26T08:20:29.000Z",
"privilegedUsername" : "root",
"privilegedPassword" : "dbrepo"
},
"name" : "Musicology",
"internalName" : "musicology",
"exchangeName" : "dbrepo",
"description" : "Musicology data",
"contactPerson" : "7b080e33-d8db-4276-9d53-47208e657006",
"contact" : {
"id" : "7b080e33-d8db-4276-9d53-47208e657006",
"username" : "junit3",
"firstname" : "System",
"lastname" : "System",
"affiliation" : "TU Wien",
"theme" : "light"
},
"identifiers" : [ ],
"tables" : [ ],
"views" : [ ],
"accesses" : [ {
"user" : {
"id" : "cd5bab0d-7799-4069-85fb-c5d738572a0b",
"username" : "junit1",
"name" : "John Doe",
"orcid" : "https://orcid.org/0000-0003-4216-302X",
"qualified_name" : "John Doe — @junit1",
"given_name" : "John",
"family_name" : "Doe"
},
"type" : "write_all"
} ],
"isPublic" : true,
"isSchemaPublic" : false,
"isDashboardEnabled" : true,
"created" : "2023-02-26T08:23:12.000Z",
"lastModified" : "2023-02-26T08:23:12Z"
}
\ No newline at end of file
{
"id" : "c503d7f3-5952-4d97-b26a-da86bea4c20d",
"dashboardUid" : "456a3760f69821a0f944",
"ownedBy" : "791d58c5-bfab-4520-b4fc-b44d4ab9feb0",
"owner" : {
"id" : "791d58c5-bfab-4520-b4fc-b44d4ab9feb0",
"username" : "junit4",
"firstname" : "JUnit",
"lastname" : "4",
"affiliation" : "TU Wien",
"theme" : "light"
},
"cid" : "67aee75c-791c-410b-abbb-175c11ddd252",
"container" : {
"id" : "67aee75c-791c-410b-abbb-175c11ddd252",
"name" : "u04",
"internalName" : "dbrepo-userdb-u04",
"host" : "localhost",
"port" : 3311,
"quota" : 0,
"image" : {
"id" : "e5449ade-acc1-4ba4-8858-e3496cdecd9c",
"name" : "mariadb",
"registry" : "docker.io",
"version" : "11.1.3",
"driverClass" : "org.mariadb.jdbc.Driver",
"dialect" : "org.hibernate.dialect.MariaDBDialect",
"jdbcMethod" : "mariadb",
"defaultPort" : 3306,
"isDefault" : true,
"operators" : [ ]
},
"created" : "2023-02-26T08:21:28.000Z",
"privilegedUsername" : "root",
"privilegedPassword" : "dbrepo"
},
"name" : "Weather AT",
"internalName" : "weather_at",
"exchangeName" : "dbrepo",
"description" : "Weather data",
"contactPerson" : "791d58c5-bfab-4520-b4fc-b44d4ab9feb0",
"contact" : {
"id" : "791d58c5-bfab-4520-b4fc-b44d4ab9feb0",
"username" : "junit4",
"firstname" : "JUnit",
"lastname" : "4",
"affiliation" : "TU Wien",
"theme" : "light"
},
"identifiers" : [ ],
"tables" : [ ],
"views" : [ ],
"isPublic" : true,
"isSchemaPublic" : true,
"isDashboardEnabled" : true,
"created" : "2023-02-26T08:23:33.000Z",
"lastModified" : "2023-02-26T08:23:33Z"
}
\ No newline at end of file
{
"id" : "679a83f2-ef23-4b4b-98f7-ad77b9d68733",
"queryId" : "60494137-f000-459e-acd3-4fcadbdf14ca",
"creators" : [ {
"id" : "667cd1d6-4f94-4808-b5cb-12e5ec0788d8",
"firstname" : "Max",
"lastname" : "Mustermann",
"creatorName" : "Mustermann, Max",
"nameType" : "PERSONAL",
"nameIdentifier" : "00000-00000-00000",
"nameIdentifierScheme" : "ORCID",
"affiliation" : "TU Graz",
"affiliationIdentifier" : "https://ror.org/04wn28048",
"affiliationIdentifierScheme" : "ROR",
"affiliationIdentifierSchemeUri" : "https://ror.org/",
"apaName" : "M., Mustermann",
"bibtexName" : "Mustermann, Max",
"ieeeName" : "M. Mustermann"
} ],
"publisher" : "Austrian Government",
"status" : "PUBLISHED",
"titles" : [ {
"id" : "3df6b286-9bd2-4ae3-b8f4-29c217544bef",
"title" : "Austrian weather data",
"language" : "EN"
}, {
"id" : "903a7e5b-8014-4b8a-b8fd-44f477880905",
"title" : "Österreichische Wetterdaten",
"titleType" : "TRANSLATED_TITLE",
"language" : "EN"
} ],
"descriptions" : [ {
"id" : "1c438756-93f0-4797-983c-175a17e18c2c",
"description" : "Selecting all from the weather Austrian table",
"language" : "EN"
} ],
"funders" : [ {
"id" : "8deb273d-6dd6-407d-970a-01534035ac01",
"funderName" : "European Commission",
"funderIdentifier" : "https://doi.org/10.13039/501100000780",
"funderIdentifierType" : "CROSSREF_FUNDER_ID",
"awardTitle" : "Institutionalizing global genetic-resource commons. Global Strategies for accessing and using essential public knowledge assets in the life science"
} ],
"licenses" : [ {
"identifier" : "MIT",
"uri" : "https://opensource.org/license/mit/"
} ],
"type" : "DATABASE",
"query" : "SELECT `id`, `date`, `location`, `mintemp`, `rainfall` FROM `weather_aus` ORDER BY id ASC",
"queryNormalized" : "SELECT `id`, `date`, `location`, `mintemp`, `rainfall` FROM `weather_aus` ORDER BY id ASC",
"queryHash" : "a3b8ac39e38167d14cf3a9c20a69e4b6954d049525390b973a2c23064953a992",
"resultHash" : "8358c8ade4849d2094ab5bb29127afdae57e6bb5acb1db7af603813d406c467a",
"execution" : "2018-11-07T10:59:12.000Z",
"resultNumber" : 2,
"publicationYear" : 2022,
"publicationMonth" : 5,
"doi" : "10.12345/183",
"ownedBy" : "cd5bab0d-7799-4069-85fb-c5d738572a0b",
"owner" : {
"id" : "cd5bab0d-7799-4069-85fb-c5d738572a0b",
"keycloakId" : "cd5bab0d-7799-4069-85fb-c5d738572a0b",
"username" : "junit1",
"firstname" : "John",
"lastname" : "Doe",
"orcid" : "https://orcid.org/0000-0003-4216-302X",
"affiliation" : "TU Graz",
"language" : "en",
"theme" : "light",
"mariadbPassword" : "*440BA4FD1A87A0999647DB67C0EE258198B247BA",
"isInternal" : false
},
"created" : "2022-01-07T20:45:52Z",
"lastModified" : "2018-11-07T10:59:12Z"
}
\ No newline at end of file
{
"id" : "fdb95f60-48e7-4e74-8122-d3c8d079c889",
"queryId" : "60494137-f000-459e-acd3-4fcadbdf14ca",
"creators" : [ ],
"publisher" : "Swedish Government",
"status" : "PUBLISHED",
"titles" : [ ],
"descriptions" : [ ],
"licenses" : [ {
"identifier" : "MIT",
"uri" : "https://opensource.org/license/mit/"
} ],
"type" : "SUBSET",
"query" : "SELECT `id`, `date`, `location`, `mintemp`, `rainfall` FROM `weather_aus` ORDER BY id ASC",
"queryNormalized" : "SELECT `id`, `date`, `location`, `mintemp`, `rainfall` FROM `weather_aus` ORDER BY id ASC",
"queryHash" : "a3b8ac39e38167d14cf3a9c20a69e4b6954d049525390b973a2c23064953a992",
"resultHash" : "8358c8ade4849d2094ab5bb29127afdae57e6bb5acb1db7af603813d406c467a",
"execution" : "2019-03-03T04:45:52.000Z",
"resultNumber" : 2,
"publicationYear" : 2023,
"publicationMonth" : 7,
"publicationDay" : 10,
"ownedBy" : "cd5bab0d-7799-4069-85fb-c5d738572a0b",
"owner" : {
"id" : "cd5bab0d-7799-4069-85fb-c5d738572a0b",
"keycloakId" : "cd5bab0d-7799-4069-85fb-c5d738572a0b",
"username" : "junit1",
"firstname" : "John",
"lastname" : "Doe",
"orcid" : "https://orcid.org/0000-0003-4216-302X",
"affiliation" : "TU Graz",
"language" : "en",
"theme" : "light",
"mariadbPassword" : "*440BA4FD1A87A0999647DB67C0EE258198B247BA",
"isInternal" : false
},
"created" : "2022-05-03T14:32:32Z",
"lastModified" : "2019-03-03T04:45:52Z"
}
\ No newline at end of file
{
"id" : "e2d831c2-3694-4fdc-8c48-7a7e94b73c43",
"viewId" : "7d712cf7-78c7-4a47-90b0-d6b9f7f19b70",
"creators" : [ ],
"publisher" : "Polish Government",
"status" : "PUBLISHED",
"titles" : [ ],
"descriptions" : [ ],
"licenses" : [ {
"identifier" : "MIT",
"uri" : "https://opensource.org/license/mit/"
} ],
"type" : "VIEW",
"query" : "SELECT `location`, `lat`, `lng` FROM `weather_location`",
"queryNormalized" : "SELECT `location`, `lat`, `lng` FROM `weather_location`",
"queryHash" : "dc81a6877c7c51a6a6f406e1fc2a255e44a0d49a20548596e0d583c3eb849c23",
"execution" : "2019-03-03T04:45:52.000Z",
"publicationYear" : 2023,
"publicationMonth" : 7,
"publicationDay" : 10,
"ownedBy" : "cd5bab0d-7799-4069-85fb-c5d738572a0b",
"owner" : {
"id" : "cd5bab0d-7799-4069-85fb-c5d738572a0b",
"keycloakId" : "cd5bab0d-7799-4069-85fb-c5d738572a0b",
"username" : "junit1",
"firstname" : "John",
"lastname" : "Doe",
"orcid" : "https://orcid.org/0000-0003-4216-302X",
"affiliation" : "TU Graz",
"language" : "en",
"theme" : "light",
"mariadbPassword" : "*440BA4FD1A87A0999647DB67C0EE258198B247BA",
"isInternal" : false
},
"created" : "2022-05-03T14:32:32Z",
"lastModified" : "2019-03-03T04:45:52Z"
}
\ No newline at end of file
{
"id" : "3bd69bb8-f7e3-48e4-9717-823787e7ba23",
"tableId" : "666d0b6b-f017-4f7c-80d8-a47174d8b539",
"creators" : [ ],
"publisher" : "Example Publisher",
"status" : "PUBLISHED",
"titles" : [ ],
"descriptions" : [ ],
"licenses" : [ {
"identifier" : "MIT",
"uri" : "https://opensource.org/license/mit/"
} ],
"type" : "TABLE",
"execution" : "2019-03-03T04:45:52.000Z",
"publicationYear" : 2023,
"publicationMonth" : 7,
"publicationDay" : 10,
"ownedBy" : "cd5bab0d-7799-4069-85fb-c5d738572a0b",
"owner" : {
"id" : "cd5bab0d-7799-4069-85fb-c5d738572a0b",
"keycloakId" : "cd5bab0d-7799-4069-85fb-c5d738572a0b",
"username" : "junit1",
"firstname" : "John",
"lastname" : "Doe",
"orcid" : "https://orcid.org/0000-0003-4216-302X",
"affiliation" : "TU Graz",
"language" : "en",
"theme" : "light",
"mariadbPassword" : "*440BA4FD1A87A0999647DB67C0EE258198B247BA",
"isInternal" : false
},
"created" : "2025-07-04T00:19:12Z",
"lastModified" : "2019-03-03T04:45:52Z"
}
\ No newline at end of file
{
"id" : "e05bb4c9-ed26-48c9-bd91-5c48a93a04bd",
"queryId" : "4e0ac92a-7cb3-4222-9b85-0498c73e0afd",
"creators" : [ {
"id" : "6844b684-93e4-47d2-a615-5939127fdafe",
"firstname" : "Max",
"lastname" : "Mustermann",
"creatorName" : "Mustermann, Max",
"nameIdentifier" : "00000-00000-00000",
"nameIdentifierScheme" : "ORCID",
"affiliation" : "TU Graz",
"affiliationIdentifier" : "https://ror.org/04wn28048",
"affiliationIdentifierScheme" : "ROR",
"affiliationIdentifierSchemeUri" : "https://ror.org/",
"apaName" : "M., Mustermann",
"bibtexName" : "Mustermann, Max",
"ieeeName" : "M. Mustermann"
}, {
"id" : "14943ad6-a935-49f5-b07e-f9eb789b8604",
"firstname" : "Martina",
"lastname" : "Mustermann",
"creatorName" : "Mustermann, Martina",
"nameIdentifier" : "00000-00000-00000",
"nameIdentifierScheme" : "ORCID",
"affiliation" : "TU Wien",
"apaName" : "M., Mustermann",
"bibtexName" : "Mustermann, Martina",
"ieeeName" : "M. Mustermann"
} ],
"publisher" : "Australian Government",
"status" : "DRAFT",
"titles" : [ {
"id" : "1a0ae9c2-61c6-44f8-b886-26a4f4dabc52",
"title" : "Australische Wetterdaten",
"titleType" : "SUBTITLE",
"language" : "DE"
} ],
"descriptions" : [ {
"id" : "ab49bdca-f373-4823-9947-2a0cbfa88350",
"description" : "Alle Wetterdaten in Australien",
"descriptionType" : "ABSTRACT",
"language" : "DE"
} ],
"type" : "SUBSET",
"query" : "SELECT `location` FROM `weather_aus`",
"queryNormalized" : "SELECT `location` FROM `weather_aus`",
"queryHash" : "a2d2dd94ebc7653bb5a3b55dd8ed5e91d3d13c225c6855a1eb4eb7ca14c36ced",
"resultHash" : "ff3f7cbe1b96d296957f6e39e55b8b1b577fa3d205d4795af99594cfd20cb80d",
"execution" : "2018-11-07T10:59:12.000Z",
"resultNumber" : 2,
"publicationYear" : 2022,
"publicationMonth" : 7,
"publicationDay" : 14,
"doi" : "10.12345/13/50BBFCFE08A12",
"ownedBy" : "eeb9a51b-4cd8-4039-90bf-e24f17372f7c",
"owner" : {
"id" : "eeb9a51b-4cd8-4039-90bf-e24f17372f7c",
"keycloakId" : "eeb9a51b-4cd8-4039-90bf-e24f17372f7c",
"username" : "junit2",
"firstname" : "Jane",
"lastname" : "Doe",
"orcid" : "https://orcid.org/0000-0002-9272-6225",
"affiliation" : "TU Wien",
"language" : "de",
"theme" : "light",
"mariadbPassword" : "*9AA70A8B0EEFAFCB5BED5BDEF6EE264D5DA915AE",
"isInternal" : false
},
"created" : "2022-01-07T20:45:52Z",
"lastModified" : "2018-11-07T10:59:12Z"
}
\ No newline at end of file
{
"id" : "a244204d-9671-42a0-be07-9b14402238fd",
"queryId" : "a9849020-45a7-40a8-9a19-d4ae2b28dd46",
"creators" : [ {
"id" : "f8a52dca-8aec-46c1-b0e1-603dbe6a1a65",
"firstname" : "Max",
"lastname" : "Mustermann",
"creatorName" : "Mustermann, Max",
"nameIdentifier" : "00000-00000-00000",
"nameIdentifierScheme" : "ORCID",
"affiliation" : "TU Graz",
"affiliationIdentifier" : "https://ror.org/04wn28048",
"affiliationIdentifierScheme" : "ROR",
"affiliationIdentifierSchemeUri" : "https://ror.org/",
"apaName" : "M., Mustermann",
"bibtexName" : "Mustermann, Max",
"ieeeName" : "M. Mustermann"
}, {
"id" : "eeae78cb-75a1-42e2-b608-7082e5fbecc6",
"firstname" : "Martina",
"lastname" : "Mustermann",
"creatorName" : "Mustermann, Martina",
"nameIdentifier" : "00000-00000-00000",
"nameIdentifierScheme" : "ORCID",
"affiliation" : "TU Wien",
"apaName" : "M., Mustermann",
"bibtexName" : "Mustermann, Martina",
"ieeeName" : "M. Mustermann"
}, {
"id" : "700058f1-6314-4cd1-9c0c-62e75c8f422b",
"firstname" : "Max",
"lastname" : "Mustermann",
"creatorName" : "Mustermann, Max",
"nameIdentifier" : "00000-00000-00000",
"nameIdentifierScheme" : "ORCID",
"affiliation" : "TU Graz",
"affiliationIdentifier" : "https://ror.org/04wn28048",
"affiliationIdentifierScheme" : "ROR",
"affiliationIdentifierSchemeUri" : "https://ror.org/",
"apaName" : "M., Mustermann",
"bibtexName" : "Mustermann, Max",
"ieeeName" : "M. Mustermann"
} ],
"publisher" : "Norwegian Government",
"status" : "PUBLISHED",
"titles" : [ {
"id" : "0449011c-1490-4c8e-b46c-c1f862126aea",
"title" : "Norwegian weather data",
"language" : "EN"
} ],
"descriptions" : [ {
"id" : "aac03bbd-27e6-419d-8118-f996d594f00f",
"description" : "Selecting all from the weather Norwegian table",
"language" : "EN"
} ],
"licenses" : [ {
"identifier" : "MIT",
"uri" : "https://opensource.org/license/mit/"
} ],
"type" : "SUBSET",
"query" : "SELECT `location`, `mintemp` FROM `weather_aus` WHERE `mintemp` > 10",
"queryNormalized" : "SELECT `location`, `mintemp` FROM `weather_aus` WHERE `mintemp` > 10",
"queryHash" : "a3d3dd94ebc7653bb5a3b55dd8ed5e91d3d13c335c6855a1eb4eb7ca14c36ced",
"resultHash" : "ff3f7cbe1b96d396957f6e39e55b8b1b577fa3d305d4795af99594cfd30cb80d",
"execution" : "2018-11-07T10:59:12.000Z",
"resultNumber" : 2,
"publicationYear" : 2022,
"publicationMonth" : 7,
"publicationDay" : 14,
"ownedBy" : "7b080e33-d8db-4276-9d53-47208e657006",
"owner" : {
"id" : "7b080e33-d8db-4276-9d53-47208e657006",
"keycloakId" : "b0108bc3-95aa-4a3f-8868-dc301286aeca",
"username" : "junit3",
"firstname" : "System",
"lastname" : "System",
"affiliation" : "TU Wien",
"theme" : "light",
"mariadbPassword" : "*D65FCA043964B63E849DD6334699ECB065905DA4",
"isInternal" : false
},
"created" : "2022-01-07T20:45:52Z",
"lastModified" : "2018-11-07T10:59:12Z"
}
\ No newline at end of file
{
"id" : "b216ae00-a31d-4ecb-95fb-37eb4da3946f",
"creators" : [ {
"id" : "b899c367-06c7-4f47-8aea-5f15061ee3ee",
"firstname" : "Max",
"lastname" : "Mustermann",
"creatorName" : "Mustermann, Max",
"nameIdentifier" : "00000-00000-00000",
"nameIdentifierScheme" : "ORCID",
"affiliation" : "TU Graz",
"affiliationIdentifier" : "https://ror.org/04wn28048",
"affiliationIdentifierScheme" : "ROR",
"affiliationIdentifierSchemeUri" : "https://ror.org/",
"apaName" : "M., Mustermann",
"bibtexName" : "Mustermann, Max",
"ieeeName" : "M. Mustermann"
} ],
"publisher" : "Swedish Government",
"status" : "DRAFT",
"titles" : [ ],
"descriptions" : [ ],
"funders" : [ ],
"licenses" : [ ],
"type" : "DATABASE",
"execution" : "2018-11-07T10:59:12.000Z",
"resultNumber" : 2,
"publicationYear" : 2022,
"publicationMonth" : 7,
"publicationDay" : 14,
"relatedIdentifiers" : [ ],
"ownedBy" : "791d58c5-bfab-4520-b4fc-b44d4ab9feb0",
"owner" : {
"id" : "791d58c5-bfab-4520-b4fc-b44d4ab9feb0",
"keycloakId" : "25040ad3-6d57-4052-b357-6b4c8a6e7f4d",
"username" : "junit4",
"firstname" : "JUnit",
"lastname" : "4",
"affiliation" : "TU Wien",
"theme" : "light",
"mariadbPassword" : "*C20EF5C6875857DEFA9BE6E9B62DD76AAAE51882",
"isInternal" : false
},
"created" : "2022-01-07T20:45:52Z",
"lastModified" : "2018-11-07T10:59:12Z"
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment