Skip to content

Commit

Permalink
feat: increased image upload size (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
JordenReuter authored Nov 6, 2024
1 parent 0319709 commit 81c76db
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-image-internal-openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ paths:
required: true
schema:
minimum: 1
maximum: 110000
maximum: 210000
type: integer
- name: refId
in: path
Expand Down Expand Up @@ -95,7 +95,7 @@ paths:
schema:
type: integer
minimum: 1
maximum: 110000
maximum: 210000
- name: refId
in: path
required: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ void testMaxUploadSize() {

var refId = "productMaxUpload";

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

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

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

}

Expand Down

0 comments on commit 81c76db

Please sign in to comment.