Unify device controls and restore the WiFi console

This commit is contained in:
mikecarper committed 2026-09-08 18:36:23 -07:00
1 parent 3746f9d5f4
commit 4c8aad5b16
44 files changed
+3573 -2948

No files matched your search

@@ -347,6 +347,16 @@ TEST(WebConfigBatch, OnlyWritesGateTheDeferredReboot) {
EXPECT_FALSE(Batch::cliWriteSucceeded(""));
}
TEST(WebConfigBatch, PasswordEchoIsMaskedOnlyAfterARealChange) {
EXPECT_TRUE(Batch::cliPasswordChanged("password now: new-password"));
EXPECT_TRUE(Batch::cliPasswordChanged("OK"));
EXPECT_FALSE(Batch::cliPasswordChanged("Error: unsupported command"));
EXPECT_FALSE(Batch::cliPasswordChanged("Error: failed to save"));
EXPECT_FALSE(Batch::cliPasswordChanged("(no reply)"));
EXPECT_FALSE(Batch::cliPasswordChanged(""));
EXPECT_FALSE(Batch::cliPasswordChanged(NULL));
}
TEST(WebConfigBatch, CliRebootIsWithheldWhenAnyCommandInTheSequenceFailed) {
EXPECT_TRUE(Batch::cliRebootAllowed(/*has_reboot=*/true, /*all_ok=*/true));
// Same rule a config save follows: do not reboot into a half-applied config