Merge pull request #11742 from kwoyke/JAVA-9605

JAVA-9605: Disable security for the integration tests
This commit is contained in:
Loredana Crusoveanu 2022-01-27 13:29:27 +02:00 committed by GitHub
commit 30c54f2623
2 changed files with 6 additions and 2 deletions

View File

@ -2,12 +2,14 @@ package com.baeldung.springcloudgateway.customfilters.secondservice;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.security.reactive.ReactiveSecurityAutoConfiguration;
import org.springframework.boot.test.autoconfigure.web.reactive.WebFluxTest;
import org.springframework.test.web.reactive.server.WebTestClient;
import com.baeldung.springcloudgateway.customfilters.secondservice.web.SecondServiceRestController;
@WebFluxTest(SecondServiceRestController.class)
@WebFluxTest(controllers = SecondServiceRestController.class,
excludeAutoConfiguration = ReactiveSecurityAutoConfiguration.class)
public class SecondServiceIntegrationTest {
@Autowired

View File

@ -2,13 +2,15 @@ package com.baeldung.springcloudgateway.customfilters.service;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.security.reactive.ReactiveSecurityAutoConfiguration;
import org.springframework.boot.test.autoconfigure.web.reactive.WebFluxTest;
import org.springframework.http.HttpHeaders;
import org.springframework.test.web.reactive.server.WebTestClient;
import com.baeldung.springcloudgateway.customfilters.service.web.ServiceRestController;
@WebFluxTest(ServiceRestController.class)
@WebFluxTest(controllers = ServiceRestController.class,
excludeAutoConfiguration = ReactiveSecurityAutoConfiguration.class)
public class ServiceIntegrationTest {
@Autowired