Commit 4089413a authored by Jyrgen Hannus's avatar Jyrgen Hannus
Browse files

TEIS-2073: fixed office api gateway MockMvc dependencies

parent 96b18290
......@@ -17,6 +17,7 @@ dependencies {
integTestImplementation "ee.sm.ti.teis:service-common-lib:${commonsVersion}"
integTestImplementation "ee.sm.ti.teis:gateway-common-lib:${commonsVersion}"
integTestImplementation "ee.sm.ti.teis:common-api-gateway-lib:${commonApiGatewayVersion}"
integTestImplementation 'org.springframework.security:spring-security-test:5.4.1'
compile project(':office-api-gateway-lib')
}
......
package ee.sm.ti.teis.officegateway;
import ee.sm.ti.teis.OfficeApiGateway;
import ee.sm.ti.teis.gatewaycommon.config.JacksonIntegTestConfig;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.util.TestPropertyValues;
import org.springframework.context.ApplicationContextInitializer;
......@@ -14,9 +16,10 @@ import org.testcontainers.junit.jupiter.Testcontainers;
@ExtendWith(SpringExtension.class)
@SpringBootTest(classes = OfficeApiGateway.class)
@AutoConfigureMockMvc
@ActiveProfiles({"mockauth", "integtest", "no_keycloak"})
@Testcontainers
@ContextConfiguration(initializers = { OfficeApiGatewayTestBase.Initializer.class })
@ContextConfiguration(initializers = {OfficeApiGatewayTestBase.Initializer.class}, classes = JacksonIntegTestConfig.class)
public abstract class OfficeApiGatewayTestBase {
private static final GenericContainer<?> rabbitMQContainer;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment