Compare commits

..

14 commits

Author SHA1 Message Date
Rajbir Singh
0c3784dd72 PMT-4 created AddEmployeeTest
All checks were successful
Quality Check / Validate OAS (push) Successful in 54s
Quality Check / Validate OAS (pull_request) Successful in 1m2s
Quality Check / Linting (push) Successful in 2m7s
Quality Check / Linting (pull_request) Successful in 2m11s
Quality Check / Testing (push) Successful in 2m18s
Quality Check / Static Analysis (push) Successful in 2m24s
Quality Check / Testing (pull_request) Successful in 2m16s
Quality Check / Static Analysis (pull_request) Successful in 2m20s
2024-10-21 12:52:13 +02:00
3a4c3fc21c
PMT-4: Fix Relation and Functions of Allocations
All checks were successful
Quality Check / Validate OAS (push) Successful in 51s
Quality Check / Validate OAS (pull_request) Successful in 1m4s
Quality Check / Linting (push) Successful in 2m3s
Quality Check / Linting (pull_request) Successful in 2m11s
Quality Check / Testing (push) Successful in 2m18s
Quality Check / Testing (pull_request) Successful in 2m15s
Quality Check / Static Analysis (push) Successful in 2m26s
Quality Check / Static Analysis (pull_request) Successful in 2m21s
Signed-off-by: Dominik Säume <Dominik.Saeume@hmmh.de>
2024-10-21 12:37:25 +02:00
Rajbir Singh
f5717076a8 PMT-4 Refactor pmt.yml and addEmployee
All checks were successful
Quality Check / Validate OAS (push) Successful in 55s
Quality Check / Validate OAS (pull_request) Successful in 1m4s
Quality Check / Linting (push) Successful in 2m6s
Quality Check / Linting (pull_request) Successful in 2m11s
Quality Check / Testing (push) Successful in 2m21s
Quality Check / Static Analysis (push) Successful in 2m24s
Quality Check / Testing (pull_request) Successful in 2m17s
Quality Check / Static Analysis (pull_request) Successful in 2m20s
2024-10-21 11:21:19 +02:00
Rajbir Singh
8b0cb91e53 PMT-4 Refactor addEmployee
Some checks failed
Quality Check / Validate OAS (push) Successful in 51s
Quality Check / Validate OAS (pull_request) Successful in 1m6s
Quality Check / Linting (push) Failing after 1m41s
Quality Check / Linting (pull_request) Failing after 1m49s
Quality Check / Testing (push) Successful in 2m13s
Quality Check / Static Analysis (push) Successful in 2m18s
Quality Check / Testing (pull_request) Successful in 2m9s
Quality Check / Static Analysis (pull_request) Successful in 2m12s
2024-10-21 10:07:58 +02:00
63ce5526b4
PMT-4: Fix Static Analysis Problems
Some checks failed
Quality Check / Validate OAS (push) Successful in 51s
Quality Check / Validate OAS (pull_request) Successful in 1m3s
Quality Check / Linting (push) Failing after 1m39s
Quality Check / Linting (pull_request) Failing after 1m45s
Quality Check / Testing (push) Successful in 2m11s
Quality Check / Static Analysis (push) Successful in 2m17s
Quality Check / Testing (pull_request) Successful in 2m8s
Quality Check / Static Analysis (pull_request) Successful in 2m13s
Signed-off-by: Dominik Säume <Dominik.Saeume@hmmh.de>
2024-10-21 08:22:07 +02:00
Rajbir Singh
b558120b70 PMT-4 Refactor addEmployee and AllocationRepository
Some checks failed
Quality Check / Validate OAS (push) Successful in 52s
Quality Check / Validate OAS (pull_request) Successful in 1m7s
Quality Check / Linting (push) Failing after 1m40s
Quality Check / Linting (pull_request) Failing after 1m46s
Quality Check / Static Analysis (push) Failing after 1m58s
Quality Check / Static Analysis (pull_request) Failing after 1m55s
Quality Check / Testing (push) Successful in 2m7s
Quality Check / Testing (pull_request) Successful in 2m1s
2024-10-19 23:54:38 +02:00
Rajbir Singh
b398c8853a PMT-4 pmt.yml adapted
Some checks failed
Quality Check / Validate OAS (push) Successful in 50s
Quality Check / Validate OAS (pull_request) Successful in 1m6s
Quality Check / Linting (push) Failing after 1m38s
Quality Check / Linting (pull_request) Failing after 1m48s
Quality Check / Static Analysis (push) Failing after 1m55s
Quality Check / Static Analysis (pull_request) Failing after 1m56s
Quality Check / Testing (push) Successful in 2m7s
Quality Check / Testing (pull_request) Successful in 2m2s
2024-10-19 23:05:12 +02:00
Rajbir Singh
193a7c5953 PMT-4 add Employee to a Project
Some checks failed
Quality Check / Validate OAS (push) Successful in 32s
Quality Check / Linting (push) Failing after 55s
Quality Check / Static Analysis (push) Failing after 1m1s
Quality Check / Testing (push) Successful in 1m7s
Quality Check / Validate OAS (pull_request) Successful in 32s
Quality Check / Linting (pull_request) Failing after 47s
Quality Check / Static Analysis (pull_request) Failing after 1m10s
Quality Check / Testing (pull_request) Successful in 1m12s
2024-10-18 17:21:51 +02:00
e1fc61dfdd
PMT-4: Code fix #3
Some checks failed
Quality Check / Validate OAS (push) Successful in 32s
Quality Check / Linting (push) Failing after 49s
Quality Check / Static Analysis (push) Failing after 51s
Quality Check / Testing (push) Failing after 49s
2024-10-17 13:33:14 +02:00
ffae4e493b
PMT-4: Code fix #2
Some checks failed
Quality Check / Validate OAS (push) Successful in 34s
Quality Check / Linting (push) Failing after 50s
Quality Check / Static Analysis (push) Failing after 50s
Quality Check / Testing (push) Failing after 50s
2024-10-17 13:31:37 +02:00
504180099b
PMT-4: Code fix
Some checks failed
Quality Check / Validate OAS (push) Failing after 30s
Quality Check / Linting (push) Failing after 36s
Quality Check / Static Analysis (push) Failing after 36s
Quality Check / Testing (push) Failing after 36s
2024-10-17 13:01:15 +02:00
2a35474ed3
PMT-4: Add AddEmpployeeDTO and endpoint specification
Some checks failed
Quality Check / Validate OAS (push) Failing after 31s
Quality Check / Linting (push) Failing after 36s
Quality Check / Static Analysis (push) Failing after 37s
Quality Check / Testing (push) Failing after 37s
2024-10-17 11:09:19 +02:00
ed7245e367
PMT-4: Define new endpoint
Some checks failed
Quality Check / Validate OAS (push) Failing after 30s
Quality Check / Linting (push) Failing after 36s
Quality Check / Static Analysis (push) Failing after 37s
Quality Check / Testing (push) Failing after 36s
2024-10-16 15:02:56 +02:00
c434a84b90
PMT-4: Create Allocation Model and repository
Some checks failed
Quality Check / Validate OAS (push) Successful in 32s
Quality Check / Static Analysis (push) Failing after 1m4s
Quality Check / Linting (push) Successful in 1m7s
Quality Check / Testing (push) Successful in 1m9s
Co-authored-by: Rajbir Singh <rajbir.singh@hmmh.de>
Signed-off-by: Dominik Säume <Dominik.Saeume@hmmh.de>
2024-10-16 13:18:30 +02:00
2 changed files with 8 additions and 1 deletions

View file

@ -1,4 +1,4 @@
![QS Badge](https://git.euph.dev//SZUT/ProjectManagmentTool//actions/workflows/qs.yml/badge.svg?branch=trunk) ![QS Badge](https://git.euph.dev//SZUT/ProjectManagmentTool//actions/workflows/qs.yml/badge.svg)
# ProjectManagmentTool # ProjectManagmentTool
Schulprojekt zum Erstellen eines Projektverwaltungstools Schulprojekt zum Erstellen eines Projektverwaltungstools

View file

@ -6,14 +6,21 @@ import de.hmmh.pmt.dtos.AddEmployeeDTO;
import de.hmmh.pmt.employee.dtos.EmployeeResponseDTO; import de.hmmh.pmt.employee.dtos.EmployeeResponseDTO;
import de.hmmh.pmt.employee.dtos.QualificationGetDTO; import de.hmmh.pmt.employee.dtos.QualificationGetDTO;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import org.mockito.Mockito;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType; import org.springframework.http.MediaType;
import org.springframework.test.web.servlet.RequestBuilder; import org.springframework.test.web.servlet.RequestBuilder;
import org.springframework.test.web.servlet.request.MockHttpServletRequestBuilder;
import org.springframework.test.web.servlet.request.MockMvcRequestBuilders; import org.springframework.test.web.servlet.request.MockMvcRequestBuilders;
import org.springframework.web.client.HttpClientErrorException;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import static com.github.dockerjava.zerodep.shaded.org.apache.hc.core5.http.io.support.ClassicRequestBuilder.post;
import static org.mockito.ArgumentMatchers.anyLong; import static org.mockito.ArgumentMatchers.anyLong;
import static org.mockito.Mockito.when; import static org.mockito.Mockito.when;