Skip to content

Commit

Permalink
chore: update to unit test in ansible build include pg_grapqhl and pg…
Browse files Browse the repository at this point in the history
…_jsonschema

for orioledb
  • Loading branch information
samrose committed Jan 11, 2025
1 parent 7a7c40d commit bb1f017
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions ansible/tasks/test-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@
- '*postgis*.sql'
- '*pgrouting*.sql'
- '*plv8*.sql'
- '*pg_jsonschema*.sql'
- '*pg_graphql*.sql'
register: files_to_remove
when: is_psql_oriole

Expand All @@ -91,29 +89,6 @@
loop: "{{ files_to_remove.files }}"
when: is_psql_oriole
become: yes

- name: Remove specified extensions from SQL file
ansible.builtin.command:
cmd: >
sed -i "/'pg_graphql',/d" /tmp/unit-tests/unit-test-01.sql
when: is_psql_oriole
become: yes

- name: Remove graphql schema test
lineinfile:
path: /tmp/migrations/tests/database/exists.sql
regexp: "^SELECT has_schema\\('graphql'\\);$"
state: absent
become: yes
when: is_psql_oriole

- name: Remove graphql schema test
lineinfile:
path: /tmp/migrations/tests/database/exists.sql
regexp: "^SELECT has_schema\\('graphql_public'\\);$"
state: absent
become: yes
when: is_psql_oriole

- name: Run Unit tests (with filename unit-test-*) on Postgres Database
shell: /usr/bin/pg_prove -U postgres -h localhost -d postgres -v /tmp/unit-tests/unit-test-*.sql
Expand Down

0 comments on commit bb1f017

Please sign in to comment.