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

Function TestIAMMalformedEndpoint

pkg/credentials/iam_aws_test.go:157–163  ·  pkg/credentials/iam_aws_test.go::TestIAMMalformedEndpoint
(t *testing.T)

Source from the content-addressed store, hash-verified

155}
156
157func TestIAMMalformedEndpoint(t *testing.T) {
158 creds := NewIAM("%%%%")
159 _, err := creds.GetWithContext(defaultCredContext)
160 if err == nil {
161 t.Fatal("Unexpected should fail here")
162 }
163}
164
165func TestIAMFailServer(t *testing.T) {
166 server := initTestFailServer()

Callers

nothing calls this directly

Calls 2

NewIAMFunction · 0.85
GetWithContextMethod · 0.80

Tested by

no test coverage detected