Skip to content

Merge branch 'master' into MEP-CFN-fn_fixes

Sign in for the full log view
GitHub Actions / Test Results (amd64) - Integration, Bootstrap failed Jun 5, 2025 in 0s

1 fail, 929 skipped, 4 297 pass in 2h 54m 35s

    5 files  ±0      5 suites  ±0   2h 54m 35s ⏱️ + 34m 11s
5 227 tests ±0  4 297 ✅  - 1  929 💤 ±0  1 ❌ +1 
5 233 runs  ±0  4 297 ✅  - 1  935 💤 ±0  1 ❌ +1 

Results for commit 656cf68. ± Comparison against earlier commit d7163d1.

Annotations

Check warning on line 0 in tests.aws.services.opensearch.test_opensearch.TestOpensearchProvider

See this annotation in the file changed.

@github-actions github-actions / Test Results (amd64) - Integration, Bootstrap

test_sql_plugin (tests.aws.services.opensearch.test_opensearch.TestOpensearchProvider) failed

test-results-integration-amd64-3/pytest-junit-integration-amd64-3.xml [took 25m 31s]
Raw output
AssertionError: could not start domain: sql-test-domain-82bdb8ad
assert False
 +  where False = poll_condition(<function opensearch_wait_for_cluster.<locals>._wait_for_cluster.<locals>.finished_processing at 0x7fb76b489940>, timeout=(25 * 60), **{})
self = <tests.aws.services.opensearch.test_opensearch.TestOpensearchProvider object at 0x7fb78368d190>
opensearch_create_domain = <function opensearch_create_domain.<locals>.factory at 0x7fb76b48ab60>
aws_client = <localstack.aws.connect.ServiceLevelClientFactory object at 0x7fb7825fa750>
snapshot = <localstack_snapshot.snapshots.prototype.SnapshotSession object at 0x7fb6d0613990>
account_id = '000000000000'

    @markers.aws.validated
    def test_sql_plugin(self, opensearch_create_domain, aws_client, snapshot, account_id):
        master_user_auth = ("admin", "QWERTYuiop123!")
        domain_name = f"sql-test-domain-{short_uid()}"
        access_policy = {
            "Version": "2012-10-17",
            "Statement": [
                {
                    "Effect": "Allow",
                    "Principal": {"AWS": "*"},
                    "Action": "es:*",
                    "Resource": f"arn:aws:es:*:{account_id}:domain/{domain_name}/*",
                }
            ],
        }
    
        # create a domain that works on aws
>       opensearch_create_domain(
            DomainName=domain_name,
            EngineVersion=OPENSEARCH_DEFAULT_VERSION,
            ClusterConfig=ClusterConfig(
                InstanceType=OpenSearchPartitionInstanceType("t3.small.search"), InstanceCount=1
            ),
            EBSOptions=EBSOptions(EBSEnabled=True, VolumeType=VolumeType("gp2"), VolumeSize=10),
            AdvancedSecurityOptions=AdvancedSecurityOptionsInput(
                Enabled=True,
                InternalUserDatabaseEnabled=True,
                MasterUserOptions=MasterUserOptions(
                    MasterUserName=master_user_auth[0],
                    MasterUserPassword=master_user_auth[1],
                ),
            ),
            NodeToNodeEncryptionOptions=NodeToNodeEncryptionOptions(Enabled=True),
            EncryptionAtRestOptions=EncryptionAtRestOptions(Enabled=True),
            DomainEndpointOptions=DomainEndpointOptions(EnforceHTTPS=True),
            AccessPolicies=json.dumps(access_policy),
        )

tests/aws/services/opensearch/test_opensearch.py:276: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
localstack-core/localstack/testing/pytest/fixtures.py:958: in factory
    opensearch_wait_for_cluster(domain_name=kwargs["DomainName"])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

domain_name = 'sql-test-domain-82bdb8ad'

    def _wait_for_cluster(domain_name: str):
        def finished_processing():
            status = aws_client.opensearch.describe_domain(DomainName=domain_name)["DomainStatus"]
            return status["Processing"] is False and "Endpoint" in status
    
>       assert poll_condition(
            finished_processing, timeout=25 * 60, **({"interval": 10} if is_aws_cloud() else {})
        ), f"could not start domain: {domain_name}"
E       AssertionError: could not start domain: sql-test-domain-82bdb8ad
E       assert False
E        +  where False = poll_condition(<function opensearch_wait_for_cluster.<locals>._wait_for_cluster.<locals>.finished_processing at 0x7fb76b489940>, timeout=(25 * 60), **{})

localstack-core/localstack/testing/pytest/fixtures.py:941: AssertionError