Solar Lead System - Integration Test Suite

Test Data Configuration

Complete System Debug

Run all diagnostic checks (Redis, OpenAI, Environment, URLs, Companies)

Redis Connection

Test Redis connection, set/get operations, and company data lookup

OpenAI API

Test OpenAI connection, model access, and assistant functionality

Environment Variables

Validate all required environment variables are present

URL Generation

Test n8n-compatible slug generation algorithm

Company Mappings

List all stored company->assistant mappings in Redis

Create Prototype

Test demo site creation with OpenAI assistant

Company Assistant Lookup

Test Redis lookup for company->assistant mapping

Chat Functionality

Test complete chat flow: create assistant + send message

N8N Valid Webhook

Test n8n webhook with valid payload data

N8N Invalid Webhook

Test n8n webhook error handling with invalid data

Test Data Cleanup

Clean up test data from Redis and other storage