TESTING PHASE: Add comprehensive validation scripts for InterWorx and Plesk
Created automated validation framework to test multi-panel refactoring on real servers. NEW FILES: - testing/validate-interworx.sh (650+ lines) - 10 comprehensive tests validating all InterWorx assumptions - File system structure, logs, domain lookups, database prefix - WordPress detection, cron system, PHP config, CLI tools - Color-coded output + detailed results file - testing/validate-plesk.sh (750+ lines) - 12 comprehensive tests validating all Plesk assumptions - File system structure, logs, plesk bin commands - Domain/user lookups, database prefix, system user detection - WordPress detection, cron system, PHP config - Critical: Determines system user for cron jobs - testing/README.md - Complete testing guide and documentation - Quick start instructions for both panels - What gets validated and why - 4-phase testing priority plan - Known issues and next steps UPDATED: - REFDB_FORMAT.txt - Added TESTING & VALIDATION PHASE section - Documented validation scripts and their coverage - Listed testing priority and next actions - Updated last modified date VALIDATION COVERAGE: InterWorx (10 tests): ✅ All file paths (verified from official docs) ✅ Database prefix: username_ (verified) ⏳ Domain→User lookup (needs real server) ⏳ User→Domains lookup (needs real server) ⏳ WordPress detection (needs real server) Plesk (12 tests): ⏳ File paths (assumed correct) ❓ Database prefix (appears to be no prefix) ❓ System user for cron (critical for wordpress-cron-manager!) ❓ Cron system (standard vs plesk bin cron) ⏳ All lookup methods (need real server) READY FOR: Testing on real InterWorx and Plesk servers
This commit is contained in:
+74
-1
@@ -972,9 +972,82 @@ unknowns_blocking_full_support:
|
||||
- System user for PHP processes (affects cron jobs!)
|
||||
- Cron management method (standard vs plesk bin)
|
||||
|
||||
################################################################################
|
||||
# TESTING & VALIDATION PHASE
|
||||
################################################################################
|
||||
|
||||
testing_phase_status:
|
||||
phase: "Testing & Validation"
|
||||
date_started: "2025-11-20"
|
||||
refactoring_complete: true
|
||||
modules_refactored: "38/38 (100%)"
|
||||
|
||||
validation_scripts:
|
||||
location: "/root/server-toolkit/testing/"
|
||||
|
||||
interworx_validator:
|
||||
script: "validate-interworx.sh"
|
||||
tests: 10
|
||||
validates:
|
||||
- Control panel detection
|
||||
- File system structure (/home/USER/DOMAIN/html/)
|
||||
- Log locations (/home/USER/var/DOMAIN/logs/)
|
||||
- Domain→User lookup (vhost configs)
|
||||
- User→Domains lookup (2 methods)
|
||||
- Database prefix (username_)
|
||||
- Cron system (standard crontab)
|
||||
- PHP configuration
|
||||
- WordPress detection
|
||||
- InterWorx CLI tools
|
||||
output: "/tmp/interworx-validation-results.txt"
|
||||
status: "Ready for testing on real server"
|
||||
|
||||
plesk_validator:
|
||||
script: "validate-plesk.sh"
|
||||
tests: 12
|
||||
validates:
|
||||
- Control panel detection
|
||||
- File system structure (/var/www/vhosts/DOMAIN/httpdocs/)
|
||||
- Log locations (/var/www/vhosts/system/DOMAIN/logs/)
|
||||
- plesk bin commands
|
||||
- Domain→User lookup (plesk bin subscription --info)
|
||||
- User→Domains lookup (plesk bin subscription --list)
|
||||
- Database prefix pattern
|
||||
- System user for web processes (CRITICAL!)
|
||||
- Cron system (standard vs plesk bin cron)
|
||||
- PHP configuration
|
||||
- WordPress detection
|
||||
- Apache/nginx configuration
|
||||
output: "/tmp/plesk-validation-results.txt"
|
||||
status: "Ready for testing on real server"
|
||||
|
||||
documentation:
|
||||
file: "testing/README.md"
|
||||
contains:
|
||||
- Quick start guide
|
||||
- What gets validated
|
||||
- How to interpret results
|
||||
- Testing priority (4 phases)
|
||||
- Known issues and limitations
|
||||
- Next steps
|
||||
|
||||
testing_priority:
|
||||
phase_1: "Run validation scripts on real InterWorx/Plesk servers"
|
||||
phase_2: "Test simple Class B modules (log discovery)"
|
||||
phase_3: "Test complex Class C modules (user/domain management)"
|
||||
phase_4: "Production readiness and performance testing"
|
||||
|
||||
next_action_required:
|
||||
1. "Get access to InterWorx test server"
|
||||
2. "Get access to Plesk test server"
|
||||
3. "Run validate-interworx.sh and collect results"
|
||||
4. "Run validate-plesk.sh and collect results"
|
||||
5. "Fix any issues found during validation"
|
||||
6. "Test real modules on validated servers"
|
||||
|
||||
[END]
|
||||
# This file is the ONLY developer reference document.
|
||||
# README.md is for users, this file is for developers (Claude).
|
||||
# Keep this updated after every significant change.
|
||||
# Last updated: 2025-11-19
|
||||
# Last updated: 2025-11-20 (Testing phase started)
|
||||
################################################################################
|
||||
|
||||
Reference in New Issue
Block a user