Skip to content

Commit

Permalink
feat(tests): add structure folder to check structure of the database …
Browse files Browse the repository at this point in the history
…schema
  • Loading branch information
danimarinBG committed Aug 13, 2024
1 parent 1286e56 commit ad38c0d
Show file tree
Hide file tree
Showing 5 changed files with 377 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/database_ud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,9 @@ jobs:
PGPASSWORD: postgres
run: |
pg_prove -h localhost -U postgres -d giswater_test_db test/upsert/ud/*.sql
- name: Run SQL Tests with pgTAP and pg_prove (STRUCTURE)
env:
PGPASSWORD: postgres
run: |
pg_prove -h localhost -U postgres -d giswater_test_db test/structure/ud/*.sql
6 changes: 6 additions & 0 deletions .github/workflows/database_ws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,9 @@ jobs:
PGPASSWORD: postgres
run: |
pg_prove -h localhost -U postgres -d giswater_test_db test/upsert/ws/*.sql
- name: Run SQL Tests with pgTAP and pg_prove (STRUCTURE)
env:
PGPASSWORD: postgres
run: |
pg_prove -h localhost -U postgres -d giswater_test_db test/structure/ws/*.sql
3 changes: 0 additions & 3 deletions test/plsql/ws/test_gw_fct_graphanalytics_mapzones.sql
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,4 @@ SELECT is (
-- Finish the test
SELECT finish();

-- Finish the test
SELECT finish();

ROLLBACK;
Loading

0 comments on commit ad38c0d

Please sign in to comment.