(serviceCode string)
| 169 | } |
| 170 | |
| 171 | func blobStorageError(serviceCode string) error { |
| 172 | resp := &http.Response{ |
| 173 | Header: http.Header{ |
| 174 | textproto.CanonicalMIMEHeaderKey("x-ms-error-code"): []string{serviceCode}, |
| 175 | }, |
| 176 | Request: httptest.NewRequest("GET", "/blobby/blob", nil), // azure error handling code will panic if Request is unset |
| 177 | } |
| 178 | |
| 179 | return runtime.NewResponseError(resp) |
| 180 | } |
| 181 | |
| 182 | func TestObjectWithPrefix(t *testing.T) { |
| 183 | tests := []struct { |