Skip to content

Commit

Permalink
fix(tests): add correct om_mincut to pass all tests on setmincut
Browse files Browse the repository at this point in the history
  • Loading branch information
nperez-bgeo committed Aug 26, 2024
1 parent af4dd7a commit f3fe786
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/plsql/ws/test_gw_fct_setmincut.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit f3fe786

Please sign in to comment.