Use github.com/Netflix/go-expect to test interactive prompts
Problem to solve
The CLI makes use of interactive prompts, but does not have the same level of coverage. For example, the auth login tests do not test the login prompts during the auth flow. We've worked around this by manually testing these flows, but this can be time consuming to do, and can accidentally be skipped.
Proposal
The github.com/Netflix/go-expect module provides the functionality we require to test interactive flows. We should adopt this module, and use it to test interactive prompts.
Links / references
Edited by Oscar Tovar