Skip to content

anotheroneofthese is deploying the project #263

anotheroneofthese is deploying the project

anotheroneofthese is deploying the project #263

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

28 passed, 4 failed and 0 skipped

Tests failed

Report Passed Failed Skipped Time
target/surefire-reports/TEST-no.nb.mlt.wls.order.controller.OrderControllerTest.xml 1✅ 4❌ 23s
target/surefire-reports/TEST-no.nb.mlt.wls.order.model.OrderModelConversionTest.xml 3✅ 59ms
target/surefire-reports/TEST-no.nb.mlt.wls.order.service.OrderServiceTest.xml 8✅ 518ms
target/surefire-reports/TEST-no.nb.mlt.wls.product.controller.ProductControllerTest.xml 5✅ 1s
target/surefire-reports/TEST-no.nb.mlt.wls.product.model.ProductModelConversionTest.xml 3✅ 3ms
target/surefire-reports/TEST-no.nb.mlt.wls.product.service.ProductServiceTest.xml 8✅ 101ms

❌ target/surefire-reports/TEST-no.nb.mlt.wls.order.controller.OrderControllerTest.xml

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

Test suite Passed Failed Skipped Time
no.nb.mlt.wls.order.controller.OrderControllerTest 1✅ 4❌ 23s

❌ no.nb.mlt.wls.order.controller.OrderControllerTest

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

✅ target/surefire-reports/TEST-no.nb.mlt.wls.order.model.OrderModelConversionTest.xml

3 tests were completed in 59ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
no.nb.mlt.wls.order.model.OrderModelConversionTest 3✅ 59ms

✅ no.nb.mlt.wls.order.model.OrderModelConversionTest

✅ order converts to API payload
✅ API payload converts to order
✅ order converts to SynQ payload

✅ target/surefire-reports/TEST-no.nb.mlt.wls.order.service.OrderServiceTest.xml

8 tests were completed in 518ms with 8 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
no.nb.mlt.wls.order.service.OrderServiceTest 8✅ 518ms

✅ no.nb.mlt.wls.order.service.OrderServiceTest

✅ save called when db is down is handled gracefully
✅ save called with payload missing orderId throws
✅ save with no errors returns created order
✅ save called with Order that SynQ says exists throws
✅ save called when SynQ fails is handled gracefully
✅ save called with payload missing hostOrderId throws
✅ save with payload missing product lines throws
✅ save when order exists throws

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

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

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

✅ 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
✅ createProduct payload with different data but same ID returns DB entry

✅ target/surefire-reports/TEST-no.nb.mlt.wls.product.model.ProductModelConversionTest.xml

3 tests were completed in 3ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
no.nb.mlt.wls.product.model.ProductModelConversionTest 3✅ 3ms

✅ no.nb.mlt.wls.product.model.ProductModelConversionTest

✅ product converts to SynQ payload
✅ product converts to API payload
✅ API payload converts to product

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

8 tests were completed in 101ms with 8 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
no.nb.mlt.wls.product.service.ProductServiceTest 8✅ 101ms

✅ 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
✅ 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.order.controller.OrderControllerTest.xml

See this annotation in the file changed.

@github-actions github-actions / JUnit Tests

no.nb.mlt.wls.order.controller.OrderControllerTest ► createOrder with duplicate payload returns OK

Failed test found in:
  target/surefire-reports/TEST-no.nb.mlt.wls.order.controller.OrderControllerTest.xml
Error:
  java.lang.AssertionError: Status expected:<200 OK> but was:<500 INTERNAL_SERVER_ERROR>
Raw output
java.lang.AssertionError: Status expected:<200 OK> but was:<500 INTERNAL_SERVER_ERROR>
	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.order.controller.OrderControllerTest.createOrder with duplicate payload returns OK(OrderControllerTest.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)

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

See this annotation in the file changed.

@github-actions github-actions / JUnit Tests

no.nb.mlt.wls.order.controller.OrderControllerTest ► createOrder payload with different data but same ID returns DB entry

Failed test found in:
  target/surefire-reports/TEST-no.nb.mlt.wls.order.controller.OrderControllerTest.xml
Error:
  java.lang.AssertionError: Status expected:<200 OK> but was:<500 INTERNAL_SERVER_ERROR>
Raw output
java.lang.AssertionError: Status expected:<200 OK> but was:<500 INTERNAL_SERVER_ERROR>
	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.order.controller.OrderControllerTest.createOrder payload with different data but same ID returns DB entry(OrderControllerTest.kt:125)
	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.order.controller.OrderControllerTest.xml

See this annotation in the file changed.

@github-actions github-actions / JUnit Tests

no.nb.mlt.wls.order.controller.OrderControllerTest ► createOrder with valid payload creates order

Failed test found in:
  target/surefire-reports/TEST-no.nb.mlt.wls.order.controller.OrderControllerTest.xml
Error:
  java.lang.AssertionError: Status expected:<201 CREATED> but was:<500 INTERNAL_SERVER_ERROR>
Raw output
java.lang.AssertionError: Status expected:<201 CREATED> but was:<500 INTERNAL_SERVER_ERROR>
	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.isCreated(StatusAssertions.java:75)
	at no.nb.mlt.wls.order.controller.OrderControllerTest$createOrder with valid payload creates order$1.invokeSuspend(OrderControllerTest.kt:84)
	at no.nb.mlt.wls.order.controller.OrderControllerTest$createOrder with valid payload creates order$1.invoke(OrderControllerTest.kt)
	at no.nb.mlt.wls.order.controller.OrderControllerTest$createOrder with valid payload creates order$1.invoke(OrderControllerTest.kt)
	at kotlinx.coroutines.test.TestBuildersKt__TestBuildersKt$runTest$2$1$1.invokeSuspend(TestBuilders.kt:314)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
	at kotlinx.coroutines.test.TestDispatcher.processEvent$kotlinx_coroutines_test(TestDispatcher.kt:28)
	at kotlinx.coroutines.test.TestCoroutineScheduler.tryRunNextTaskUnless$kotlinx_coroutines_test(TestCoroutineScheduler.kt:103)
	at kotlinx.coroutines.test.TestBuildersKt__TestBuildersKt$runTest$2$1$workRunner$1.invokeSuspend(TestBuilders.kt:320)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
	at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:280)
	at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:85)
	at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:59)
	at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
	at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:38)
	at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source)
	at kotlinx.coroutines.test.TestBuildersJvmKt.createTestResult(TestBuildersJvm.kt:13)
	at kotlinx.coroutines.test.TestBuildersKt__TestBuildersKt.runTest-8Mi8wO0(TestBuilders.kt:308)
	at kotlinx.coroutines.test.TestBuildersKt.runTest-8Mi8wO0(Unknown Source)
	at kotlinx.coroutines.test.TestBuildersKt__TestBuildersKt.runTest-8Mi8wO0(TestBuilders.kt:166)
	at kotlinx.coroutines.test.TestBuildersKt.runTest-8Mi8wO0(Unknown Source)
	at kotlinx.coroutines.test.TestBuildersKt__TestBuildersKt.runTest-8Mi8wO0$default(TestBuilders.kt:158)
	at kotlinx.coroutines.test.TestBuildersKt.runTest-8Mi8wO0$default(Unknown Source)
	at no.nb.mlt.wls.order.controller.OrderControllerTest.createOrder with valid payload creates order(OrderControllerTest.kt:72)
	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.order.controller.OrderControllerTest.xml

See this annotation in the file changed.

@github-actions github-actions / JUnit Tests

no.nb.mlt.wls.order.controller.OrderControllerTest ► createOrder where SynQ says it's a duplicate returns OK

Failed test found in:
  target/surefire-reports/TEST-no.nb.mlt.wls.order.controller.OrderControllerTest.xml
Error:
  java.lang.AssertionError: Status expected:<200 OK> but was:<500 INTERNAL_SERVER_ERROR>
Raw output
java.lang.AssertionError: Status expected:<200 OK> but was:<500 INTERNAL_SERVER_ERROR>
	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.order.controller.OrderControllerTest.createOrder where SynQ says it's a duplicate returns OK(OrderControllerTest.kt:146)
	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)