feat: reimplement influx secret CLI command (#125)

* refactor: rename `getPassword` to `getSecret`
This commit is contained in:
Dane Strandboge
2021-06-21 13:33:51 -05:00
committed by GitHub
parent a4fdefc392
commit 23e73e9146
21 changed files with 1777 additions and 20 deletions

View File

@ -573,7 +573,7 @@ func TestClient_SetPassword(t *testing.T) {
stdio := mock.NewMockStdIO(ctrl)
stdio.EXPECT().Write(gomock.Any()).DoAndReturn(stdout.Write).AnyTimes()
if !tc.noExpectAsk {
stdio.EXPECT().GetPassword(gomock.Any(), gomock.Any()).Return("mypassword", nil).Times(2)
stdio.EXPECT().GetSecret(gomock.Any(), gomock.Any()).Return("mypassword", nil).Times(2)
}
cli := user.Client{CLI: clients.CLI{StdIO: stdio}, UsersApi: userApi}