Skip to content

Commit abc90ad

Browse files
Fix failing test
Fix baseline for change made in domaindrivendev#2942 that pre-dated the verification tests being added.
1 parent 65a8035 commit abc90ad

1 file changed

Lines changed: 56 additions & 4 deletions

File tree

test/Swashbuckle.AspNetCore.IntegrationTests/SwaggerVerifyIntegrationTest.SwaggerEndpoint_ReturnsValidSwaggerJson_startupType=OAuth2Integration.Startup_swaggerRequestUri=v1.verified.txt

Lines changed: 56 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,21 @@
4444
}
4545
}
4646
}
47+
},
48+
"401": {
49+
"description": "Unauthorized"
50+
},
51+
"403": {
52+
"description": "Forbidden"
4753
}
48-
}
54+
},
55+
"security": [
56+
{
57+
"oauth2": [
58+
"readAccess"
59+
]
60+
}
61+
]
4962
},
5063
"post": {
5164
"tags": [
@@ -73,8 +86,21 @@
7386
"responses": {
7487
"200": {
7588
"description": "OK"
89+
},
90+
"401": {
91+
"description": "Unauthorized"
92+
},
93+
"403": {
94+
"description": "Forbidden"
7695
}
77-
}
96+
},
97+
"security": [
98+
{
99+
"oauth2": [
100+
"writeAccess"
101+
]
102+
}
103+
]
78104
}
79105
},
80106
"/products/{id}": {
@@ -113,8 +139,21 @@
113139
}
114140
}
115141
}
142+
},
143+
"401": {
144+
"description": "Unauthorized"
145+
},
146+
"403": {
147+
"description": "Forbidden"
116148
}
117-
}
149+
},
150+
"security": [
151+
{
152+
"oauth2": [
153+
"readAccess"
154+
]
155+
}
156+
]
118157
},
119158
"delete": {
120159
"tags": [
@@ -134,8 +173,21 @@
134173
"responses": {
135174
"200": {
136175
"description": "OK"
176+
},
177+
"401": {
178+
"description": "Unauthorized"
179+
},
180+
"403": {
181+
"description": "Forbidden"
137182
}
138-
}
183+
},
184+
"security": [
185+
{
186+
"oauth2": [
187+
"writeAccess"
188+
]
189+
}
190+
]
139191
}
140192
}
141193
},

0 commit comments

Comments
 (0)