-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OpenAPI: Generate test cases with concrete input values (#102)
Fixes issue #85
- Loading branch information
1 parent
f299e6c
commit ff0eec8
Showing
295 changed files
with
47,009 additions
and
1,420 deletions.
There are no files selected for viewing
334 changes: 295 additions & 39 deletions
334
tcases-cli/src/main/java/org/cornutum/tcases/openapi/ApiCommand.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
78 changes: 78 additions & 0 deletions
78
tcases-cli/src/test/resources/org/cornutum/tcases/openapi/api-run-10.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
{ | ||
"openapi": "3.0.0", | ||
"info": { | ||
"title": "String", | ||
"version": "0.0.0" | ||
}, | ||
"paths": { | ||
"/string": { | ||
"post": { | ||
"parameters": [ | ||
{ | ||
"name": "param0", | ||
"in": "cookie", | ||
"schema": { | ||
"type": "string", | ||
"format": "password", | ||
"default": "Change Me!", | ||
"maxLength": 128, | ||
"nullable": true | ||
} | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"$ref": "#/components/responses/success" | ||
}, | ||
"default": { | ||
"$ref": "#/components/responses/failure" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"components": { | ||
"parameters": { | ||
"id": { | ||
"name": "id", | ||
"in": "query", | ||
"schema": { | ||
"type": "integer" | ||
} | ||
} | ||
}, | ||
"requestBodies": { | ||
"standard": { | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"type": "object" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"success": { | ||
"description": "Success", | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"type": "object" | ||
} | ||
} | ||
} | ||
}, | ||
"failure": { | ||
"description": "Error", | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"type": "object" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.