Skip to content

Commit

Permalink
Issue #517
Browse files Browse the repository at this point in the history
Aggiunti test di validazione input nuovoEvento.
  • Loading branch information
pintorig committed Sep 5, 2022
1 parent 4ee85ac commit 24654b6
Show file tree
Hide file tree
Showing 17 changed files with 1,333 additions and 1,236 deletions.
34 changes: 0 additions & 34 deletions jars/client-api-gde/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,6 @@
<!-- Swagger-codegen -->
<openapi.tool.codegen.version>6.0.0</openapi.tool.codegen.version>

<!-- Mpastruct -->
<mapstruct.version>1.5.1.Final</mapstruct.version>

<!-- Lombok version -->
<org.projectlombok.version>1.18.24</org.projectlombok.version>

<!-- Swagger-annotations -->
<swagger.version>2.1.2</swagger.version>
<swagger-annotations.version>1.6.2</swagger-annotations.version>
Expand Down Expand Up @@ -91,18 +85,6 @@
<artifactId>spring-context-support</artifactId>
</dependency>

<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>

<dependency>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct</artifactId>
<version>${mapstruct.version}</version>
</dependency>

<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-annotations</artifactId>
Expand Down Expand Up @@ -144,22 +126,6 @@
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${org.projectlombok.version}</version>
</path>
<path>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct-processor</artifactId>
<version>${mapstruct.version}</version>
</path>
</annotationProcessorPaths>
<compilerArgs>
<arg>-Amapstruct.suppressGeneratorTimestamp=true</arg>
<arg>-Amapstruct.defaultComponentModel=spring</arg>
</compilerArgs>
</configuration>
</plugin>
<plugin>
Expand Down
104 changes: 68 additions & 36 deletions jars/client-api-gde/src/main/resources/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,6 @@ paths:
type: integer
format: int32
responses:
"422":
description: Unprocessable Entity
content:
'*/*':
schema:
$ref: '#/components/schemas/problem'
"404":
description: Not Found
content:
Expand All @@ -165,10 +159,10 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/problem'
"401":
description: Unauthorized
"400":
description: Bad Request
content:
application/json:
'*/*':
schema:
$ref: '#/components/schemas/problem'
"403":
Expand All @@ -183,6 +177,12 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/PagedModel'
"401":
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/problem'
post:
tags:
- eventi
Expand All @@ -196,12 +196,6 @@ paths:
$ref: '#/components/schemas/nuovoEvento'
required: true
responses:
"422":
description: Unprocessable Entity
content:
application/json:
schema:
$ref: '#/components/schemas/problem'
"404":
description: Not Found
content:
Expand All @@ -214,14 +208,8 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/problem'
"201":
description: Evento salvato con successo
content:
'*/*':
schema:
type: object
"401":
description: Unauthorized
"400":
description: Bad Request
content:
application/json:
schema:
Expand All @@ -232,8 +220,20 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/problem'
"400":
description: Bad Request
"201":
description: Evento salvato con successo
content:
'*/*':
schema:
type: object
"422":
description: Unprocessable Entity
content:
application/json:
schema:
$ref: '#/components/schemas/problem'
"401":
description: Unauthorized
content:
application/json:
schema:
Expand All @@ -254,12 +254,6 @@ paths:
type: integer
format: int64
responses:
"422":
description: Unprocessable Entity
content:
'*/*':
schema:
$ref: '#/components/schemas/problem'
"404":
description: Not Found
content:
Expand All @@ -272,10 +266,10 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/problem'
"401":
description: Unauthorized
"400":
description: Bad Request
content:
application/json:
'*/*':
schema:
$ref: '#/components/schemas/problem'
"403":
Expand All @@ -290,6 +284,12 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/evento'
"401":
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/problem'
components:
schemas:
problem:
Expand Down Expand Up @@ -376,6 +376,8 @@ components:
- CLIENT
- SERVER
tipoEvento:
maxLength: 255
minLength: 0
type: string
esito:
type: string
Expand All @@ -390,26 +392,41 @@ components:
type: integer
format: int64
sottotipoEvento:
maxLength: 255
minLength: 0
type: string
sottotipoEsito:
maxLength: 255
minLength: 0
type: string
dettaglioEsito:
type: string
idDominio:
pattern: "(^([0-9]){11}$)"
type: string
iuv:
maxLength: 35
minLength: 0
type: string
ccp:
maxLength: 35
minLength: 0
type: string
idA2A:
pattern: "(^[a-zA-Z0-9\\-_]{1,35}$)"
type: string
idPendenza:
pattern: "(^[a-zA-Z0-9\\-_]{1,35}$)"
type: string
idPagamento:
maxLength: 35
minLength: 0
type: string
datiPagoPA:
$ref: '#/components/schemas/datiPagoPA'
severita:
maximum: 5
minimum: 0
type: integer
format: int32
parametriRichiesta:
Expand All @@ -425,8 +442,6 @@ components:
idRiconciliazione:
type: integer
format: int64
_links:
$ref: '#/components/schemas/Links'
description: Evento da salvare.
Pageable:
type: object
Expand Down Expand Up @@ -507,6 +522,8 @@ components:
- CLIENT
- SERVER
tipoEvento:
maxLength: 255
minLength: 0
type: string
esito:
type: string
Expand All @@ -521,26 +538,41 @@ components:
type: integer
format: int64
sottotipoEvento:
maxLength: 255
minLength: 0
type: string
sottotipoEsito:
maxLength: 255
minLength: 0
type: string
dettaglioEsito:
type: string
idDominio:
pattern: "(^([0-9]){11}$)"
type: string
iuv:
maxLength: 35
minLength: 0
type: string
ccp:
maxLength: 35
minLength: 0
type: string
idA2A:
pattern: "(^[a-zA-Z0-9\\-_]{1,35}$)"
type: string
idPendenza:
pattern: "(^[a-zA-Z0-9\\-_]{1,35}$)"
type: string
idPagamento:
maxLength: 35
minLength: 0
type: string
datiPagoPA:
$ref: '#/components/schemas/datiPagoPA'
severita:
maximum: 5
minimum: 0
type: integer
format: int32
parametriRichiesta:
Expand Down
28 changes: 28 additions & 0 deletions wars/api-gde/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,34 @@
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>


<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
<scope>test</scope>
</dependency>


</dependencies>

Expand Down

This file was deleted.

Loading

0 comments on commit 24654b6

Please sign in to comment.