Skip to content

@TemporalTest doesn't work when @ActiveProfiles is used #32

@SilverSheep

Description

@SilverSheep

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions