mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-23 11:27:29 +00:00
health: prefix Warnables received from the control plane
Updates tailscale/corp#27759 Signed-off-by: James Sanderson <jsanderson@tailscale.com>
This commit is contained in:

committed by
James 'zofrex' Sanderson

parent
7b06532ea1
commit
5716d0977d
@@ -468,14 +468,14 @@ func TestControlHealth(t *testing.T) {
|
||||
baseStrs := ht.Strings()
|
||||
|
||||
msgs := map[tailcfg.DisplayMessageID]tailcfg.DisplayMessage{
|
||||
"control-health-test": {
|
||||
"test": {
|
||||
Title: "Control health message",
|
||||
Text: "Extra help.",
|
||||
},
|
||||
"control-health-title": {
|
||||
"title": {
|
||||
Title: "Control health title only",
|
||||
},
|
||||
"control-health-with-action": {
|
||||
"with-action": {
|
||||
Title: "Control health message",
|
||||
Text: "Extra help.",
|
||||
PrimaryAction: &tailcfg.DisplayMessageAction{
|
||||
@@ -488,19 +488,19 @@ func TestControlHealth(t *testing.T) {
|
||||
|
||||
t.Run("Warnings", func(t *testing.T) {
|
||||
wantWarns := map[WarnableCode]UnhealthyState{
|
||||
"control-health-test": {
|
||||
WarnableCode: "control-health-test",
|
||||
"control-health.test": {
|
||||
WarnableCode: "control-health.test",
|
||||
Severity: SeverityMedium,
|
||||
Title: "Control health message",
|
||||
Text: "Extra help.",
|
||||
},
|
||||
"control-health-title": {
|
||||
WarnableCode: "control-health-title",
|
||||
"control-health.title": {
|
||||
WarnableCode: "control-health.title",
|
||||
Severity: SeverityMedium,
|
||||
Title: "Control health title only",
|
||||
},
|
||||
"control-health-with-action": {
|
||||
WarnableCode: "control-health-with-action",
|
||||
"control-health.with-action": {
|
||||
WarnableCode: "control-health.with-action",
|
||||
Severity: SeverityMedium,
|
||||
Title: "Control health message",
|
||||
Text: "Extra help.",
|
||||
|
Reference in New Issue
Block a user