test descriptions
This commit is contained in:
@@ -22,6 +22,7 @@ PANELS = [
|
||||
|
||||
|
||||
def test_dashboard_served_with_all_panels():
|
||||
"Dashboard served with all panels\n\nTags: dashboard, http"
|
||||
tracker = TrackerServer(billing=BillingLedger())
|
||||
port = tracker.start()
|
||||
try:
|
||||
@@ -43,6 +44,7 @@ def test_dashboard_served_with_all_panels():
|
||||
|
||||
|
||||
def test_tracker_root_redirects_to_dashboard():
|
||||
"Tracker root redirects to dashboard\n\nTags: dashboard, http"
|
||||
tracker = TrackerServer()
|
||||
port = tracker.start()
|
||||
try:
|
||||
@@ -60,6 +62,7 @@ def test_tracker_root_redirects_to_dashboard():
|
||||
|
||||
|
||||
def test_dashboard_chat_uses_streaming_fetch():
|
||||
"Dashboard chat uses streaming fetch\n\nTags: dashboard, http, streaming"
|
||||
tracker = TrackerServer(billing=BillingLedger())
|
||||
port = tracker.start()
|
||||
try:
|
||||
@@ -78,6 +81,7 @@ def test_dashboard_chat_uses_streaming_fetch():
|
||||
|
||||
|
||||
def test_dashboard_allows_admin_to_request_selected_model_load():
|
||||
"Dashboard allows admin to request selected model load\n\nTags: dashboard, http"
|
||||
tracker = TrackerServer()
|
||||
port = tracker.start()
|
||||
try:
|
||||
@@ -94,6 +98,7 @@ def test_dashboard_allows_admin_to_request_selected_model_load():
|
||||
|
||||
|
||||
def test_network_map_includes_node_friendly_name():
|
||||
"Network map includes node friendly name\n\nTags: dashboard, http"
|
||||
tracker = TrackerServer()
|
||||
port = tracker.start()
|
||||
try:
|
||||
@@ -122,6 +127,7 @@ def test_network_map_includes_node_friendly_name():
|
||||
|
||||
|
||||
def test_dashboard_chat_model_selector_shows_health_and_speed():
|
||||
"Dashboard chat model selector shows health and speed\n\nTags: dashboard, http"
|
||||
tracker = TrackerServer()
|
||||
port = tracker.start()
|
||||
try:
|
||||
@@ -147,6 +153,7 @@ def test_dashboard_chat_model_selector_shows_health_and_speed():
|
||||
|
||||
|
||||
def test_dashboard_chat_sessions_use_delegated_handlers():
|
||||
"Dashboard chat sessions use delegated handlers\n\nTags: dashboard, http"
|
||||
tracker = TrackerServer()
|
||||
port = tracker.start()
|
||||
try:
|
||||
@@ -165,6 +172,7 @@ def test_dashboard_chat_sessions_use_delegated_handlers():
|
||||
|
||||
|
||||
def test_dashboard_incremental_refresh_helpers():
|
||||
"Dashboard incremental refresh helpers\n\nTags: dashboard, http"
|
||||
tracker = TrackerServer()
|
||||
port = tracker.start()
|
||||
try:
|
||||
@@ -194,8 +202,7 @@ def test_dashboard_incremental_refresh_helpers():
|
||||
|
||||
|
||||
def test_dashboard_served_by_follower():
|
||||
"""A tracker that is not the leader (unreachable peers → never elected)
|
||||
still serves the dashboard from its own replicated state."""
|
||||
"A tracker that is not the leader (unreachable peers → never elected)\n\nTags: dashboard, http"
|
||||
tracker = TrackerServer(
|
||||
billing=BillingLedger(),
|
||||
cluster_peers=["http://127.0.0.1:1", "http://127.0.0.1:2"],
|
||||
@@ -210,6 +217,7 @@ def test_dashboard_served_by_follower():
|
||||
|
||||
|
||||
def test_registry_wallets_endpoint():
|
||||
"Registry wallets endpoint\n\nTags: dashboard, http, security, wallet"
|
||||
contracts = LocalSolanaContracts()
|
||||
contracts.registry.submit_stake("wallet-a", 100)
|
||||
contracts.registry.record_strike("wallet-a")
|
||||
@@ -231,6 +239,7 @@ def test_registry_wallets_endpoint():
|
||||
|
||||
|
||||
def test_console_endpoint_exposes_tracker_events():
|
||||
"Console endpoint exposes tracker events\n\nTags: dashboard, http"
|
||||
tracker = TrackerServer()
|
||||
port = tracker.start()
|
||||
try:
|
||||
@@ -257,6 +266,7 @@ def test_console_endpoint_exposes_tracker_events():
|
||||
|
||||
|
||||
def test_console_node_lifecycle_events_include_model_health():
|
||||
"Console node lifecycle events include model health\n\nTags: dashboard, http"
|
||||
tracker = TrackerServer(heartbeat_timeout=0.05)
|
||||
port = tracker.start()
|
||||
try:
|
||||
@@ -310,7 +320,7 @@ def _dashboard_html(**kwargs) -> str:
|
||||
|
||||
|
||||
def test_dashboard_testing_tab_is_admin_only():
|
||||
"""US-002: the Testing tab ships hidden and is only revealed for admins."""
|
||||
"US-002: the Testing tab ships hidden and is only revealed for admins.\n\nTags: dashboard, http"
|
||||
html = _dashboard_html()
|
||||
|
||||
# Tab button exists but is hidden until setAdminMode(true) reveals it.
|
||||
@@ -331,7 +341,7 @@ def test_dashboard_testing_tab_is_admin_only():
|
||||
|
||||
|
||||
def test_dashboard_testing_tab_uses_dynamic_api_and_run_controls():
|
||||
"""US-002: targets come from the API, never a hardcoded list."""
|
||||
"US-002: targets come from the API, never a hardcoded list.\n\nTags: dashboard, http"
|
||||
html = _dashboard_html()
|
||||
|
||||
# Dynamic collection + run + status endpoints from US-001.
|
||||
@@ -364,7 +374,7 @@ def test_dashboard_testing_tab_uses_dynamic_api_and_run_controls():
|
||||
|
||||
|
||||
def test_dashboard_testing_tab_renders_status_and_bounded_log():
|
||||
"""US-002: state, timings, exit code, outcome and an auto-refreshing log."""
|
||||
"US-002: state, timings, exit code, outcome and an auto-refreshing log.\n\nTags: dashboard, http"
|
||||
html = _dashboard_html()
|
||||
|
||||
assert "renderTestRunStatus" in html
|
||||
|
||||
Reference in New Issue
Block a user