(t *testing.T)
| 18 | ) |
| 19 | |
| 20 | func seedToken(t *testing.T) { |
| 21 | t.Helper() |
| 22 | keyring.MockInit() |
| 23 | require.NoError(t, auth.SaveToken(&dashboard.OAuthTokenResponse{ |
| 24 | AccessToken: "test-token", |
| 25 | ExpiresIn: 3600, |
| 26 | CreatedAt: time.Now().Unix(), |
| 27 | })) |
| 28 | } |
| 29 | |
| 30 | // newServer stubs the dashboard PATCH endpoint, echoing the requested name back |
| 31 | // in the response so the command's success output can be asserted. |