Closed benoitdm-oslandia closed 1 year ago
from handler_db_update_test.go, remove the properties block:
handler_db_update_test.go
properties
func (t *DbTests) TestUpdateSimpleFeatureDb() { t.Test.Run("TestUpdateSimpleFeatureDb", func(t *testing.T) { path := "/collections/mock_a/items/2" var header = make(http.Header) header.Add("Content-Type", api.ContentTypeSchemaPatchJSON) jsonStr := `{ "type": "Feature", "id": "2", "geometry": { "type": "Point", "coordinates": [ -120, 40 ] } }`
The test fail:
test_http.go:125: handler returned wrong status code for url '/collections/mock_a/items/2'. Caused by: Error: Unable to update feature in Collection: mock_a Caused by: ERROR: syntax error at or near "," (SQLSTATE 42601) - expected: 204; got: 500
from
handler_db_update_test.go
, remove theproperties
block:The test fail: