The test-common module is the shared framework of the integration tests. It starts the processes that a test
needs, gives the test clients for the management API, MCP and the CLI, and stops the processes at the end. This page
explains how a test run works, so that you can read a test and find the cause of a failure.
mvn verify (one module)
└── SharedInfrastructure once for each module
└── Wanaku Server started once, shared by all test classes of the module
└── test class
└── test method new RouterClient and MCP client
└── capabilities CIC, fixture servers: started and stopped by the test or its base class
SharedInfrastructureExtension). It reads the
system properties (TestConfiguration.fromSystemProperties()), creates a temporary data directory and starts one
Wanaku Server. If the server binary is not available, it starts nothing, and the tests skip.BaseIntegrationTest creates a RouterClient for the management API and an MCP client for the
default namespace.Some tests in governance-tests, router-tests and semantic-router-tests start their own servers with a special
configuration instead of the shared server.
WanakuServerManager starts the wanaku-server binary:
wanaku.yaml to temporary files, and gives them with --pipeline-config
and --wanaku-config. The pipeline has only the filters that the configured server supports (see
What the workflow builds).WANAKU_MGMT_LISTEN, WANAKU_PERSIST_BACKEND and, when set,
WANAKU_FORWARD_HEADERS.GET /healthz on the management port answers.The server has no authentication, so the clients do not send an access token.
Each process manager (WanakuServerManager, CamelCapabilityManager, MockMcpServerManager,
SemanticRouterManager, OpaServerManager) extends ProcessManager. ProcessManager starts the process, writes
its output to a log file in <module>/target/logs/, runs the health check, and stops the process.
A test checks its infrastructure with assumeThat. If something is missing, the test skips instead of failing.
SkipThresholdExtension fails the module when more than 30% of its tests skip. See
Skipped tests.