From 282a7098a78bcefa9fbf8da1c55f8bf0e40b4167 Mon Sep 17 00:00:00 2001 From: Vichy Meas Date: Thu, 28 May 2026 19:38:12 -0700 Subject: [PATCH] fix: prefix integration test API names with sam-integ- for sweeper cleanup Add sam-integ- prefix to all REST API titles in OpenAPI/Swagger specs used by integration tests. This ensures orphaned APIs from failed stack deletions are discoverable by the sweeper function's name-based filter pattern. No test logic depends on these API name values. --- integration/resources/code/swagger1.json | 2 +- integration/resources/code/swagger2.json | 2 +- .../api_with_authorizer_override_api_auth.yaml | 2 +- .../api_with_binary_media_types_with_definition_body.yaml | 2 +- ...h_binary_media_types_with_definition_body_openapi.yaml | 2 +- .../templates/combination/api_with_usage_plan.yaml | 8 ++++---- .../templates/single/basic_api_inline_openapi.yaml | 2 +- .../templates/single/basic_api_inline_swagger.yaml | 2 +- 8 files changed, 11 insertions(+), 11 deletions(-) diff --git a/integration/resources/code/swagger1.json b/integration/resources/code/swagger1.json index ca8e572a4c..bcbc29cb99 100644 --- a/integration/resources/code/swagger1.json +++ b/integration/resources/code/swagger1.json @@ -6,7 +6,7 @@ }, "info": { "description": "Your first API with Amazon API Gateway. This is a sample API that integrates via HTTP with our demo Pet Store endpoints", - "title": "PetStore" + "title": "sam-integ-PetStore" }, "paths": { "/": { diff --git a/integration/resources/code/swagger2.json b/integration/resources/code/swagger2.json index f048891201..fede5dea40 100644 --- a/integration/resources/code/swagger2.json +++ b/integration/resources/code/swagger2.json @@ -6,7 +6,7 @@ }, "info": { "description": "Your first API with Amazon API Gateway. This is a sample API that integrates via HTTP with our demo Pet Store endpoints", - "title": "PetStore" + "title": "sam-integ-PetStore" }, "paths": { "/": { diff --git a/integration/resources/templates/combination/api_with_authorizer_override_api_auth.yaml b/integration/resources/templates/combination/api_with_authorizer_override_api_auth.yaml index ccb70abbe4..6aa844431f 100644 --- a/integration/resources/templates/combination/api_with_authorizer_override_api_auth.yaml +++ b/integration/resources/templates/combination/api_with_authorizer_override_api_auth.yaml @@ -8,7 +8,7 @@ Resources: swagger: '2.0' info: version: '2016-09-23T22:23:23Z' - title: Simple Api + title: sam-integ-Simple-Api schemes: - https paths: diff --git a/integration/resources/templates/combination/api_with_binary_media_types_with_definition_body.yaml b/integration/resources/templates/combination/api_with_binary_media_types_with_definition_body.yaml index b9131b457a..1771c849e2 100644 --- a/integration/resources/templates/combination/api_with_binary_media_types_with_definition_body.yaml +++ b/integration/resources/templates/combination/api_with_binary_media_types_with_definition_body.yaml @@ -27,7 +27,7 @@ Resources: swagger: '2.0' info: version: '2016-09-23T22:23:23Z' - title: Simple Api + title: sam-integ-Simple-Api basePath: /demo schemes: - https diff --git a/integration/resources/templates/combination/api_with_binary_media_types_with_definition_body_openapi.yaml b/integration/resources/templates/combination/api_with_binary_media_types_with_definition_body_openapi.yaml index 22c621f485..f65b4e76ab 100644 --- a/integration/resources/templates/combination/api_with_binary_media_types_with_definition_body_openapi.yaml +++ b/integration/resources/templates/combination/api_with_binary_media_types_with_definition_body_openapi.yaml @@ -31,7 +31,7 @@ Resources: openapi: 3.0.1 info: version: '2016-09-23T22:23:23Z' - title: Simple Api + title: sam-integ-Simple-Api basePath: /none schemes: - https diff --git a/integration/resources/templates/combination/api_with_usage_plan.yaml b/integration/resources/templates/combination/api_with_usage_plan.yaml index 0447e9153f..4af707075d 100644 --- a/integration/resources/templates/combination/api_with_usage_plan.yaml +++ b/integration/resources/templates/combination/api_with_usage_plan.yaml @@ -28,7 +28,7 @@ Resources: swagger: '2.0' info: version: '2016-09-23T22:23:23Z' - title: Simple Api 1 + title: sam-integ-Simple-Api-1 basePath: /demo schemes: - https @@ -59,7 +59,7 @@ Resources: openapi: 3.0.1 info: version: '2016-09-23T22:23:23Z' - title: Simple Api 2 + title: sam-integ-Simple-Api-2 basePath: /demo schemes: - https @@ -90,7 +90,7 @@ Resources: openapi: 3.0.1 info: version: '2016-09-23T22:23:23Z' - title: Simple Api 3 + title: sam-integ-Simple-Api-3 basePath: /demo schemes: - https @@ -121,7 +121,7 @@ Resources: openapi: 3.0.1 info: version: '2016-09-23T22:23:23Z' - title: Simple Api 4 + title: sam-integ-Simple-Api-4 basePath: /demo schemes: - https diff --git a/integration/resources/templates/single/basic_api_inline_openapi.yaml b/integration/resources/templates/single/basic_api_inline_openapi.yaml index 021a1386e0..48b33dd32a 100644 --- a/integration/resources/templates/single/basic_api_inline_openapi.yaml +++ b/integration/resources/templates/single/basic_api_inline_openapi.yaml @@ -8,7 +8,7 @@ Resources: openapi: '3.0' info: version: '2016-09-23T22:23:23Z' - title: Simple Api + title: sam-integ-Simple-Api basePath: /demo schemes: - https diff --git a/integration/resources/templates/single/basic_api_inline_swagger.yaml b/integration/resources/templates/single/basic_api_inline_swagger.yaml index 3023c1f68c..1a356579a4 100644 --- a/integration/resources/templates/single/basic_api_inline_swagger.yaml +++ b/integration/resources/templates/single/basic_api_inline_swagger.yaml @@ -8,7 +8,7 @@ Resources: swagger: '2.0' info: version: '2016-09-23T22:23:23Z' - title: Simple Api + title: sam-integ-Simple-Api basePath: /demo schemes: - https