(t *testing.T)
| 33 | } |
| 34 | |
| 35 | func TestRevokeAlTokens(t *testing.T) { |
| 36 | cmd := test.GetRootCmdWithSubCommands(NewCmds()...) |
| 37 | cmd.SetArgs([]string{"revoke-all-tokens", "--before", "2000"}) |
| 38 | _, err := cmd.ExecuteC() |
| 39 | require.NoError(t, err) |
| 40 | require.Contains(t, cmd.OutOrStdout().(*bytes.Buffer).String(), "Successfully revoked all tokens") |
| 41 | } |
nothing calls this directly
no test coverage detected