Add unit tests to the "ConfigShowCmd" mmctl command

Description

Mattermost is increasing the unit test coverage for the mmctl CLI tool. Through the use of a mocked client that will simulate the interactions with the server, the goal is to create a suite of tests that check the tool's behavior in a flexible and robust way.

This Help Wanted issue covers the addition of unit tests to the ConfigShowCmd command, in the commands/config.go file. The expected way to add these tests is to create a test function in the commands/config_test.go file and add one s.Run block for each possible test case.

For more information on how to add a unit test to mmctl, take a look at the campaign blogpost: https://developers.mattermost.com/blog/unit-testing-mmctl-commands/

Example: mattermost/mmctl#37

If you have questions about the ticket or you need any help, feel free to post your question in the community CLI channel or contact miguel.delacruz in https://community.mattermost.com/.

QA Test Steps

There is no new functionality to test as part of this ticket, only the tests are modified.

Status

Mana

None

Assignee

Mattermost Community

QA Assignee

None

Reporter

Miguel de la Cruz

Epic Link

Fix versions

Mattermost Team

Platform

Sprint

None

Labels

None

QA Testing Areas

None

Components

None
Configure