Skip to content

Commit a823b0e

Browse files
committed
test case inputs
1 parent e827f55 commit a823b0e

54 files changed

Lines changed: 986 additions & 35 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/main/groovy/com/github/hauner/openapi/test/TestSet.groovy

Lines changed: 21 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -20,38 +20,28 @@ import com.github.hauner.openapi.api.OpenApiProcessor
2020

2121
class TestSet {
2222

23-
static def testSetsCore = [
23+
static def ALL = [
2424
'bean-validation',
25-
'endpoint-exclude'
26-
]
27-
28-
static def testSetsFramework = [
29-
30-
]
31-
32-
static def testSets = [
33-
'bean-validation',
34-
// 'endpoint-exclude',
35-
// 'method-operation-id',
36-
// 'no-response-content',
37-
// 'params-additional',
38-
// 'params-complex-data-types',
39-
// 'params-enum',
40-
// 'params-simple-data-types',
41-
// 'params-request-body',
42-
// 'params-request-body-multipart-form-data',
43-
// 'params-path-simple-data-types',
44-
// 'params-spring-pageable-mapping',
45-
// 'ref-into-another-file',
46-
// 'ref-loop',
47-
// 'response-array-data-type-mapping',
48-
// 'response-complex-data-types',
49-
// 'response-content-multiple',
50-
// 'response-content-single',
51-
// 'response-result-mapping',
52-
// 'response-simple-data-types',
53-
// 'response-single-multi-mapping',
54-
// 'schema-composed'
25+
'endpoint-exclude',
26+
'endpoint-http-mapping', // uses framework annotations
27+
'method-operation-id',
28+
'params-additional',
29+
'params-complex-data-types', // uses framework annotations
30+
'params-enum',
31+
'params-path-simple-data-types', // uses framework annotations
32+
'params-request-body', // uses framework annotations
33+
'params-request-body-multipart-form-data', // uses framework annotations
34+
'params-simple-data-types', // uses framework annotations
35+
'ref-into-another-file',
36+
'ref-loop',
37+
'response-array-data-type-mapping',
38+
'response-complex-data-types',
39+
'response-content-multiple',
40+
'response-content-single',
41+
'response-result-mapping',
42+
'response-simple-data-types',
43+
'response-single-multi-mapping',
44+
'schema-composed'
5545
]
5646

5747
static String DEFAULT_MAPPING = """\
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
items:
2-
- openapi.yaml
3-
- mapping.yaml
2+
- inputs/openapi.yaml
3+
- inputs/mapping.yaml

src/main/resources/tests/bean-validation/mapping.yaml renamed to src/main/resources/tests/bean-validation/inputs/mapping.yaml

File renamed without changes.

src/main/resources/tests/bean-validation/openapi.yaml renamed to src/main/resources/tests/bean-validation/inputs/openapi.yaml

File renamed without changes.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
items:
2-
- openapi.yaml
3-
- mapping.yaml
2+
- inputs/openapi.yaml
3+
- inputs/mapping.yaml

src/main/resources/tests/endpoint-exclude/mapping.yaml renamed to src/main/resources/tests/endpoint-exclude/inputs/mapping.yaml

File renamed without changes.

src/main/resources/tests/endpoint-exclude/openapi.yaml renamed to src/main/resources/tests/endpoint-exclude/inputs/openapi.yaml

File renamed without changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
items:
2+
- inputs/openapi.yaml
3+
- inputs/mapping.yaml
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
openapi-processor-spring: v2
2+
3+
options:
4+
package-name: generated
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
openapi: 3.0.2
2+
info:
3+
title: test enpoint http method mapping
4+
version: 1.0.0
5+
6+
paths:
7+
/endpoint:
8+
9+
get:
10+
tags:
11+
- endpoint
12+
responses:
13+
'204':
14+
description: empty
15+
16+
put:
17+
tags:
18+
- endpoint
19+
responses:
20+
'204':
21+
description: empty
22+
23+
post:
24+
tags:
25+
- endpoint
26+
responses:
27+
'204':
28+
description: empty
29+
30+
patch:
31+
tags:
32+
- endpoint
33+
responses:
34+
'204':
35+
description: empty

0 commit comments

Comments
 (0)