@@ -20,7 +20,7 @@ wait_for_port() {
2020 local port=$1
2121 local timeout=30
2222 local count=0
23-
23+
2424 # Use netstat as fallback if lsof is not available
2525 while (lsof -Pi :$port -sTCP:LISTEN -t > /dev/null 2>&1 ) || (netstat -ln 2> /dev/null | grep " :$port " > /dev/null 2>&1 ); do
2626 if [ $count -ge $timeout ]; then
120120kill -9 $PARQUET_PID 2> /dev/null || true
121121sleep 3
122122
123- # Test 4: Role-Based Access Control
124- echo " "
125- echo " 🔐 Test 4: Role-Based Access Control (RBAC)"
126- echo " --------------------------------------------"
127- wait_for_port 5435
128- ../target/debug/datafusion-postgres-cli -p 5435 --csv delhi:delhiclimate.csv &
129- RBAC_PID=$!
130- sleep 5
131-
132- # Check if server is actually running
133- if ! ps -p $RBAC_PID > /dev/null 2>&1 ; then
134- echo " ❌ RBAC server failed to start"
135- exit 1
136- fi
137-
138- if python3 test_rbac.py; then
139- echo " ✅ RBAC test passed"
140- else
141- echo " ❌ RBAC test failed"
142- kill -9 $RBAC_PID 2> /dev/null || true
143- exit 1
144- fi
145-
146- kill -9 $RBAC_PID 2> /dev/null || true
147- sleep 3
148-
149123# Test 5: SSL/TLS Security
150124echo " "
151125echo " 🔒 Test 5: SSL/TLS Security Features"
@@ -177,12 +151,10 @@ echo "=========================================="
177151echo " "
178152echo " 📈 Test Summary:"
179153echo " ✅ Enhanced CSV data loading with PostgreSQL compatibility"
180- echo " ✅ Complete transaction support (BEGIN/COMMIT/ROLLBACK)"
154+ echo " ✅ Complete transaction support (BEGIN/COMMIT/ROLLBACK)"
181155echo " ✅ Enhanced Parquet data loading with advanced data types"
182156echo " ✅ Array types and complex data type support"
183157echo " ✅ Improved pg_catalog system tables"
184158echo " ✅ PostgreSQL function compatibility"
185- echo " ✅ Role-based access control (RBAC)"
186159echo " ✅ SSL/TLS encryption support"
187160echo " "
188- echo " 🚀 Ready for secure production PostgreSQL workloads!"
0 commit comments