From f3fe786c978da97eb1bee3e62d667866d6b0e16d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nico=20P=C3=A9rez?= Date: Mon, 26 Aug 2024 14:42:13 +0200 Subject: [PATCH] fix(tests): add correct om_mincut to pass all tests on setmincut --- test/plsql/ws/test_gw_fct_setmincut.sql | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/plsql/ws/test_gw_fct_setmincut.sql b/test/plsql/ws/test_gw_fct_setmincut.sql index cd7b6455ca..91a25c3a81 100644 --- a/test/plsql/ws/test_gw_fct_setmincut.sql +++ b/test/plsql/ws/test_gw_fct_setmincut.sql @@ -14,7 +14,10 @@ SET search_path = "SCHEMA_NAME", public, pg_catalog; SELECT plan(3); -- Previous inserts before test -INSERT INTO om_mincut VALUES (-901); +INSERT INTO om_mincut +(id, work_order, mincut_state, mincut_class, mincut_type, received_date, expl_id, macroexpl_id, muni_id, postcode, streetaxis_id, postnumber, anl_cause, anl_tstamp, anl_user, anl_descript, anl_feature_id, anl_feature_type, anl_the_geom, forecast_start, forecast_end, assigned_to, exec_start, exec_end, exec_user, exec_descript, exec_the_geom, exec_from_plot, exec_depth, exec_appropiate, notified, "output", modification_date, chlorine, turbidity, minsector_id) +VALUES(-901, NULL, 0, 1, NULL, NULL, 1, 1, 1, NULL, NULL, NULL, NULL, '2024-08-26 12:54:48.514', 'postgres', NULL, '2108', 'ARC', 'SRID=25831;POINT (419337.2864432267 4576622.70708354)'::public.geometry, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '{"minsector_id":"2108","psectors":{"used":"f", "unselected":2}, "arcs":{"number":"31", "length":"1713.3", "volume":"16.51"}, "connecs":{"number":"90","hydrometers":{"total":"416","classified":[{"category":"business","number":"11"},{"category":"Domestic","number":"85"},{"category":"Industry","number":"123"},{"category":"Other","number":"126"},{"category":"Shops","number":"67"}]}}, "valve":{"proposed":"5","closed":"0"}}'::json, NULL, NULL, NULL, NULL); + -- Extract and test the "status" field from the function's JSON response SELECT is (