mirror of
https://github.com/idrainformatica/PecFlow.git
synced 2026-06-16 12:45:42 +02:00
Cambio nome
This commit is contained in:
@@ -11,7 +11,7 @@ Testa:
|
||||
5. Rilevazione ricevute accettazione/consegna
|
||||
|
||||
Eseguire DENTRO il container worker:
|
||||
docker exec -e PYTHONPATH=/worker pecflow-worker-1 python \
|
||||
docker exec -e PYTHONPATH=/worker pechub-worker-1 python \
|
||||
/worker/tests/integration/test_smtp_real_aruba.py
|
||||
"""
|
||||
|
||||
@@ -28,7 +28,7 @@ from unittest.mock import MagicMock
|
||||
if "ENCRYPTION_KEY" not in os.environ:
|
||||
os.environ["ENCRYPTION_KEY"] = "6465762d656e6372797074696f6e2d6b65792d6e6f742d666f722d70726f6400"
|
||||
os.environ.setdefault("SECRET_KEY", "dev-secret-key-not-for-production-use-only-for-local-0000000000000")
|
||||
os.environ.setdefault("DATABASE_URL", "postgresql+asyncpg://pecflow:pecflow_dev_password@db:5432/pecflow")
|
||||
os.environ.setdefault("DATABASE_URL", "postgresql+asyncpg://pechub:pechub_dev_password@db:5432/pechub")
|
||||
os.environ.setdefault("REDIS_URL", "redis://redis:6379/0")
|
||||
os.environ.setdefault("MINIO_ENDPOINT", "minio:9000")
|
||||
|
||||
@@ -157,9 +157,9 @@ async def test_smtp_send() -> tuple[str | None, bool]:
|
||||
sender = SmtpSender(mailbox)
|
||||
|
||||
ts = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
||||
subject = f"[PecFlow TEST] Verifica SMTP+Ricevute – {ts}"
|
||||
subject = f"[PEChub TEST] Verifica SMTP+Ricevute – {ts}"
|
||||
body = (
|
||||
f"Messaggio di test automatico PecFlow – {ts}\n\n"
|
||||
f"Messaggio di test automatico PEChub – {ts}\n\n"
|
||||
"Verifica:\n"
|
||||
" 1. Connessione SMTP SSL porta 465 → smtps.pec.aruba.it\n"
|
||||
" 2. Autenticazione e invio PEC\n"
|
||||
@@ -167,7 +167,7 @@ async def test_smtp_send() -> tuple[str | None, bool]:
|
||||
" 4. Ricezione ricevuta di avvenuta consegna\n\n"
|
||||
f"Mittente : {PEC_EMAIL}\n"
|
||||
f"Destinato: {TO_ADDRESS}\n\n"
|
||||
"Non rispondere. Generato da PecFlow SaaS.\n"
|
||||
"Non rispondere. Generato da PEChub SaaS.\n"
|
||||
)
|
||||
|
||||
_sep()
|
||||
@@ -458,7 +458,7 @@ async def test_imap_full_inspection() -> None:
|
||||
print(" • I messaggi in INBOX non sono ancora stati aggiornati")
|
||||
print()
|
||||
print(" 💡 Ri-esegui lo STEP 2 manualmente tra qualche secondo con:")
|
||||
print(" docker exec -e PYTHONPATH=/worker pecflow-worker-1 python -c \"")
|
||||
print(" docker exec -e PYTHONPATH=/worker pechub-worker-1 python -c \"")
|
||||
print(" import asyncio, sys; sys.path.insert(0,'/worker')")
|
||||
print(" from tests.integration.test_smtp_real_aruba import test_imap_full_inspection")
|
||||
print(" asyncio.run(test_imap_full_inspection())\"")
|
||||
@@ -481,7 +481,7 @@ def _sep(char: str = "─", width: int = 60) -> None:
|
||||
|
||||
def _banner() -> None:
|
||||
_sep("═")
|
||||
print(" PecFlow – Test SMTP/IMAP Reale (Aruba PEC)")
|
||||
print(" PEChub – Test SMTP/IMAP Reale (Aruba PEC)")
|
||||
_sep("═")
|
||||
print(f" Timestamp : {datetime.now().strftime('%Y-%m-%d %H:%M:%S')}")
|
||||
print(f" Casella PEC : {PEC_EMAIL}")
|
||||
|
||||
Reference in New Issue
Block a user