fix auth errors and add primigenial paper trash

This commit is contained in:
DioCrafts
2025-03-24 16:47:42 +01:00
parent 838ae6e0d4
commit 38b0e9594b
58 changed files with 3701 additions and 135 deletions
Executable
+28
View File
@@ -0,0 +1,28 @@
#!/bin/bash
# Run unit tests for the trash feature
echo "Running unit tests for the trash feature..."
RUST_LOG=debug cargo test application::services::trash_service_test::tests -- --nocapture
# Set up environment for API tests
echo "Setting up environment for API tests..."
cargo build
# Start the server in the background
echo "Starting the server..."
RUST_LOG=debug cargo run &
SERVER_PID=$!
# Wait for the server to start
echo "Waiting for the server to start..."
sleep 5
# Run the API tests
echo "Running API tests for the trash feature..."
python3 test-trash-api.py
# Clean up
echo "Cleaning up..."
kill $SERVER_PID
echo "All tests completed!"