Skip to content

Conversation

Raghav-Mah3shwari
Copy link
Contributor

Increasing the maintainability of the code by reducing code smells from gateway-shell

How was this patch tested?

The changes were made in local first then a maven build was triggered. The build was successful

@lmccay
Copy link
Contributor

lmccay commented Jun 12, 2025

@Raghav-Mah3shwari - please show that you have tested the shell functionality related to the changes that you have made. We need to know that there has been some manual testing for the shell work since much of that is hard to unit test. Some example output exercising the the affected code paths would be a good way to do this.

@Raghav-Mah3shwari
Copy link
Contributor Author

Hi @lmccay can you give me some suggestions on how to test it and verify it. Thanks in advance

Copy link
Contributor

@smolnar82 smolnar82 left a comment

Choose a reason for hiding this comment

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

Please use Knox's MesageFactory feature and the relevant interface (in this case this would be org.apache.knox.gateway.shell.KnoxShellMessages) instead of the plain Logger approach.

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.

4 participants