From 1a2d4400e08a75e13904080f0949ab93f7ae11fb Mon Sep 17 00:00:00 2001 From: Chengjun Li Date: Thu, 1 Oct 2026 11:27:55 -0700 Subject: [PATCH] test: Use valid enum values in graphqlapi_api_cache test The latest CloudFormation schema pulled by cfn-lint now restricts AWS::AppSync::ApiCache ApiCachingBehavior and Type to enum values, so the placeholder values "somebehaviour" and "mytype" fail bin/run_cfn_lint.sh (E3030) on every PR. SAM passes both properties through unchanged, so the test only needs some value to verify the passthrough. Replace the placeholders with valid values (FULL_REQUEST_CACHING, SMALL). --- tests/translator/input/graphqlapi_api_cache.yaml | 4 ++-- tests/translator/output/aws-cn/graphqlapi_api_cache.json | 4 ++-- tests/translator/output/aws-us-gov/graphqlapi_api_cache.json | 4 ++-- tests/translator/output/graphqlapi_api_cache.json | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/translator/input/graphqlapi_api_cache.yaml b/tests/translator/input/graphqlapi_api_cache.yaml index 47881da74c..3afedb842f 100644 --- a/tests/translator/input/graphqlapi_api_cache.yaml +++ b/tests/translator/input/graphqlapi_api_cache.yaml @@ -14,8 +14,8 @@ Resources: key1: value1 key2: value2 Cache: - ApiCachingBehavior: somebehaviour - Type: mytype + ApiCachingBehavior: FULL_REQUEST_CACHING + Type: SMALL Ttl: 60 AtRestEncryptionEnabled: true TransitEncryptionEnabled: false diff --git a/tests/translator/output/aws-cn/graphqlapi_api_cache.json b/tests/translator/output/aws-cn/graphqlapi_api_cache.json index cfdc2d5490..787e6935bb 100644 --- a/tests/translator/output/aws-cn/graphqlapi_api_cache.json +++ b/tests/translator/output/aws-cn/graphqlapi_api_cache.json @@ -33,7 +33,7 @@ }, "SuperCoolAPIApiCache": { "Properties": { - "ApiCachingBehavior": "somebehaviour", + "ApiCachingBehavior": "FULL_REQUEST_CACHING", "ApiId": { "Fn::GetAtt": [ "SuperCoolAPI", @@ -43,7 +43,7 @@ "AtRestEncryptionEnabled": true, "TransitEncryptionEnabled": false, "Ttl": 60, - "Type": "mytype" + "Type": "SMALL" }, "Type": "AWS::AppSync::ApiCache" }, diff --git a/tests/translator/output/aws-us-gov/graphqlapi_api_cache.json b/tests/translator/output/aws-us-gov/graphqlapi_api_cache.json index cfdc2d5490..787e6935bb 100644 --- a/tests/translator/output/aws-us-gov/graphqlapi_api_cache.json +++ b/tests/translator/output/aws-us-gov/graphqlapi_api_cache.json @@ -33,7 +33,7 @@ }, "SuperCoolAPIApiCache": { "Properties": { - "ApiCachingBehavior": "somebehaviour", + "ApiCachingBehavior": "FULL_REQUEST_CACHING", "ApiId": { "Fn::GetAtt": [ "SuperCoolAPI", @@ -43,7 +43,7 @@ "AtRestEncryptionEnabled": true, "TransitEncryptionEnabled": false, "Ttl": 60, - "Type": "mytype" + "Type": "SMALL" }, "Type": "AWS::AppSync::ApiCache" }, diff --git a/tests/translator/output/graphqlapi_api_cache.json b/tests/translator/output/graphqlapi_api_cache.json index cfdc2d5490..787e6935bb 100644 --- a/tests/translator/output/graphqlapi_api_cache.json +++ b/tests/translator/output/graphqlapi_api_cache.json @@ -33,7 +33,7 @@ }, "SuperCoolAPIApiCache": { "Properties": { - "ApiCachingBehavior": "somebehaviour", + "ApiCachingBehavior": "FULL_REQUEST_CACHING", "ApiId": { "Fn::GetAtt": [ "SuperCoolAPI", @@ -43,7 +43,7 @@ "AtRestEncryptionEnabled": true, "TransitEncryptionEnabled": false, "Ttl": 60, - "Type": "mytype" + "Type": "SMALL" }, "Type": "AWS::AppSync::ApiCache" },