Skip to content

anotheroneofthese is deploying the project #221

anotheroneofthese is deploying the project

anotheroneofthese is deploying the project #221

GitHub Actions / JUnit Tests failed Aug 8, 2024 in 1s

11 passed, 2 failed and 0 skipped

Tests failed

Report Passed Failed Skipped Time
target/surefire-reports/TEST-no.nb.mlt.wls.product.controller.ProductControllerTest.xml 4✅ 1❌ 21s
target/surefire-reports/TEST-no.nb.mlt.wls.product.service.ProductServiceTest.xml 7✅ 1❌ 6s

❌ target/surefire-reports/TEST-no.nb.mlt.wls.product.controller.ProductControllerTest.xml

5 tests were completed in 21s with 4 passed, 1 failed and 0 skipped.

Test suite Passed Failed Skipped Time
no.nb.mlt.wls.product.controller.ProductControllerTest 4✅ 1❌ 21s

❌ no.nb.mlt.wls.product.controller.ProductControllerTest

✅ createProduct with valid payload creates product
✅ createProduct with duplicate payload returns OK
✅ createProduct handles SynQ error
❌ createProduct where SynQ says it's a duplicate returns OK
	java.lang.AssertionError: Status expected:<200 OK> but was:<201 CREATED>
✅ createProduct payload with different data but same ID returns DB entry

❌ target/surefire-reports/TEST-no.nb.mlt.wls.product.service.ProductServiceTest.xml

8 tests were completed in 6s with 7 passed, 1 failed and 0 skipped.

Test suite Passed Failed Skipped Time
no.nb.mlt.wls.product.service.ProductServiceTest 7✅ 1❌ 6s

❌ no.nb.mlt.wls.product.service.ProductServiceTest

✅ save called with payload missing description throws
✅ save called with payload missing productCategory throws
✅ save with no errors returns created product
✅ save called with payload missing hostId throws
✅ save called with existing product, returns existing product
❌ save when DB fails handles it gracefully
	java.lang.AssertionError:
✅ save called with product that SynQ says exists, returns without a product
✅ save when synq fails handles it gracefully

Annotations

Check failure on line 0 in target/surefire-reports/TEST-no.nb.mlt.wls.product.controller.ProductControllerTest.xml

See this annotation in the file changed.

@github-actions github-actions / JUnit Tests

no.nb.mlt.wls.product.controller.ProductControllerTest ► createProduct where SynQ says it's a duplicate returns OK

Failed test found in:
  target/surefire-reports/TEST-no.nb.mlt.wls.product.controller.ProductControllerTest.xml
Error:
  java.lang.AssertionError: Status expected:<200 OK> but was:<201 CREATED>
Raw output
java.lang.AssertionError: Status expected:<200 OK> but was:<201 CREATED>
	at org.springframework.test.util.AssertionErrors.fail(AssertionErrors.java:59)
	at org.springframework.test.util.AssertionErrors.assertEquals(AssertionErrors.java:122)
	at org.springframework.test.web.reactive.server.StatusAssertions.lambda$assertStatusAndReturn$4(StatusAssertions.java:236)
	at org.springframework.test.web.reactive.server.ExchangeResult.assertWithDiagnostics(ExchangeResult.java:222)
	at org.springframework.test.web.reactive.server.StatusAssertions.assertStatusAndReturn(StatusAssertions.java:236)
	at org.springframework.test.web.reactive.server.StatusAssertions.isOk(StatusAssertions.java:68)
	at no.nb.mlt.wls.product.controller.ProductControllerTest.createProduct where SynQ says it's a duplicate returns OK(ProductControllerTest.kt:143)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)

Check failure on line 0 in target/surefire-reports/TEST-no.nb.mlt.wls.product.service.ProductServiceTest.xml

See this annotation in the file changed.

@github-actions github-actions / JUnit Tests

no.nb.mlt.wls.product.service.ProductServiceTest ► save when DB fails handles it gracefully

Failed test found in:
  target/surefire-reports/TEST-no.nb.mlt.wls.product.service.ProductServiceTest.xml
Error:
  java.lang.AssertionError: 
Raw output
java.lang.AssertionError: 

Expecting actual throwable to be an instance of:
  org.springframework.web.server.ServerErrorException
but was:
  java.util.concurrent.TimeoutException: Did not observe any item or terminal signal within 6000ms in 'source(MonoNever)' (and no fallback has been configured)
	at _COROUTINE._BOUNDARY._(CoroutineDebugging.kt:46)
	at no.nb.mlt.wls.product.service.ProductService.save$suspendImpl(ProductService.kt:26)
	at no.nb.mlt.wls.product.service.ProductServiceTest$assertExceptionThrownWithMessage$1$1.invokeSuspend(ProductServiceTest.kt:145)
Caused by: java.util.concurrent.TimeoutException: Did not observe any item or terminal signal within 6000ms in 'source(MonoNever)' (and no fallback has been configured)
	at reactor.core.publisher.FluxTimeout$TimeoutMainSubscriber.handleTimeout(FluxTimeout.java:296)
	at reactor.core.publisher.FluxTimeout$TimeoutMainSubscriber.doTimeout(FluxTimeout.java:281)
	at reactor.core.publisher.FluxTimeout$TimeoutTimeoutSubscriber.onNext(FluxTimeout.java:420)
	at reactor.core.publisher.FluxOnErrorReturn$ReturnSubscriber.onNext(FluxOnErrorReturn.java:162)
	at reactor.core.publisher.MonoDelay$MonoDelayRunnable.propagateDelay(MonoDelay.java:270)
	at reactor.core.publisher.MonoDelay$MonoDelayRunnable.run(MonoDelay.java:285)
	at reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:68)
	at reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:28)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)

	at no.nb.mlt.wls.product.service.ProductServiceTest.assertExceptionThrownWithMessage(ProductServiceTest.kt:144)
	at no.nb.mlt.wls.product.service.ProductServiceTest.save when DB fails handles it gracefully(ProductServiceTest.kt:104)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)