Added gock.IsDone() to route list and remove tests. Remove content type in route remove command. Removed disturbing data for texts. Remove unneeded test in set command.
This commit is contained in:
@@ -6,7 +6,8 @@ import (
|
||||
"github.com/BBVA/kapow/internal/http"
|
||||
)
|
||||
|
||||
// TODO: Review spec: Data API > Error responses > 204 Resource Item Not Found should not be 2xx
|
||||
func SetData(kapowURL, handlerId, path string, r io.Reader) error {
|
||||
return http.Put(kapowURL+"/"+handlerId+path, "", r, nil)
|
||||
func SetData(host, handlerID, path string, r io.Reader) error {
|
||||
|
||||
url := host + "/handlers/" + handlerID + path
|
||||
return http.Put(url, "", r, nil)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user