python-terrascript/tests/test_provider_newrelic_newr...

101 lines
3.4 KiB
Python

# tests/test_provider_newrelic_newrelic.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:22:33 UTC)
def test_provider_import():
import terrascript.provider.newrelic.newrelic
def test_resource_import():
from terrascript.resource.newrelic.newrelic import newrelic_alert_channel
from terrascript.resource.newrelic.newrelic import newrelic_alert_condition
from terrascript.resource.newrelic.newrelic import newrelic_alert_muting_rule
from terrascript.resource.newrelic.newrelic import newrelic_alert_policy
from terrascript.resource.newrelic.newrelic import newrelic_alert_policy_channel
from terrascript.resource.newrelic.newrelic import newrelic_api_access_key
from terrascript.resource.newrelic.newrelic import newrelic_application_settings
from terrascript.resource.newrelic.newrelic import newrelic_dashboard
from terrascript.resource.newrelic.newrelic import newrelic_entity_tags
from terrascript.resource.newrelic.newrelic import newrelic_events_to_metrics_rule
from terrascript.resource.newrelic.newrelic import newrelic_infra_alert_condition
from terrascript.resource.newrelic.newrelic import newrelic_insights_event
from terrascript.resource.newrelic.newrelic import newrelic_nrql_alert_condition
from terrascript.resource.newrelic.newrelic import newrelic_nrql_drop_rule
from terrascript.resource.newrelic.newrelic import newrelic_one_dashboard
from terrascript.resource.newrelic.newrelic import newrelic_one_dashboard_raw
from terrascript.resource.newrelic.newrelic import newrelic_plugins_alert_condition
from terrascript.resource.newrelic.newrelic import (
newrelic_synthetics_alert_condition,
)
from terrascript.resource.newrelic.newrelic import newrelic_synthetics_monitor
from terrascript.resource.newrelic.newrelic import (
newrelic_synthetics_monitor_script,
)
from terrascript.resource.newrelic.newrelic import (
newrelic_synthetics_multilocation_alert_condition,
)
from terrascript.resource.newrelic.newrelic import (
newrelic_synthetics_secure_credential,
)
from terrascript.resource.newrelic.newrelic import newrelic_workload
def test_datasource_import():
from terrascript.data.newrelic.newrelic import newrelic_account
from terrascript.data.newrelic.newrelic import newrelic_alert_channel
from terrascript.data.newrelic.newrelic import newrelic_alert_policy
from terrascript.data.newrelic.newrelic import newrelic_application
from terrascript.data.newrelic.newrelic import newrelic_entity
from terrascript.data.newrelic.newrelic import newrelic_key_transaction
from terrascript.data.newrelic.newrelic import newrelic_plugin
from terrascript.data.newrelic.newrelic import newrelic_plugin_component
from terrascript.data.newrelic.newrelic import newrelic_synthetics_monitor
from terrascript.data.newrelic.newrelic import newrelic_synthetics_monitor_location
from terrascript.data.newrelic.newrelic import newrelic_synthetics_secure_credential
# 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.newrelic.newrelic
#
# t = terrascript.provider.newrelic.newrelic.newrelic()
# s = str(t)
#
# assert 'https://github.com/newrelic/terraform-provider-newrelic' in s
# assert '2.25.0' in s