(expireOn string)
| 127 | } |
| 128 | |
| 129 | func 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 | |
| 137 | func initStsTestServer(expireOn string) *httptest.Server { |
| 138 | server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { |
no outgoing calls
no test coverage detected