2.4 KiB
2.4 KiB
OxiCloud Tests
This directory contains test scripts, utilities and troubleshooting tools for the OxiCloud project.
API Tests
test-all-routes.py- Tests all API routes to verify which ones are implementedtest-api.sh- Bash script to test basic API functionality (list, upload, download)test-api-integration.py- Python-based integration tests for the APItest-upload.py- Dedicated upload testing script with more optionstest-upload.sh- Simple shell script for testing file uploadstest-delete-file.py- Tests the file deletion functionality
Folder Tests
test-folder.sh- Tests folder API operationstest-folder-simple.sh- Simplified folder creation/listing teststest-create-folder.sh- Specific test for folder creationtest-folder.js- JavaScript based folder tests
Trash Tests
test-trash.sh- Tests trash functionalitytest-trash-simple.sh- Basic trash functionality testtest-trash-api.py- Python script for testing trash APItest-trash-api-simple.py- Simplified version of trash API teststest-trash-api.sh- Bash scripts for trash API testingtest-compile-trash.sh- Tests compilation with trash feature enabledfix-trash-index.sh- Utility to fix trash indexing issuescheck-trash-dirs.sh- Checks trash directories structuredebug-trash.py- Debug tool for trash functionalityrun-trash-test.sh- Runner for trash tests
Authentication Tests
test-auth-api.sh- Tests the authentication API endpointstest-auth-env.sh- Tests authentication with environment variables
Utilities
check-db.sh- Database check utilitysimulate-id-mapping.py- Simulates ID mapping for testingdirect-upload-test.py- Tests direct uploads bypassing certain layers
Test Files
test-upload.txt- Sample file for upload testingtest-api-file.txt- Sample file for API testing
Running Tests
Most test scripts can be run directly from this directory. Many accept command-line arguments
to customize their behavior. Check the script headers or run with --help for more information.
Basic usage examples:
# Test API endpoints
python test-all-routes.py
# Test file upload
./test-upload.sh --file sample.txt
# Test trash API
python test-trash-api.py
# Run folder tests
./test-folder.sh
Note that these tests expect a running OxiCloud server, typically on localhost:8086.