Skip to content

Commit

Permalink
Go test updated
Browse files Browse the repository at this point in the history
  • Loading branch information
philrenaud committed Feb 2, 2023
1 parent 388764a commit 3ef753b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changelog/16006.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
ui: Added a ui.label block to agent config, letting operators set a visual label and color for their Nomad instance
```
6 changes: 6 additions & 0 deletions nomad/structs/config/ui_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ func TestUIConfig_Merge(t *testing.T) {
Vault: &VaultUIConfig{
BaseUIURL: "http://vault.example.com:8200",
},
Label: &LabelUIConfig{
Text: "Example Cluster",
BackgroundColor: "blue",
TextColor: "#fff",
},
}

testCases := []struct {
Expand Down Expand Up @@ -64,6 +69,7 @@ func TestUIConfig_Merge(t *testing.T) {
BaseUIURL: "http://consul-other.example.com:8500",
},
Vault: &VaultUIConfig{},
Label: &LabelUIConfig{},
},
},
}
Expand Down

0 comments on commit 3ef753b

Please sign in to comment.