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

Function initEcsTaskTestServer

pkg/credentials/iam_aws_test.go:129–135  ·  view source on GitHub ↗
(expireOn string)

Source from the content-addressed store, hash-verified

127}
128
129func initEcsTaskTestServer(expireOn string) *httptest.Server {
130 server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
131 fmt.Fprintf(w, credsRespEcsTaskTmpl, expireOn)
132 }))
133
134 return server
135}
136
137func initStsTestServer(expireOn string) *httptest.Server {
138 server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {

Callers 2

TestEcsTaskFunction · 0.85
TestEcsTaskFullURIFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected