python-terrascript/tests/test_provider_databrickslab...

171 lines
5.7 KiB
Python

# tests/test_provider_databrickslabs_databricks.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:14:57 UTC)
def test_provider_import():
import terrascript.provider.databrickslabs.databricks
def test_resource_import():
from terrascript.resource.databrickslabs.databricks import databricks_aws_s3_mount
from terrascript.resource.databrickslabs.databricks import (
databricks_azure_adls_gen1_mount,
)
from terrascript.resource.databrickslabs.databricks import (
databricks_azure_adls_gen2_mount,
)
from terrascript.resource.databrickslabs.databricks import (
databricks_azure_blob_mount,
)
from terrascript.resource.databrickslabs.databricks import databricks_cluster
from terrascript.resource.databrickslabs.databricks import databricks_cluster_policy
from terrascript.resource.databrickslabs.databricks import databricks_dbfs_file
from terrascript.resource.databrickslabs.databricks import databricks_directory
from terrascript.resource.databrickslabs.databricks import (
databricks_global_init_script,
)
from terrascript.resource.databrickslabs.databricks import databricks_group
from terrascript.resource.databrickslabs.databricks import (
databricks_group_instance_profile,
)
from terrascript.resource.databrickslabs.databricks import databricks_group_member
from terrascript.resource.databrickslabs.databricks import databricks_instance_pool
from terrascript.resource.databrickslabs.databricks import (
databricks_instance_profile,
)
from terrascript.resource.databrickslabs.databricks import databricks_ip_access_list
from terrascript.resource.databrickslabs.databricks import databricks_job
from terrascript.resource.databrickslabs.databricks import (
databricks_mws_credentials,
)
from terrascript.resource.databrickslabs.databricks import (
databricks_mws_customer_managed_keys,
)
from terrascript.resource.databrickslabs.databricks import (
databricks_mws_log_delivery,
)
from terrascript.resource.databrickslabs.databricks import databricks_mws_networks
from terrascript.resource.databrickslabs.databricks import (
databricks_mws_private_access_settings,
)
from terrascript.resource.databrickslabs.databricks import (
databricks_mws_storage_configurations,
)
from terrascript.resource.databrickslabs.databricks import (
databricks_mws_vpc_endpoint,
)
from terrascript.resource.databrickslabs.databricks import databricks_mws_workspaces
from terrascript.resource.databrickslabs.databricks import databricks_notebook
from terrascript.resource.databrickslabs.databricks import databricks_obo_token
from terrascript.resource.databrickslabs.databricks import databricks_permissions
from terrascript.resource.databrickslabs.databricks import databricks_pipeline
from terrascript.resource.databrickslabs.databricks import databricks_secret
from terrascript.resource.databrickslabs.databricks import databricks_secret_acl
from terrascript.resource.databrickslabs.databricks import databricks_secret_scope
from terrascript.resource.databrickslabs.databricks import (
databricks_service_principal,
)
from terrascript.resource.databrickslabs.databricks import databricks_sql_dashboard
from terrascript.resource.databrickslabs.databricks import databricks_sql_endpoint
from terrascript.resource.databrickslabs.databricks import (
databricks_sql_permissions,
)
from terrascript.resource.databrickslabs.databricks import databricks_sql_query
from terrascript.resource.databrickslabs.databricks import (
databricks_sql_visualization,
)
from terrascript.resource.databrickslabs.databricks import databricks_sql_widget
from terrascript.resource.databrickslabs.databricks import databricks_token
from terrascript.resource.databrickslabs.databricks import databricks_user
from terrascript.resource.databrickslabs.databricks import (
databricks_user_instance_profile,
)
from terrascript.resource.databrickslabs.databricks import databricks_workspace_conf
def test_datasource_import():
from terrascript.data.databrickslabs.databricks import (
databricks_aws_assume_role_policy,
)
from terrascript.data.databrickslabs.databricks import databricks_aws_bucket_policy
from terrascript.data.databrickslabs.databricks import (
databricks_aws_crossaccount_policy,
)
from terrascript.data.databrickslabs.databricks import databricks_current_user
from terrascript.data.databrickslabs.databricks import databricks_dbfs_file
from terrascript.data.databrickslabs.databricks import databricks_dbfs_file_paths
from terrascript.data.databrickslabs.databricks import databricks_group
from terrascript.data.databrickslabs.databricks import databricks_node_type
from terrascript.data.databrickslabs.databricks import databricks_notebook
from terrascript.data.databrickslabs.databricks import databricks_notebook_paths
from terrascript.data.databrickslabs.databricks import databricks_spark_version
from terrascript.data.databrickslabs.databricks import databricks_user
from terrascript.data.databrickslabs.databricks import databricks_zones
# 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.databrickslabs.databricks
#
# t = terrascript.provider.databrickslabs.databricks.databricks()
# s = str(t)
#
# assert 'https://github.com/databrickslabs/terraform-provider-databricks' in s
# assert '0.3.7' in s