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

Communication: Fix visibility of create channel option for students #9989

Merged
merged 1 commit into from
Dec 10, 2024

added canCreateChannel check

e53f342
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

Communication: Fix visibility of create channel option for students #9989

added canCreateChannel check
e53f342
Select commit
Loading
Failed to load commit list.
GitHub Actions / MySQL Tests failed Dec 10, 2024 in 1s

8501 passed, 7 failed and 1 skipped

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

Annotations

Check failure on line 725 in src/test/java/de/tum/cit/aet/artemis/communication/MessageIntegrationTest.java

See this annotation in the file changed.

@github-actions github-actions / MySQL Tests

de.tum.cit.aet.artemis.communication.MessageIntegrationTest ► testDecreaseUnreadMessageCountWhenDeletingMessage()

Failed test found in:
  build/test-results/test/TEST-de.tum.cit.aet.artemis.communication.MessageIntegrationTest.xml
Error:
  org.opentest4j.AssertionFailedError: 
Raw output
org.opentest4j.AssertionFailedError: 
expected: 0L
 but was: 1L
	at app//de.tum.cit.aet.artemis.communication.MessageIntegrationTest.lambda$testDecreaseUnreadMessageCountWhenDeletingMessage$28(MessageIntegrationTest.java:725)
	at app//org.awaitility.core.AssertionCondition.lambda$new$0(AssertionCondition.java:53)
	at app//org.awaitility.core.ConditionAwaiter$ConditionPoller.call(ConditionAwaiter.java:248)
	at app//org.awaitility.core.ConditionAwaiter$ConditionPoller.call(ConditionAwaiter.java:235)
	at java.base@21.0.5/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base@21.0.5/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base@21.0.5/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base@21.0.5/java.lang.Thread.run(Thread.java:1583)

Check failure on line 255 in src/test/java/de/tum/cit/aet/artemis/core/service/DataExportCreationServiceTest.java

See this annotation in the file changed.

@github-actions github-actions / MySQL Tests

de.tum.cit.aet.artemis.core.service.DataExportCreationServiceTest ► testDataExportCreationSuccess_containsCorrectCourseContent()

Failed test found in:
  build/test-results/test/TEST-de.tum.cit.aet.artemis.core.service.DataExportCreationServiceTest.xml
Error:
  java.lang.AssertionError: 
Raw output
java.lang.AssertionError: 
Expecting actual:
  [de.tum.cit.aet.artemis.atlas.domain.science.ScienceEvent@0,
    de.tum.cit.aet.artemis.atlas.domain.science.ScienceEvent@0,
    de.tum.cit.aet.artemis.atlas.domain.science.ScienceEvent@0]
to contain exactly in any order:
  [de.tum.cit.aet.artemis.atlas.domain.science.ScienceEvent@40,
    de.tum.cit.aet.artemis.atlas.domain.science.ScienceEvent@41,
    de.tum.cit.aet.artemis.atlas.domain.science.ScienceEvent@42]
elements not found:
  [de.tum.cit.aet.artemis.atlas.domain.science.ScienceEvent@40,
    de.tum.cit.aet.artemis.atlas.domain.science.ScienceEvent@41,
    de.tum.cit.aet.artemis.atlas.domain.science.ScienceEvent@42]
and elements not expected:
  [de.tum.cit.aet.artemis.atlas.domain.science.ScienceEvent@0,
    de.tum.cit.aet.artemis.atlas.domain.science.ScienceEvent@0,
    de.tum.cit.aet.artemis.atlas.domain.science.ScienceEvent@0]
when comparing values using Comparator$$Lambda/0x00007f2804266de8
	at de.tum.cit.aet.artemis.core.service.DataExportCreationServiceTest.assertScienceEventsCSVFile(DataExportCreationServiceTest.java:255)
	at de.tum.cit.aet.artemis.core.service.DataExportCreationServiceTest.testDataExportCreationSuccess_containsCorrectCourseContent(DataExportCreationServiceTest.java:214)
	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 150 in src/test/java/de/tum/cit/aet/artemis/iris/IrisChatTokenTrackingIntegrationTest.java

See this annotation in the file changed.

@github-actions github-actions / MySQL Tests

de.tum.cit.aet.artemis.iris.IrisChatTokenTrackingIntegrationTest ► testTokenTrackingHandledExerciseChat()

Failed test found in:
  build/test-results/test/TEST-de.tum.cit.aet.artemis.iris.IrisChatTokenTrackingIntegrationTest.xml
Error:
  org.opentest4j.AssertionFailedError: 
Raw output
org.opentest4j.AssertionFailedError: 
expected: 0.35999998f
 but was: 0.36f
	at app//de.tum.cit.aet.artemis.iris.IrisChatTokenTrackingIntegrationTest.testTokenTrackingHandledExerciseChat(IrisChatTokenTrackingIntegrationTest.java:150)
	at java.base@21.0.5/java.lang.reflect.Method.invoke(Method.java:580)
	at java.base@21.0.5/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
	at java.base@21.0.5/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
	at java.base@21.0.5/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
	at java.base@21.0.5/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
	at java.base@21.0.5/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)

Check failure on line 201 in src/test/java/de/tum/cit/aet/artemis/iris/IrisChatTokenTrackingIntegrationTest.java

See this annotation in the file changed.

@github-actions github-actions / MySQL Tests

de.tum.cit.aet.artemis.iris.IrisChatTokenTrackingIntegrationTest ► testTokenTrackingExerciseChatWithPipelineFail()

Failed test found in:
  build/test-results/test/TEST-de.tum.cit.aet.artemis.iris.IrisChatTokenTrackingIntegrationTest.xml
Error:
  org.opentest4j.AssertionFailedError: 
Raw output
org.opentest4j.AssertionFailedError: 
expected: 0.35999998f
 but was: 0.36f
	at app//de.tum.cit.aet.artemis.iris.IrisChatTokenTrackingIntegrationTest.testTokenTrackingExerciseChatWithPipelineFail(IrisChatTokenTrackingIntegrationTest.java:201)
	at java.base@21.0.5/java.lang.reflect.Method.invoke(Method.java:580)
	at java.base@21.0.5/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
	at java.base@21.0.5/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
	at java.base@21.0.5/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
	at java.base@21.0.5/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
	at java.base@21.0.5/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)

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

See this annotation in the file changed.

@github-actions github-actions / MySQL Tests

de.tum.cit.aet.artemis.quiz.QuizExerciseIntegrationTest ► testDeleteQuizExerciseWithSubmittedAnswers(QuizMode) [2] quizMode=BATCHED

Failed test found in:
  build/test-results/test/TEST-de.tum.cit.aet.artemis.quiz.QuizExerciseIntegrationTest.xml
  build/test-results/test/TEST-de.tum.cit.aet.artemis.quiz.QuizExerciseIntegrationTest.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:769)
	at de.tum.cit.aet.artemis.quiz.QuizExerciseIntegrationTest.testDeleteQuizExerciseWithSubmittedAnswers(QuizExerciseIntegrationTest.java:518)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
	at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1939)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
	at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276)
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1708)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
	at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1708)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
	at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276)
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1708)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
	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 769 in src/test/java/de/tum/cit/aet/artemis/core/util/RequestUtilService.java

See this annotation in the file changed.

@github-actions github-actions / MySQL Tests

de.tum.cit.aet.artemis.quiz.QuizSubmissionIntegrationTest ► testQuizSubmitScheduledAndDeleted()

Failed test found in:
  build/test-results/test/TEST-de.tum.cit.aet.artemis.quiz.QuizSubmissionIntegrationTest.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:769)
	at de.tum.cit.aet.artemis.quiz.QuizSubmissionIntegrationTest.testQuizSubmitScheduledAndDeleted(QuizSubmissionIntegrationTest.java:593)
	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)