Trying to fix tests

parent 5cc94532
......@@ -69,7 +69,7 @@ import static org.springframework.cloud.netflix.zuul.filters.support.FilterConst
@RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest(classes = FormZuulServletProxyApplication.class, webEnvironment = RANDOM_PORT,
properties = {"zuul.routes.simplefzspat:/simplefzspat/**", "logging.level.org.springframework.cloud.netflix.zuul: DEBUG"})
properties = {"zuul.routes[simplefzspat].path:/simplefzspat/**", "zuul.routes[simplefzspat].serviceId:simplefzspat"})
@DirtiesContext
public class FormZuulServletProxyApplicationTests {
......
......@@ -46,10 +46,12 @@ import org.springframework.web.bind.annotation.RestController;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.springframework.boot.test.context.SpringBootTest.WebEnvironment.RANDOM_PORT;
import static org.springframework.cloud.netflix.zuul.filters.support.FilterConstants.PRE_TYPE;
@RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest(classes = SimpleZuulServerApplication.class, webEnvironment = WebEnvironment.RANDOM_PORT)
@SpringBootTest(classes = SimpleZuulServerApplication.class, webEnvironment = RANDOM_PORT,
properties = "zuul.routes[testclient]:/testing123/**")
@DirtiesContext
public class SimpleZuulServerApplicationTests {
......
Markdown is supported
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