-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into QA-5637-refactor-classe-Miglioramento-cla…
…sse-InvioNotificheB2bSteps
- Loading branch information
Showing
60 changed files
with
814 additions
and
465 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#TRACING | ||
pn.interop.tracing.base-url=https://api.dev.tracing.interop.pagopa.it | ||
tracing.success.csv.filepath=src/main/resources/tracing/dev/tracing-ok.csv | ||
tracing.error.csv.filepath=src/main/resources/tracing/dev/tracing-error.csv | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#TRACING | ||
pn.interop.tracing.base-url=https://api.qa.tracing.interop.pagopa.it | ||
tracing.success.csv.filepath=src/main/resources/tracing/qa/tracing-ok.csv | ||
tracing.error.csv.filepath=src/main/resources/tracing/qa/tracing-error.csv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
spring.profiles.active=qa | ||
#TRACING | ||
pn.interop.tracing.base-url=https://api.qa.tracing.interop.pagopa.it | ||
pn.interop.tracing.bearerToken-1=${interop.configuration.tracing.bearerToken-1} | ||
pn.interop.tracing.bearerToken-2=${interop.configuration.tracing.bearerToken-2} | ||
#PURPOSE_ID 28874634-6ea6-4def-b200-7377182c71be | ||
interop.configuration.tracing.bearerToken-1=eyJhbGciOiJSUzI1NiIsInVzZSI6InNpZyIsInR5cCI6ImF0K2p3dCIsImtpZCI6IjBiOTEwNmExLWRiMGMtNDg4Zi05MDg0LWNlOGM2MzIxNDJiYyJ9.eyJqdGkiOiJhMGQzN2QxYy1iMzU3LTRlN2EtYjIzYy05MDViNTU3NzA2NjciLCJpc3MiOiJ0cmFjaW5nLWlzc3VlciIsImF1ZCI6Imh0dHA6Ly9sb2NhbGhvc3Q6NDAwMSIsInN1YiI6InRyYWNpbmctc3ViamVjdCIsImlhdCI6MTcyOTYwNzUwMCwibmJmIjoxNzI5NjA3NTAwLCJleHAiOjE4Mjk2MDc0OTksIm9yZ2FuaXphdGlvbklkIjoiMGU5ZTJkYWItMmU5My00ZjI0LWJhNTktMzhkOWYxMTE5OGNhIiwicm9sZSI6ImludGVybmFsIn0.AEhPS-dnJWwTOY1gN5gqKtfAswKxZtRTPozHVM2xbG4TD3oSoo5TCyLyvPWYezFMEIIueMZykeiBnUvT_EEePl018cpio_lrlmKqHpGiYe-9u_6EU-cmPTAU9Cnpu6yESS7KyaGziFHm-Rp7qxmjnMsMgKG6IpxgmnbEwxnu4pBiFwHx_sJyUtVks7xZr50UVRzpNQNYRv9ypko140fx85bDQHyNzFqLa75wFX3hiF2yi7A-vmEuwqVwCRrpwuphMksNaSEs-E8bbxnXeq1zeiav7oc9wZHtnPruhth9fr6PoTcPwtftLEEh_QH_IssciqpTY8stA0S4AMwvFYyP_w | ||
#PURPOSE_ID 5602d95a-9297-4221-86d0-f142b8690d5c | ||
interop.configuration.tracing.bearerToken-2=eyJhbGciOiJSUzI1NiIsInVzZSI6InNpZyIsInR5cCI6ImF0K2p3dCIsImtpZCI6IjBiOTEwNmExLWRiMGMtNDg4Zi05MDg0LWNlOGM2MzIxNDJiYyJ9.eyJqdGkiOiI0MDNlYzc3ZC01OGM3LTQwMmYtYTg4Zi1iYzNmODFjMTBiNGIiLCJpc3MiOiJ0cmFjaW5nLWlzc3VlciIsImF1ZCI6Imh0dHA6Ly9sb2NhbGhvc3Q6NDAwMSIsInN1YiI6InRyYWNpbmctc3ViamVjdCIsImlhdCI6MTczMDI3NzkwOCwibmJmIjoxNzMwMjc3OTA4LCJleHAiOjE4MzAyNzc5MDcsIm9yZ2FuaXphdGlvbklkIjoiNjllMjg2NWUtNjVhYi00ZTQ4LWE2MzgtMjAzN2E5ZWUyZWU3Iiwicm9sZSI6ImludGVybmFsIn0.JH2Rs9pDCHlMCBmrIvMOiCKd6eb_Xs1OdIDG47ET5gTpd1uPFio0wwHpKBnhzVZpjuFzi14EaMVHRuZqLq7NBkP4-xRAP5_muOdCKjRu6gcJVagXVTwtFXw-3WnP7jFX8FEOqjqmRoA83hX4s_dPewKZbqtC8VkKDPAHOaN9I0ZEUWwzwn9X07gCJPi3jimfhdsk4YgjcR4qlTUif73hxcHwNvfpiCqYCAXZDa_KWcz7D_QQsOLxRWFHKgfGNRr5gbuYDBSykb-ZLqsxecnXyhc3Fpwe5rTnIHWKcITfRNQjej5YnJ88HUyPrTqLqOfGvWIM3kY4n82Vt1oJYSmQNA | ||
tracing.success.csv.filepath=src/main/resources/tracing/dev/tracing-ok.csv | ||
tracing.error.csv.filepath=src/main/resources/tracing/dev/tracing-error.csv | ||
|
||
#INTEROP GLOBAL PROPERTIES | ||
bff.base-url=https://selfcare.qa.interop.pagopa.it/1.0/backend-for-frontend | ||
session.tokens.duration.seconds=3000 | ||
interop-env=qa | ||
max-polling-try-ms=50 | ||
max-polling-sleep-ms=1000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 6 additions & 2 deletions
8
interop-qa-tests/src/main/java/it/pagopa/interop/agreement/service/IAgreementClient.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
...a-tests/src/main/java/it/pagopa/interop/agreement/service/impl/EServiceApiClientImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...-tests/src/main/java/it/pagopa/interop/attribute/service/impl/AttributeApiClientImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
...ts/src/main/java/it/pagopa/interop/authorization/service/factory/InteropTokenFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package it.pagopa.interop.authorization.service.factory; | ||
|
||
import it.pagopa.interop.authorization.service.utils.ConfigFileReader; | ||
import it.pagopa.interop.conf.InteropClientConfigs; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
import lombok.extern.slf4j.Slf4j; | ||
import org.springframework.beans.factory.config.ConfigurableBeanFactory; | ||
import org.springframework.context.annotation.Scope; | ||
import org.springframework.stereotype.Component; | ||
|
||
import java.util.Map; | ||
|
||
@Slf4j | ||
@Getter | ||
@Setter | ||
public class InteropTokenFactory extends SessionTokenFactory { | ||
private static final String WELLKNOWN_URL = "https://qa.interop.pagopa.it/.well-known/jwks.json"; | ||
private Map<String, Map<String, String>> cachedTokens = null; | ||
|
||
public InteropTokenFactory(InteropClientConfigs interopClientConfigs, ConfigFileReader configFileReader) { | ||
super(interopClientConfigs, configFileReader); | ||
} | ||
|
||
public Map<String, Map<String, String>> loadToken() { | ||
getSessionTokenPayloadTemplate().put("aud", "{{ENVIRONMENT}}.interop.pagopa.it/ui"); | ||
try { | ||
if (cachedTokens == null) cachedTokens = generateSessionToken(); | ||
} catch (Exception ex) { | ||
throw new IllegalArgumentException("There was an error while creating the session token: " + ex.getMessage(), ex); | ||
} | ||
return cachedTokens; | ||
} | ||
|
||
@Override | ||
public String getRemoteWellknownUrl() { | ||
return WELLKNOWN_URL; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
...ts/src/main/java/it/pagopa/interop/authorization/service/factory/TracingTokenFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package it.pagopa.interop.authorization.service.factory; | ||
|
||
import it.pagopa.interop.authorization.service.utils.ConfigFileReader; | ||
import it.pagopa.interop.conf.InteropClientConfigs; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
import lombok.extern.slf4j.Slf4j; | ||
import org.springframework.beans.factory.config.ConfigurableBeanFactory; | ||
import org.springframework.context.annotation.Scope; | ||
import org.springframework.stereotype.Component; | ||
|
||
import java.util.Map; | ||
|
||
@Slf4j | ||
@Getter | ||
@Setter | ||
public class TracingTokenFactory extends SessionTokenFactory { | ||
private static final String WELLKNOWN_URL = "https://tracing-qa-only-well-known-qa.s3.eu-south-1.amazonaws.com/.well-known/jwks.json"; | ||
private Map<String, Map<String, String>> cachedTokens = null; | ||
|
||
public TracingTokenFactory(InteropClientConfigs interopClientConfigs, ConfigFileReader configFileReader) { | ||
super(interopClientConfigs, configFileReader); | ||
} | ||
|
||
@Override | ||
public Map<String, Map<String, String>> loadToken() { | ||
getSessionTokenPayloadTemplate().put("aud", "{{ENVIRONMENT}}.interop.pagopa.it/m2m"); | ||
try { | ||
if (cachedTokens == null) cachedTokens = generateSessionToken(); | ||
} catch (Exception ex) { | ||
throw new IllegalArgumentException("There was an error while creating the session token: " + ex.getMessage(), ex); | ||
} | ||
return cachedTokens; | ||
} | ||
|
||
@Override | ||
public String getRemoteWellknownUrl() { | ||
return WELLKNOWN_URL; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...-tests/src/main/java/it/pagopa/interop/authorization/service/impl/ProducerClientImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.