Skip to content
Snippets Groups Projects
Commit d8fbdaf3 authored by Jan Zickermann's avatar Jan Zickermann
Browse files

OZG-4094 merge: Adjust config values

parent 4e25644f
Branches
Tags
2 merge requests!9Draft: Ozg 4094 wiremock ausprobieren,!7Ozg-4094 Konfiguration für nachrichten-manager
Pipeline #1595 passed
......@@ -17,7 +17,7 @@ import lombok.Setter;
@RequiredArgsConstructor
public class Osi2PostfachProperties {
static final String PREFIX = "ozgcloud.osiv2";
public static final String PREFIX = "ozgcloud.osiv2";
private boolean enabled;
......@@ -30,7 +30,7 @@ public class Osi2PostfachProperties {
@Configuration
@ConfigurationProperties(prefix = ApiConfiguration.PREFIX)
public static class ApiConfiguration {
static final String PREFIX = Osi2PostfachProperties.PREFIX + ".api";
public static final String PREFIX = Osi2PostfachProperties.PREFIX + ".api";
private String resource;
private String url;
......@@ -47,7 +47,7 @@ public class Osi2PostfachProperties {
@Configuration
@ConfigurationProperties(prefix = ProxyConfiguration.PREFIX)
public static class ProxyConfiguration {
static final String PREFIX = Osi2PostfachProperties.PREFIX + ".proxy";
public static final String PREFIX = Osi2PostfachProperties.PREFIX + ".proxy";
private boolean enabled;
......
......@@ -13,14 +13,14 @@ spring:
osi2:
token-uri: 'https://idp.serviceportal-stage.schleswig-holstein.de/webidp2/connect/token'
ozgcloud:
osiv2-postfach:
osiv2:
enabled: false
api:
resource: 'urn:dataport:osi:postfach:rz2:stage:sh'
url: 'https://api-gateway-stage.dataport.de:443/api/osi_postfach/1.0.0'
tenant: 'SH'
name-identifier: 'ozgkopfstelle'
http-proxy:
proxy:
enabled: true
host: 127.0.0.1
port: 3128
......@@ -38,7 +38,7 @@ import de.ozgcloud.nachrichten.postfach.osiv2.gen.model.MessageExchangeReceiveMe
import lombok.SneakyThrows;
@SpringBootTest(classes = TestApplication.class)
@ActiveProfiles({"stage", "itcase"})
@ActiveProfiles({ "stage", "itcase" })
@TestPropertySource(properties = {
"ozgcloud.osiv2.proxy.enabled=false",
})
......
......@@ -6,7 +6,6 @@ import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.stream.Stream;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
......
......@@ -81,6 +81,7 @@ class OsiPostfachRemoteServiceTest {
verify(postfachApiFacadeService).deleteMessage(any());
}
@DisplayName("should throw osi postfach exception on runtime exception")
@Test
void shouldThrowOsiPostfachExceptionOnRuntimeException() {
......
ozgcloud:
osiv2-postfach:
osiv2:
enabled: true
logging:
level:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment