MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / ConnectionString

Method ConnectionString

pkg/blobmanager/s3/backend_test.go:367–374  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

365}
366
367func (c *minioInstance) ConnectionString(t *testing.T) string {
368 ctx, cancel := context.WithTimeout(context.Background(), time.Minute)
369 defer cancel()
370 p, err := c.instance.MappedPort(ctx, "9000")
371 assert.NoError(t, err)
372
373 return fmt.Sprintf("0.0.0.0:%d", p.Num())
374}
375
376type minioInstance struct {
377 instance testcontainers.Container

Callers 2

SetupTestMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected