Skip to content

Commit

Permalink
t-fix: fixed tests for policy ecc-aws-111-alb_is_protected_by_waf_reg…
Browse files Browse the repository at this point in the history
…ional
  • Loading branch information
Vladyslav Yevsiukov authored and Vladyslav Yevsiukov committed Aug 9, 2023
1 parent 05cdc84 commit f3806d4
Show file tree
Hide file tree
Showing 7 changed files with 143 additions and 132 deletions.
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": {}
}
}
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": {}
}
}
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": {}
}
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"status_code": 200,
"data": {
"NextMarker": "12121212121121212121212121212121212",
"NextMarker": "1111111-1111-1111-1111-1111111111",
"WebACLs": [
{
"WebACLId": "12121212121121212121212121212121212",
"WebACLId": "1111111-1111-1111-1111-1111111111",
"Name": "GreenWAFRegionalACL"
}
],
Expand Down
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": {}
}
}
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": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"status_code": 200,
"data": {
"ResourceArns": [],
"ResponseMetadata": {}
}
}

0 comments on commit f3806d4

Please sign in to comment.