-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
t-fix: fixed tests for policy ecc-aws-111-alb_is_protected_by_waf_reg…
…ional
- Loading branch information
Vladyslav Yevsiukov
authored and
Vladyslav Yevsiukov
committed
Aug 9, 2023
1 parent
05cdc84
commit 240fa76
Showing
8 changed files
with
150 additions
and
132 deletions.
There are no files selected for viewing
90 changes: 45 additions & 45 deletions
90
...protected_by_waf_regional/placebo-green/elasticloadbalancing.DescribeLoadBalancers_1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,46 @@ | ||
{ | ||
"status_code": 200, | ||
"data": { | ||
"LoadBalancers": [ | ||
{ | ||
"LoadBalancerArn": "arn:aws:elasticloadbalancing:us-east-1:12121212121121212121212121212121212:loadbalancer/app/green-alb-111/12121212121121212121212121212121212", | ||
"DNSName": "green-alb-111-121212121.us-east-1.elb.amazonaws.com", | ||
"CanonicalHostedZoneId": "1212121211211212", | ||
"CreatedTime": { | ||
"__class__": "datetime", | ||
"year": 2021, | ||
"month": 6, | ||
"day": 14, | ||
"hour": 6, | ||
"minute": 21, | ||
"second": 32, | ||
"microsecond": 140000 | ||
}, | ||
"LoadBalancerName": "green-alb-111", | ||
"Scheme": "internet-facing", | ||
"VpcId": "vpc-12345asdfg", | ||
"State": { | ||
"Code": "active" | ||
}, | ||
"Type": "application", | ||
"AvailabilityZones": [ | ||
{ | ||
"ZoneName": "us-east-1b", | ||
"SubnetId": "subnet-01212121211211212", | ||
"LoadBalancerAddresses": [] | ||
}, | ||
{ | ||
"ZoneName": "us-east-1a", | ||
"SubnetId": "subnet-01212121211211212", | ||
"LoadBalancerAddresses": [] | ||
} | ||
], | ||
"SecurityGroups": [ | ||
"sg-1212121211211212" | ||
], | ||
"IpAddressType": "ipv4" | ||
} | ||
], | ||
"ResponseMetadata": {} | ||
} | ||
{ | ||
"status_code": 200, | ||
"data": { | ||
"LoadBalancers": [ | ||
{ | ||
"LoadBalancerArn": "arn:aws:elasticloadbalancing:us-east-1:111111111111:loadbalancer/app/alb-111-green/73e7f4b463e24408", | ||
"DNSName": "alb-111-green-333090966.us-east-1.elb.amazonaws.com", | ||
"CanonicalHostedZoneId": "Z35SXDOTRQ7X7K", | ||
"CreatedTime": { | ||
"__class__": "datetime", | ||
"year": 2023, | ||
"month": 8, | ||
"day": 9, | ||
"hour": 9, | ||
"minute": 29, | ||
"second": 5, | ||
"microsecond": 350000 | ||
}, | ||
"LoadBalancerName": "alb-111-green", | ||
"Scheme": "internet-facing", | ||
"VpcId": "vpc-0f09f57116d93a94d", | ||
"State": { | ||
"Code": "active" | ||
}, | ||
"Type": "application", | ||
"AvailabilityZones": [ | ||
{ | ||
"ZoneName": "us-east-1a", | ||
"SubnetId": "subnet-061b54f08ad623e84", | ||
"LoadBalancerAddresses": [] | ||
}, | ||
{ | ||
"ZoneName": "us-east-1b", | ||
"SubnetId": "subnet-063a2993e7ca9f8d2", | ||
"LoadBalancerAddresses": [] | ||
} | ||
], | ||
"SecurityGroups": [ | ||
"sg-0cd0402ef50a21999" | ||
], | ||
"IpAddressType": "ipv4" | ||
} | ||
], | ||
"ResponseMetadata": {} | ||
} | ||
} |
36 changes: 20 additions & 16 deletions
36
...1-alb_is_protected_by_waf_regional/placebo-green/elasticloadbalancing.DescribeTags_1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,21 @@ | ||
{ | ||
"status_code": 200, | ||
"data": { | ||
"TagDescriptions": [ | ||
{ | ||
"ResourceArn": "arn:aws:elasticloadbalancing:us-east-1:12121212121121212121212121212121212:loadbalancer/app/green-alb-111/12121212121121212121212121212121212", | ||
"Tags": [ | ||
{ | ||
"Key": "Environment", | ||
"Value": "production" | ||
} | ||
] | ||
} | ||
], | ||
"ResponseMetadata": {} | ||
} | ||
{ | ||
"status_code": 200, | ||
"data": { | ||
"TagDescriptions": [ | ||
{ | ||
"ResourceArn": "arn:aws:elasticloadbalancing:us-east-1:111111111111:loadbalancer/app/alb-111-green/73e7f4b463e24408", | ||
"Tags": [ | ||
{ | ||
"Key": "CustodianRule", | ||
"Value": "ecc-aws-111-alb_is_protected_by_waf_regional" | ||
}, | ||
{ | ||
"Key": "ComplianceStatus", | ||
"Value": "Green" | ||
} | ||
] | ||
} | ||
], | ||
"ResponseMetadata": {} | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
.../ecc-aws-111-alb_is_protected_by_waf_regional/placebo-green/waf-regional.GetWebACL_1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"status_code": 200, | ||
"data": { | ||
"WebACL": {}, | ||
"ResponseMetadata": {} | ||
} | ||
} |
16 changes: 8 additions & 8 deletions
16
...alb_is_protected_by_waf_regional/placebo-green/waf-regional.ListResourcesForWebACL_1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{ | ||
"status_code": 200, | ||
"data": { | ||
"ResourceArns": [ | ||
"arn:aws:elasticloadbalancing:us-east-1:12121212121121212121212121212121212:loadbalancer/app/green-alb-111/12121212121121212121212121212121212" | ||
], | ||
"ResponseMetadata": {} | ||
} | ||
{ | ||
"status_code": 200, | ||
"data": { | ||
"ResourceArns": [ | ||
"arn:aws:elasticloadbalancing:us-east-1:111111111111:loadbalancer/app/alb-111-green/73e7f4b463e24408" | ||
], | ||
"ResponseMetadata": {} | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
...cc-aws-111-alb_is_protected_by_waf_regional/placebo-green/waf-regional.ListWebACLs_1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
90 changes: 45 additions & 45 deletions
90
...s_protected_by_waf_regional/placebo-red/elasticloadbalancing.DescribeLoadBalancers_1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,46 @@ | ||
{ | ||
"status_code": 200, | ||
"data": { | ||
"LoadBalancers": [ | ||
{ | ||
"LoadBalancerArn": "arn:aws:elasticloadbalancing:us-east-1:1212121211211212:loadbalancer/app/red-alb-111/1212121211211212", | ||
"DNSName": "red-alb-111-1212121211211212.us-east-1.elb.amazonaws.com", | ||
"CanonicalHostedZoneId": "1212121211211212", | ||
"CreatedTime": { | ||
"__class__": "datetime", | ||
"year": 2021, | ||
"month": 6, | ||
"day": 14, | ||
"hour": 6, | ||
"minute": 25, | ||
"second": 41, | ||
"microsecond": 640000 | ||
}, | ||
"LoadBalancerName": "red-alb-111", | ||
"Scheme": "internet-facing", | ||
"VpcId": "vpc-12345asdfg", | ||
"State": { | ||
"Code": "active" | ||
}, | ||
"Type": "application", | ||
"AvailabilityZones": [ | ||
{ | ||
"ZoneName": "us-east-1b", | ||
"SubnetId": "subnet-01212121211211212", | ||
"LoadBalancerAddresses": [] | ||
}, | ||
{ | ||
"ZoneName": "us-east-1a", | ||
"SubnetId": "subnet-01212121211211212", | ||
"LoadBalancerAddresses": [] | ||
} | ||
], | ||
"SecurityGroups": [ | ||
"sg-01212121211211212" | ||
], | ||
"IpAddressType": "ipv4" | ||
} | ||
], | ||
"ResponseMetadata": {} | ||
} | ||
{ | ||
"status_code": 200, | ||
"data": { | ||
"LoadBalancers": [ | ||
{ | ||
"LoadBalancerArn": "arn:aws:elasticloadbalancing:us-east-1:1212121211211212:loadbalancer/app/red-alb-111/1212121211211212", | ||
"DNSName": "red-alb-111-1212121211211212.us-east-1.elb.amazonaws.com", | ||
"CanonicalHostedZoneId": "1212121211211212", | ||
"CreatedTime": { | ||
"__class__": "datetime", | ||
"year": 2021, | ||
"month": 6, | ||
"day": 14, | ||
"hour": 6, | ||
"minute": 25, | ||
"second": 41, | ||
"microsecond": 640000 | ||
}, | ||
"LoadBalancerName": "red-alb-111", | ||
"Scheme": "internet-facing", | ||
"VpcId": "vpc-12345asdfg", | ||
"State": { | ||
"Code": "active" | ||
}, | ||
"Type": "application", | ||
"AvailabilityZones": [ | ||
{ | ||
"ZoneName": "us-east-1b", | ||
"SubnetId": "subnet-01212121211211212", | ||
"LoadBalancerAddresses": [] | ||
}, | ||
{ | ||
"ZoneName": "us-east-1a", | ||
"SubnetId": "subnet-01212121211211212", | ||
"LoadBalancerAddresses": [] | ||
} | ||
], | ||
"SecurityGroups": [ | ||
"sg-01212121211211212" | ||
], | ||
"IpAddressType": "ipv4" | ||
} | ||
], | ||
"ResponseMetadata": {} | ||
} | ||
} |
32 changes: 16 additions & 16 deletions
32
...111-alb_is_protected_by_waf_regional/placebo-red/elasticloadbalancing.DescribeTags_1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
{ | ||
"status_code": 200, | ||
"data": { | ||
"TagDescriptions": [ | ||
{ | ||
"ResourceArn": "arn:aws:elasticloadbalancing:us-east-1:1212121211211212:loadbalancer/app/red-alb-111/1212121211211212", | ||
"Tags": [ | ||
{ | ||
"Key": "Environment", | ||
"Value": "production" | ||
} | ||
] | ||
} | ||
], | ||
"ResponseMetadata": {} | ||
} | ||
{ | ||
"status_code": 200, | ||
"data": { | ||
"TagDescriptions": [ | ||
{ | ||
"ResourceArn": "arn:aws:elasticloadbalancing:us-east-1:1212121211211212:loadbalancer/app/red-alb-111/1212121211211212", | ||
"Tags": [ | ||
{ | ||
"Key": "Environment", | ||
"Value": "production" | ||
} | ||
] | ||
} | ||
], | ||
"ResponseMetadata": {} | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
...1-alb_is_protected_by_waf_regional/placebo-red/waf-regional.ListResourcesForWebACL_1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"status_code": 200, | ||
"data": { | ||
"ResourceArns": [], | ||
"ResponseMetadata": {} | ||
} | ||
} |