Add default colors to default organization config

Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
pull/10616/head
Alirie Gray 2018-07-10 12:19:37 -07:00
parent 0295a9a549
commit 85e8ba3491
2 changed files with 200 additions and 0 deletions

View File

@ -116,6 +116,46 @@ func newOrganizationConfig(orgID string) chronograf.OrganizationConfig {
Type: "label",
Value: "text",
},
{
Type: "color",
Name: "emerg",
Value: "ruby",
},
{
Type: "color",
Name: "alert",
Value: "fire",
},
{
Type: "color",
Name: "crit",
Value: "curacao",
},
{
Type: "color",
Name: "err",
Value: "tiger",
},
{
Type: "color",
Name: "warning",
Value: "pineapple",
},
{
Type: "color",
Name: "notice",
Value: "rainforest",
},
{
Type: "color",
Name: "info",
Value: "star",
},
{
Type: "color",
Name: "debug",
Value: "wolf",
},
},
},
{

View File

@ -60,6 +60,46 @@ func TestOrganizationConfig_FindOrCreate(t *testing.T) {
Type: "label",
Value: "text",
},
{
Type: "color",
Name: "emerg",
Value: "ruby",
},
{
Type: "color",
Name: "alert",
Value: "fire",
},
{
Type: "color",
Name: "crit",
Value: "curacao",
},
{
Type: "color",
Name: "err",
Value: "tiger",
},
{
Type: "color",
Name: "warning",
Value: "pineapple",
},
{
Type: "color",
Name: "notice",
Value: "rainforest",
},
{
Type: "color",
Name: "info",
Value: "star",
},
{
Type: "color",
Name: "debug",
Value: "wolf",
},
},
},
{
@ -177,6 +217,46 @@ func TestOrganizationConfig_FindOrCreate(t *testing.T) {
Type: "label",
Value: "text",
},
{
Type: "color",
Name: "emerg",
Value: "ruby",
},
{
Type: "color",
Name: "alert",
Value: "fire",
},
{
Type: "color",
Name: "crit",
Value: "curacao",
},
{
Type: "color",
Name: "err",
Value: "tiger",
},
{
Type: "color",
Name: "warning",
Value: "pineapple",
},
{
Type: "color",
Name: "notice",
Value: "rainforest",
},
{
Type: "color",
Name: "info",
Value: "star",
},
{
Type: "color",
Name: "debug",
Value: "wolf",
},
},
},
{
@ -294,6 +374,46 @@ func TestOrganizationConfig_FindOrCreate(t *testing.T) {
Type: "label",
Value: "text",
},
{
Type: "color",
Name: "emerg",
Value: "ruby",
},
{
Type: "color",
Name: "alert",
Value: "fire",
},
{
Type: "color",
Name: "crit",
Value: "curacao",
},
{
Type: "color",
Name: "err",
Value: "tiger",
},
{
Type: "color",
Name: "warning",
Value: "pineapple",
},
{
Type: "color",
Name: "notice",
Value: "rainforest",
},
{
Type: "color",
Name: "info",
Value: "star",
},
{
Type: "color",
Name: "debug",
Value: "wolf",
},
},
},
{
@ -411,6 +531,46 @@ func TestOrganizationConfig_FindOrCreate(t *testing.T) {
Type: "label",
Value: "text",
},
{
Type: "color",
Name: "emerg",
Value: "ruby",
},
{
Type: "color",
Name: "alert",
Value: "fire",
},
{
Type: "color",
Name: "crit",
Value: "curacao",
},
{
Type: "color",
Name: "err",
Value: "tiger",
},
{
Type: "color",
Name: "warning",
Value: "pineapple",
},
{
Type: "color",
Name: "notice",
Value: "rainforest",
},
{
Type: "color",
Name: "info",
Value: "star",
},
{
Type: "color",
Name: "debug",
Value: "wolf",
},
},
},
{