Add tests for Kommunikation Sync implementation and verification scripts
- Implemented comprehensive tests for the Kommunikation Sync functionality, covering base64 encoding, marker parsing, creation, type detection, and integration scenarios. - Added a verification script to check for unique IDs in Advoware communications, ensuring stability and integrity of the IDs. - Created utility scripts for code validation, notification testing, and PUT response detail analysis to enhance development and testing processes. - Updated README with details on new tools and their usage.
This commit is contained in:
68
bitbylaw/scripts/adressen_sync/README.md
Normal file
68
bitbylaw/scripts/adressen_sync/README.md
Normal file
@@ -0,0 +1,68 @@
|
||||
# Adressen Sync - Test Scripts
|
||||
|
||||
Test-Scripts für die Adressen-Synchronisation (geplant).
|
||||
|
||||
## Scripts
|
||||
|
||||
### test_adressen_api.py
|
||||
Vollständiger API-Test für Advoware Adressen-Endpoints.
|
||||
|
||||
**Testet:**
|
||||
- POST /Adressen (CREATE) - alle 11 Felder
|
||||
- PUT /Adressen (UPDATE) - nur 4 R/W Felder
|
||||
- DELETE /Adressen (gibt 403)
|
||||
- READ-ONLY Felder (land, postfach, standardAnschrift, etc.)
|
||||
|
||||
### test_adressen_sync.py
|
||||
Test der Sync-Funktionalität (Prototype).
|
||||
|
||||
### test_adressen_delete_matching.py
|
||||
Test für DELETE-Matching Strategien.
|
||||
|
||||
**Testet:**
|
||||
- bemerkung als Matching-Methode
|
||||
- reihenfolgeIndex Stabilität
|
||||
|
||||
### test_adressen_deactivate_ordering.py
|
||||
Test für Adress-Reihenfolge Management.
|
||||
|
||||
### test_adressen_gueltigbis_modify.py
|
||||
Test für gueltigBis/gueltigVon Handling.
|
||||
|
||||
**Testet:**
|
||||
- gueltigBis ist READ-ONLY (kann nicht geändert werden)
|
||||
- Soft-Delete Strategien
|
||||
|
||||
### test_adressen_nullen.py
|
||||
Test für NULL-Value Handling.
|
||||
|
||||
### test_hauptadresse_logic.py
|
||||
Test für Hauptadressen-Logik.
|
||||
|
||||
**Testet:**
|
||||
- standardAnschrift Flag
|
||||
- Automatische Hauptadressen-Erkennung
|
||||
|
||||
### test_hauptadresse_explizit.py
|
||||
Test für explizite Hauptadressen-Setzung.
|
||||
|
||||
### test_find_hauptadresse.py
|
||||
Helper zum Finden der Hauptadresse.
|
||||
|
||||
## Status
|
||||
|
||||
⚠️ **Adressen Sync ist noch nicht implementiert.**
|
||||
|
||||
Diese Test-Scripts wurden während der API-Analyse erstellt.
|
||||
|
||||
## Verwendung
|
||||
|
||||
```bash
|
||||
cd /opt/motia-app/bitbylaw
|
||||
python scripts/adressen_sync/test_adressen_api.py
|
||||
```
|
||||
|
||||
## Verwandte Dokumentation
|
||||
|
||||
- [../../docs/archive/ADRESSEN_SYNC_ANALYSE.md](../../docs/archive/ADRESSEN_SYNC_ANALYSE.md) - Detaillierte API-Analyse
|
||||
- [../../docs/archive/ADRESSEN_SYNC_SUMMARY.md](../../docs/archive/ADRESSEN_SYNC_SUMMARY.md) - Zusammenfassung
|
||||
Reference in New Issue
Block a user