routing tests, launch.configs, redirect, stats and route statistics
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
"""US-035: tracker web dashboard — served from any tracker, embedded asset."""
|
||||
|
||||
import http.client
|
||||
import json
|
||||
import time
|
||||
import urllib.request
|
||||
@@ -40,6 +41,23 @@ def test_dashboard_served_with_all_panels():
|
||||
tracker.stop()
|
||||
|
||||
|
||||
def test_tracker_root_redirects_to_dashboard():
|
||||
tracker = TrackerServer()
|
||||
port = tracker.start()
|
||||
try:
|
||||
connection = http.client.HTTPConnection("127.0.0.1", port)
|
||||
connection.request("GET", "/")
|
||||
response = connection.getresponse()
|
||||
location = response.getheader("Location")
|
||||
response.read()
|
||||
connection.close()
|
||||
finally:
|
||||
tracker.stop()
|
||||
|
||||
assert response.status == 302
|
||||
assert location == "/dashboard"
|
||||
|
||||
|
||||
def test_dashboard_chat_uses_streaming_fetch():
|
||||
tracker = TrackerServer(billing=BillingLedger())
|
||||
port = tracker.start()
|
||||
|
||||
Reference in New Issue
Block a user