From 98492e7718b4fee8eb2fc3d917f05f5fae7016c5 Mon Sep 17 00:00:00 2001 From: Akshay Joshi Date: Sun, 22 Mar 2020 16:26:23 +0530 Subject: [PATCH] Modified RESQL test cases for Foreign Tables to fix the build failures. --- .../foreign_tables/tests/pg/9.2_plus/alter_add_priv.sql | 2 +- .../foreign_tables/tests/pg/9.2_plus/alter_add_priv_msql.sql | 2 +- .../foreign_tables/tests/pg/9.2_plus/alter_col_opts.sql | 2 +- .../foreign_tables/tests/pg/9.2_plus/test_foreign_table.json | 4 ---- .../foreign_tables/tests/pg/9.6_plus/alter_add_priv.sql | 2 +- .../foreign_tables/tests/pg/9.6_plus/alter_add_priv_msql.sql | 2 +- .../foreign_tables/tests/pg/9.6_plus/alter_col_opts.sql | 2 +- .../foreign_tables/tests/pg/9.6_plus/test_foreign_table.json | 4 ---- .../foreign_tables/tests/ppas/9.2_plus/alter_add_priv.sql | 2 +- .../tests/ppas/9.2_plus/alter_add_priv_msql.sql | 2 +- .../foreign_tables/tests/ppas/9.2_plus/alter_column.sql | 2 +- .../tests/ppas/9.2_plus/test_foreign_table.json | 4 ---- .../foreign_tables/tests/ppas/9.6_plus/alter_add_priv.sql | 2 +- .../tests/ppas/9.6_plus/alter_add_priv_msql.sql | 2 +- .../foreign_tables/tests/ppas/9.6_plus/alter_col_opts.sql | 2 +- .../tests/ppas/9.6_plus/test_foreign_table.json | 4 ---- 16 files changed, 12 insertions(+), 28 deletions(-) diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/pg/9.2_plus/alter_add_priv.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/pg/9.2_plus/alter_add_priv.sql index 64d3f6583..1ff7174fb 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/pg/9.2_plus/alter_add_priv.sql +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/pg/9.2_plus/alter_add_priv.sql @@ -15,6 +15,6 @@ ALTER FOREIGN TABLE public."FT1_$%{}[]()&*^!@""'`\/#" COMMENT ON FOREIGN TABLE public."FT1_$%{}[]()&*^!@""'`\/#" IS 'Test Comment'; -GRANT INSERT, SELECT ON TABLE public."FT1_$%{}[]()&*^!@""'`\/#" TO PUBLIC; +GRANT SELECT ON TABLE public."FT1_$%{}[]()&*^!@""'`\/#" TO PUBLIC; GRANT ALL ON TABLE public."FT1_$%{}[]()&*^!@""'`\/#" TO postgres; diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/pg/9.2_plus/alter_add_priv_msql.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/pg/9.2_plus/alter_add_priv_msql.sql index 2c6f1712d..20e9b4847 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/pg/9.2_plus/alter_add_priv_msql.sql +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/pg/9.2_plus/alter_add_priv_msql.sql @@ -1 +1 @@ -GRANT INSERT, SELECT ON TABLE public."FT1_$%{}[]()&*^!@""'`\/#" TO PUBLIC; +GRANT SELECT ON TABLE public."FT1_$%{}[]()&*^!@""'`\/#" TO PUBLIC; diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/pg/9.2_plus/alter_col_opts.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/pg/9.2_plus/alter_col_opts.sql index 766836157..25bfb303d 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/pg/9.2_plus/alter_col_opts.sql +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/pg/9.2_plus/alter_col_opts.sql @@ -14,6 +14,6 @@ ALTER FOREIGN TABLE public."FT1_$%{}[]()&*^!@""'`\/#" COMMENT ON FOREIGN TABLE public."FT1_$%{}[]()&*^!@""'`\/#" IS 'Test Comment'; -GRANT INSERT, SELECT ON TABLE public."FT1_$%{}[]()&*^!@""'`\/#" TO PUBLIC; +GRANT SELECT ON TABLE public."FT1_$%{}[]()&*^!@""'`\/#" TO PUBLIC; GRANT ALL ON TABLE public."FT1_$%{}[]()&*^!@""'`\/#" TO postgres; diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/pg/9.2_plus/test_foreign_table.json b/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/pg/9.2_plus/test_foreign_table.json index a0e5b5199..a30693753 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/pg/9.2_plus/test_foreign_table.json +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/pg/9.2_plus/test_foreign_table.json @@ -144,10 +144,6 @@ "grantee":"PUBLIC", "grantor":"postgres", "privileges":[{ - "privilege_type":"a", - "privilege":true, - "with_grant":false - },{ "privilege_type":"r", "privilege":true, "with_grant":false diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/pg/9.6_plus/alter_add_priv.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/pg/9.6_plus/alter_add_priv.sql index 93f4348ca..fd8246613 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/pg/9.6_plus/alter_add_priv.sql +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/pg/9.6_plus/alter_add_priv.sql @@ -18,6 +18,6 @@ ALTER FOREIGN TABLE public."FT1_$%{}[]()&*^!@""'`\/#" COMMENT ON FOREIGN TABLE public."FT1_$%{}[]()&*^!@""'`\/#" IS 'Test Comment'; -GRANT INSERT, SELECT ON TABLE public."FT1_$%{}[]()&*^!@""'`\/#" TO PUBLIC; +GRANT SELECT ON TABLE public."FT1_$%{}[]()&*^!@""'`\/#" TO PUBLIC; GRANT ALL ON TABLE public."FT1_$%{}[]()&*^!@""'`\/#" TO postgres; diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/pg/9.6_plus/alter_add_priv_msql.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/pg/9.6_plus/alter_add_priv_msql.sql index 2c6f1712d..20e9b4847 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/pg/9.6_plus/alter_add_priv_msql.sql +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/pg/9.6_plus/alter_add_priv_msql.sql @@ -1 +1 @@ -GRANT INSERT, SELECT ON TABLE public."FT1_$%{}[]()&*^!@""'`\/#" TO PUBLIC; +GRANT SELECT ON TABLE public."FT1_$%{}[]()&*^!@""'`\/#" TO PUBLIC; diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/pg/9.6_plus/alter_col_opts.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/pg/9.6_plus/alter_col_opts.sql index 56df2575c..d502489c2 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/pg/9.6_plus/alter_col_opts.sql +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/pg/9.6_plus/alter_col_opts.sql @@ -17,6 +17,6 @@ ALTER FOREIGN TABLE public."FT1_$%{}[]()&*^!@""'`\/#" COMMENT ON FOREIGN TABLE public."FT1_$%{}[]()&*^!@""'`\/#" IS 'Test Comment'; -GRANT INSERT, SELECT ON TABLE public."FT1_$%{}[]()&*^!@""'`\/#" TO PUBLIC; +GRANT SELECT ON TABLE public."FT1_$%{}[]()&*^!@""'`\/#" TO PUBLIC; GRANT ALL ON TABLE public."FT1_$%{}[]()&*^!@""'`\/#" TO postgres; diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/pg/9.6_plus/test_foreign_table.json b/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/pg/9.6_plus/test_foreign_table.json index ba800abf8..4929d45f1 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/pg/9.6_plus/test_foreign_table.json +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/pg/9.6_plus/test_foreign_table.json @@ -158,10 +158,6 @@ "grantee":"PUBLIC", "grantor":"postgres", "privileges":[{ - "privilege_type":"a", - "privilege":true, - "with_grant":false - },{ "privilege_type":"r", "privilege":true, "with_grant":false diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/ppas/9.2_plus/alter_add_priv.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/ppas/9.2_plus/alter_add_priv.sql index cb443fd42..9b627c7ee 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/ppas/9.2_plus/alter_add_priv.sql +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/ppas/9.2_plus/alter_add_priv.sql @@ -16,6 +16,6 @@ ALTER FOREIGN TABLE public."FT1_$%{}[]()&*^!@""'`\/#" COMMENT ON FOREIGN TABLE public."FT1_$%{}[]()&*^!@""'`\/#" IS 'Test Comment'; -GRANT INSERT, SELECT ON TABLE public."FT1_$%{}[]()&*^!@""'`\/#" TO PUBLIC; +GRANT SELECT ON TABLE public."FT1_$%{}[]()&*^!@""'`\/#" TO PUBLIC; GRANT ALL ON TABLE public."FT1_$%{}[]()&*^!@""'`\/#" TO enterprisedb; diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/ppas/9.2_plus/alter_add_priv_msql.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/ppas/9.2_plus/alter_add_priv_msql.sql index 2c6f1712d..20e9b4847 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/ppas/9.2_plus/alter_add_priv_msql.sql +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/ppas/9.2_plus/alter_add_priv_msql.sql @@ -1 +1 @@ -GRANT INSERT, SELECT ON TABLE public."FT1_$%{}[]()&*^!@""'`\/#" TO PUBLIC; +GRANT SELECT ON TABLE public."FT1_$%{}[]()&*^!@""'`\/#" TO PUBLIC; diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/ppas/9.2_plus/alter_column.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/ppas/9.2_plus/alter_column.sql index bad8848f6..ed3d9afc5 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/ppas/9.2_plus/alter_column.sql +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/ppas/9.2_plus/alter_column.sql @@ -15,6 +15,6 @@ ALTER FOREIGN TABLE public."FT1_$%{}[]()&*^!@""'`\/#" COMMENT ON FOREIGN TABLE public."FT1_$%{}[]()&*^!@""'`\/#" IS 'Test Comment'; -GRANT INSERT, SELECT ON TABLE public."FT1_$%{}[]()&*^!@""'`\/#" TO PUBLIC; +GRANT SELECT ON TABLE public."FT1_$%{}[]()&*^!@""'`\/#" TO PUBLIC; GRANT ALL ON TABLE public."FT1_$%{}[]()&*^!@""'`\/#" TO enterprisedb; diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/ppas/9.2_plus/test_foreign_table.json b/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/ppas/9.2_plus/test_foreign_table.json index da2fcfc96..e917cfa34 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/ppas/9.2_plus/test_foreign_table.json +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/ppas/9.2_plus/test_foreign_table.json @@ -143,10 +143,6 @@ "grantee":"PUBLIC", "grantor":"enterprisedb", "privileges":[{ - "privilege_type":"a", - "privilege":true, - "with_grant":false - },{ "privilege_type":"r", "privilege":true, "with_grant":false diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/ppas/9.6_plus/alter_add_priv.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/ppas/9.6_plus/alter_add_priv.sql index 5e168cdcc..ef90db2b2 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/ppas/9.6_plus/alter_add_priv.sql +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/ppas/9.6_plus/alter_add_priv.sql @@ -18,6 +18,6 @@ ALTER FOREIGN TABLE public."FT1_$%{}[]()&*^!@""'`\/#" COMMENT ON FOREIGN TABLE public."FT1_$%{}[]()&*^!@""'`\/#" IS 'Test Comment'; -GRANT INSERT, SELECT ON TABLE public."FT1_$%{}[]()&*^!@""'`\/#" TO PUBLIC; +GRANT SELECT ON TABLE public."FT1_$%{}[]()&*^!@""'`\/#" TO PUBLIC; GRANT ALL ON TABLE public."FT1_$%{}[]()&*^!@""'`\/#" TO enterprisedb; diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/ppas/9.6_plus/alter_add_priv_msql.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/ppas/9.6_plus/alter_add_priv_msql.sql index 2c6f1712d..20e9b4847 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/ppas/9.6_plus/alter_add_priv_msql.sql +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/ppas/9.6_plus/alter_add_priv_msql.sql @@ -1 +1 @@ -GRANT INSERT, SELECT ON TABLE public."FT1_$%{}[]()&*^!@""'`\/#" TO PUBLIC; +GRANT SELECT ON TABLE public."FT1_$%{}[]()&*^!@""'`\/#" TO PUBLIC; diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/ppas/9.6_plus/alter_col_opts.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/ppas/9.6_plus/alter_col_opts.sql index 74860b43c..4dc283671 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/ppas/9.6_plus/alter_col_opts.sql +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/ppas/9.6_plus/alter_col_opts.sql @@ -17,6 +17,6 @@ ALTER FOREIGN TABLE public."FT1_$%{}[]()&*^!@""'`\/#" COMMENT ON FOREIGN TABLE public."FT1_$%{}[]()&*^!@""'`\/#" IS 'Test Comment'; -GRANT INSERT, SELECT ON TABLE public."FT1_$%{}[]()&*^!@""'`\/#" TO PUBLIC; +GRANT SELECT ON TABLE public."FT1_$%{}[]()&*^!@""'`\/#" TO PUBLIC; GRANT ALL ON TABLE public."FT1_$%{}[]()&*^!@""'`\/#" TO enterprisedb; diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/ppas/9.6_plus/test_foreign_table.json b/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/ppas/9.6_plus/test_foreign_table.json index 675a544e4..303e1df57 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/ppas/9.6_plus/test_foreign_table.json +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/tests/ppas/9.6_plus/test_foreign_table.json @@ -158,10 +158,6 @@ "grantee":"PUBLIC", "grantor":"enterprisedb", "privileges":[{ - "privilege_type":"a", - "privilege":true, - "with_grant":false - },{ "privilege_type":"r", "privilege":true, "with_grant":false