Skip to main content

πŸ§ͺ test-data.json

  • Contextual name: πŸ§ͺ test-data.json
  • ID: /ce/ca/aws/apigateway/rest-api-stage-waf-web-acl/test-data.json

Used In​

LogicPolicyFlags
🧠 prod.logic.yaml πŸŸ’πŸ“ AWS API Gateway REST API Stage is not associated with a WAF Web ACL 🟒🟒 x3

Content​

Open File

[
{
"expectedResult": {
"status": "DISAPPEARED",
"conditionIndex": "99",
"conditionText": "isDisappeared(CA10__disappearanceTime__c)",
"runtimeError": null
},
"context": {
"snapshotTime": "2024-12-12T17:27:38Z"
},
"Id": "test1",
"RecordTypeId": "RecordTypeId",
"CA10__disappearanceTime__c": "2024-12-12T17:27:38Z",
"CA10__webAclArn__c": "",
"RecordType": {
"DeveloperName": "restApiStage",
"Id": "RecordTypeId"
}
},
{
"expectedResult": {
"status": "INAPPLICABLE",
"conditionIndex": "199",
"conditionText": "not(['restApiStage'].contains(RecordType.DeveloperName))",
"runtimeError": null
},
"context": {
"snapshotTime": "2024-12-12T17:27:38Z"
},
"Id": "test2",
"RecordTypeId": "RecordTypeId2",
"CA10__disappearanceTime__c": null,
"CA10__webAclArn__c": "",
"RecordType": {
"DeveloperName": "httpApiStage",
"Id": "RecordTypeId2"
}
},
{
"expectedResult": {
"status": "INCOMPLIANT",
"conditionIndex": "299",
"conditionText": "extract('CA10__webAclArn__c').isEmpty()",
"runtimeError": null
},
"context": {
"snapshotTime": "2024-12-12T17:27:38Z"
},
"Id": "test3",
"RecordTypeId": "RecordTypeId",
"CA10__disappearanceTime__c": null,
"CA10__webAclArn__c": "",
"RecordType": {
"DeveloperName": "restApiStage",
"Id": "RecordTypeId"
}
},
{
"expectedResult": {
"status": "COMPLIANT",
"conditionIndex": "300",
"conditionText": "otherwise",
"runtimeError": null
},
"context": {
"snapshotTime": "2024-12-12T17:27:38Z"
},
"Id": "test4",
"RecordTypeId": "RecordTypeId",
"CA10__disappearanceTime__c": null,
"CA10__webAclArn__c": "WebAclArn",
"RecordType": {
"DeveloperName": "restApiStage",
"Id": "RecordTypeId"
}
}
]