feat: reimplement influx secret
CLI command (#125)
* refactor: rename `getPassword` to `getSecret`
This commit is contained in:
@ -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}
|
||||
|
Reference in New Issue
Block a user