Secure socket broker with token auth and rooms
Build and Push Docker Images / build-and-push (push) Successful in 1m27s

This commit is contained in:
Bram committed 2026-10-27 09:35:09 +00:00
1 parent ebd424e0be
commit 3dec007000
9 files changed
+1012 -716

No files matched your search

+6 -5
View File
@@ -33,8 +33,9 @@ def test_health():
print(f"✅ Health check passed")
print(f" Status: {data['status']}")
print(f" Connections: {data['connections']}")
print(f" Topics: {data['topics']}")
print(f" Topics: {data.get('topics', 'n/a')}")
print(f" Timestamp: {data['timestamp']}")
print(f" Auth Mode: {data.get('authMode', 'Unknown')}")
print(f" API Key Configured: {data.get('apiKeyConfigured', 'Unknown')}")
return True
else:
@@ -45,10 +46,10 @@ def test_health():
return False
def test_topics():
"""Test the topics endpoint"""
"""Test the topics endpoint (requires API key)"""
print("\nTesting topics endpoint...")
try:
response = requests.get(f"{API_BASE_URL}/topics")
response = requests.get(f"{API_BASE_URL}/topics", headers=get_auth_headers())
if response.status_code == 200:
data = response.json()
print(f"✅ Topics retrieved successfully")
@@ -66,10 +67,10 @@ def test_topics():
return False
def test_topic_info(topic):
"""Test getting info for a specific topic"""
"""Test getting info for a specific topic (requires API key)"""
print(f"\nTesting topic info for '{topic}'...")
try:
response = requests.get(f"{API_BASE_URL}/topics/{topic}")
response = requests.get(f"{API_BASE_URL}/topics/{topic}", headers=get_auth_headers())
if response.status_code == 200:
data = response.json()
print(f"✅ Topic info retrieved successfully")