237 lines
7.8 KiB
Python
237 lines
7.8 KiB
Python
# tests/test_provider_mongodb_mongodbatlas.py
|
|
# Automatically generated by tools/makecode.py (24-Sep-2021 15:21:48 UTC)
|
|
|
|
|
|
def test_provider_import():
|
|
import terrascript.provider.mongodb.mongodbatlas
|
|
|
|
|
|
def test_resource_import():
|
|
from terrascript.resource.mongodb.mongodbatlas import (
|
|
mongodbatlas_alert_configuration,
|
|
)
|
|
|
|
from terrascript.resource.mongodb.mongodbatlas import mongodbatlas_auditing
|
|
|
|
from terrascript.resource.mongodb.mongodbatlas import (
|
|
mongodbatlas_cloud_backup_schedule,
|
|
)
|
|
|
|
from terrascript.resource.mongodb.mongodbatlas import (
|
|
mongodbatlas_cloud_provider_access,
|
|
)
|
|
|
|
from terrascript.resource.mongodb.mongodbatlas import (
|
|
mongodbatlas_cloud_provider_access_authorization,
|
|
)
|
|
|
|
from terrascript.resource.mongodb.mongodbatlas import (
|
|
mongodbatlas_cloud_provider_access_setup,
|
|
)
|
|
|
|
from terrascript.resource.mongodb.mongodbatlas import (
|
|
mongodbatlas_cloud_provider_snapshot,
|
|
)
|
|
|
|
from terrascript.resource.mongodb.mongodbatlas import (
|
|
mongodbatlas_cloud_provider_snapshot_backup_policy,
|
|
)
|
|
|
|
from terrascript.resource.mongodb.mongodbatlas import (
|
|
mongodbatlas_cloud_provider_snapshot_restore_job,
|
|
)
|
|
|
|
from terrascript.resource.mongodb.mongodbatlas import mongodbatlas_cluster
|
|
|
|
from terrascript.resource.mongodb.mongodbatlas import mongodbatlas_custom_db_role
|
|
|
|
from terrascript.resource.mongodb.mongodbatlas import (
|
|
mongodbatlas_custom_dns_configuration_cluster_aws,
|
|
)
|
|
|
|
from terrascript.resource.mongodb.mongodbatlas import mongodbatlas_data_lake
|
|
|
|
from terrascript.resource.mongodb.mongodbatlas import mongodbatlas_database_user
|
|
|
|
from terrascript.resource.mongodb.mongodbatlas import (
|
|
mongodbatlas_encryption_at_rest,
|
|
)
|
|
|
|
from terrascript.resource.mongodb.mongodbatlas import mongodbatlas_event_trigger
|
|
|
|
from terrascript.resource.mongodb.mongodbatlas import (
|
|
mongodbatlas_global_cluster_config,
|
|
)
|
|
|
|
from terrascript.resource.mongodb.mongodbatlas import (
|
|
mongodbatlas_ldap_configuration,
|
|
)
|
|
|
|
from terrascript.resource.mongodb.mongodbatlas import mongodbatlas_ldap_verify
|
|
|
|
from terrascript.resource.mongodb.mongodbatlas import (
|
|
mongodbatlas_maintenance_window,
|
|
)
|
|
|
|
from terrascript.resource.mongodb.mongodbatlas import mongodbatlas_network_container
|
|
|
|
from terrascript.resource.mongodb.mongodbatlas import mongodbatlas_network_peering
|
|
|
|
from terrascript.resource.mongodb.mongodbatlas import mongodbatlas_online_archive
|
|
|
|
from terrascript.resource.mongodb.mongodbatlas import mongodbatlas_private_ip_mode
|
|
|
|
from terrascript.resource.mongodb.mongodbatlas import (
|
|
mongodbatlas_privatelink_endpoint,
|
|
)
|
|
|
|
from terrascript.resource.mongodb.mongodbatlas import (
|
|
mongodbatlas_privatelink_endpoint_service,
|
|
)
|
|
|
|
from terrascript.resource.mongodb.mongodbatlas import mongodbatlas_project
|
|
|
|
from terrascript.resource.mongodb.mongodbatlas import (
|
|
mongodbatlas_project_ip_access_list,
|
|
)
|
|
|
|
from terrascript.resource.mongodb.mongodbatlas import mongodbatlas_search_index
|
|
|
|
from terrascript.resource.mongodb.mongodbatlas import mongodbatlas_team
|
|
|
|
from terrascript.resource.mongodb.mongodbatlas import mongodbatlas_teams
|
|
|
|
from terrascript.resource.mongodb.mongodbatlas import (
|
|
mongodbatlas_third_party_integration,
|
|
)
|
|
|
|
from terrascript.resource.mongodb.mongodbatlas import (
|
|
mongodbatlas_x509_authentication_database_user,
|
|
)
|
|
|
|
|
|
def test_datasource_import():
|
|
from terrascript.data.mongodb.mongodbatlas import mongodbatlas_alert_configuration
|
|
|
|
from terrascript.data.mongodb.mongodbatlas import mongodbatlas_auditing
|
|
|
|
from terrascript.data.mongodb.mongodbatlas import mongodbatlas_cloud_backup_schedule
|
|
|
|
from terrascript.data.mongodb.mongodbatlas import mongodbatlas_cloud_provider_access
|
|
|
|
from terrascript.data.mongodb.mongodbatlas import (
|
|
mongodbatlas_cloud_provider_access_setup,
|
|
)
|
|
|
|
from terrascript.data.mongodb.mongodbatlas import (
|
|
mongodbatlas_cloud_provider_snapshot,
|
|
)
|
|
|
|
from terrascript.data.mongodb.mongodbatlas import (
|
|
mongodbatlas_cloud_provider_snapshot_backup_policy,
|
|
)
|
|
|
|
from terrascript.data.mongodb.mongodbatlas import (
|
|
mongodbatlas_cloud_provider_snapshot_restore_job,
|
|
)
|
|
|
|
from terrascript.data.mongodb.mongodbatlas import (
|
|
mongodbatlas_cloud_provider_snapshot_restore_jobs,
|
|
)
|
|
|
|
from terrascript.data.mongodb.mongodbatlas import (
|
|
mongodbatlas_cloud_provider_snapshots,
|
|
)
|
|
|
|
from terrascript.data.mongodb.mongodbatlas import mongodbatlas_cluster
|
|
|
|
from terrascript.data.mongodb.mongodbatlas import mongodbatlas_clusters
|
|
|
|
from terrascript.data.mongodb.mongodbatlas import mongodbatlas_custom_db_role
|
|
|
|
from terrascript.data.mongodb.mongodbatlas import mongodbatlas_custom_db_roles
|
|
|
|
from terrascript.data.mongodb.mongodbatlas import (
|
|
mongodbatlas_custom_dns_configuration_cluster_aws,
|
|
)
|
|
|
|
from terrascript.data.mongodb.mongodbatlas import mongodbatlas_data_lake
|
|
|
|
from terrascript.data.mongodb.mongodbatlas import mongodbatlas_data_lakes
|
|
|
|
from terrascript.data.mongodb.mongodbatlas import mongodbatlas_database_user
|
|
|
|
from terrascript.data.mongodb.mongodbatlas import mongodbatlas_database_users
|
|
|
|
from terrascript.data.mongodb.mongodbatlas import mongodbatlas_event_trigger
|
|
|
|
from terrascript.data.mongodb.mongodbatlas import mongodbatlas_event_triggers
|
|
|
|
from terrascript.data.mongodb.mongodbatlas import mongodbatlas_global_cluster_config
|
|
|
|
from terrascript.data.mongodb.mongodbatlas import mongodbatlas_ldap_configuration
|
|
|
|
from terrascript.data.mongodb.mongodbatlas import mongodbatlas_ldap_verify
|
|
|
|
from terrascript.data.mongodb.mongodbatlas import mongodbatlas_maintenance_window
|
|
|
|
from terrascript.data.mongodb.mongodbatlas import mongodbatlas_network_container
|
|
|
|
from terrascript.data.mongodb.mongodbatlas import mongodbatlas_network_containers
|
|
|
|
from terrascript.data.mongodb.mongodbatlas import mongodbatlas_network_peering
|
|
|
|
from terrascript.data.mongodb.mongodbatlas import mongodbatlas_network_peerings
|
|
|
|
from terrascript.data.mongodb.mongodbatlas import mongodbatlas_online_archive
|
|
|
|
from terrascript.data.mongodb.mongodbatlas import mongodbatlas_online_archives
|
|
|
|
from terrascript.data.mongodb.mongodbatlas import mongodbatlas_privatelink_endpoint
|
|
|
|
from terrascript.data.mongodb.mongodbatlas import (
|
|
mongodbatlas_privatelink_endpoint_service,
|
|
)
|
|
|
|
from terrascript.data.mongodb.mongodbatlas import mongodbatlas_project
|
|
|
|
from terrascript.data.mongodb.mongodbatlas import (
|
|
mongodbatlas_project_ip_access_list,
|
|
)
|
|
|
|
from terrascript.data.mongodb.mongodbatlas import mongodbatlas_projects
|
|
|
|
from terrascript.data.mongodb.mongodbatlas import mongodbatlas_search_index
|
|
|
|
from terrascript.data.mongodb.mongodbatlas import mongodbatlas_search_indexes
|
|
|
|
from terrascript.data.mongodb.mongodbatlas import mongodbatlas_team
|
|
|
|
from terrascript.data.mongodb.mongodbatlas import mongodbatlas_teams
|
|
|
|
from terrascript.data.mongodb.mongodbatlas import (
|
|
mongodbatlas_third_party_integration,
|
|
)
|
|
|
|
from terrascript.data.mongodb.mongodbatlas import (
|
|
mongodbatlas_third_party_integrations,
|
|
)
|
|
|
|
from terrascript.data.mongodb.mongodbatlas import (
|
|
mongodbatlas_x509_authentication_database_user,
|
|
)
|
|
|
|
|
|
# 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.mongodb.mongodbatlas
|
|
#
|
|
# t = terrascript.provider.mongodb.mongodbatlas.mongodbatlas()
|
|
# s = str(t)
|
|
#
|
|
# assert 'https://github.com/mongodb/terraform-provider-mongodbatlas' in s
|
|
# assert '1.0.1' in s
|