Skip to content

Merge branch 'develop' into feature/general/cleanup-service #742

Merge branch 'develop' into feature/general/cleanup-service

Merge branch 'develop' into feature/general/cleanup-service #742

Triggered via push October 13, 2024 20:35
Status Failure
Total duration 4m 4s
Artifacts
Check if windfiles and scripts match
32s
Check if windfiles and scripts match
Fit to window
Zoom out
Zoom in

Annotations

14 errors
Check if windfiles and scripts match
Process completed with exit code 1.
de.tum.cit.aet.artemis.core.architecture.CoreRepositoryArchitectureTest ► enforceUsageOfTestRepository(): src/test/java/de/tum/cit/aet/artemis/shared/architecture/module/AbstractModuleRepositoryArchitectureTest.java#L219
Failed test found in: build/test-results/test/TEST-de.tum.cit.aet.artemis.core.architecture.CoreRepositoryArchitectureTest.xml Error: java.lang.AssertionError: Architecture Violation [Priority: MEDIUM] - Rule 'classes that reside in a package 'de.tum.cit.aet.artemis.core..' should not use repositories with subclasses, because Test Repositories should be used over production repositories, if such a repository exist.' was violated (1 times):
de.tum.cit.aet.artemis.core.architecture.CoreResourceArchitectureTest ► testClassWithEnforceAdminInCorrectlyNamed(): src/test/java/de/tum/cit/aet/artemis/shared/architecture/module/AbstractModuleResourceArchitectureTest.java#L171
Failed test found in: build/test-results/test/TEST-de.tum.cit.aet.artemis.core.architecture.CoreResourceArchitectureTest.xml Error: java.lang.AssertionError: Architecture Violation [Priority: MEDIUM] - Rule 'classes that reside in a package 'de.tum.cit.aet.artemis.core..' and have simple name starting with 'Admin' should be annotated with @EnforceAdmin' was violated (1 times):
test#L0
Junit Results ran 8254 in 1138.1349999999993 seconds 0 Errored, 5 Failed, 2 Skipped
updateExercisePoints_ShouldUpdatePointsInParticipantScores(boolean) [2] isTeamTest=false: /home/runner/work/Artemis/Artemis/src/test/java/de/tum/cit/aet/artemis/assessment/ResultListenerIntegrationTest.java#L0
Junit test updateExercisePoints_ShouldUpdatePointsInParticipantScores(boolean) [2] isTeamTest=false failed org.opentest4j.AssertionFailedError: expected: 200.0 but was: 20.0
enforceUsageOfTestRepository(): /home/runner/work/Artemis/Artemis/src/test/java/de/tum/cit/aet/artemis/core/architecture/CoreRepositoryArchitectureTest.java#L0
Junit test enforceUsageOfTestRepository() failed java.lang.AssertionError: Architecture Violation [Priority: MEDIUM] - Rule 'classes that reside in a package 'de.tum.cit.aet.artemis.core..' should not use repositories with subclasses, because Test Repositories should be used over production repositories, if such a repository exist.' was violated (1 times): Test class de.tum.cit.aet.artemis.core.CleanupIntegrationTest uses repository de.tum.cit.aet.artemis.exercise.repository.ExerciseRepository which has subclasses: [JavaClass{name='de.tum.cit.aet.artemis.exercise.repository.ExerciseTestRepository'}]
testClassWithEnforceAdminInCorrectlyNamed(): /home/runner/work/Artemis/Artemis/src/test/java/de/tum/cit/aet/artemis/core/architecture/CoreResourceArchitectureTest.java#L0
Junit test testClassWithEnforceAdminInCorrectlyNamed() failed java.lang.AssertionError: Architecture Violation [Priority: MEDIUM] - Rule 'classes that reside in a package 'de.tum.cit.aet.artemis.core..' and have simple name starting with 'Admin' should be annotated with @EnforceAdmin' was violated (1 times): Class <de.tum.cit.aet.artemis.core.web.admin.AdminOldDataCleanupResource> is not annotated with @EnforceAdmin in (AdminOldDataCleanupResource.java:0)
testDeleteModelingExerciseWithCompetency(): /home/runner/work/Artemis/Artemis/src/test/java/de/tum/cit/aet/artemis/modeling/ModelingExerciseIntegrationTest.java#L409
Junit test testDeleteModelingExerciseWithCompetency() failed Wanted but not invoked: competencyProgressService.updateProgressByCompetencyAsync( de.tum.cit.aet.artemis.atlas.domain.competency.Competency@34 ); -> at de.tum.cit.aet.artemis.atlas.service.competency.CompetencyProgressService.updateProgressByCompetencyAsync(CompetencyProgressService.java:123) Actually, there were zero interactions with this mock.
testLockingAndUnlockingShouldReturnNotFound(): /home/runner/work/Artemis/Artemis/src/test/java/de/tum/cit/aet/artemis/programming/icl/LocalVCServiceTest.java#L48
Junit test testLockingAndUnlockingShouldReturnNotFound() failed org.mockito.exceptions.verification.NoInteractionsWanted: No interactions wanted here: -> at de.tum.cit.aet.artemis.programming.icl.LocalVCServiceTest.testLockingAndUnlockingShouldReturnNotFound(LocalVCServiceTest.java:61) But found these interactions on mock 'localVCService': -> at de.tum.cit.aet.artemis.programming.service.ProgrammingExerciseGradingService.checkCorrectBranchElseThrow(ProgrammingExerciseGradingService.java:231) -> at de.tum.cit.aet.artemis.programming.service.ProgrammingExerciseGradingService.createAndSaveFallbackSubmission(ProgrammingExerciseGradingService.java:287) *** For your reference, here is the list of all invocations ([?] - means unverified). 1. [?]-> at de.tum.cit.aet.artemis.programming.service.ProgrammingExerciseGradingService.checkCorrectBranchElseThrow(ProgrammingExerciseGradingService.java:231) 2. [?]-> at de.tum.cit.aet.artemis.programming.service.ProgrammingExerciseGradingService.createAndSaveFallbackSubmission(ProgrammingExerciseGradingService.java:287)
de.tum.cit.aet.artemis.assessment.ResultListenerIntegrationTest ► updateExercisePoints_ShouldUpdatePointsInParticipantScores(boolean) [2] isTeamTest=false: src/test/java/de/tum/cit/aet/artemis/assessment/ResultListenerIntegrationTest.java#L121
Failed test found in: build/test-results/test/TEST-de.tum.cit.aet.artemis.assessment.ResultListenerIntegrationTest.xml Error: org.opentest4j.AssertionFailedError:
de.tum.cit.aet.artemis.core.architecture.CoreRepositoryArchitectureTest ► enforceUsageOfTestRepository(): src/test/java/de/tum/cit/aet/artemis/shared/architecture/module/AbstractModuleRepositoryArchitectureTest.java#L219
Failed test found in: build/test-results/test/TEST-de.tum.cit.aet.artemis.core.architecture.CoreRepositoryArchitectureTest.xml Error: java.lang.AssertionError: Architecture Violation [Priority: MEDIUM] - Rule 'classes that reside in a package 'de.tum.cit.aet.artemis.core..' should not use repositories with subclasses, because Test Repositories should be used over production repositories, if such a repository exist.' was violated (1 times):
de.tum.cit.aet.artemis.core.architecture.CoreResourceArchitectureTest ► testClassWithEnforceAdminInCorrectlyNamed(): src/test/java/de/tum/cit/aet/artemis/shared/architecture/module/AbstractModuleResourceArchitectureTest.java#L171
Failed test found in: build/test-results/test/TEST-de.tum.cit.aet.artemis.core.architecture.CoreResourceArchitectureTest.xml Error: java.lang.AssertionError: Architecture Violation [Priority: MEDIUM] - Rule 'classes that reside in a package 'de.tum.cit.aet.artemis.core..' and have simple name starting with 'Admin' should be annotated with @EnforceAdmin' was violated (1 times):
de.tum.cit.aet.artemis.modeling.ModelingExerciseIntegrationTest ► testDeleteModelingExerciseWithCompetency(): src/main/java/de/tum/cit/aet/artemis/atlas/service/competency/CompetencyProgressService.java#L123
Failed test found in: build/test-results/test/TEST-de.tum.cit.aet.artemis.modeling.ModelingExerciseIntegrationTest.xml Error: Wanted but not invoked:
de.tum.cit.aet.artemis.programming.icl.LocalVCServiceTest ► testLockingAndUnlockingShouldReturnNotFound(): src/test/java/de/tum/cit/aet/artemis/programming/icl/LocalVCServiceTest.java#L61
Failed test found in: build/test-results/test/TEST-de.tum.cit.aet.artemis.programming.icl.LocalVCServiceTest.xml Error: org.mockito.exceptions.verification.NoInteractionsWanted: