seedToken installs an in-memory keyring with a valid token.
(t *testing.T)
| 81 | |
| 82 | // seedToken installs an in-memory keyring with a valid token. |
| 83 | func seedToken(t *testing.T) { |
| 84 | t.Helper() |
| 85 | keyring.MockInit() |
| 86 | require.NoError(t, auth.SaveToken(&dashboard.OAuthTokenResponse{ |
| 87 | AccessToken: "test-token", |
| 88 | ExpiresIn: 3600, |
| 89 | CreatedAt: time.Now().Unix(), |
| 90 | })) |
| 91 | } |
| 92 | |
| 93 | func samplePlanTemplates() []dashboard.PlanTemplateResource { |
| 94 | return []dashboard.PlanTemplateResource{ |