MCPcopy Create free account
hub / github.com/Azure/ARO-HCP / createAdminAPIHTTPClient

Function createAdminAPIHTTPClient

test/util/framework/admin_api_helpers.go:272–286  ·  view source on GitHub ↗
(identityDetails *AzureIdentityDetails)

Source from the content-addressed store, hash-verified

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.
287func (tc *perItOrDescribeTestContext) GetCurrentAzureIdentityDetails(ctx context.Context) (*AzureIdentityDetails, error) {
288 return tc.perBinaryInvocationTestContext.GetCurrentAzureIdentityDetails(ctx)
289}

Callers 5

GetSerialConsoleLogsMethod · 0.85
ListStampsMethod · 0.85
GetStampMethod · 0.85
GetManagementClusterMethod · 0.85

Calls 1

IsDevelopmentEnvironmentFunction · 0.85

Tested by

no test coverage detected