We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e60861a commit 918130dCopy full SHA for 918130d
tasks/reset.sh
@@ -26,5 +26,8 @@ fail_if_postgres_not_running
26
# Uninstall
27
cat release/cipherstash-encrypt-uninstall.sql | docker exec -i ${container_name} psql ${connection_url} -f-
28
29
+# Wipe test data
30
+cat tests/999-wipe-test-data.sql | docker exec -i ${container_name} psql ${connection_url} -f-
31
+
32
# Install
33
cat release/cipherstash-encrypt.sql | docker exec -i ${container_name} psql ${connection_url} -f-
tests/999-wipe-test-data.sql
@@ -0,0 +1,7 @@
1
+-- !!! Only used during tests !!
2
+-- Fully clean out the database between test runs
3
4
+DROP SCHEMA public CASCADE;
5
+CREATE SCHEMA public;
6
+GRANT ALL ON SCHEMA public TO postgres;
7
+GRANT ALL ON SCHEMA public TO public;
0 commit comments