redhat-developer / app-services-cli

Command Line Interface for RHOAS
https://redhat-developer.github.io/app-services-website/
Apache License 2.0
41 stars 72 forks source link

test(whoami): add unit tests for whoami cmd #1829

Closed rkpattnaik780 closed 1 year ago

rkpattnaik780 commented 1 year ago

Added unit test for rhoas whoami command.

Verification Steps

  1. Run the command make test.
  2. Passing of PR checks imply the tests are passing.

Type of change

jackdelahunt commented 1 year ago

This is just a separate thing but when I run the test suite this test takes 1.4s to run. Nothing wrong with the test just strange that it takes so long wondering what it is doing to begin each test that makes it so slow

rkpattnaik780 commented 1 year ago

This is just a separate thing but when I run the test suite this test takes 1.4s to run. Nothing wrong with the test just strange that it takes so long wondering what it is doing to begin each test that makes it so slow

github.com/redhat-developer/app-services-cli/pkg/cmd/token  [no test files]
?       github.com/redhat-developer/app-services-cli/pkg/cmd/version    [no test files]
ok      github.com/redhat-developer/app-services-cli/pkg/cmd/whoami 0.132s

It takes 0.132 if I check the github checks.