From c36951f41b3f7ca36382720ac6fe1bb2027e8caf Mon Sep 17 00:00:00 2001 From: Martin Davis Date: Fri, 5 Jul 2024 17:03:40 -0700 Subject: [PATCH] Fix test for case-sensitive properties --- internal/service/handler_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/service/handler_test.go b/internal/service/handler_test.go index 59e4a742..1f705dd3 100644 --- a/internal/service/handler_test.go +++ b/internal/service/handler_test.go @@ -50,6 +50,7 @@ type FeatureCollection struct { } const urlBase = "http://test" + var basePath = "/pg_featureserv" var catalogMock *data.CatalogMock @@ -319,10 +320,9 @@ func TestBBoxInvalid(t *testing.T) { func TestProperties(t *testing.T) { // Tests: - // - property names are non-case-sensitive // - names are made unique (properties only include once) // - non-existing names are ignored - rr := doRequest(t, "/collections/mock_a/items?limit=2&properties=PROP_A,prop_C,prop_a,not_prop") + rr := doRequest(t, "/collections/mock_a/items?limit=2&properties=PROP_A,prop_c,prop_a,not_prop") var v FeatureCollection errUnMarsh := json.Unmarshal(readBody(rr), &v) @@ -398,7 +398,7 @@ func TestFunctionMissingItemsNotFound(t *testing.T) { doRequestStatus(t, "/functions/missing/items", http.StatusNotFound) } -//============ Test HTML generation +// ============ Test HTML generation // For now these just test that the template executes correctly // correctness/completess of HTML is not tested func TestHTMLRoot(t *testing.T) {