python-terrascript/tests/test_provider_hashicorp_nom...

77 lines
2.4 KiB
Python

# tests/test_provider_hashicorp_nomad.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:22:41 UTC)
def test_provider_import():
import terrascript.provider.hashicorp.nomad
def test_resource_import():
from terrascript.resource.hashicorp.nomad import nomad_acl_policy
from terrascript.resource.hashicorp.nomad import nomad_acl_token
from terrascript.resource.hashicorp.nomad import nomad_external_volume
from terrascript.resource.hashicorp.nomad import nomad_job
from terrascript.resource.hashicorp.nomad import nomad_namespace
from terrascript.resource.hashicorp.nomad import nomad_quota_specification
from terrascript.resource.hashicorp.nomad import nomad_scheduler_config
from terrascript.resource.hashicorp.nomad import nomad_sentinel_policy
from terrascript.resource.hashicorp.nomad import nomad_volume
def test_datasource_import():
from terrascript.data.hashicorp.nomad import nomad_acl_policies
from terrascript.data.hashicorp.nomad import nomad_acl_policy
from terrascript.data.hashicorp.nomad import nomad_acl_token
from terrascript.data.hashicorp.nomad import nomad_acl_tokens
from terrascript.data.hashicorp.nomad import nomad_datacenters
from terrascript.data.hashicorp.nomad import nomad_deployments
from terrascript.data.hashicorp.nomad import nomad_job
from terrascript.data.hashicorp.nomad import nomad_job_parser
from terrascript.data.hashicorp.nomad import nomad_namespace
from terrascript.data.hashicorp.nomad import nomad_namespaces
from terrascript.data.hashicorp.nomad import nomad_plugin
from terrascript.data.hashicorp.nomad import nomad_plugins
from terrascript.data.hashicorp.nomad import nomad_regions
from terrascript.data.hashicorp.nomad import nomad_scaling_policies
from terrascript.data.hashicorp.nomad import nomad_scaling_policy
from terrascript.data.hashicorp.nomad import nomad_scheduler_config
from terrascript.data.hashicorp.nomad import nomad_volumes
# 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.hashicorp.nomad
#
# t = terrascript.provider.hashicorp.nomad.nomad()
# s = str(t)
#
# assert 'https://github.com/hashicorp/terraform-provider-nomad' in s
# assert '1.4.15' in s