Skip to content

Development: Adjust server tests to restructuring into modules #58826

Development: Adjust server tests to restructuring into modules

Development: Adjust server tests to restructuring into modules #58826

Triggered via pull request September 13, 2024 11:32
Status Success
Total duration 15s
Artifacts

pullrequest-labeler.yml

on: pull_request_target
Fit to window
Zoom out
Zoom in

Annotations

10 errors
de.tum.cit.aet.artemis.authorization.AuthorizationArchitectureTest ► testEnforceNothingAnnotations(): src/test/java/de/tum/cit/aet/artemis/authorization/AuthorizationArchitectureTest.java#L85
Failed test found in: build/test-results/test/TEST-de.tum.cit.aet.artemis.authorization.AuthorizationArchitectureTest.xml Error: java.lang.AssertionError: Architecture Violation [Priority: MEDIUM] - Rule 'methods that are annotated with @EnforceNothing and are not annotated with @ManualConfig should be declared in classes that reside in a package 'de.tum.cit.aet.artemis.*.web.open..'' was violated (4 times):
test#L0
Junit Results ran 7661 in 1128.9100000000008 seconds 0 Errored, 4 Failed, 2 Skipped
testEnforceNothingAnnotations(): /home/runner/work/Artemis/Artemis/src/test/java/de/tum/cit/aet/artemis/authorization/AuthorizationArchitectureTest.java#L82
Junit test testEnforceNothingAnnotations() failed java.lang.AssertionError: Architecture Violation [Priority: MEDIUM] - Rule 'methods that are annotated with @EnforceNothing and are not annotated with @ManualConfig should be declared in classes that reside in a package 'de.tum.cit.aet.artemis.*.web.open..'' was violated (4 times): Method <de.tum.cit.aet.artemis.iris.web.PublicPyrisStatusUpdateResource.setCompetencyExtractionJobStatus(java.lang.String, de.tum.cit.aet.artemis.iris.service.pyris.dto.competency.PyrisCompetencyStatusUpdateDTO, jakarta.servlet.http.HttpServletRequest)> is not declared in classes that reside in a package 'de.tum.cit.aet.artemis.*.web.open..' in (PublicPyrisStatusUpdateResource.java:116) Method <de.tum.cit.aet.artemis.iris.web.PublicPyrisStatusUpdateResource.setStatusOfCourseChatJob(java.lang.String, de.tum.cit.aet.artemis.iris.service.pyris.dto.chat.PyrisChatStatusUpdateDTO, jakarta.servlet.http.HttpServletRequest)> is not declared in classes that reside in a package 'de.tum.cit.aet.artemis.*.web.open..' in (PublicPyrisStatusUpdateResource.java:90) Method <de.tum.cit.aet.artemis.iris.web.PublicPyrisStatusUpdateResource.setStatusOfIngestionJob(java.lang.String, de.tum.cit.aet.artemis.iris.service.pyris.dto.lectureingestionwebhook.PyrisLectureIngestionStatusUpdateDTO, jakarta.servlet.http.HttpServletRequest)> is not declared in classes that reside in a package 'de.tum.cit.aet.artemis.*.web.open..' in (PublicPyrisStatusUpdateResource.java:139) Method <de.tum.cit.aet.artemis.iris.web.PublicPyrisStatusUpdateResource.setStatusOfJob(java.lang.String, de.tum.cit.aet.artemis.iris.service.pyris.dto.chat.PyrisChatStatusUpdateDTO, jakarta.servlet.http.HttpServletRequest)> is not declared in classes that reside in a package 'de.tum.cit.aet.artemis.*.web.open..' in (PublicPyrisStatusUpdateResource.java:65)
testCreateProgrammingExercise(): /home/runner/work/Artemis/Artemis/src/test/java/de/tum/cit/aet/artemis/exercise/programming/ProgrammingExerciseLocalVCLocalCIIntegrationTest.java#L149
Junit test testCreateProgrammingExercise() failed org.awaitility.core.ConditionTimeoutException: Condition with Lambda expression in de.tum.cit.aet.artemis.localvcci.LocalVCLocalCITestService was not fulfilled within 10 seconds.
testConnectOverSshAndReceivePack(): /home/runner/work/Artemis/Artemis/src/test/java/de/tum/cit/aet/artemis/localvcci/LocalVCSshIntegrationTest.java#L111
Junit test testConnectOverSshAndReceivePack() failed org.opentest4j.AssertionFailedError: expected: 2 but was: 1
testCronDataExportCreationTaskScheduledEveryDayAt4AMByDefault(): /home/runner/work/Artemis/Artemis/src/test/java/de/tum/cit/aet/artemis/service/scheduled/DataExportScheduleServiceTest.java#L128
Junit test testCronDataExportCreationTaskScheduledEveryDayAt4AMByDefault() failed org.opentest4j.AssertionFailedError: expected: 1L but was: 0L
de.tum.cit.aet.artemis.authorization.AuthorizationArchitectureTest ► testEnforceNothingAnnotations(): src/test/java/de/tum/cit/aet/artemis/authorization/AuthorizationArchitectureTest.java#L85
Failed test found in: build/test-results/test/TEST-de.tum.cit.aet.artemis.authorization.AuthorizationArchitectureTest.xml Error: java.lang.AssertionError: Architecture Violation [Priority: MEDIUM] - Rule 'methods that are annotated with @EnforceNothing and are not annotated with @ManualConfig should be declared in classes that reside in a package 'de.tum.cit.aet.artemis.*.web.open..'' was violated (4 times):
de.tum.cit.aet.artemis.exercise.programming.ProgrammingExerciseLocalVCLocalCIIntegrationTest ► testCreateProgrammingExercise(): src/test/java/de/tum/cit/aet/artemis/localvcci/LocalVCLocalCITestService.java#L575
Failed test found in: build/test-results/test/TEST-de.tum.cit.aet.artemis.exercise.programming.ProgrammingExerciseLocalVCLocalCIIntegrationTest.xml Error: org.awaitility.core.ConditionTimeoutException: Condition with Lambda expression in de.tum.cit.aet.artemis.localvcci.LocalVCLocalCITestService was not fulfilled within 10 seconds.
de.tum.cit.aet.artemis.localvcci.LocalVCSshIntegrationTest ► testConnectOverSshAndReceivePack(): src/test/java/de/tum/cit/aet/artemis/localvcci/LocalVCSshIntegrationTest.java#L173
Failed test found in: build/test-results/test/TEST-de.tum.cit.aet.artemis.localvcci.LocalVCSshIntegrationTest.xml Error: org.opentest4j.AssertionFailedError:
de.tum.cit.aet.artemis.service.scheduled.DataExportScheduleServiceTest ► testCronDataExportCreationTaskScheduledEveryDayAt4AMByDefault(): src/test/java/de/tum/cit/aet/artemis/service/scheduled/DataExportScheduleServiceTest.java#L135
Failed test found in: build/test-results/test/TEST-de.tum.cit.aet.artemis.service.scheduled.DataExportScheduleServiceTest.xml Error: org.opentest4j.AssertionFailedError: