(identityDetails *AzureIdentityDetails)
| 270 | |
| 271 | select { |
| 272 | case <-ctx.Done(): |
| 273 | return nil, time.Time{}, ctx.Err() |
| 274 | case <-timeout.C: |
| 275 | previousStatusJSON, marshalErr := json.Marshal(previousStatus) |
| 276 | if marshalErr != nil { |
| 277 | return nil, time.Time{}, fmt.Errorf("timeout waiting for session to become ready (failed to marshal last status: %w)", marshalErr) |
| 278 | } |
| 279 | return nil, time.Time{}, fmt.Errorf("timeout waiting for session to become ready (last status: %s)", string(previousStatusJSON)) |
| 280 | case <-ticker.C: |
| 281 | } |
| 282 | } |
| 283 | } |
| 284 | |
| 285 | // GetCurrentAzureIdentityDetails returns the identity details for the current |
| 286 | // Azure credentials configured on the per-invocation test context. |
| 287 | func (tc *perItOrDescribeTestContext) GetCurrentAzureIdentityDetails(ctx context.Context) (*AzureIdentityDetails, error) { |
| 288 | return tc.perBinaryInvocationTestContext.GetCurrentAzureIdentityDetails(ctx) |
| 289 | } |
no test coverage detected