-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
34e6208
commit b041d3c
Showing
11 changed files
with
312 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
This file is part of Giswater 3 | ||
The program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. | ||
This version of Giswater is provided by Giswater Association | ||
*/ | ||
BEGIN; | ||
|
||
-- Suppress NOTICE messages | ||
SET client_min_messages TO WARNING; | ||
|
||
SET search_path = "SCHEMA_NAME", public, pg_catalog; | ||
|
||
-- Plan for 1 test | ||
SELECT plan(1); | ||
|
||
-- Extract and test the "status" field from the function's JSON response | ||
SELECT is ( | ||
(gw_fct_gettypeahead($${"client":{"device":4, "lang":"", "infoType":1, "epsg":25831}, "form":{}, | ||
"feature":{}, "data":{"filterFields":{}, "pageInfo":{}, | ||
"queryText":"SELECT id, id as idval FROM cat_node WHERE id IS NOT NULL AND active IS TRUE ", | ||
"queryTextFilter":" AND cat_node.node_type IS NULL OR cat_node.node_type", "parentId":"node_type", | ||
"parentValue":"CIRC_MANHOLE", "textToSearch":"1"}}$$)::JSON)->>'status', | ||
'Accepted', | ||
'Check if gw_fct_gettypeahead returns status "Accepted"' | ||
); | ||
|
||
-- Finish the test | ||
SELECT finish(); | ||
|
||
ROLLBACK; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
This file is part of Giswater 3 | ||
The program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. | ||
This version of Giswater is provided by Giswater Association | ||
*/ | ||
BEGIN; | ||
|
||
-- Suppress NOTICE messages | ||
SET client_min_messages TO WARNING; | ||
|
||
SET search_path = "SCHEMA_NAME", public, pg_catalog; | ||
|
||
-- Plan for 1 test | ||
SELECT plan(1); | ||
|
||
-- Extract and test the "status" field from the function's JSON response | ||
SELECT is( | ||
(gw_fct_om_visit_multiplier($${"client":{"device":4, "lang":"", "infoType":1, "epsg":25831}, "form":{}, | ||
"feature":{"id":"1995"}, "data":{"filterFields":{}, "pageInfo":{}}}$$)::JSON)->>'status', | ||
'Accepted', | ||
'Check if gw_fct_om_visit_multiplier returns status "Accepted"' | ||
); | ||
|
||
-- Finish the test | ||
SELECT finish(); | ||
|
||
ROLLBACK; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
This file is part of Giswater 3 | ||
The program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. | ||
This version of Giswater is provided by Giswater Association | ||
*/ | ||
BEGIN; | ||
|
||
-- Suppress NOTICE messages | ||
SET client_min_messages TO WARNING; | ||
|
||
SET search_path = "SCHEMA_NAME", public, pg_catalog; | ||
|
||
-- Plan for 1 test | ||
SELECT plan(1); | ||
|
||
-- Extract and test the "status" field from the function's JSON response | ||
SELECT is( | ||
(gw_fct_rpt2pg_main($${"client":{"device":4, "lang":"", "infoType":1, "epsg":25831}, "form":{}, "feature":{}, | ||
"data":{"filterFields":{}, "pageInfo":{}, "step":"2", "resultId":"test"}}$$)::JSON)->>'status', | ||
'Accepted', | ||
'Check if gw_fct_rpt2pg_main returns status "Accepted"' | ||
); | ||
|
||
-- Finish the test | ||
SELECT finish(); | ||
|
||
ROLLBACK; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
This file is part of Giswater 3 | ||
The program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. | ||
This version of Giswater is provided by Giswater Association | ||
*/ | ||
BEGIN; | ||
|
||
-- Suppress NOTICE messages | ||
SET client_min_messages TO WARNING; | ||
|
||
SET search_path = "SCHEMA_NAME", public, pg_catalog; | ||
|
||
-- Plan for 1 test | ||
SELECT plan(1); | ||
|
||
-- Extract and test the "status" field from the function's JSON response | ||
SELECT is( | ||
(gw_fct_setfeaturereplace($${"client":{"device":4, "lang":"", "infoType":1, "epsg":25831}, "form":{}, "feature":{"type":"arc"}, | ||
"data":{"filterFields":{}, "pageInfo":{}, "old_feature_id":"154", "feature_type_new":"WACCEL", "featurecat_id":"WACCEL-CC020", | ||
"workcat_id_end":"work1", "enddate":"2024-08-27", "keep_elements":"False", "keep_epa_values":"True"}}$$)::JSON)->>'status', | ||
'Accepted', | ||
'Check if gw_fct_setfeaturereplace returns status "Accepted"' | ||
); | ||
|
||
-- Finish the test | ||
SELECT finish(); | ||
|
||
ROLLBACK; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
This file is part of Giswater 3 | ||
The program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. | ||
This version of Giswater is provided by Giswater Association | ||
*/ | ||
BEGIN; | ||
|
||
-- Suppress NOTICE messages | ||
SET client_min_messages TO WARNING; | ||
|
||
SET search_path = "SCHEMA_NAME", public, pg_catalog; | ||
|
||
-- Plan for 1 test | ||
SELECT plan(1); | ||
|
||
-- Extract and test the "status" field from the function's JSON response | ||
SELECT is( | ||
(gw_fct_om_visit_multiplier($${"client":{"device":4, "lang":"", "infoType":1, "epsg":25831}, "form":{}, | ||
"feature":{"id":"990"}, "data":{"filterFields":{}, "pageInfo":{}}}$$)::JSON)->>'status', | ||
'Accepted', | ||
'Check if gw_fct_om_visit_multiplier returns status "Accepted"' | ||
); | ||
|
||
-- Finish the test | ||
SELECT finish(); | ||
|
||
ROLLBACK; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
This file is part of Giswater 3 | ||
The program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. | ||
This version of Giswater is provided by Giswater Association | ||
*/ | ||
BEGIN; | ||
|
||
-- Suppress NOTICE messages | ||
SET client_min_messages TO WARNING; | ||
|
||
SET search_path = "SCHEMA_NAME", public, pg_catalog; | ||
|
||
-- Plan for 1 test | ||
SELECT plan(1); | ||
|
||
-- Extract and test the "status" field from the function's JSON response | ||
SELECT is( | ||
(gw_fct_rpt2pg_main($${"client":{"device":4, "lang":"", "infoType":1, "epsg":25831}, "form":{}, "feature":{}, | ||
"data":{"filterFields":{}, "pageInfo":{}, "step":"2", "resultId":"test0"}}$$)::JSON)->>'status', | ||
'Accepted', | ||
'Check if gw_fct_rpt2pg_main returns status "Accepted"' | ||
); | ||
|
||
-- Finish the test | ||
SELECT finish(); | ||
|
||
ROLLBACK; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
This file is part of Giswater 3 | ||
The program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. | ||
This version of Giswater is provided by Giswater Association | ||
*/ | ||
BEGIN; | ||
|
||
-- Suppress NOTICE messages | ||
SET client_min_messages TO WARNING; | ||
|
||
SET search_path = "SCHEMA_NAME", public, pg_catalog; | ||
|
||
-- Plan for 1 test | ||
SELECT plan(1); | ||
|
||
-- Extract and test the "status" field from the function's JSON response | ||
SELECT is( | ||
(gw_fct_set_rpt_archived($${"client":{"device":4, "lang":"", "infoType":1, "epsg":25831}, "form":{}, "feature":{}, | ||
"data":{"filterFields":{}, "pageInfo":{}, "result_id":"test0", "action": "ARCHIVE"}}$$)::JSON)->>'status', | ||
'Accepted', | ||
'Check if gw_fct_set_rpt_archived returns status "Accepted"' | ||
); | ||
|
||
-- Finish the test | ||
SELECT finish(); | ||
|
||
ROLLBACK; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
This file is part of Giswater 3 | ||
The program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. | ||
This version of Giswater is provided by Giswater Association | ||
*/ | ||
BEGIN; | ||
|
||
-- Suppress NOTICE messages | ||
SET client_min_messages TO WARNING; | ||
|
||
SET search_path = "SCHEMA_NAME", public, pg_catalog; | ||
|
||
-- Plan for 1 test | ||
SELECT plan(1); | ||
|
||
-- Extract and test the "status" field from the function's JSON response | ||
SELECT is( | ||
(gw_fct_setfeaturereplace($${"client":{"device":4, "lang":"", "infoType":1, "epsg":25831}, "form":{}, "feature":{"type":"arc"}, | ||
"data":{"filterFields":{}, "pageInfo":{}, "old_feature_id":"113854", "feature_type_new":"PIPE", "featurecat_id":"FD150", | ||
"workcat_id_end":"work1", "enddate":"2017-12-06", "keep_elements":"False", "keep_epa_values":"False"}}$$)::JSON)->>'status', | ||
'Accepted', | ||
'Check if gw_fct_setfeaturereplace returns status "Accepted"' | ||
); | ||
|
||
-- Finish the test | ||
SELECT finish(); | ||
|
||
ROLLBACK; |