MCPcopy
hub / github.com/minio/minio-go / TestIMDSv1Blocked

Function TestIMDSv1Blocked

pkg/credentials/iam_aws_test.go:412–421  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

410}
411
412func TestIMDSv1Blocked(t *testing.T) {
413 server := initIMDSv2Server("2014-12-16T01:51:37Z", false)
414 p := &IAM{
415 Endpoint: server.URL,
416 }
417 _, err := p.RetrieveWithCredContext(defaultCredContext)
418 if err != nil {
419 t.Errorf("Unexpected IMDSv2 failure %s", err)
420 }
421}

Callers

nothing calls this directly

Calls 2

initIMDSv2ServerFunction · 0.85

Tested by

no test coverage detected