[v10.1.x] Slug: Combine various slugify fixes for special character handling (#73173)

Slug: Combine various slugify fixes for special character handling (#73164)

* combine various slugify fixes for special character handling

* a couple more test cases

* update more tests

* goimports

(cherry picked from commit dd97038b00)

Co-authored-by: Dan Cech <dcech@grafana.com>
This commit is contained in:
grafana-delivery-bot[bot]
2023-08-11 13:13:29 -04:00
committed by GitHub
co-authored by Dan Cech
parent c07b4fb734
commit 0fdb3485f6
4 changed files with 40 additions and 14 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ func TestSaveExternalServiceRoleCommand_Validate(t *testing.T) {
Permissions: []Permission{{Action: "users:read", Scope: "users:id:1"}},
},
wantErr: false,
wantID: "thisis-a-very-strange-___-app-name",
wantID: "thisis-a-very-strange-app-name",
},
{
name: "invalid empty Action",