Skip to content
Snippets Groups Projects
Select Git revision
  • 8f9608b0e3d16f3e62c3cac9babac63b97955f78
  • main default protected
  • optimize-storybook
  • OZG-8405-Alfa-Bearbeiter-auswählen-und-entfernen-Design
  • OZG-7986-mandat-anfragen
  • OZG-6978-prevent-other-pages-from-being-called
  • OZG-8378-ods-heading
  • OZG-8314-Alfa-Vorgang-Bearbeiter-Zuweisung-entfernen
  • testing-imports
  • storybook-improvements
  • OZG-7287-forward-saml-token
  • release-administration
  • OZG-8422-BenutzerSpeichern
  • release-info
  • release
  • OZG-7856_schadcode-scanner-e2e
  • OZG-7985-fix-sorting
  • OZG-8305-Create-webpack-sbom
  • tooltip-improvements
  • OZG-7714-UpgradeKeycloakDependencyTo25
  • OZG-8086-Admin-Datenanfrage-erstellen
  • 1.12.1-administration
  • 1.12.0-administration
  • 1.12.0-info
  • 2.27.0-alfa
  • 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
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());
    	}
    }