Add ShowFullName property (#14189)

This commit is contained in:
shred86
2020-05-27 18:23:51 +02:00
committed by GitHub
parent 853e955b62
commit c35a18d15c
2 changed files with 14 additions and 0 deletions
+1
View File
@@ -70,6 +70,7 @@ func GenerateClientConfig(c *model.Config, diagnosticID string, license *model.L
props["EmailNotificationContentsType"] = *c.EmailSettings.EmailNotificationContentsType
props["ShowEmailAddress"] = strconv.FormatBool(*c.PrivacySettings.ShowEmailAddress)
props["ShowFullName"] = strconv.FormatBool(*c.PrivacySettings.ShowFullName)
props["EnableFileAttachments"] = strconv.FormatBool(*c.FileSettings.EnableFileAttachments)
props["EnablePublicLink"] = strconv.FormatBool(*c.FileSettings.EnablePublicLink)
+13
View File
@@ -165,6 +165,19 @@ func TestGetClientConfig(t *testing.T) {
"IsDefaultMarketplace": "false",
},
},
{
"enable ShowFullName prop",
&model.Config{
PrivacySettings: model.PrivacySettings{
ShowFullName: bToP(true),
},
},
"tag1",
nil,
map[string]string{
"ShowFullName": "true",
},
},
}
for _, testCase := range testCases {