Skip to content

Commit

Permalink
fix(tests): add testing values on cat_feature to test cat_feature_% t…
Browse files Browse the repository at this point in the history
…ables
  • Loading branch information
danimarinBG committed Aug 19, 2024
1 parent be75c96 commit d008c57
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/upsert/ud/test_cat.sql
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ SELECT is((SELECT count(*)::integer FROM cat_work WHERE id = 'work5'), 0, 'DELET


-- Subtest 2: Testing cat_feature_node operations | insert/update/delete (junction, circ_manhole, sewer_storage)
INSERT INTO cat_feature (id, system_id, feature_type, shortcut_key, parent_layer, child_layer, descript, link_path, code_autofill, active, addparam)
VALUES('JUNCTION2', 'JUNCTION', 'NODE', 'N', 'v_edit_node', 've_node_junction', NULL, NULL, true, true, NULL);
INSERT INTO cat_feature (id, system_id, feature_type, shortcut_key, parent_layer, child_layer, descript, link_path, code_autofill, active, addparam)
VALUES('CIRC_MANHOLE2', 'MANHOLE', 'NODE', 'M', 'v_edit_node', 've_node_circ_manhole', NULL, NULL, true, true, '{"code_prefix":"CM_"}'::json);
INSERT INTO cat_feature (id, system_id, feature_type, shortcut_key, parent_layer, child_layer, descript, link_path, code_autofill, active, addparam)
VALUES('SEWER_STORAGE2', 'STORAGE', 'NODE', 'L', 'v_edit_node', 've_node_sewer_storage', NULL, NULL, true, true, NULL);

-- JUNCTION
INSERT INTO cat_feature_node (id, "type", epa_default, num_arcs, choose_hemisphere, isarcdivide, isprofilesurface, isexitupperintro, double_geom)
VALUES('JUNCTION2', 'JUNCTION', 'JUNCTION', 2, true, true, true, 0, '{"activated":false,"value":1}'::json);
Expand Down
7 changes: 7 additions & 0 deletions test/upsert/ws/test_cat.sql
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ SELECT is((SELECT count(*)::integer FROM cat_work WHERE id = 'work5'), 0, 'DELET


-- Subtest 2: Testing cat_feature_node operations | insert/update/delete (junction, circ_manhole, sewer_storage)
INSERT INTO cat_feature (id, system_id, feature_type, shortcut_key, parent_layer, child_layer, descript, link_path, code_autofill, active, addparam)
VALUES('JUNCTION2', 'JUNCTION', 'NODE', 'N', 'v_edit_node', 've_node_junction', NULL, NULL, true, true, NULL);
INSERT INTO cat_feature (id, system_id, feature_type, shortcut_key, parent_layer, child_layer, descript, link_path, code_autofill, active, addparam)
VALUES('CIRC_MANHOLE2', 'MANHOLE', 'NODE', 'M', 'v_edit_node', 've_node_circ_manhole', NULL, NULL, true, true, '{"code_prefix":"CM_"}'::json);
INSERT INTO cat_feature (id, system_id, feature_type, shortcut_key, parent_layer, child_layer, descript, link_path, code_autofill, active, addparam)
VALUES('SEWER_STORAGE2', 'STORAGE', 'NODE', 'L', 'v_edit_node', 've_node_sewer_storage', NULL, NULL, true, true, NULL);

-- JUNCTION
INSERT INTO cat_feature_node (id, "type", epa_default, num_arcs, choose_hemisphere, isarcdivide, graph_delimiter, isprofilesurface, double_geom)
VALUES('JUNCTION2', 'JUNCTION', 'JUNCTION', 2, true, true, 'NONE', false, '{"activated":false,"value":1}'::json);
Expand Down

0 comments on commit d008c57

Please sign in to comment.