Merge pull request #128553 from thockin/master

Validation: merge TooLong and TooLongMaxLen
This commit is contained in:
Kubernetes Prow Robot
2024-11-06 04:19:43 +00:00
committed by GitHub
20 changed files with 54 additions and 60 deletions

View File

@@ -338,7 +338,7 @@ func TestObjectSizeResponses(t *testing.T) {
expectedMsgFor1MB := `etcdserver: request is too large`
expectedMsgFor2MB := `rpc error: code = ResourceExhausted desc = trying to send message larger than max`
expectedMsgFor3MB := `Request entity too large: limit is 3145728`
expectedMsgForLargeAnnotation := `metadata.annotations: Too long: must have at most 262144 bytes`
expectedMsgForLargeAnnotation := `metadata.annotations: Too long: may not be more than 262144 bytes`
deployment1 := constructBody("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", DeploymentMegabyteSize, "labels", t) // >1.5 MB file
deployment2 := constructBody("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", DeploymentTwoMegabyteSize, "labels", t) // >2 MB file