Skip to content

Commit bbfa71a

Browse files
committed
fixed test
1 parent 15ebdf9 commit bbfa71a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/aws-library/tests/test_ec2_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ async def mock_run_instances(*args, **kwargs) -> Any:
623623
# First call (first subnet) - simulate insufficient capacity
624624
error_response: dict[str, Any] = {
625625
"Error": {
626-
"Code": "500",
626+
"Code": "InsufficientInstanceCapacity",
627627
"Message": "An error occurred (InsufficientInstanceCapacity) when calling the RunInstances operation (reached max retries: 4): We currently do not have sufficient g4dn.4xlarge capacity in the Availability Zone you requested (us-east-1a). Our system will be working on provisioning additional capacity. You can currently get g4dn.4xlarge capacity by not specifying an Availability Zone in your request or choosing us-east-1b, us-east-1c, us-east-1d, us-east-1f",
628628
},
629629
}
@@ -707,7 +707,7 @@ async def mock_run_instances(*args, **kwargs) -> Any:
707707
# Always simulate insufficient capacity
708708
error_response = {
709709
"Error": {
710-
"Code": "500",
710+
"Code": "InsufficientInstanceCapacity",
711711
"Message": "An error occurred (InsufficientInstanceCapacity) when calling the RunInstances operation (reached max retries: 4): We currently do not have sufficient g4dn.4xlarge capacity in the Availability Zone you requested (us-east-1a). Our system will be working on provisioning additional capacity. You can currently get g4dn.4xlarge capacity by not specifying an Availability Zone in your request or choosing us-east-1b, us-east-1c, us-east-1d, us-east-1f",
712712
},
713713
}
@@ -784,7 +784,7 @@ async def mock_run_instances(*args, **kwargs):
784784
# Second call: simulate insufficient capacity (subnet is full)
785785
error_response = {
786786
"Error": {
787-
"Code": "500",
787+
"Code": "InsufficientInstanceCapacity",
788788
"Message": "An error occurred (InsufficientInstanceCapacity) when calling the RunInstances operation (reached max retries: 4): We currently do not have sufficient g4dn.4xlarge capacity in the Availability Zone you requested (us-east-1a). Our system will be working on provisioning additional capacity. You can currently get g4dn.4xlarge capacity by not specifying an Availability Zone in your request or choosing us-east-1b, us-east-1c, us-east-1d, us-east-1f",
789789
},
790790
}

0 commit comments

Comments
 (0)