Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Development: Create Tests to validate Scorpio annotation for certain endpoints #10161

Draft
wants to merge 57 commits into
base: develop
Choose a base branch
from

add doc comment vor @interface method

0cc6481
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Draft

Development: Create Tests to validate Scorpio annotation for certain endpoints #10161

add doc comment vor @interface method
0cc6481
Select commit
Loading
Failed to load commit list.
GitHub Actions / H2 Tests failed Jan 16, 2025 in 0s

8319 passed, 2 failed and 1 skipped

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

Annotations

Check failure on line 780 in src/test/java/de/tum/cit/aet/artemis/core/util/RequestUtilService.java

See this annotation in the file changed.

@github-actions github-actions / H2 Tests

de.tum.cit.aet.artemis.exam.StudentExamIntegrationTest ► testDeleteExamWithStudentExamsAfterConductionAndEvaluation()

Failed test found in:
  build/test-results/test/TEST-de.tum.cit.aet.artemis.exam.StudentExamIntegrationTest.xml
Error:
  java.lang.AssertionError: Response status expected:<200> but was:<500>
Raw output
java.lang.AssertionError: Response status expected:<200> but was:<500>
	at org.springframework.test.util.AssertionErrors.fail(AssertionErrors.java:61)
	at org.springframework.test.util.AssertionErrors.assertEquals(AssertionErrors.java:128)
	at org.springframework.test.web.servlet.result.StatusResultMatchers.lambda$is$1(StatusResultMatchers.java:65)
	at org.springframework.test.web.servlet.MockMvc$1.andExpect(MockMvc.java:214)
	at de.tum.cit.aet.artemis.core.util.RequestUtilService.delete(RequestUtilService.java:780)
	at de.tum.cit.aet.artemis.exam.StudentExamIntegrationTest.testDeleteExamWithStudentExamsAfterConductionAndEvaluation(StudentExamIntegrationTest.java:2307)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	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 211 in src/main/java/de/tum/cit/aet/artemis/iris/service/session/IrisExerciseChatSessionService.java

See this annotation in the file changed.

@github-actions github-actions / H2 Tests

de.tum.cit.aet.artemis.iris.PyrisEventSystemIntegrationTest ► testShouldNotFireProgressStalledEventWithIncreasingScores()

Failed test found in:
  build/test-results/test/TEST-de.tum.cit.aet.artemis.iris.PyrisEventSystemIntegrationTest.xml
Error:
  org.mockito.exceptions.verification.NeverWantedButInvoked: 
Raw output
org.mockito.exceptions.verification.NeverWantedButInvoked: 
irisExerciseChatSessionService.onNewResult(
    <any de.tum.cit.aet.artemis.assessment.domain.Result>
);
Never wanted here:
-> at de.tum.cit.aet.artemis.iris.service.session.IrisExerciseChatSessionService.onNewResult(IrisExerciseChatSessionService.java:211)
But invoked here:
-> at de.tum.cit.aet.artemis.iris.service.pyris.event.NewResultEvent.handleEvent(NewResultEvent.java:30) with arguments: [Result{id161, completionDate=2025-01-16T20:47:14.801041645Z[Etc/UTC], successful=false, score=40.0, rated=true, assessmentType=AUTOMATIC, hasComplaint=null, testCaseCount=0, passedTestCaseCount=0, codeIssueCount=0}]

	at app//de.tum.cit.aet.artemis.iris.service.session.IrisExerciseChatSessionService.onNewResult(IrisExerciseChatSessionService.java:211)
	at app//de.tum.cit.aet.artemis.iris.PyrisEventSystemIntegrationTest.testShouldNotFireProgressStalledEventWithIncreasingScores(PyrisEventSystemIntegrationTest.java:317)
	at [email protected]/java.lang.reflect.Method.invoke(Method.java:580)
	at [email protected]/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
	at [email protected]/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
	at [email protected]/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
	at [email protected]/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
	at [email protected]/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)