Introduce auth as a subcommand

This commit is contained in:
Seth Vargo
2017-09-07 21:56:39 -04:00
parent 9f19e5de01
commit fc535647fc
12 changed files with 473 additions and 954 deletions

View File

@@ -89,7 +89,7 @@ func TestAuthEnableCommand_Run(t *testing.T) {
t.Errorf("expected %d to be %d", code, exp)
}
expected := "Success! Enabled userpass auth provider at:"
expected := "Success! Enabled userpass auth method at:"
combined := ui.OutputWriter.String() + ui.ErrorWriter.String()
if !strings.Contains(combined, expected) {
t.Errorf("expected %q to contain %q", combined, expected)