(t *testing.T)
| 410 | } |
| 411 | |
| 412 | func 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 | } |
nothing calls this directly
no test coverage detected