From 55eccdb9736bc6101acf2be47a7af51ea8d3685b Mon Sep 17 00:00:00 2001 From: Rafael Solorzano <61289255+rafasdc@users.noreply.github.com> Date: Thu, 16 May 2024 10:52:53 -0700 Subject: [PATCH] test(db): correct db unit tests --- db/test/unit/tables/cbc_data_test.sql | 4 ++-- db/test/unit/tables/cbc_test.sql | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/db/test/unit/tables/cbc_data_test.sql b/db/test/unit/tables/cbc_data_test.sql index 1a26ef5c3b..db8fb73bb8 100644 --- a/db/test/unit/tables/cbc_data_test.sql +++ b/db/test/unit/tables/cbc_data_test.sql @@ -1,6 +1,6 @@ begin; -select plan(8); +select plan(10); -- Table exists select has_table( @@ -32,7 +32,7 @@ select table_privs_are( ); select table_privs_are( - 'ccbc_public', 'cbc_data', 'ccbc_analyst', ARRAY['SELECT', 'INSERT', 'UPDATE'], + 'ccbc_public', 'cbc_data', 'ccbc_analyst', ARRAY['SELECT'], 'ccbc_analyst can select from cbc_data table' ); diff --git a/db/test/unit/tables/cbc_test.sql b/db/test/unit/tables/cbc_test.sql index d2abad6c98..de79759ff3 100644 --- a/db/test/unit/tables/cbc_test.sql +++ b/db/test/unit/tables/cbc_test.sql @@ -30,7 +30,7 @@ select table_privs_are( ); select table_privs_are( - 'ccbc_public', 'cbc', 'ccbc_analyst', ARRAY['SELECT', 'INSERT', 'UPDATE'], + 'ccbc_public', 'cbc', 'ccbc_analyst', ARRAY['SELECT'], 'ccbc_analyst can select from cbc table' );