提交
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
package com.baiyue.gateway.config;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.core.io.ClassPathResource;
|
||||
|
||||
import java.nio.charset.StandardCharsets;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
class FirstlegContainerRouteContractTest {
|
||||
@Test
|
||||
void routesContainers() throws Exception {
|
||||
String yaml = new ClassPathResource("application.yml")
|
||||
.getContentAsString(StandardCharsets.UTF_8);
|
||||
|
||||
assertThat(yaml).contains("/api/platform/v1/containers/**");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user