Skip to content
Snippets Groups Projects
Select Git revision
  • 8f9608b0e3d16f3e62c3cac9babac63b97955f78
  • main default protected
  • OZG-8073-date-component
  • OZG-7856_schadcode_scanner
  • OZG-7985-Statistik-Datenfreigabe
  • OZG-8305-Create-webpack-sbom
  • tooltip-improvements
  • ods-remove-class-inputs
  • release-info
  • release-administration
  • release
  • OZG-7714-UpgradeKeycloakDependencyTo25
  • OZG-8086-Admin-Datenanfrage-erstellen
  • OZG-8086-Datenanfrage-Umbenennung
  • mongodb-7-0-16-e2e
  • OZG-6220-Bescheid-speichern-ohne-Postfach
  • OZG-7922-KeycloakOperatorExceptions
  • OZG-8142-poc-cards
  • OZG-8086-E2E
  • OZG-8086-E2E2
  • OZG-8142-ProjectionStuff
  • 1.11.0-info
  • 1.11.0-administration
  • 2.26.0-alfa
  • 1.10.0-info
  • 1.10.0-administration
  • 2.25.0-alfa
  • 1.9.0-info
  • 1.9.0-administration
  • 2.24.0-alfa
  • 1.8.0-info
  • 1.8.0-administration
  • 2.23.0-alfa
  • 1.7.0-info
  • 1.7.0-administration
  • 2.22.0-alfa
  • 1.6.0-info
  • 1.6.0-administration
  • 2.21.0-alfa
  • 1.5.0-info
  • 1.5.0-administration
41 results

user-profile-button-container.component.spec.ts

Blame
  • MongoConfigServerTest.java 1.16 KiB
    package de.ozgcloud.admin.environment;
    
    import static org.junit.jupiter.api.Assertions.*;
    
    import org.junit.jupiter.api.Test;
    import org.springframework.boot.test.context.SpringBootTest;
    import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
    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;
    
    @SpringBootTest(classes = AdministrationApplication.class, webEnvironment = WebEnvironment.DEFINED_PORT)
    class MongoConfigServerTest {
    	private final String APPNAME = "testapp";
    	private final String PROFILE = "testprofile";
    	private final String LABEL = "testlabel";
    	@LocalServerPort
    	private int port;
    
    	@Test
    	void shouldHaveHttpEndpoint() {
    		ResponseEntity<Environment> response = new TestRestTemplate().getForEntity("http://localhost:"
    				+ port + "/" + APPNAME + "/" + PROFILE + "/" + LABEL, Environment.class);
    		assertEquals(HttpStatus.OK, response.getStatusCode());
    	}
    }