From 7907ae67083f113764477de58e35b888f2bf8ddf Mon Sep 17 00:00:00 2001 From: Benedikt Kulmann Date: Thu, 4 Jun 2020 11:49:02 +0200 Subject: [PATCH] Add test validating that UTF is allowed in display names --- pkg/proto/v0/settings.pb.micro_test.go | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkg/proto/v0/settings.pb.micro_test.go b/pkg/proto/v0/settings.pb.micro_test.go index 866080f338a..24462396dad 100644 --- a/pkg/proto/v0/settings.pb.micro_test.go +++ b/pkg/proto/v0/settings.pb.micro_test.go @@ -83,7 +83,7 @@ func TestSettingsBundleProperties(t *testing.T) { CustomError{}, }, { - "UTF", + "UTF disallowed on keys", "सिम्प्ले-bundle-key", "सिम्प्ले-key", "सिम्प्ले-display-name", @@ -96,6 +96,15 @@ func TestSettingsBundleProperties(t *testing.T) { Status: "Internal Server Error", }, }, + { + "UTF allowed on display name", + "simple-bundle-key", + "simple-key", + "सिम्प्ले-display-name", + "simple-extension-name", + "123e4567-e89b-12d3-a456-426652340000", + CustomError{}, + }, { "bundle key with ../ in the name", "../file-a-level-higher-up",