[30388f42] Infrastructure Hardening: Repaired CE/Connector DB schema, fixed frontend styling build, implemented robust echo shield in worker v2.1.1, and integrated Lead Engine into gateway.

This commit is contained in:
2026-03-07 14:08:42 +00:00
parent efcaa57cf0
commit ae2303b733
404 changed files with 24100 additions and 13301 deletions

View File

@@ -0,0 +1,34 @@
import requests
import os
def test_export_endpoint():
# The app runs on port 8000 inside the container.
# The root_path is /ce, so the full URL is http://localhost:8000/ce/api/companies/export
url = "http://localhost:8000/ce/api/companies/export"
print(f"--- Testing Export Endpoint: GET {url} ---")
try:
response = requests.get(url)
response.raise_for_status() # Will raise an exception for 4xx/5xx errors
# Print the first few hundred characters to verify content
print("\n--- Response Headers ---")
print(response.headers)
print("\n--- CSV Output (first 500 chars) ---")
print(response.text[:500])
# A simple check
if "Metric Value" in response.text and "Source URL" in response.text:
print("\n[SUCCESS] New columns found in export.")
else:
print("\n[FAILURE] New columns seem to be missing from the export.")
except requests.exceptions.RequestException as e:
print(f"\n[FAILURE] Could not connect to the endpoint: {e}")
if __name__ == "__main__":
test_export_endpoint()