kubernetes.e2e_test.test_utils module¶
- class kubernetes.e2e_test.test_utils.TestUtils(methodName='runTest')¶
Bases:
TestCase- classmethod setUpClass()¶
Hook method for setting up class fixture before running tests in the class.
- classmethod tearDownClass()¶
Hook method for deconstructing the class fixture after running all tests in the class.
- test_create_apiservice_from_yaml_with_conflict()¶
Should be able to create an API service. Should verify that creating the same API service should fail due to conflict.
- test_create_apps_deployment_from_yaml()¶
Should be able to create an apps/v1 deployment.
- test_create_apps_deployment_from_yaml_obj()¶
- test_create_apps_deployment_from_yaml_object()¶
Should be able to pass YAML objects directly to helper function.
- test_create_apps_deployment_from_yaml_with_apply_is_idempotent()¶
Should be able to create an apps/v1 deployment.
- test_create_deployment_non_default_namespace_from_yaml()¶
Should be able to create a namespace “dep”, and then create a deployment in the just-created namespace.
- test_create_from_list_in_multi_resource_yaml()¶
Should be able to create the items in the PodList and a deployment specified in the multi-resource file
- test_create_from_list_in_multi_resource_yaml_namespaced()¶
Should be able to create the items in the PodList and a deployment specified in the multi-resource file in a test namespace
- test_create_from_multi_resource_yaml()¶
Should be able to create a service and a replication controller from a multi-resource yaml file
- test_create_from_multi_resource_yaml_with_conflict()¶
Should be able to create a service from the first yaml file. Should fail to create the same service from the second yaml file and create a replication controller. Should raise an exception for failure to create the same service twice.
- test_create_from_multi_resource_yaml_with_multi_conflicts()¶
Should create an apps/v1 deployment and fail to create the same deployment twice. Should raise an exception that contains two error messages.
- test_create_general_list_from_yaml()¶
Should be able to create a service and a deployment from a kind: List yaml file
- test_create_implicit_service_list_from_yaml_with_conflict()¶
Should be able to create two services from a kind: ServiceList json file that implicitly indicates the kind of individual objects
- test_create_multi_resource_from_directory()¶
Should be able to create a service and a replication controller from a directory
- test_create_namespace_from_yaml()¶
Should be able to create a namespace.
- test_create_namespace_list_from_yaml()¶
Should be able to create two namespaces from a kind: NamespaceList yaml file
- test_create_namespaced_apps_deployment_from_yaml()¶
- Should be able to create an apps/v1beta1 deployment
in a test namespace.
- test_create_pod_from_yaml()¶
Should be able to create a pod.
- test_create_rbac_role_from_yaml()¶
Should be able to create a rbac role.
- test_create_rbac_role_from_yaml_with_verbose_enabled()¶
Should be able to create a rbac role with verbose enabled.
- test_create_service_from_yaml()¶
Should be able to create a service.
- test_metrics_utilities_integration()¶
E2E validation of metrics utility functions. Note: Requires metrics-server to be running in cluster.