Skip to content
This repository was archived by the owner on Mar 23, 2026. It is now read-only.
GitHub Actions / LocalStack Community integration with Pro failed Feb 4, 2026 in 0s

2 fail, 351 skipped, 4 836 pass in 1h 59m 19s

    2 files      2 suites   1h 59m 19s ⏱️
5 189 tests 4 836 ✅ 351 💤 2 ❌
5 191 runs  4 836 ✅ 353 💤 2 ❌

Results for commit 7679391.

Annotations

Check warning on line 0 in tests.aws.services.cloudformation.resources.test_integration

See this annotation in the file changed.

@github-actions github-actions / LocalStack Community integration with Pro

test_events_sqs_sns_lambda (tests.aws.services.cloudformation.resources.test_integration) failed

pytest-junit-community-1.xml [took 14s]
Raw output
AssertionError: assert {'Id': '__def... '2008-10-17'} == {'Statement':... '2012-10-17'}
  
  Differing items:
  {'Version': '2008-10-17'} != {'Version': '2012-10-17'}
  {'Statement': [{'Action': ['SNS:GetTopicAttributes', 'SNS:SetTopicAttributes', 'SNS:AddPermission', 'SNS:RemovePermiss...Condition': {'StringEquals': {'AWS:SourceOwner': '000000000000'}}, 'Effect': 'Allow', 'Principal': {'AWS': '*'}, ...}]} != {'Statement': [{'Action': 'sns:Publish', 'Effect': 'Allow', 'Principal': {'Service': 'events.amazonaws.com'}, 'Resource': 'arn:aws:sns:us-east-1:000000000000:topic-b57344f2', ...}]}
  Left contains 1 more item:
  {'Id': '__default_policy_ID'}
  
  Full diff:
    {
  +     'Id': '__default_policy_ID',
        'Statement': [
            {
  -             'Action': 'sns:Publish',
  +             'Action': [
  +                 'SNS:GetTopicAttributes',
  +                 'SNS:SetTopicAttributes',
  +                 'SNS:AddPermission',
  +                 'SNS:RemovePermission',
  +                 'SNS:DeleteTopic',
  +                 'SNS:Subscribe',
  +                 'SNS:ListSubscriptionsByTopic',
  +                 'SNS:Publish',
  +             ],
  +             'Condition': {
  +                 'StringEquals': {
  +                     'AWS:SourceOwner': '000000000000',
  +                 },
  +             },
                'Effect': 'Allow',
                'Principal': {
  -                 'Service': 'events.amazonaws.com',
  +                 'AWS': '*',
                },
                'Resource': 'arn:aws:sns:us-east-1:000000000000:topic-b57344f2',
  -             'Sid': '0',
  +             'Sid': '__default_statement_ID',
            },
        ],
  -     'Version': '2012-10-17',
  ?                   ^^
  +     'Version': '2008-10-17',
  ?                   ^^
    }
deploy_cfn_template = <function deploy_cfn_template.<locals>._deploy at 0x7f72d7aaaac0>
aws_client = <localstack.aws.connect.ServiceLevelClientFactory object at 0x7f74c3d456a0>

    @markers.aws.validated
    def test_events_sqs_sns_lambda(deploy_cfn_template, aws_client):
        function_name = f"function-{short_uid()}"
        queue_name = f"queue-{short_uid()}"
        topic_name = f"topic-{short_uid()}"
        bus_name = f"bus-{short_uid()}"
        rule_name = f"function-{short_uid()}"
    
        stack = deploy_cfn_template(
            template_path=os.path.join(
                os.path.dirname(__file__), "../../../templates/integration_events_sns_sqs_lambda.yaml"
            ),
            parameters={
                "FunctionName": function_name,
                "QueueName": queue_name,
                "TopicName": topic_name,
                "BusName": bus_name,
                "RuleName": rule_name,
            },
        )
    
        assert len(stack.outputs) == 7
        lambda_name = stack.outputs["FnName"]
        bus_name = stack.outputs["EventBusName"]
    
        topic_arn = stack.outputs["TopicArn"]
        result = aws_client.sns.get_topic_attributes(TopicArn=topic_arn)["Attributes"]
>       assert json.loads(result.get("Policy")) == {
            "Statement": [
                {
                    "Action": "sns:Publish",
                    "Effect": "Allow",
                    "Principal": {"Service": "events.amazonaws.com"},
                    "Resource": topic_arn,
                    "Sid": "0",
                }
            ],
            "Version": "2012-10-17",
        }
E       AssertionError: assert {'Id': '__def... '2008-10-17'} == {'Statement':... '2012-10-17'}
E         
E         Differing items:
E         {'Version': '2008-10-17'} != {'Version': '2012-10-17'}
E         {'Statement': [{'Action': ['SNS:GetTopicAttributes', 'SNS:SetTopicAttributes', 'SNS:AddPermission', 'SNS:RemovePermiss...Condition': {'StringEquals': {'AWS:SourceOwner': '000000000000'}}, 'Effect': 'Allow', 'Principal': {'AWS': '*'}, ...}]} != {'Statement': [{'Action': 'sns:Publish', 'Effect': 'Allow', 'Principal': {'Service': 'events.amazonaws.com'}, 'Resource': 'arn:aws:sns:us-east-1:000000000000:topic-b57344f2', ...}]}
E         Left contains 1 more item:
E         {'Id': '__default_policy_ID'}
E         
E         Full diff:
E           {
E         +     'Id': '__default_policy_ID',
E               'Statement': [
E                   {
E         -             'Action': 'sns:Publish',
E         +             'Action': [
E         +                 'SNS:GetTopicAttributes',
E         +                 'SNS:SetTopicAttributes',
E         +                 'SNS:AddPermission',
E         +                 'SNS:RemovePermission',
E         +                 'SNS:DeleteTopic',
E         +                 'SNS:Subscribe',
E         +                 'SNS:ListSubscriptionsByTopic',
E         +                 'SNS:Publish',
E         +             ],
E         +             'Condition': {
E         +                 'StringEquals': {
E         +                     'AWS:SourceOwner': '000000000000',
E         +                 },
E         +             },
E                       'Effect': 'Allow',
E                       'Principal': {
E         -                 'Service': 'events.amazonaws.com',
E         +                 'AWS': '*',
E                       },
E                       'Resource': 'arn:aws:sns:us-east-1:000000000000:topic-b57344f2',
E         -             'Sid': '0',
E         +             'Sid': '__default_statement_ID',
E                   },
E               ],
E         -     'Version': '2012-10-17',
E         ?                   ^^
E         +     'Version': '2008-10-17',
E         ?                   ^^
E           }

../../localstack/tests/aws/services/cloudformation/resources/test_integration.py:36: AssertionError

Check warning on line 0 in tests.aws.services.cloudformation.resources.test_sns

See this annotation in the file changed.

@github-actions github-actions / LocalStack Community integration with Pro

test_sns_topic_policy_resets_to_default (tests.aws.services.cloudformation.resources.test_sns) failed

pytest-junit-community-1.xml [took 0s]
Raw output
>> match key: modified-topic-attributes
	#x1B[32m(+)#x1B[0m /Id ( '__default_policy_ID' )
	#x1B[33m(~)#x1B[0m /Statement/[0]/Condition/StringEquals {'aws:SourceAccount': '111111111111'} → {'AWS:SourceOwner': '111111111111'} ... (expected → actual)
	#x1B[33m(~)#x1B[0m /Statement/[0]/Sid '0' → '__default_statement_ID' ... (expected → actual)
	#x1B[33m(~)#x1B[0m /Version '2012-10-17' → '2008-10-17' ... (expected → actual)

	Ignore list (please keep in mind list indices might not work and should be replaced):
	["$..Id", "$..Statement..Condition.StringEquals", "$..Statement..Sid", "$..Version"]