Skip to content
Snippets Groups Projects
Commit acc143f7 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-4814 Added @ITCase Annotation to MongoConfigServerITCase

parent 189af1d2
Branches
Tags
No related merge requests found
......@@ -10,18 +10,19 @@ import org.springframework.boot.test.web.client.TestRestTemplate;
import org.springframework.boot.test.web.server.LocalServerPort;
import org.springframework.cloud.config.environment.Environment;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import de.ozgcloud.admin.AdministrationApplication;
import de.ozgcloud.common.test.ITCase;
import lombok.var;
@SpringBootTest(classes = AdministrationApplication.class, webEnvironment = WebEnvironment.DEFINED_PORT)
@SpringBootTest(webEnvironment = WebEnvironment.DEFINED_PORT)
@ITCase
class MongoConfigServerITCase {
@LocalServerPort
private int port;
@Test
void shouldHaveHttpEndpoint() throws Exception {
ResponseEntity<Environment> response = new TestRestTemplate().getForEntity("http://localhost:"
var response = new TestRestTemplate().getForEntity("http://localhost:"
+ port + "/" + MongoPropertySourceTestFactory.APPNAME + "/" + MongoPropertySourceTestFactory.PROFILE, Environment.class);
assertEquals(HttpStatus.OK, response.getStatusCode());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment