Add DNS accounts, Let's Encrypt, password change, reboot, HTTP redirect
- router.dnsProviders: named accounts at DNS providers, used by dynamic DNS and certificates (ddclient and lego provider lists in pkgs/router-webui/providers.json). Schema 2 migrates router.ddns. - router.acme: a Let's Encrypt certificate for the web UI via security.acme (DNS-01, resolver 1.1.1.1), served and reloaded by the web UI; Certificate page. - Web UI: password change (web UI and root), reboot button, HTTP to HTTPS redirect (router.webui.httpPort), grouped menu. - Latest kernel (linuxPackages_latest); 7.3 and 7.3.0 are the same kernel for the reboot hint. - SPECS.md: wanted later (REST API, GraphQL, MCP). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AeFqV9dZrK6nipHkPfyM4F
This commit is contained in:
@@ -55,11 +55,14 @@ func TestReadSensors(t *testing.T) {
|
||||
|
||||
func TestPendingKernel(t *testing.T) {
|
||||
img := "/nix/store/abc123-linux-6.12.5/bzImage"
|
||||
for running, want := range map[string]string{"6.12.5": "", "6.12.5-zen1": "", "6.12.4": "6.12.5", "": ""} {
|
||||
for running, want := range map[string]string{"6.12.5": "", "6.12.5-zen1": "", "6.12.5.0": "", "6.12.4": "6.12.5", "": ""} {
|
||||
if got := pendingKernel(running, img); got != want {
|
||||
t.Errorf("running %q: %q, want %q", running, got, want)
|
||||
}
|
||||
}
|
||||
if got := pendingKernel("7.3.0", "/nix/store/abc-linux-7.3/bzImage"); got != "" {
|
||||
t.Errorf("7.3.0 is 7.3: %q", got)
|
||||
}
|
||||
if got := pendingKernel("6.12.4", "/boot/vmlinuz"); got != "" {
|
||||
t.Errorf("an unknown path gave %q", got)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user