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

OZG-4095 config: Use `stage` profile

parent 27562f2d
Branches
Tags
2 merge requests!9Draft: Ozg 4094 wiremock ausprobieren,!7Ozg-4094 Konfiguration für nachrichten-manager
Pipeline #1553 passed
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<groupId>de.ozgcloud.osiv2</groupId> <groupId>de.ozgcloud.osiv2</groupId>
<artifactId>osiv2-postfach</artifactId> <artifactId>osiv2-postfach</artifactId>
<version>0.1.1-SNAPSHOT</version> <version>0.1.0-SNAPSHOT</version>
<name>OZG-Cloud-OSIv2-Postfach</name> <name>OZG-Cloud-OSIv2-Postfach</name>
<description>OSIv2-Postfach-Anbindung für OZG-Cloud-Nachrichten</description> <description>OSIv2-Postfach-Anbindung für OZG-Cloud-Nachrichten</description>
...@@ -25,6 +25,11 @@ ...@@ -25,6 +25,11 @@
</properties> </properties>
<dependencies> <dependencies>
<!-- OZG-Cloud --> <!-- OZG-Cloud -->
<dependency>
<groupId>de.ozgcloud.api-lib</groupId>
<artifactId>ozg-cloud-spring-boot-starter</artifactId>
<version>${api-lib.version}</version>
</dependency>
<dependency> <dependency>
<groupId>de.ozgcloud.nachrichten</groupId> <groupId>de.ozgcloud.nachrichten</groupId>
<artifactId>nachrichten-manager-postfach-interface</artifactId> <artifactId>nachrichten-manager-postfach-interface</artifactId>
......
spring:
security:
oauth2:
client:
registration:
osi2:
client-id: 'OZG-Kopfstelle'
client-secret: 'changeme'
scope: default, access_urn:dataport:osi:sh:stage:ozgkopfstelle
authorization-grant-type: 'client_credentials'
client-authentication-method: client_secret_post
provider:
osi2:
token-uri: 'https://idp.serviceportal-stage.schleswig-holstein.de/webidp2/connect/token'
ozgcloud:
osiv2-postfach:
enabled: true
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:
enabled: true
host: 127.0.0.1
port: 3128
spring: spring:
jackson: jackson:
default-property-inclusion: NON_NULL default-property-inclusion: NON_NULL
security:
oauth2:
client:
registration:
osi2:
client-id: 'OZG-Kopfstelle'
client-secret: 'changeme'
scope: default, access_urn:dataport:osi:sh:stage:ozgkopfstelle
authorization-grant-type: 'client_credentials'
client-authentication-method: client_secret_post
provider:
osi2:
token-uri: 'https://idp.serviceportal-stage.schleswig-holstein.de/webidp2/connect/token'
ozgcloud:
osiv2-postfach:
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:
enabled: true
host: 127.0.0.1
port: 3128
...@@ -38,7 +38,7 @@ import de.ozgcloud.nachrichten.postfach.osiv2.gen.model.MessageExchangeReceiveMe ...@@ -38,7 +38,7 @@ import de.ozgcloud.nachrichten.postfach.osiv2.gen.model.MessageExchangeReceiveMe
import lombok.SneakyThrows; import lombok.SneakyThrows;
@SpringBootTest(classes = TestApplication.class) @SpringBootTest(classes = TestApplication.class)
@ActiveProfiles("itcase") @ActiveProfiles({"itcase", "stage"})
@TestPropertySource(properties = { @TestPropertySource(properties = {
"ozgcloud.osiv2-postfach.http-proxy.enabled=false", "ozgcloud.osiv2-postfach.http-proxy.enabled=false",
}) })
......
...@@ -23,7 +23,7 @@ import de.ozgcloud.nachrichten.postfach.osiv2.factory.PostfachAddressTestFactory ...@@ -23,7 +23,7 @@ import de.ozgcloud.nachrichten.postfach.osiv2.factory.PostfachAddressTestFactory
import de.ozgcloud.nachrichten.postfach.osiv2.factory.PostfachNachrichtTestFactory; import de.ozgcloud.nachrichten.postfach.osiv2.factory.PostfachNachrichtTestFactory;
@SpringBootTest(classes = TestApplication.class) @SpringBootTest(classes = TestApplication.class)
@ActiveProfiles("local") @ActiveProfiles({ "local", "stage" })
@EnabledIfEnvironmentVariable(named = "SH_STAGE_CLIENT_SECRET", matches = ".+") @EnabledIfEnvironmentVariable(named = "SH_STAGE_CLIENT_SECRET", matches = ".+")
public class OsiPostfachRemoteServiceRemoteITCase { public class OsiPostfachRemoteServiceRemoteITCase {
......
ozgcloud:
osiv2-postfach:
enabled: true
logging: logging:
level: level:
de.ozgcloud.nachrichten.postfach.osiv2: DEBUG de.ozgcloud.nachrichten.postfach.osiv2: DEBUG
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment