Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
jesusBernalBermudez committed Feb 26, 2025
1 parent 2f4aa0d commit f3babba
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
java-version: 21
cache: maven

- name: Build & Unit & IT
- name: Build & Unit & IT & FT
run: mvn -B clean verify

- name: Notify Slack on failure
Expand Down
3 changes: 2 additions & 1 deletion docker-compose-db.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
services:

mysql:
image: mysql:8.4
container_name: mysql-server
Expand All @@ -11,7 +12,6 @@ services:
volumes:
- mysql_data:/var/lib/mysql


postgres:
image: postgres:15.10
container_name: postgres-server
Expand Down Expand Up @@ -50,6 +50,7 @@ volumes:
name: "mongo-config"



# Construir todas las BD
#> docker compose -f docker-compose-db.yml -p databases up -d

Expand Down
5 changes: 3 additions & 2 deletions docker-compose-maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ services:
working_dir: /app
volumes:
- .:/app
- maven-cache:/root/.m2
- maven_cache:/root/.m2
command: ["/bin/bash"]
stdin_open: true
tty: true

volumes:
maven_cache:
maven_cache:
name: "maven-cache"
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<version>2.1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>${project.groupId}.${project.artifactId}</name>
<url>http://github.com/miw-upm/${project.artifactId}</url>

<licenses>
<license>
Expand Down Expand Up @@ -167,7 +168,7 @@
</goals>
<configuration>
<includes>
<include>**/*FT.java</include>
<include>**/*FunctionalTest.java</include>
</includes>
</configuration>
</execution>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package es.upm.miw.devops.rest.http_errors;
package es.upm.miw.devops.rest.exceptionshandler;

import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ControllerAdvice;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package es.upm.miw.devops.rest.http_errors;
package es.upm.miw.devops.rest.exceptionshandler;

public class ErrorMessage {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
@ExtendWith(SpringExtension.class)
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
@ActiveProfiles("test")
class SystemResourceFT {
class SystemResourceFunctionalTest {

@LocalServerPort
private int port;
Expand Down

0 comments on commit f3babba

Please sign in to comment.