--- helpers ----------------------------------------------------------- newTestBackend constructs a fully wired *Backend that uses static dummy AWS credentials so LoadDefaultConfig doesn't reach out to IMDS/SSO. The resulting STS client would only be invoked if a test path slipped past the fail-clos
(t *testing.T)
| 262 | // the fail-closed guard — in which case the dummy creds would still |
| 263 | // trigger a fast, deterministic failure rather than a real AWS call. |
| 264 | func newTestBackend(t *testing.T) *Backend { |
| 265 | t.Helper() |
| 266 | return backendForCreds(t, &Credentials{ |
| 267 | AccessPointARN: "arn:aws:s3:us-east-1:123456789012:accesspoint/chainloop-org-abc", |
| 268 | Region: "us-east-1", |
| 269 | BaseRoleARN: "arn:aws:iam::123456789012:role/chainloop-cas-tenant", |
| 270 | }) |
| 271 | } |
| 272 | |
| 273 | func backendForCreds(t *testing.T, creds *Credentials) *Backend { |
| 274 | t.Helper() |
no test coverage detected