Changeset: e20de3cc4942 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=e20de3cc4942
Added Files:
        sql/test/BugTracker-2018/Tests/truncate_add_user.sql
        sql/test/BugTracker-2018/Tests/truncate_add_user.stable.err
        sql/test/BugTracker-2018/Tests/truncate_add_user.stable.out
        sql/test/BugTracker-2018/Tests/truncate_bam_tables.Bug-6543.reqtests
        sql/test/BugTracker-2018/Tests/truncate_remove_user.sql
        sql/test/BugTracker-2018/Tests/truncate_remove_user.stable.err
        sql/test/BugTracker-2018/Tests/truncate_remove_user.stable.out
        
sql/test/BugTracker-2018/Tests/truncate_sys_netcdf_tables.Bug-6543.reqtests
        sql/test/BugTracker-2018/Tests/truncate_sys_tables.Bug-6543.reqtests
Modified Files:
        sql/test/BugTracker-2018/Tests/All
Branch: Mar2018
Log Message:

Create and use a new user for testing TRUNCATE permissions.


diffs (246 lines):

diff --git a/sql/test/BugTracker-2018/Tests/All 
b/sql/test/BugTracker-2018/Tests/All
--- a/sql/test/BugTracker-2018/Tests/All
+++ b/sql/test/BugTracker-2018/Tests/All
@@ -19,9 +19,11 @@ sqlitelogictest-in-cast-null.Bug-6529
 sqlitelogictest-not-in-wrong-results.Bug-6530
 copy-into-ignore-column-1.Bug-6532
 count_from_commented_function_signatures.Bug-6542
-#HAVE_NETCDF?truncate_sys_netcdf_tables.Bug-6543
-#HAVE_SAMTOOLS?truncate_bam_tables.Bug-6543
-#truncate_sys_tables.Bug-6543
+truncate_add_user
+USER=testuser&PASSWD=testpassword&HAVE_NETCDF?truncate_sys_netcdf_tables.Bug-6543
+USER=testuser&PASSWD=testpassword&HAVE_SAMTOOLS?truncate_bam_tables.Bug-6543
+USER=testuser&PASSWD=testpassword?truncate_sys_tables.Bug-6543
+truncate_remove_user
 truncate_empty_table.Bug-6544
 sqlitelogictest-in-query.Bug-6545
 sqlitelogictest-in-with-division.Bug-6546
diff --git a/sql/test/BugTracker-2018/Tests/truncate_add_user.sql 
b/sql/test/BugTracker-2018/Tests/truncate_add_user.sql
new file mode 100644
--- /dev/null
+++ b/sql/test/BugTracker-2018/Tests/truncate_add_user.sql
@@ -0,0 +1,1 @@
+CREATE USER "testuser" WITH PASSWORD 'testpassword' NAME 'Test User' SCHEMA 
"sys";
diff --git a/sql/test/BugTracker-2018/Tests/truncate_add_user.stable.err 
b/sql/test/BugTracker-2018/Tests/truncate_add_user.stable.err
new file mode 100644
--- /dev/null
+++ b/sql/test/BugTracker-2018/Tests/truncate_add_user.stable.err
@@ -0,0 +1,36 @@
+stderr of test 'truncate_add_user` in directory 'sql/test/BugTracker-2018` 
itself:
+
+
+# 10:38:15 >  
+# 10:38:15 >  "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" 
"mapi_open=true" "--set" "mapi_port=34048" "--set" 
"mapi_usock=/var/tmp/mtest-21106/.s.monetdb.34048" "--set" "monet_prompt=" 
"--forcemito" 
"--dbpath=/ufs/sjoerd/@Monet-candidate/var/MonetDB/mTests_sql_test_BugTracker-2018"
 "--set" "embedded_r=yes" "--set" "embedded_py=true"
+# 10:38:15 >  
+
+# builtin opt  gdk_dbpath = 
/ufs/sjoerd/@Monet-candidate/var/monetdb5/dbfarm/demo
+# builtin opt  gdk_debug = 0
+# builtin opt  gdk_vmtrim = no
+# builtin opt  monet_prompt = >
+# builtin opt  monet_daemon = no
+# builtin opt  mapi_port = 50000
+# builtin opt  mapi_open = false
+# builtin opt  mapi_autosense = false
+# builtin opt  sql_optimizer = default_pipe
+# builtin opt  sql_debug = 0
+# cmdline opt  gdk_nr_threads = 0
+# cmdline opt  mapi_open = true
+# cmdline opt  mapi_port = 34048
+# cmdline opt  mapi_usock = /var/tmp/mtest-21106/.s.monetdb.34048
+# cmdline opt  monet_prompt = 
+# cmdline opt  gdk_dbpath = 
/ufs/sjoerd/@Monet-candidate/var/MonetDB/mTests_sql_test_BugTracker-2018
+# cmdline opt  embedded_r = yes
+# cmdline opt  embedded_py = true
+# cmdline opt  gdk_debug = 553648138
+
+# 10:38:15 >  
+# 10:38:15 >  "mclient" "-lsql" "-ftest" "-tnone" "-Eutf-8" "-i" "-e" 
"--host=/var/tmp/mtest-21106" "--port=34048"
+# 10:38:15 >  
+
+
+# 10:38:16 >  
+# 10:38:16 >  "Done."
+# 10:38:16 >  
+
diff --git a/sql/test/BugTracker-2018/Tests/truncate_add_user.stable.out 
b/sql/test/BugTracker-2018/Tests/truncate_add_user.stable.out
new file mode 100644
--- /dev/null
+++ b/sql/test/BugTracker-2018/Tests/truncate_add_user.stable.out
@@ -0,0 +1,76 @@
+stdout of test 'truncate_add_user` in directory 'sql/test/BugTracker-2018` 
itself:
+
+
+# 10:38:15 >  
+# 10:38:15 >  "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" 
"mapi_open=true" "--set" "mapi_port=34048" "--set" 
"mapi_usock=/var/tmp/mtest-21106/.s.monetdb.34048" "--set" "monet_prompt=" 
"--forcemito" 
"--dbpath=/ufs/sjoerd/@Monet-candidate/var/MonetDB/mTests_sql_test_BugTracker-2018"
 "--set" "embedded_r=yes" "--set" "embedded_py=true"
+# 10:38:15 >  
+
+# MonetDB 5 server v11.29.0 (hg id: db0ca0917991+)
+# This is an unreleased version
+# Serving database 'mTests_sql_test_BugTracker-2018', using 8 threads
+# Compiled for x86_64-pc-linux-gnu/64bit with 128bit integers
+# Found 62.695 GiB available main-memory.
+# Copyright (c) 1993 - July 2008 CWI.
+# Copyright (c) August 2008 - 2018 MonetDB B.V., all rights reserved
+# Visit https://www.monetdb.org/ for further information
+# Listening for connection requests on 
mapi:monetdb://methuselah.da.cwi.nl:34048/
+# Listening for UNIX domain connection requests on 
mapi:monetdb:///var/tmp/mtest-21106/.s.monetdb.34048
+# MonetDB/GIS module loaded
+# MonetDB/SQL module loaded
+# MonetDB/Python2 module loaded
+# MonetDB/R   module loaded
+
+Ready.
+# SQL catalog created, loading sql scripts once
+# loading sql script: 09_like.sql
+# loading sql script: 10_math.sql
+# loading sql script: 11_times.sql
+# loading sql script: 12_url.sql
+# loading sql script: 13_date.sql
+# loading sql script: 14_inet.sql
+# loading sql script: 15_querylog.sql
+# loading sql script: 16_tracelog.sql
+# loading sql script: 17_temporal.sql
+# loading sql script: 18_index.sql
+# loading sql script: 20_vacuum.sql
+# loading sql script: 21_dependency_functions.sql
+# loading sql script: 21_dependency_views.sql
+# loading sql script: 22_clients.sql
+# loading sql script: 23_skyserver.sql
+# loading sql script: 25_debug.sql
+# loading sql script: 26_sysmon.sql
+# loading sql script: 27_rejects.sql
+# loading sql script: 39_analytics.sql
+# loading sql script: 39_analytics_hge.sql
+# loading sql script: 40_geom.sql
+# loading sql script: 40_json.sql
+# loading sql script: 40_json_hge.sql
+# loading sql script: 41_md5sum.sql
+# loading sql script: 45_uuid.sql
+# loading sql script: 46_profiler.sql
+# loading sql script: 51_sys_schema_extension.sql
+# loading sql script: 60_wlcr.sql
+# loading sql script: 72_fits.sql
+# loading sql script: 74_netcdf.sql
+# loading sql script: 75_lidar.sql
+# loading sql script: 75_shp.sql
+# loading sql script: 75_storagemodel.sql
+# loading sql script: 80_statistics.sql
+# loading sql script: 80_udf.sql
+# loading sql script: 80_udf_hge.sql
+# loading sql script: 85_bam.sql
+# loading sql script: 90_generator.sql
+# loading sql script: 90_generator_hge.sql
+# loading sql script: 97_comments.sql
+# loading sql script: 99_system.sql
+
+# 10:38:15 >  
+# 10:38:15 >  "mclient" "-lsql" "-ftest" "-tnone" "-Eutf-8" "-i" "-e" 
"--host=/var/tmp/mtest-21106" "--port=34048"
+# 10:38:15 >  
+
+#CREATE USER "testuser" WITH PASSWORD 'testpassword' NAME 'Test User' SCHEMA 
"sys";
+
+# 10:38:16 >  
+# 10:38:16 >  "Done."
+# 10:38:16 >  
+
diff --git 
a/sql/test/BugTracker-2018/Tests/truncate_bam_tables.Bug-6543.reqtests 
b/sql/test/BugTracker-2018/Tests/truncate_bam_tables.Bug-6543.reqtests
new file mode 100644
--- /dev/null
+++ b/sql/test/BugTracker-2018/Tests/truncate_bam_tables.Bug-6543.reqtests
@@ -0,0 +1,1 @@
+truncate_add_user
diff --git a/sql/test/BugTracker-2018/Tests/truncate_remove_user.sql 
b/sql/test/BugTracker-2018/Tests/truncate_remove_user.sql
new file mode 100644
--- /dev/null
+++ b/sql/test/BugTracker-2018/Tests/truncate_remove_user.sql
@@ -0,0 +1,1 @@
+DROP USER testuser;
diff --git a/sql/test/BugTracker-2018/Tests/truncate_remove_user.stable.err 
b/sql/test/BugTracker-2018/Tests/truncate_remove_user.stable.err
new file mode 100644
--- /dev/null
+++ b/sql/test/BugTracker-2018/Tests/truncate_remove_user.stable.err
@@ -0,0 +1,34 @@
+stderr of test 'truncate_remove_user` in directory 'sql/test/BugTracker-2018` 
itself:
+
+
+# 10:38:42 >  
+# 10:38:42 >  "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" 
"mapi_open=true" "--set" "mapi_port=36704" "--set" 
"mapi_usock=/var/tmp/mtest-21201/.s.monetdb.36704" "--set" "monet_prompt=" 
"--forcemito" 
"--dbpath=/ufs/sjoerd/@Monet-candidate/var/MonetDB/mTests_sql_test_BugTracker-2018"
+# 10:38:42 >  
+
+# builtin opt  gdk_dbpath = 
/ufs/sjoerd/@Monet-candidate/var/monetdb5/dbfarm/demo
+# builtin opt  gdk_debug = 0
+# builtin opt  gdk_vmtrim = no
+# builtin opt  monet_prompt = >
+# builtin opt  monet_daemon = no
+# builtin opt  mapi_port = 50000
+# builtin opt  mapi_open = false
+# builtin opt  mapi_autosense = false
+# builtin opt  sql_optimizer = default_pipe
+# builtin opt  sql_debug = 0
+# cmdline opt  gdk_nr_threads = 0
+# cmdline opt  mapi_open = true
+# cmdline opt  mapi_port = 36704
+# cmdline opt  mapi_usock = /var/tmp/mtest-21201/.s.monetdb.36704
+# cmdline opt  monet_prompt = 
+# cmdline opt  gdk_dbpath = 
/ufs/sjoerd/@Monet-candidate/var/MonetDB/mTests_sql_test_BugTracker-2018
+# cmdline opt  gdk_debug = 553648138
+
+# 10:38:43 >  
+# 10:38:43 >  "mclient" "-lsql" "-ftest" "-tnone" "-Eutf-8" "-i" "-e" 
"--host=/var/tmp/mtest-21201" "--port=36704"
+# 10:38:43 >  
+
+
+# 10:38:43 >  
+# 10:38:43 >  "Done."
+# 10:38:43 >  
+
diff --git a/sql/test/BugTracker-2018/Tests/truncate_remove_user.stable.out 
b/sql/test/BugTracker-2018/Tests/truncate_remove_user.stable.out
new file mode 100644
--- /dev/null
+++ b/sql/test/BugTracker-2018/Tests/truncate_remove_user.stable.out
@@ -0,0 +1,32 @@
+stdout of test 'truncate_remove_user` in directory 'sql/test/BugTracker-2018` 
itself:
+
+
+# 10:38:42 >  
+# 10:38:42 >  "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" 
"mapi_open=true" "--set" "mapi_port=36704" "--set" 
"mapi_usock=/var/tmp/mtest-21201/.s.monetdb.36704" "--set" "monet_prompt=" 
"--forcemito" 
"--dbpath=/ufs/sjoerd/@Monet-candidate/var/MonetDB/mTests_sql_test_BugTracker-2018"
+# 10:38:42 >  
+
+# MonetDB 5 server v11.29.0 (hg id: db0ca0917991+)
+# This is an unreleased version
+# Serving database 'mTests_sql_test_BugTracker-2018', using 8 threads
+# Compiled for x86_64-pc-linux-gnu/64bit with 128bit integers
+# Found 62.695 GiB available main-memory.
+# Copyright (c) 1993 - July 2008 CWI.
+# Copyright (c) August 2008 - 2018 MonetDB B.V., all rights reserved
+# Visit https://www.monetdb.org/ for further information
+# Listening for connection requests on 
mapi:monetdb://methuselah.da.cwi.nl:36704/
+# Listening for UNIX domain connection requests on 
mapi:monetdb:///var/tmp/mtest-21201/.s.monetdb.36704
+# MonetDB/GIS module loaded
+# MonetDB/SQL module loaded
+
+Ready.
+
+# 10:38:43 >  
+# 10:38:43 >  "mclient" "-lsql" "-ftest" "-tnone" "-Eutf-8" "-i" "-e" 
"--host=/var/tmp/mtest-21201" "--port=36704"
+# 10:38:43 >  
+
+#DROP USER testuser;
+
+# 10:38:43 >  
+# 10:38:43 >  "Done."
+# 10:38:43 >  
+
diff --git 
a/sql/test/BugTracker-2018/Tests/truncate_sys_netcdf_tables.Bug-6543.reqtests 
b/sql/test/BugTracker-2018/Tests/truncate_sys_netcdf_tables.Bug-6543.reqtests
new file mode 100644
--- /dev/null
+++ 
b/sql/test/BugTracker-2018/Tests/truncate_sys_netcdf_tables.Bug-6543.reqtests
@@ -0,0 +1,1 @@
+truncate_add_user
diff --git 
a/sql/test/BugTracker-2018/Tests/truncate_sys_tables.Bug-6543.reqtests 
b/sql/test/BugTracker-2018/Tests/truncate_sys_tables.Bug-6543.reqtests
new file mode 100644
--- /dev/null
+++ b/sql/test/BugTracker-2018/Tests/truncate_sys_tables.Bug-6543.reqtests
@@ -0,0 +1,1 @@
+truncate_add_user
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to