133 lines
4.5 KiB
Python
133 lines
4.5 KiB
Python
# tests/test_provider_hashicorp_kubernetes.py
|
|
# Automatically generated by tools/makecode.py (24-Sep-2021 15:20:43 UTC)
|
|
|
|
|
|
def test_provider_import():
|
|
import terrascript.provider.hashicorp.kubernetes
|
|
|
|
|
|
def test_resource_import():
|
|
from terrascript.resource.hashicorp.kubernetes import kubernetes_api_service
|
|
|
|
from terrascript.resource.hashicorp.kubernetes import (
|
|
kubernetes_certificate_signing_request,
|
|
)
|
|
|
|
from terrascript.resource.hashicorp.kubernetes import kubernetes_cluster_role
|
|
|
|
from terrascript.resource.hashicorp.kubernetes import (
|
|
kubernetes_cluster_role_binding,
|
|
)
|
|
|
|
from terrascript.resource.hashicorp.kubernetes import kubernetes_config_map
|
|
|
|
from terrascript.resource.hashicorp.kubernetes import kubernetes_cron_job
|
|
|
|
from terrascript.resource.hashicorp.kubernetes import kubernetes_csi_driver
|
|
|
|
from terrascript.resource.hashicorp.kubernetes import kubernetes_daemonset
|
|
|
|
from terrascript.resource.hashicorp.kubernetes import (
|
|
kubernetes_default_service_account,
|
|
)
|
|
|
|
from terrascript.resource.hashicorp.kubernetes import kubernetes_deployment
|
|
|
|
from terrascript.resource.hashicorp.kubernetes import kubernetes_endpoints
|
|
|
|
from terrascript.resource.hashicorp.kubernetes import (
|
|
kubernetes_horizontal_pod_autoscaler,
|
|
)
|
|
|
|
from terrascript.resource.hashicorp.kubernetes import kubernetes_ingress
|
|
|
|
from terrascript.resource.hashicorp.kubernetes import kubernetes_job
|
|
|
|
from terrascript.resource.hashicorp.kubernetes import kubernetes_limit_range
|
|
|
|
from terrascript.resource.hashicorp.kubernetes import kubernetes_manifest
|
|
|
|
from terrascript.resource.hashicorp.kubernetes import (
|
|
kubernetes_mutating_webhook_configuration,
|
|
)
|
|
|
|
from terrascript.resource.hashicorp.kubernetes import kubernetes_namespace
|
|
|
|
from terrascript.resource.hashicorp.kubernetes import kubernetes_network_policy
|
|
|
|
from terrascript.resource.hashicorp.kubernetes import kubernetes_persistent_volume
|
|
|
|
from terrascript.resource.hashicorp.kubernetes import (
|
|
kubernetes_persistent_volume_claim,
|
|
)
|
|
|
|
from terrascript.resource.hashicorp.kubernetes import kubernetes_pod
|
|
|
|
from terrascript.resource.hashicorp.kubernetes import (
|
|
kubernetes_pod_disruption_budget,
|
|
)
|
|
|
|
from terrascript.resource.hashicorp.kubernetes import kubernetes_pod_security_policy
|
|
|
|
from terrascript.resource.hashicorp.kubernetes import kubernetes_priority_class
|
|
|
|
from terrascript.resource.hashicorp.kubernetes import (
|
|
kubernetes_replication_controller,
|
|
)
|
|
|
|
from terrascript.resource.hashicorp.kubernetes import kubernetes_resource_quota
|
|
|
|
from terrascript.resource.hashicorp.kubernetes import kubernetes_role
|
|
|
|
from terrascript.resource.hashicorp.kubernetes import kubernetes_role_binding
|
|
|
|
from terrascript.resource.hashicorp.kubernetes import kubernetes_secret
|
|
|
|
from terrascript.resource.hashicorp.kubernetes import kubernetes_service
|
|
|
|
from terrascript.resource.hashicorp.kubernetes import kubernetes_service_account
|
|
|
|
from terrascript.resource.hashicorp.kubernetes import kubernetes_stateful_set
|
|
|
|
from terrascript.resource.hashicorp.kubernetes import kubernetes_storage_class
|
|
|
|
from terrascript.resource.hashicorp.kubernetes import (
|
|
kubernetes_validating_webhook_configuration,
|
|
)
|
|
|
|
|
|
def test_datasource_import():
|
|
from terrascript.data.hashicorp.kubernetes import kubernetes_all_namespaces
|
|
|
|
from terrascript.data.hashicorp.kubernetes import kubernetes_config_map
|
|
|
|
from terrascript.data.hashicorp.kubernetes import kubernetes_ingress
|
|
|
|
from terrascript.data.hashicorp.kubernetes import kubernetes_namespace
|
|
|
|
from terrascript.data.hashicorp.kubernetes import kubernetes_persistent_volume_claim
|
|
|
|
from terrascript.data.hashicorp.kubernetes import kubernetes_pod
|
|
|
|
from terrascript.data.hashicorp.kubernetes import kubernetes_secret
|
|
|
|
from terrascript.data.hashicorp.kubernetes import kubernetes_service
|
|
|
|
from terrascript.data.hashicorp.kubernetes import kubernetes_service_account
|
|
|
|
from terrascript.data.hashicorp.kubernetes import kubernetes_storage_class
|
|
|
|
|
|
# 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.kubernetes
|
|
#
|
|
# t = terrascript.provider.hashicorp.kubernetes.kubernetes()
|
|
# s = str(t)
|
|
#
|
|
# assert 'https://github.com/hashicorp/terraform-provider-kubernetes' in s
|
|
# assert '2.5.0' in s
|