FakeGCPCredentials gets fake GCP credentials.
(ctx context.Context)
| 45 | |
| 46 | // FakeGCPCredentials gets fake GCP credentials. |
| 47 | func FakeGCPCredentials(ctx context.Context) (*google.Credentials, error) { |
| 48 | return google.CredentialsFromJSON(ctx, []byte(`{"type": "service_account", "project_id": "my-project-id"}`)) |
| 49 | } |
| 50 | |
| 51 | func awsV2Config(ctx context.Context, region string, client *http.Client) (awsv2.Config, error) { |
| 52 | // Provide fake creds if running in replay mode. |
no outgoing calls