Skip to content

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

Sign in for the full log view
GitHub Actions / H2 Tests failed Oct 12, 2024 in 0s

8192 passed, 3 failed and 2 skipped

Tests failed
Report exceeded GitHub limit of 65535 bytes and has been trimmed

Annotations

Check failure on line 219 in src/test/java/de/tum/cit/aet/artemis/shared/architecture/module/AbstractModuleRepositoryArchitectureTest.java

See this annotation in the file changed.

@github-actions github-actions / H2 Tests

de.tum.cit.aet.artemis.core.architecture.CoreRepositoryArchitectureTest ► enforceUsageOfTestRepository()

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):
Raw output
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'}]
	at com.tngtech.archunit.lang.ArchRule$Assertions.assertNoViolation(ArchRule.java:94)
	at com.tngtech.archunit.lang.ArchRule$Assertions.check(ArchRule.java:86)
	at com.tngtech.archunit.lang.ArchRule$Factory$SimpleArchRule.check(ArchRule.java:165)
	at de.tum.cit.aet.artemis.shared.architecture.module.AbstractModuleRepositoryArchitectureTest.enforceUsageOfTestRepository(AbstractModuleRepositoryArchitectureTest.java:219)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at java.base/java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:194)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)

Check failure on line 178 in src/test/java/de/tum/cit/aet/artemis/shared/architecture/module/AbstractModuleResourceArchitectureTest.java

See this annotation in the file changed.

@github-actions github-actions / H2 Tests

de.tum.cit.aet.artemis.core.architecture.CoreResourceArchitectureTest ► testNoOverrideOfEnforceAdmin()

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):
Raw output
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)
	at com.tngtech.archunit.lang.ArchRule$Assertions.assertNoViolation(ArchRule.java:94)
	at com.tngtech.archunit.lang.ArchRule$Assertions.check(ArchRule.java:86)
	at com.tngtech.archunit.lang.ArchRule$Factory$SimpleArchRule.check(ArchRule.java:165)
	at de.tum.cit.aet.artemis.shared.architecture.module.AbstractModuleResourceArchitectureTest.testNoOverrideOfEnforceAdmin(AbstractModuleResourceArchitectureTest.java:178)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at java.base/java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:194)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)

Check failure on line 219 in src/test/java/de/tum/cit/aet/artemis/shared/architecture/module/AbstractModuleRepositoryArchitectureTest.java

See this annotation in the file changed.

@github-actions github-actions / H2 Tests

de.tum.cit.aet.artemis.exam.architecture.ExamRepositoryArchitectureTest ► enforceUsageOfTestRepository()

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):
Raw output
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'}]
	at com.tngtech.archunit.lang.ArchRule$Assertions.assertNoViolation(ArchRule.java:94)
	at com.tngtech.archunit.lang.ArchRule$Assertions.check(ArchRule.java:86)
	at com.tngtech.archunit.lang.ArchRule$Factory$SimpleArchRule.check(ArchRule.java:165)
	at de.tum.cit.aet.artemis.shared.architecture.module.AbstractModuleRepositoryArchitectureTest.enforceUsageOfTestRepository(AbstractModuleRepositoryArchitectureTest.java:219)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at java.base/java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:194)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)