fix: use CRC32 to shorten app subdomain (#9645)

This commit is contained in:
Marcin Tojek
2023-09-12 17:11:45 +02:00
committed by GitHub
parent 898971b329
commit 0e28397c82
4 changed files with 24 additions and 6 deletions
+10
View File
@@ -42,6 +42,16 @@ func TestApplicationURLString(t *testing.T) {
},
Expected: "8080--agent--workspace--user",
},
{
Name: "LongAppName",
URL: httpapi.ApplicationURL{
AppSlugOrPort: "0123456789012345678901234567890123456789",
AgentName: "agent",
WorkspaceName: "workspace",
Username: "user",
},
Expected: "app-90667f72",
},
}
for _, c := range testCases {