-
Notifications
You must be signed in to change notification settings - Fork 42
Move the logic for deleting existing service keys #1763
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
base: master
Are you sure you want to change the base?
Move the logic for deleting existing service keys #1763
Conversation
81d8ea6 to
9fa2d02
Compare
# Conflicts: # multiapps-controller-process/src/main/java/org/cloudfoundry/multiapps/controller/process/steps/DetectDeployedMtaStep.java
...main/java/org/cloudfoundry/multiapps/controller/core/cf/clients/CustomServiceKeysClient.java
Outdated
Show resolved
Hide resolved
...main/java/org/cloudfoundry/multiapps/controller/core/cf/clients/CustomServiceKeysClient.java
Outdated
Show resolved
Hide resolved
...-controller-core/src/main/java/org/cloudfoundry/multiapps/controller/core/util/NameUtil.java
Outdated
Show resolved
Hide resolved
...troller-core/src/test/java/org/cloudfoundry/multiapps/controller/core/util/NameUtilTest.java
Show resolved
Hide resolved
...main/java/org/cloudfoundry/multiapps/controller/process/steps/BuildCloudDeployModelStep.java
Outdated
Show resolved
Hide resolved
| import static org.junit.jupiter.api.Assertions.assertNull; | ||
| import static org.mockito.Mockito.when; | ||
|
|
||
| class DetectDeployedMtaStepTest extends SyncFlowableStepTest<DetectDeployedMtaStep> { |
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.
Should you add unit tests for updated logic
9fa2d02 to
a831ec1
Compare
| String mtaId = context.getVariable(Variables.MTA_ID); | ||
| String mtaNamespace = context.getVariable(Variables.MTA_NAMESPACE); | ||
|
|
||
| addDetectedExistingServiceKeysToDetectedManagedKeys(mtaId, mtaNamespace, context); |
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.
you are passing the context to addDetectedExistingServiceKeysToDetectedManagedKeys.
just get the mtaId and namespace in the method
| String spaceGuid = context.getVariable(Variables.SPACE_GUID); | ||
| String userGuid = context.getVariable(Variables.USER_GUID); | ||
| OAuth2AccessTokenWithAdditionalInfo token = tokenService.getToken(userGuid); | ||
| CloudCredentials credentials = new CloudCredentials(token, true); |
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.
refreshable is true by default, not needed, even though not used at all
No description provided.