Skip to content

Commit

Permalink
Merge pull request #12 from cipherstash/cip-1035-remove-domain-types-…
Browse files Browse the repository at this point in the history
…in-examples-and-tests

Remove custome domain types from django tests/examples
  • Loading branch information
coderdan authored Dec 11, 2024
2 parents 2937e96 + 4b3a5e2 commit a4809bd
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 117 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ jobs:
sudo apt-get install -y postgresql-client
- name: Install EQL
run: curl -L https://github.com/cipherstash/encrypt-query-language/releases/download/eql-0.4.3/cipherstash-encrypt.sql | psql -h localhost -p 5432 -U postgres eqlpy_test
- name: Create appliaction types
run: psql -h localhost -p 5432 -U postgres eqlpy_test < tests/integration/support/application_types.sql
- name: Create test table
run: psql -h localhost -p 5432 -U postgres eqlpy_test < tests/integration/support/create_examples_table.sql
- name: Print dataset ID
Expand Down
1 change: 0 additions & 1 deletion examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ Please note currently pscyopg2 is required with the sqlalchemy example
* Start PostgreSQL and CipherStash Proxy using `docker compose`: `docker compose up -d`
* Run the following commands to install eql, create domain types, and example table:
* `$ curl -L https://github.com/cipherstash/encrypt-query-language/releases/download/eql-0.4.3/cipherstash-encrypt.sql | psql -h localhost -p 5432 -U postgres eqlpy_example`
* `$ psql -h localhost -p 5432 -U postgres eqlpy_example < application_types.sql`
* `$ psql -h localhost -p 5432 -U postgres eqlpy_example < create_examples_table.sql`

## Execution
Expand Down
51 changes: 0 additions & 51 deletions examples/application_types.sql

This file was deleted.

12 changes: 6 additions & 6 deletions examples/create_examples_table.sql
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
create table examples (
id serial primary key,
encrypted_boolean examples__encrypted_boolean,
encrypted_date examples__encrypted_date,
encrypted_float examples__encrypted_float,
encrypted_int examples__encrypted_int,
encrypted_utf8_str examples__encrypted_utf8_str,
encrypted_jsonb examples__encrypted_jsonb
encrypted_boolean cs_encrypted_v1,
encrypted_date cs_encrypted_v1,
encrypted_float cs_encrypted_v1,
encrypted_int cs_encrypted_v1,
encrypted_utf8_str cs_encrypted_v1,
encrypted_jsonb cs_encrypted_v1
);

-- Add CipherStash indexes to Encrypt config
Expand Down
51 changes: 0 additions & 51 deletions tests/integration/support/application_types.sql

This file was deleted.

12 changes: 6 additions & 6 deletions tests/integration/support/create_examples_table.sql
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
create table customers (
id serial primary key,
is_citizen customers__is_citizen,
start_date customers__start_date,
weight customers__weight,
age customers__age,
name customers__name,
extra_info customers__extra_info,
is_citizen cs_encrypted_v1,
start_date cs_encrypted_v1,
weight cs_encrypted_v1,
age cs_encrypted_v1,
name cs_encrypted_v1,
extra_info cs_encrypted_v1,
visit_count integer
);

Expand Down

0 comments on commit a4809bd

Please sign in to comment.