generates http response with bucket location set in the body.
(resp *http.Response, bodyContent []byte)
| 276 | |
| 277 | // generates http response with bucket location set in the body. |
| 278 | func generateLocationResponse(resp *http.Response, bodyContent []byte) (*http.Response, error) { |
| 279 | resp.StatusCode = http.StatusOK |
| 280 | resp.Body = io.NopCloser(bytes.NewBuffer(bodyContent)) |
| 281 | return resp, nil |
| 282 | } |
| 283 | |
| 284 | // Tests the processing of GetPolicy response from server. |
| 285 | func TestProcessBucketLocationResponse(t *testing.T) { |
no outgoing calls
no test coverage detected