Skip to content

Merge branch 'develop' into feature/summary-on-exam-deletion #700

Merge branch 'develop' into feature/summary-on-exam-deletion

Merge branch 'develop' into feature/summary-on-exam-deletion #700

Triggered via push October 12, 2024 14:19
Status Success
Total duration 1m 3s
Artifacts
Check if windfiles and scripts match
53s
Check if windfiles and scripts match
Fit to window
Zoom out
Zoom in

Annotations

10 errors
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 ► testNoOverrideOfEnforceAdmin(): src/test/java/de/tum/cit/aet/artemis/shared/architecture/module/AbstractModuleResourceArchitectureTest.java#L178
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 'methods that are declared in classes that reside in a package 'de.tum.cit.aet.artemis.core..' and are declared in classes that are annotated with @EnforceAdmin should not be annotated with @EnforceAdmin and should not be meta-annotated with @PreAuthorize' was violated (2 times):
de.tum.cit.aet.artemis.exam.architecture.ExamRepositoryArchitectureTest ► 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.exam.architecture.ExamRepositoryArchitectureTest.xml Error: java.lang.AssertionError: Architecture Violation [Priority: MEDIUM] - Rule 'classes that reside in a package 'de.tum.cit.aet.artemis.exam..' should not use repositories with subclasses, because Test Repositories should be used over production repositories, if such a repository exist.' was violated (3 times):
test#L0
Junit Results ran 8197 in 1093.4679999999998 seconds 0 Errored, 3 Failed, 2 Skipped
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.service.CourseServiceTest uses repository de.tum.cit.aet.artemis.programming.repository.BuildJobRepository which has subclasses: [JavaClass{name='de.tum.cit.aet.artemis.programming.test_repository.BuildJobTestRepository'}]
testNoOverrideOfEnforceAdmin(): /home/runner/work/Artemis/Artemis/src/test/java/de/tum/cit/aet/artemis/core/architecture/CoreResourceArchitectureTest.java#L0
Junit test testNoOverrideOfEnforceAdmin() failed java.lang.AssertionError: Architecture Violation [Priority: MEDIUM] - Rule 'methods that are declared in classes that reside in a package 'de.tum.cit.aet.artemis.core..' and are declared in classes that are annotated with @EnforceAdmin should not be annotated with @EnforceAdmin and should not be meta-annotated with @PreAuthorize' was violated (2 times): Method <de.tum.cit.aet.artemis.core.web.admin.AdminCourseResource.getDeletionSummary(long)> is annotated with @EnforceAdmin in (AdminCourseResource.java:194) Method <de.tum.cit.aet.artemis.core.web.admin.AdminCourseResource.getDeletionSummary(long)> is meta-annotated with @PreAuthorize in (AdminCourseResource.java:194)
enforceUsageOfTestRepository(): /home/runner/work/Artemis/Artemis/src/test/java/de/tum/cit/aet/artemis/exam/architecture/ExamRepositoryArchitectureTest.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.exam..' should not use repositories with subclasses, because Test Repositories should be used over production repositories, if such a repository exist.' was violated (3 times): Test class de.tum.cit.aet.artemis.exam.ExamDeletionIntegrationTest uses repository de.tum.cit.aet.artemis.exam.repository.StudentExamRepository which has subclasses: [JavaClass{name='de.tum.cit.aet.artemis.exam.test_repository.StudentExamTestRepository'}] Test class de.tum.cit.aet.artemis.exam.ExamDeletionIntegrationTest uses repository de.tum.cit.aet.artemis.programming.repository.BuildJobRepository which has subclasses: [JavaClass{name='de.tum.cit.aet.artemis.programming.test_repository.BuildJobTestRepository'}] Test class de.tum.cit.aet.artemis.exam.util.ExamUtilService uses repository de.tum.cit.aet.artemis.communication.repository.PostRepository which has subclasses: [JavaClass{name='de.tum.cit.aet.artemis.communication.test_repository.PostTestRepository'}]
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 ► testNoOverrideOfEnforceAdmin(): src/test/java/de/tum/cit/aet/artemis/shared/architecture/module/AbstractModuleResourceArchitectureTest.java#L178
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 'methods that are declared in classes that reside in a package 'de.tum.cit.aet.artemis.core..' and are declared in classes that are annotated with @EnforceAdmin should not be annotated with @EnforceAdmin and should not be meta-annotated with @PreAuthorize' was violated (2 times):
de.tum.cit.aet.artemis.exam.architecture.ExamRepositoryArchitectureTest ► 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.exam.architecture.ExamRepositoryArchitectureTest.xml Error: java.lang.AssertionError: Architecture Violation [Priority: MEDIUM] - Rule 'classes that reside in a package 'de.tum.cit.aet.artemis.exam..' should not use repositories with subclasses, because Test Repositories should be used over production repositories, if such a repository exist.' was violated (3 times):