Kill TooLongMaxLength() in favor of TooLong()

This commit is contained in:
Tim Hockin
2024-11-04 15:16:29 -08:00
parent 50998de605
commit 4d0e1c8fd4
11 changed files with 26 additions and 28 deletions

View File

@@ -11926,7 +11926,7 @@ func TestValidatePod(t *testing.T) {
),
},
"too long AppArmor localhost profile": {
expectedError: "Too long: may not be longer than 4095",
expectedError: "Too long: may not be more than 4095 bytes",
spec: *podtest.MakePod("123",
podtest.SetSecurityContext(&core.PodSecurityContext{
AppArmorProfile: &core.AppArmorProfile{