mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: use CRC32 to shorten app subdomain (#9645)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user