-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PM-837 env variables grouped in single string #116
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@andrearovere maven build of this branch fails: JUnit tests should be updated too
src/main/java/it/pagopa/pm/gateway/client/azure/AzureLoginClient.java
Outdated
Show resolved
Hide resolved
src/main/java/it/pagopa/pm/gateway/client/azure/AzureLoginClient.java
Outdated
Show resolved
Hide resolved
src/main/java/it/pagopa/pm/gateway/client/azure/AzureLoginClient.java
Outdated
Show resolved
Hide resolved
src/main/java/it/pagopa/pm/gateway/client/azure/AzureLoginClient.java
Outdated
Show resolved
Hide resolved
src/main/java/it/pagopa/pm/gateway/client/bpay/BancomatPayClient.java
Outdated
Show resolved
Hide resolved
src/main/java/it/pagopa/pm/gateway/client/bpay/BancomatPayClient.java
Outdated
Show resolved
Hide resolved
src/main/java/it/pagopa/pm/gateway/client/bpay/BancomatPayClient.java
Outdated
Show resolved
Hide resolved
src/main/java/it/pagopa/pm/gateway/client/azure/AzureLoginClient.java
Outdated
Show resolved
Hide resolved
src/main/java/it/pagopa/pm/gateway/client/azure/AzureLoginClient.java
Outdated
Show resolved
Hide resolved
configsMap.put(TAG, listConfig.get(2)); | ||
configsMap.put(TOKEN, listConfig.get(3)); | ||
|
||
configValues = configsMap; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Init of the Map
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I meant:
if (!MapUtils.isEmpty(configValues)) { return; }
this fragment evaluates private Map<String, String> configValues;
which is a private local variable and is always empty before evaluation, since you are using this method as first statement in each callers.
Thus, your code should always hit that "return:" and skip the instantiation.
Anyway, I don't get this statement either:
configValues = configsMap;
why should it be needed?
configsMap.put(TAG, listConfig.get(2)); | ||
configsMap.put(TOKEN, listConfig.get(3)); | ||
|
||
configValues = configsMap; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I meant:
if (!MapUtils.isEmpty(configValues)) { return; }
this fragment evaluates private Map<String, String> configValues;
which is a private local variable and is always empty before evaluation, since you are using this method as first statement in each callers.
Thus, your code should always hit that "return:" and skip the instantiation.
Anyway, I don't get this statement either:
configValues = configsMap;
why should it be needed?
…hub.com/pagopa/pagopa-payment-transactions-gateway into PM-837-environment-variables-retrieving # Conflicts: # src/main/java/it/pagopa/pm/gateway/client/bpay/BancomatPayClient.java # src/test/java/it/pagopa/pm/gateway/client/BPayClientTests.java
These changes need to be tested in local environment before deploying them in SIT |
List of Changes
Environment variables for clients grouped in a single string
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist:
Link to story