From 72a0b602ad859fcac0aa568888a491d9851c8f07 Mon Sep 17 00:00:00 2001 From: Robin Mackaij Date: Mon, 12 Feb 2024 19:47:59 +0100 Subject: [PATCH] Centralize files used in testing --- .../files/mismatched_openapi.json | 0 .../{driver => }/files/petstore_openapi.json | 0 .../{driver => }/files/petstore_openapi.yaml | 0 .../files/schema_with_allof.yaml | 0 .../files/schema_with_readOnly.json | 0 tests/libcore/files/petstore_openapi.json | 68 ------------------- 6 files changed, 68 deletions(-) rename tests/{driver => }/files/mismatched_openapi.json (100%) rename tests/{driver => }/files/petstore_openapi.json (100%) rename tests/{driver => }/files/petstore_openapi.yaml (100%) rename tests/{libcore => }/files/schema_with_allof.yaml (100%) rename tests/{libcore => }/files/schema_with_readOnly.json (100%) delete mode 100644 tests/libcore/files/petstore_openapi.json diff --git a/tests/driver/files/mismatched_openapi.json b/tests/files/mismatched_openapi.json similarity index 100% rename from tests/driver/files/mismatched_openapi.json rename to tests/files/mismatched_openapi.json diff --git a/tests/driver/files/petstore_openapi.json b/tests/files/petstore_openapi.json similarity index 100% rename from tests/driver/files/petstore_openapi.json rename to tests/files/petstore_openapi.json diff --git a/tests/driver/files/petstore_openapi.yaml b/tests/files/petstore_openapi.yaml similarity index 100% rename from tests/driver/files/petstore_openapi.yaml rename to tests/files/petstore_openapi.yaml diff --git a/tests/libcore/files/schema_with_allof.yaml b/tests/files/schema_with_allof.yaml similarity index 100% rename from tests/libcore/files/schema_with_allof.yaml rename to tests/files/schema_with_allof.yaml diff --git a/tests/libcore/files/schema_with_readOnly.json b/tests/files/schema_with_readOnly.json similarity index 100% rename from tests/libcore/files/schema_with_readOnly.json rename to tests/files/schema_with_readOnly.json diff --git a/tests/libcore/files/petstore_openapi.json b/tests/libcore/files/petstore_openapi.json deleted file mode 100644 index 69244a5..0000000 --- a/tests/libcore/files/petstore_openapi.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "openapi": "3.0.2", - "info": { - "title": "Swagger Petstore - OpenAPI 3.0", - "description": "This is a sample Pet Store Server based on the OpenAPI 3.0 specification. You can find out more about\nSwagger at [http://swagger.io](http://swagger.io). In the third iteration of the pet store, we've switched to the design first approach!\nYou can now help us improve the API whether it's by making changes to the definition itself or to the code.\nThat way, with time, we can improve the API in general, and expose some of the new features in OAS3.\n\nSome useful links:\n- [The Pet Store repository](https://github.com/swagger-api/swagger-petstore)\n- [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)", - "version": "1.0.6" - }, - "paths": { - "/pet": { - "post": { - "operationId": "addPet", - "requestBody": { - "description": "Create a new pet in the store", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Pet" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Successful operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Pet" - } - } - } - } - } - } - } - }, - "components": { - "schemas": { - "Pet": { - "required": [ - "name" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "format": "int64", - "example": 10 - }, - "name": { - "type": "string", - "example": "doggie" - }, - "status": { - "type": "string", - "description": "pet status in the store", - "enum": [ - "available", - "pending", - "sold" - ] - } - } - } - } - } -} \ No newline at end of file