Skip to content

Commit

Permalink
Merge branch 'main' of github.com:onecx/onecx-welcome-bff into rename…
Browse files Browse the repository at this point in the history
…-openapi
  • Loading branch information
HenryT-CG committed Apr 9, 2024
2 parents 02f2f8b + 368e71d commit f3adb22
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 8 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ on:
jobs:
branch:
uses: onecx/ci-quarkus/.github/workflows/build-branch.yml@v1
secrets: inherit
secrets: inherit
with:
native: true
4 changes: 3 additions & 1 deletion .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ on:
jobs:
pr:
uses: onecx/ci-quarkus/.github/workflows/build-pr.yml@v1
secrets: inherit
secrets: inherit
with:
native: true
4 changes: 3 additions & 1 deletion .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ on:
jobs:
release:
uses: onecx/ci-quarkus/.github/workflows/build-release.yml@v1
secrets: inherit
secrets: inherit
with:
native: true
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ jobs:
uses: onecx/ci-quarkus/.github/workflows/build.yml@v1
secrets: inherit
with:
native: true
helmEventTargetRepository: onecx/onecx-welcome
4 changes: 2 additions & 2 deletions src/main/openapi/openapi-bff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ paths:
required: true
schema:
minimum: 1
maximum: 110000
maximum: 1100000
type: integer
requestBody:
content:
Expand Down Expand Up @@ -227,7 +227,7 @@ paths:
required: true
schema:
minimum: 1
maximum: 110000
maximum: 1100000
type: integer
requestBody:
content:
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ quarkus.openapi-generator.codegen.spec.onecx_welcome_internal_yaml.base-package=
quarkus.openapi-generator.codegen.spec.onecx_welcome_internal_yaml.return-response=true
quarkus.openapi-generator.codegen.spec.onecx_welcome_internal_yaml.additional-api-type-annotations=@org.eclipse.microprofile.rest.client.annotation.RegisterClientHeaders;
quarkus.openapi-generator.codegen.spec.onecx_welcome_internal_yaml.type-mappings.File=byte[]

quarkus.openapi-generator.codegen.spec.onecx_welcome_internal_yaml.additional-model-type-annotations=@io.quarkus.runtime.annotations.RegisterForReflection;
quarkus.openapi-generator.codegen.input-base-dir=target/tmp/openapi

# INTEGRATION TEST
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,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 @@ -393,7 +393,7 @@ void testMaxUploadSize() {
.extract().as(ProblemDetailResponseDTO.class);

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

}

0 comments on commit f3adb22

Please sign in to comment.