feat: API test scripts + quickstart
Some checks failed
Docker Build & Push SugarCRM 6.5 CE / build-and-push (push) Has been cancelled

- start.sh: All-in-One Launcher (compose up + wait + API test)
- test_api_extended.py: Full CRUD, search, relationships
- test_seed.py: Mass data generator (accounts/contacts/leads)
- Updated README with test script documentation
This commit is contained in:
root
2026-05-24 14:39:01 +02:00
parent 1c4a366409
commit 802bd9e1b9
5 changed files with 619 additions and 2 deletions

View File

@@ -13,15 +13,39 @@ cd sugar-crm
# 2. Konfigurieren (Passwörter ändern!)
nano .env
# 3. Starten
# 3. Starten (All-in-One)
./start.sh
# ODER manuell:
docker compose up -d
# 4. Web-UI öffnen
# → http://localhost:2080
# Login: admin / admin123
```
# 5. API testen
## 🧪 API-Test-Scripte
| Script | Beschreibung |
|--------|-------------|
| `start.sh` | **All-in-One**: Starten + Warten + API-Test |
| `test_api.py` | Basis-Test: Login, Module, CRUD |
| `test_api_extended.py` | Erweiterter Test: Felder, Suche, Relationships, CRUD |
| `test_seed.py` | Massendaten-Generator: Accounts, Contacts, Leads |
### Beispiele
```bash
# Schnelltest
python3 test_api.py
# Vollständiger API-Test
python3 test_api_extended.py
# 50 Test-Accounts + 50 Contacts + 50 Leads generieren
python3 test_seed.py --count 50
# Nur Daten zählen (keine neuen erstellen)
python3 test_seed.py --clean
```
## 🏗️ Architektur