Skip to content
Snippets Groups Projects
Commit b38665c9 authored by Tobias Bruns's avatar Tobias Bruns
Browse files

OZG-7510 activate validation

parent a2f59ed4
No related branches found
No related tags found
No related merge requests found
......@@ -62,6 +62,7 @@ public class AggregationMapping {
@NotEmpty
@Singular
@Valid
private List<FieldMapping> mappings;
@Builder
......@@ -70,7 +71,7 @@ public class AggregationMapping {
static class FieldMapping {
@NotBlank
private String sourcePath;
@NotBlank
// @NotBlank //TODO reactivate in OZG-7668
private String targetPath;
}
......
......@@ -84,6 +84,15 @@ class ReportingSettingITCase {
.andExpect(status().isUnprocessableEntity());
}
@Test
@SneakyThrows
@Disabled // TODO OZG-7668
void shouldDenyWhileMissingTargetPath() {
mockMvc.perform(post("/api/configuration/aggregationMappings").with(csrf())
.contentType(MediaType.APPLICATION_JSON).content(TestUtils.loadTextFile("reporting/requestMissingTargetPath.json")))
.andExpect(status().isUnprocessableEntity());
}
@Disabled("is returning 500")
@Test
@SneakyThrows
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment