From aedbfb6b9e7d5e555fdfbb733376f0f2f7f24b8a Mon Sep 17 00:00:00 2001 From: martincostello Date: Mon, 1 Jul 2024 09:34:57 +0100 Subject: [PATCH] Fix failing test Fix baseline for change made in #2942 that pre-dated the verification tests being added. --- ....Startup_swaggerRequestUri=v1.verified.txt | 60 +++++++++++++++++-- 1 file changed, 56 insertions(+), 4 deletions(-) diff --git a/test/Swashbuckle.AspNetCore.IntegrationTests/SwaggerVerifyIntegrationTest.SwaggerEndpoint_ReturnsValidSwaggerJson_startupType=OAuth2Integration.Startup_swaggerRequestUri=v1.verified.txt b/test/Swashbuckle.AspNetCore.IntegrationTests/SwaggerVerifyIntegrationTest.SwaggerEndpoint_ReturnsValidSwaggerJson_startupType=OAuth2Integration.Startup_swaggerRequestUri=v1.verified.txt index e312247c58..7dccefdcbf 100644 --- a/test/Swashbuckle.AspNetCore.IntegrationTests/SwaggerVerifyIntegrationTest.SwaggerEndpoint_ReturnsValidSwaggerJson_startupType=OAuth2Integration.Startup_swaggerRequestUri=v1.verified.txt +++ b/test/Swashbuckle.AspNetCore.IntegrationTests/SwaggerVerifyIntegrationTest.SwaggerEndpoint_ReturnsValidSwaggerJson_startupType=OAuth2Integration.Startup_swaggerRequestUri=v1.verified.txt @@ -44,8 +44,21 @@ } } } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" } - } + }, + "security": [ + { + "oauth2": [ + "readAccess" + ] + } + ] }, "post": { "tags": [ @@ -73,8 +86,21 @@ "responses": { "200": { "description": "OK" + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" } - } + }, + "security": [ + { + "oauth2": [ + "writeAccess" + ] + } + ] } }, "/products/{id}": { @@ -113,8 +139,21 @@ } } } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" } - } + }, + "security": [ + { + "oauth2": [ + "readAccess" + ] + } + ] }, "delete": { "tags": [ @@ -134,8 +173,21 @@ "responses": { "200": { "description": "OK" + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" } - } + }, + "security": [ + { + "oauth2": [ + "writeAccess" + ] + } + ] } } },