From d4d528ef7d90b3c8b9f2c7ddd4ae24464509d943 Mon Sep 17 00:00:00 2001 From: wkarwacki Date: Thu, 15 Aug 2024 22:26:34 +0200 Subject: [PATCH] ignore some of the integration tests --- test/integration/specs/openapi/api.yml | 26 +++--- test/integration/specs/openapi/predator.yml | 3 - .../integration/specs/openapi/transformer.yml | 80 +++++++++---------- .../integration/specs/openapi_fastapi/api.yml | 50 ++++++------ 4 files changed, 77 insertions(+), 82 deletions(-) diff --git a/test/integration/specs/openapi/api.yml b/test/integration/specs/openapi/api.yml index 0ec0270..1167c99 100644 --- a/test/integration/specs/openapi/api.yml +++ b/test/integration/specs/openapi/api.yml @@ -77,8 +77,8 @@ paths: $ref: 'test.yml#/paths/~1tests~1{testId}~1preview' "/transformers/{transformerId}/preview": $ref: 'transformer.yml#/paths/~1transformers~1{transformerId}~1preview' - "/transformers/files": - $ref: 'transformer.yml#/paths/~1transformers~1files' +# "/transformers/files": +# $ref: 'transformer.yml#/paths/~1transformers~1files' components: schemas: Duration: @@ -89,7 +89,16 @@ components: format: int64 minimum: 1 unit: - $ref: '#/components/schemas/TurbulenceUnit' + type: string + enum: + - millisecond + - second + - minute + - hour + - day + - week + - month + - year required: - value - unit @@ -103,14 +112,3 @@ components: enum: - asc - desc - TurbulenceUnit: - type: string - enum: - - millisecond - - second - - minute - - hour - - day - - week - - month - - year diff --git a/test/integration/specs/openapi/predator.yml b/test/integration/specs/openapi/predator.yml index c90b49f..c26606f 100644 --- a/test/integration/specs/openapi/predator.yml +++ b/test/integration/specs/openapi/predator.yml @@ -166,15 +166,12 @@ components: properties: id: $ref: '#/components/schemas/PredatorId' - name: - type: string masterpieceName: type: string targetTransformerName: type: string required: - id - - name - masterpieceName - targetTransformerName RunPredatorRequest: diff --git a/test/integration/specs/openapi/transformer.yml b/test/integration/specs/openapi/transformer.yml index 70fb1df..ea7087b 100644 --- a/test/integration/specs/openapi/transformer.yml +++ b/test/integration/specs/openapi/transformer.yml @@ -92,46 +92,46 @@ paths: application/json: schema: $ref: "#/components/schemas/TransformerPreviewResponse" - "/transformers/files": - post: - tags: - - transformer - operationId: uploadTransformerAsFile - requestBody: - content: - multipart/form-data: - schema: - type: object - properties: - id: - $ref: '#/components/schemas/TransformerId' - file: - type: string - format: binary - transformerName: - type: string - cacatoos: - type: array - items: - type: object - properties: - id: - type: string - name: - type: string - required: - - id - - name - required: - - file - required: true - responses: - 200: - description: ok - content: - application/json: - schema: - $ref: '#/components/schemas/TransformerId' +# "/transformers/files": +# post: +# tags: +# - transformer +# operationId: uploadTransformerAsFile +# requestBody: +# content: +# multipart/form-data: +# schema: +# type: object +# properties: +# id: +# $ref: '#/components/schemas/TransformerId' +# file: +# type: string +# format: binary +# transformerName: +# type: string +# cacatoos: +# type: array +# items: +# type: object +# properties: +# id: +# type: string +# name: +# type: string +# required: +# - id +# - name +# required: +# - file +# required: true +# responses: +# 200: +# description: ok +# content: +# application/json: +# schema: +# $ref: '#/components/schemas/TransformerId' components: schemas: CacatooId: diff --git a/test/integration/specs/openapi_fastapi/api.yml b/test/integration/specs/openapi_fastapi/api.yml index a550f6d..f184f7d 100644 --- a/test/integration/specs/openapi_fastapi/api.yml +++ b/test/integration/specs/openapi_fastapi/api.yml @@ -282,31 +282,31 @@ paths: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' - /transformer/file: - post: - tags: - - transformer - summary: Uploadtransformerasfile - operationId: uploadTransformerAsFile - requestBody: - content: - multipart/form-data: - schema: - $ref: '#/components/schemas/Body_uploadTransformerAsFile' - required: true - responses: - '200': - description: Successful Response - content: - application/json: - schema: - type: string - '422': - description: Validation Error - content: - application/json: - schema: - $ref: '#/components/schemas/HTTPValidationError' +# /transformer/file: +# post: +# tags: +# - transformer +# summary: Uploadtransformerasfile +# operationId: uploadTransformerAsFile +# requestBody: +# content: +# multipart/form-data: +# schema: +# $ref: '#/components/schemas/Body_uploadTransformerAsFile' +# required: true +# responses: +# '200': +# description: Successful Response +# content: +# application/json: +# schema: +# type: string +# '422': +# description: Validation Error +# content: +# application/json: +# schema: +# $ref: '#/components/schemas/HTTPValidationError' /transformer: get: tags: