Skip to content

Commit

Permalink
fix: increased max content length to 1,1mb (#9)
Browse files Browse the repository at this point in the history
* fix: increased max content length to 1,1mb

* fix: test

* fix: test
  • Loading branch information
JordenReuter authored Mar 22, 2024
1 parent 6690939 commit afecbcc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/openapi/onecx-welcome-internal-openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ paths:
required: true
schema:
minimum: 1
maximum: 110000
maximum: 1100000
type: integer
requestBody:
content:
Expand Down Expand Up @@ -164,7 +164,7 @@ paths:
required: true
schema:
minimum: 1
maximum: 110000
maximum: 1100000
type: integer
requestBody:
content:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ void getAllImageInfosTest() {
@Test
void testMaxUploadSize() {

byte[] body = new byte[110001];
byte[] body = new byte[1100001];
new Random().nextBytes(body);

var exception = given()
Expand All @@ -311,7 +311,7 @@ void testMaxUploadSize() {

assertThat(exception.getErrorCode()).isEqualTo(CONSTRAINT_VIOLATIONS.name());
assertThat(exception.getDetail()).isEqualTo(
"createImage.contentLength: must be less than or equal to 110000");
"createImage.contentLength: must be less than or equal to 1100000");

}

Expand Down

0 comments on commit afecbcc

Please sign in to comment.