Skip to content
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

Allow runCmds to change user. #1772

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

JensGroenborgAndersen
Copy link

As discussed in #913 (comment), except the user tag is not limited to the first entry. A user tag will however disable the optimize option

As discussed in fabric8io#913 (comment), except the user tag is not limited to the first entry.
A user tag will however disable the optimize option.

Signed-off-by: Jens Andersen <jega@dbc.dk>
Signed-off-by: Jens Andersen <jega@dbc.dk>
Copy link

sonarcloud bot commented Apr 11, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
57.1% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

@rohanKanojia rohanKanojia self-requested a review April 24, 2024 10:36
@@ -101,7 +101,7 @@ public String decrypt(String password) {

@BeforeEach
void containerSetup() throws ComponentLookupException, SecDispatcherException {
Mockito.lenient().when(container.lookup(SecDispatcher.ROLE, "maven")).thenReturn(secDispatcher);
// Mockito.lenient().when(container.lookup(SecDispatcher.ROLE, "maven")).thenReturn(secDispatcher);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this mockito expectation commented out?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ugh i guess I forgot about those. As i remember, it happened because the Security dispatcher stuff doesn't work with never versions of maven. I guess it should be enabled, so that whoever knows how it is supposed to work can make the appropriate fixes.

// throw new MojoExecutionException("Error looking security dispatcher",e);
// } catch (ReflectiveOperationException e) {
// throw new MojoExecutionException("Cannot decrypt password: " + e.getCause(),e);
// }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code is used for decrypting password from maven settings.xml . Why is this commented out? Disabling this might cause problems for users who are using encryption with maven

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

Signed-off-by: Jens Andersen <jega@dbc.dk>
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.

None yet

2 participants