python-terrascript/tests/test_provider_phillbaker_el...

113 lines
3.3 KiB
Python

# tests/test_provider_phillbaker_elasticsearch.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:15:48 UTC)
def test_provider_import():
import terrascript.provider.phillbaker.elasticsearch
def test_resource_import():
from terrascript.resource.phillbaker.elasticsearch import (
elasticsearch_component_template,
)
from terrascript.resource.phillbaker.elasticsearch import (
elasticsearch_composable_index_template,
)
from terrascript.resource.phillbaker.elasticsearch import elasticsearch_index
from terrascript.resource.phillbaker.elasticsearch import (
elasticsearch_index_template,
)
from terrascript.resource.phillbaker.elasticsearch import (
elasticsearch_ingest_pipeline,
)
from terrascript.resource.phillbaker.elasticsearch import elasticsearch_kibana_alert
from terrascript.resource.phillbaker.elasticsearch import (
elasticsearch_kibana_object,
)
from terrascript.resource.phillbaker.elasticsearch import (
elasticsearch_opendistro_destination,
)
from terrascript.resource.phillbaker.elasticsearch import (
elasticsearch_opendistro_ism_policy,
)
from terrascript.resource.phillbaker.elasticsearch import (
elasticsearch_opendistro_ism_policy_mapping,
)
from terrascript.resource.phillbaker.elasticsearch import (
elasticsearch_opendistro_kibana_tenant,
)
from terrascript.resource.phillbaker.elasticsearch import (
elasticsearch_opendistro_monitor,
)
from terrascript.resource.phillbaker.elasticsearch import (
elasticsearch_opendistro_role,
)
from terrascript.resource.phillbaker.elasticsearch import (
elasticsearch_opendistro_roles_mapping,
)
from terrascript.resource.phillbaker.elasticsearch import (
elasticsearch_opendistro_user,
)
from terrascript.resource.phillbaker.elasticsearch import (
elasticsearch_snapshot_repository,
)
from terrascript.resource.phillbaker.elasticsearch import (
elasticsearch_xpack_index_lifecycle_policy,
)
from terrascript.resource.phillbaker.elasticsearch import (
elasticsearch_xpack_license,
)
from terrascript.resource.phillbaker.elasticsearch import elasticsearch_xpack_role
from terrascript.resource.phillbaker.elasticsearch import (
elasticsearch_xpack_role_mapping,
)
from terrascript.resource.phillbaker.elasticsearch import (
elasticsearch_xpack_snapshot_lifecycle_policy,
)
from terrascript.resource.phillbaker.elasticsearch import elasticsearch_xpack_user
from terrascript.resource.phillbaker.elasticsearch import elasticsearch_xpack_watch
def test_datasource_import():
from terrascript.data.phillbaker.elasticsearch import elasticsearch_host
from terrascript.data.phillbaker.elasticsearch import (
elasticsearch_opendistro_destination,
)
# TODO: Shortcut imports without namespace for official and supported providers.
# TODO: This has to be moved into a required_providers block.
# def test_version_source():
#
# import terrascript.provider.phillbaker.elasticsearch
#
# t = terrascript.provider.phillbaker.elasticsearch.elasticsearch()
# s = str(t)
#
# assert 'https://github.com/phillbaker/terraform-provider-elasticsearch' in s
# assert '2.0.0-beta.1' in s