Add comprehensive tests for Parks API and models

- Implemented extensive test cases for the Parks API, covering endpoints for listing, retrieving, creating, updating, and deleting parks.
- Added tests for filtering, searching, and ordering parks in the API.
- Created tests for error handling in the API, including malformed JSON and unsupported methods.
- Developed model tests for Park, ParkArea, Company, and ParkReview models, ensuring validation and constraints are enforced.
- Introduced utility mixins for API and model testing to streamline assertions and enhance test readability.
- Included integration tests to validate complete workflows involving park creation, retrieval, updating, and deletion.
This commit is contained in:
pacnpal
2025-08-17 19:36:20 -04:00
parent 17228e9935
commit c26414ff74
210 changed files with 24155 additions and 833 deletions

View File

@@ -0,0 +1,39 @@
#!/bin/bash
# Example: How to use non-interactive mode for ThrillWiki setup
#
# This script shows how to set up environment variables for non-interactive mode
# and run the automation without any user prompts.
echo "🤖 ThrillWiki Non-Interactive Setup Example"
echo "[AWS-SECRET-REMOVED]=="
# Set required environment variables for non-interactive mode
# These replace the interactive prompts
# Unraid password (REQUIRED)
export UNRAID_PASSWORD="your_unraid_password_here"
# GitHub token (REQUIRED if using GitHub API)
export GITHUB_TOKEN="your_github_token_here"
# Webhook secret (REQUIRED if webhooks enabled)
export WEBHOOK_SECRET="your_webhook_secret_here"
echo "✅ Environment variables set"
echo "📋 Configuration summary:"
echo " - UNRAID_PASSWORD: [HIDDEN]"
echo " - GITHUB_TOKEN: [HIDDEN]"
echo " - WEBHOOK_SECRET: [HIDDEN]"
echo
echo "🚀 Starting non-interactive setup..."
echo "This will use saved configuration and the environment variables above"
echo
# Run the setup script in non-interactive mode
./setup-complete-automation.sh -y
echo
echo "✨ Non-interactive setup completed!"
echo "📝 Note: This example script should be customized with your actual credentials"