Skip to content

Conversation

@stiv03
Copy link
Contributor

@stiv03 stiv03 commented Jan 14, 2026

No description provided.

@stiv03 stiv03 force-pushed the move-the-logic-for-deleting-existing-service-keys branch from 81d8ea6 to 9fa2d02 Compare January 14, 2026 09:42
import static org.junit.jupiter.api.Assertions.assertNull;
import static org.mockito.Mockito.when;

class DetectDeployedMtaStepTest extends SyncFlowableStepTest<DetectDeployedMtaStep> {
Copy link
Contributor

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

@stiv03 stiv03 force-pushed the move-the-logic-for-deleting-existing-service-keys branch from 9fa2d02 to a831ec1 Compare January 15, 2026 13:03
Comment on lines +93 to +96
String mtaId = context.getVariable(Variables.MTA_ID);
String mtaNamespace = context.getVariable(Variables.MTA_NAMESPACE);

addDetectedExistingServiceKeysToDetectedManagedKeys(mtaId, mtaNamespace, context);
Copy link
Contributor

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);
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants