I've tried to run test (in groovy) that needs to start part of spring context (@WebMvcTest) and I don't need or even want temporal stuff running.
For this code:
@TemporalTest
@ActiveProfiles(SECURITY_TEST)
@WebMvcTest(controllers = SampleController.class)
class ControllerSpec extends Specification {
active spring profiles should be: temporal_test and security-test, but only security_test is active and then I get exception:
Caused by: io.grpc.netty.shaded.io.netty.channel.AbstractChannel$AnnotatedConnectException: finishConnect(..) failed: Połączenie odrzucone: /127.0.0.1:7233
Caused by: java.net.ConnectException: finishConnect(..) failed: Połączenie odrzucone
as test tries to connect to temporal's server/client
I've tried to run test (in groovy) that needs to start part of spring context (@WebMvcTest) and I don't need or even want temporal stuff running.
For this code:
active spring profiles should be:
temporal_testandsecurity-test, but onlysecurity_testis active and then I get exception:as test tries to connect to temporal's server/client