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:
Héctor Hurtado
2019-10-04 13:55:36 +02:00
parent b93a5a0c98
commit 6b34047d75
6 changed files with 31 additions and 80 deletions
+4 -3
View File
@@ -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)
}