8000 Add AWS validation information for es service by silv-io · Pull Request #11206 · localstack/localstack · GitHub
[go: up one dir, main page]

Skip to content
8000

Add AWS validation information for es service #11206

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions tests/aws/services/es/test_es.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def try_cluster_health(cluster_url: str):

@pytest.mark.skip(reason="flaky")
class TestElasticsearchProvider:
@markers.aws.unknown
@markers.aws.validated
def test_list_versions(self, aws_client):
response = aws_client.es.list_elasticsearch_versions()

Expand All @@ -79,7 +79,7 @@ def test_list_versions(self, aws_client):
assert "OpenSearch_1.1" in versions
assert "7.10" in versions

@markers.aws.unknown
@markers.aws.needs_fixing
def test_get_compatible_versions(self, aws_client):
response = aws_client.es.get_compatible_elasticsearch_versions()

Expand Down Expand Up @@ -116,7 +116,7 @@ def test_get_compatible_versions(self, aws_client):
} in versions

@markers.skip_offline
@markers.aws.unknown
@markers.aws.needs_fixing
def test_get_compatible_version_for_domain(self, opensearch_domain, aws_client):
response = aws_client.es.get_compatible_elasticsearch_versions(DomainName=opensearch_domain)
assert "CompatibleElasticsearchVersions" in response
Expand All @@ -126,15 +126,15 @@ def test_get_compatible_version_for_domain(self, opensearch_domain, aws_client):
assert len(versions) == 0

@markers.skip_offline
@markers.aws.unknown
@markers.aws.needs_fixing
def test_create_domain(self, opensearch_create_domain, aws_client):
es_domain = opensearch_create_domain(EngineVersion=ELASTICSEARCH_DEFAULT_VERSION)
response = aws_client.es.list_domain_names(EngineType="Elasticsearch")
domain_names = [domain["DomainName"] for domain in response["DomainNames"]]
assert es_domain in domain_names

@markers.skip_offline
@markers.aws.unknown
@markers.aws.needs_fixing
def test_create_existing_domain_causes_exception(self, opensearch_create_domain, aws_client):
domain_name = opensearch_create_domain(EngineVersion=ELASTICSEARCH_DEFAULT_VERSION)

Expand All @@ -143,15 +143,15 @@ def test_create_existing_domain_causes_exception(self, opensearch_create_domain,
assert exc_info.type.__name__ == "ResourceAlreadyExistsException"

@markers.skip_offline
@markers.aws.unknown
@markers.aws.needs_fixing
def test_describe_domains(self, opensearch_create_domain, aws_client):
opensearch_domain = opensearch_create_domain(EngineVersion=ELASTICSEARCH_DEFAULT_VERSION)
response = aws_client.es.describe_elasticsearch_domains(DomainNames=[opensearch_domain])
assert len(response["DomainStatusList"]) == 1
assert response["DomainStatusList"][0]["DomainName"] == opensearch_domain

@markers.skip_offline
@markers.aws.unknown
@markers.aws.needs_fixing
def test_domain_version(self, opensearch_domain, opensearch_create_domain, aws_client):
response = aws_client.es.describe_elasticsearch_domain(DomainName=opensearch_domain)
assert "DomainStatus" in response
Expand All @@ -166,7 +166,7 @@ def test_domain_version(self, opensearch_domain, opensearch_create_domain, aws_c
assert status["ElasticsearchVersion"] == "7.10"

@markers.skip_offline
@markers.aws.unknown
@markers.aws.only_localstack
def test_path_endpoint_strategy(self, monkeypatch, opensearch_create_domain, aws_client):
monkeypatch.setattr(config, "OPENSEARCH_ENDPOINT_STRATEGY", "path")
monkeypatch.setattr(config, "OPENSEARCH_MULTI_CLUSTER", True)
Expand All @@ -180,7 +180,7 @@ def test_path_endpoint_strategy(self, monkeypatch, opensearch_create_domain, aws
endpoint = status["Endpoint"]
assert endpoint.endswith(f"/{domain_name}")

@markers.aws.unknown
@markers.aws.needs_fixing
def test_update_domain_config(self, opensearch_domain, aws_client):
initial_response = aws_client.es.describe_elasticsearch_domain_config(
DomainName=opensearch_domain
Expand Down
5 changes: 5 additions & 0 deletions tests/aws/services/es/test_es.validation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"tests/aws/services/es/test_es.py::TestElasticsearchProvider::test_list_versions": {
"last_validated_date": "2024-07-15T10:16:46+00:00"
}
}
Loading
0