v0.32.7
This commit is contained in:
1 parent
4f36de240c
commit
c41d1e00a2
18 files changed
+228
-336
No files matched your search
+24
@@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Static regression for 0.32.7 follow-up; not a browser or Rust runtime test."""
|
||||
from pathlib import Path
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[2]
|
||||
css = (ROOT / 'src/admin/web/style.css').read_text()
|
||||
html = (ROOT / 'src/admin/web/index.html').read_text()
|
||||
response = (ROOT / 'src/proxy/forward/response.rs').read_text()
|
||||
helper = (ROOT / 'src/proxy/h2_graceful.rs').read_text()
|
||||
for button_id in ['overview-refresh', 'overview-layout-open', 'overview-layout-unlock',
|
||||
'overview-layout-open-settings', 'dashboard-widget-expand']:
|
||||
assert f'id="{button_id}"' in html
|
||||
assert '.page-intro-title-row>:is(.quiet, .outline) {\n min-height:' not in css
|
||||
assert 'dashboard-widget-settings-controls>button {\n min-height:' not in css
|
||||
assert 'html[data-button-style=compact] body' in css
|
||||
for mode in ['normal', 'compact', 'ultra']:
|
||||
assert f'html[data-dashboard-density={mode}] #panel-overview .dashboard-overview-grid>.card:not(.pool-card)' in css
|
||||
assert 'upstream_health_error_class(&cause, connect_failure, &active_backend)' in response
|
||||
assert 'let graceful_h2_close = matches!(' in response
|
||||
assert 'tracing::trace!(' in response
|
||||
assert 'StatusCode::BAD_GATEWAY' in response
|
||||
assert 'Some(detail.clone())' in response
|
||||
assert 'recently_saw_graceful_goaway()' in helper
|
||||
print('PASS: shared button CSS, density variants, guarded graceful-H2 logging (source only)')
|
||||
Reference in new issue
Block a user