Skip to content

Commit ac8e241

Browse files
test: scenario with very long name
1 parent 5647a48 commit ac8e241

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

agent/agentcontainers/api_internal_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,12 @@ func TestSafeAgentName(t *testing.T) {
181181
folderName: "version-1.2.3-alpha",
182182
expected: "version-1-2-3-alpha",
183183
},
184+
185+
// Truncation test for names exceeding 64 characters
186+
{
187+
folderName: "this-is-a-very-long-folder-name-that-exceeds-sixty-four-characters-limit-and-should-be-truncated",
188+
expected: "this-is-a-very-long-folder-name-that-exceeds-sixty-four-characte",
189+
},
184190
}
185191

186192
for _, tt := range tests {

0 commit comments

Comments
 (0)