Skip to content
Snippets Groups Projects
Commit 51c0ae4c authored by Martin Weise's avatar Martin Weise
Browse files

Generate metadata

parent 57c8382a
No related branches found
No related tags found
4 merge requests!277Dev,!275Dev,!270Dev,!269Generate metadata
Showing
with 912 additions and 216 deletions
......@@ -6,12 +6,12 @@
<parent>
<groupId>at.tuwien</groupId>
<artifactId>dbrepo-data-service</artifactId>
<version>1.4.3</version>
<version>1.4.4</version>
</parent>
<artifactId>dbrepo-data-service-querystore</artifactId>
<name>dbrepo-data-service-querystore</name>
<version>1.4.3</version>
<version>1.4.4</version>
<dependencies/>
......
......@@ -6,12 +6,12 @@
<parent>
<groupId>at.tuwien</groupId>
<artifactId>dbrepo-data-service</artifactId>
<version>1.4.3</version>
<version>1.4.4</version>
</parent>
<artifactId>report</artifactId>
<name>dbrepo-data-service-report</name>
<version>1.4.3</version>
<version>1.4.4</version>
<description>
This module is only intended for the pipeline coverage report. See the detailed report in the
respective modules
......
......@@ -6,18 +6,18 @@
<parent>
<groupId>at.tuwien</groupId>
<artifactId>dbrepo-data-service</artifactId>
<version>1.4.3</version>
<version>1.4.4</version>
</parent>
<artifactId>rest-service</artifactId>
<name>dbrepo-data-service-rest-service</name>
<version>1.4.3</version>
<version>1.4.4</version>
<dependencies>
<dependency>
<groupId>at.tuwien</groupId>
<artifactId>services</artifactId>
<version>1.4.3</version>
<version>1.4.4</version>
</dependency>
</dependencies>
......
......@@ -68,3 +68,6 @@ dbrepo:
password: fda
client: dbrepo-client
clientSecret: MUwRc7yfXSJwX8AdRMWaQC3Nep1VjwgG
defaultDateFormatId: 1
defaultTimeFormatId: 4
defaultTimestampFormatId: 3
......@@ -82,3 +82,6 @@ dbrepo:
exchangeName: "${BROKER_EXCHANGE_NAME:dbrepo}"
routingKey: "${BROKER_ROUTING_KEY:#}"
connectionTimeout: ${CONNECTION_TIMEOUT:10000}
defaultDateFormatId: "${DEFAULT_DATE_FORMAT_ID:3}"
defaultTimeFormatId: "${DEFAULT_TIME_FORMAT_ID:4}"
defaultTimestampFormatId: "${DEFAULT_TIMESTAMP_FORMAT_ID:1}"
......@@ -504,7 +504,7 @@ public class SubsetEndpointUnitTest extends AbstractUnitTest {
}
/* test */
final ResponseEntity<List<QueryDto>> response = subsetEndpoint.findAllById(databaseId, null, principal);
final ResponseEntity<List<QueryDto>> response = subsetEndpoint.list(databaseId, null, principal);
assertEquals(HttpStatus.OK, response.getStatusCode());
return response.getBody();
}
......
......@@ -3,6 +3,7 @@ package at.tuwien.mvc;
import at.tuwien.api.error.ApiErrorDto;
import at.tuwien.endpoints.*;
import at.tuwien.test.AbstractUnitTest;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.media.Content;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import lombok.extern.log4j.Log4j2;
......@@ -69,9 +70,10 @@ public class OpenApiEndpointMvcTest extends AbstractUnitTest {
private void generic_openApiDocs(Class<?> endpoint) {
final List<Method> methods = Arrays.stream(endpoint.getMethods())
.filter(m -> m.getDeclaringClass().equals(AccessEndpoint.class))
.filter(m -> m.getDeclaringClass().equals(endpoint))
.toList();
methods.forEach(m -> {
assertNotNull(m.getDeclaredAnnotation(Operation.class).summary());
final List<Class<?>> exceptions = Arrays.stream(m.getExceptionTypes())
.toList();
final List<Class<?>> invalidExceptions = exceptions.stream()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment