Ministack: Free, open-source local AWS emulator - 60+ services, Terraform compatible, real databases. Free forever. MIT licensed.
Python awsaws-emulatoraws-localaws-sdkdevtoolsdockerdynamodbec2emulatorlambdalocalstacklocalstack-alternativeministackmock-awsopen-sourcepythons3sqsterraform
fix: security group description parameter in EC2 service and update related test assertion (#396)
Johannes Grumböck436ab133f7e5
diff --git a/ministack/services/ec2.py b/ministack/services/ec2.pyindex 95c69c67..04c6b2ca 100644--- a/ministack/services/ec2.py+++ b/ministack/services/ec2.py@@ -541,7 +541,7 @@ def _describe_images(p):def _create_security_group(p):name = _p(p, "GroupName")- desc = _p(p, "Description") or name+ desc = _p(p, "GroupDescription") or namevpc_id = _p(p, "VpcId") or _DEFAULT_VPC_IDif not name:return _error("MissingParameter", "GroupName is required", 400)diff --git a/tests/test_ec2.py b/tests/test_ec2.pyindex ed56a632..84ecc475 100644--- a/tests/test_ec2.py+++ b/tests/test_ec2.py@@ -92,6 +92,7 @@ def test_ec2_security_group_crud(ec2):desc = ec2.describe_security_groups(GroupIds=[sg_id])assert desc["SecurityGroups"][0]["GroupName"] == "qa-ec2-sg"+ assert desc["SecurityGroups"][0]["Description"] == "test sg"ec2.delete_security_group(GroupId=sg_id)desc2 = ec2.describe_security_groups()