You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling list_domains with boto3: ElasticsearchService client, boto3 documentation mentions that the response includes domains of both Elasticsearch or Opensearch.
In my testing, I was able to use the boto3 elasticsearch client to see any OpenSearch domains that were created. But the moto elasticsearch client seems to only track elasticsearch domains.
Here's a test that shows the current results.
@mock_aws
def test_describe_opensearch_domain():
opensearch_client = boto3.client("opensearch", region_name="us-east-2")
status = opensearch_client.create_domain(DomainName="moto-opensearch")["DomainStatus"]
assert status["Created"]
assert "DomainId" in status
assert "DomainName" in status
assert status["DomainName"] == "moto-opensearch"
# ensure that elasticsearch client can describe opensearch domains as well
es_client = boto3.client("es", region_name="us-east-2")
assert es_client.list_domain_names()["DomainNames"] != []
When calling
list_domains
with boto3: ElasticsearchService client, boto3 documentation mentions that the response includes domains of both Elasticsearch or Opensearch.In my testing, I was able to use the boto3 elasticsearch client to see any OpenSearch domains that were created. But the moto elasticsearch client seems to only track elasticsearch domains.
Here's a test that shows the current results.
Expected Results
Test passes.
Actual Results
The text was updated successfully, but these errors were encountered: