def tc_001_danmnet_object_check():
    steps = [
        'step1_inspect_clusternetworks', 'step2_inspect_tenantconfigs',
        'step3_inspect_tenantnetworks'
    ]
    BuiltIn().run_keyword("tc_001_danmnet_object_check.Setup")
    common_utils.keyword_runner(steps)
def tc_002_pod_health_check():
    steps = [
        'step1_check_componentstatus', 'step2_check_kubelet_is_running',
        'step3_check_apiserver_is_running', 'step4_check_all_kubernetes_pod',
        'step5_check_services_with_systemctl'
    ]
    common_utils.keyword_runner(steps)
Exemplo n.º 3
0
def Custom_HPA_check():
    steps = [
        'step1_check_initial_replica_count_custom',
        'step2_check_scale_out_custom', 'step3_check_scale_in_custom'
    ]
    BuiltIn().run_keyword("Custom_HPA_check.setup")
    common_utils.keyword_runner(steps)
def tc_008_storage_check():
    steps = [
        'step1_read_write_pv', 'step2_check_pv_retaining',
        'step3_read_write_pv'
    ]
    BuiltIn().run_keyword("tc_008_storage_check.Setup")
    common_utils.keyword_runner(steps)
def tc_001_cpu_pool_validation_tests():
    steps = [
        'step1_check_default_pool_cpu_node_capacity',
        'step2_exclusive_and_shared', 'step3_annotation_without_requests',
        'step4_annotation_without_container', 'step5_annotation_without_cpus',
        'step6_request_for_default_pool',
        'step7_pod_use_default_pool_guaranteed',
        'step8_pod_use_default_pool_burstable', 'step9_1_exclusive_1_shared',
        'step10_cpu_allowed_list_set_after_test_pod_deployed'
    ]
    BuiltIn().run_keyword("tc_001_cpu_pool_validation_tests.Setup")
    common_utils.keyword_runner(steps)
def tc_002_exclusive_pool_tests():
    steps = [
        'step1_no_annotation',
        'step2_with_annotation',
        'step3_more_replicas_than_cpus',
        'step4_request_more_than_cpus',
        'step5_less_cpu_annotation_than_request',
        'step6_more_cpu_annotation_than_request',
        'step_7_allocate_all_exclusive_and_new_one_start_running_after_needed_resource_is_freed_up'
    ]

    BuiltIn().run_keyword("tc_002_exclusive_pool_tests.Setup")
    common_utils.keyword_runner(steps)
def tc_003_clusternetwork_pod_check():
    """
        danmnet_pods1: pods attached to d_test-net2 with static ips
        danmnet_pods2: pods attached to d_test-net2 with dynamic ips
        danmnet_pods3: pods attached to d_test-net2 with the same static ips as danmnet-pods1
        danmnet_pods4: pods attached to ks_test-net2 with dynamic ips (kube-system namespace)
        danmnet_pods5: pod attached to d_test-net2 with static ip, ip is not in CIDR
        danmnet_pods6: pods attached to d_test-net1 with dynamic ips (no CIDR/alloc pool is defined in test-net1 )
        danmnet_pods7: pods attached to d_test-net24(flannel) and d_test-net7(ipvlan) networks with dynamic ip
        danmnet_pods8: pods attached to d_test-net24(flannel) with dynamic ip and service defined
        danmnet_pods9: pods attached to d_test-net24(flannel) with static ip(ignored)
        danmnet_pods10: pods attached to d_test-net2 with none ip
        danmnet_pods11: pod attached to d_test-net30 with static ip, d_test-net8 with none ip, none existing
        danmnet(error)
        danmnet_pods12: pod attached to d_test-net30 with static ip, d_test-net8 with dynamic ip, d_test-net25 with
        none ip
        danmnet_pods13: pod attached to d_test-net8 with static ip, d_test-net24(flannel) with dynamic ip, none existing
        danmnet(error)
        danmnet_pods14: pod attached to d_test-net25 with static ip, d_test-net24(flannel) with dynamic ip

        danmnet_pods1: pods attached to cnet-pod1 with static ips
        danmnet_pods2: pods attached to cnet-pod1 with dynamic ips
        danmnet_pods3: pods attached to cnet-pod1 with the same static ips as danmnet-pods1
        danmnet_pods4: pods attached to ks_test-net2 with dynamic ips (kube-system namespace)
        danmnet_pods5: pod attached to cnet-pod1 with static ip, ip is not in CIDR
        danmnet_pods6: pods attached to d_test-net1 with dynamic ips (no CIDR/alloc pool is defined in test-net1 )
        danmnet_pods7: pods attached to d_test-net24(flannel) and d_test-net7(ipvlan) networks with dynamic ip
        danmnet_pods8: pods attached to d_test-net24(flannel) with dynamic ip and service defined
        danmnet_pods9: pods attached to d_test-net24(flannel) with static ip(ignored)
        danmnet_pods10: pods attached to cnet-pod1 with none ip
        danmnet_pods11: pod attached to d_test-net30 with static ip, d_test-net8 with none ip,
        none existing danmnet(error)
        danmnet_pods12: pod attached to d_test-net30 with static ip, d_test-net8 with dynamic ip,
        d_test-net25 with none ip
        danmnet_pods13: pod attached to d_test-net8 with static ip, d_test-net24(flannel) with dynamic ip,
        none existing danmnet(error)
        danmnet_pods14: pod attached to d_test-net25 with static ip, d_test-net24(flannel) with dynamic ip


    """
    steps = [
        'step1', 'step2', 'step3', 'step5', 'step7', 'step8', 'step9',
        'step10', 'step11', 'step12', 'step13', 'step14',
        'tc_003_clusternetwork_pod_check.Teardown'
    ]

    BuiltIn().run_keyword("tc_003_clusternetwork_pod_check.Setup")
    common_utils.keyword_runner(steps)
def tc_002_tenantnetwork_pod_check():
    steps = [
        'step1_check_static_ip_allocations', 'step2_check_dynamic_ip_shortage',
        'step3_check_static_ip_shortage',
        'step4_check_attach_in_kubesystem_namespace',
        'step5_check_static_ip_alloc_static_routes_success_after_purge',
        'step6_check_step4_deletion_success',
        'step7_check_static_ip_alloc_outside_cidr',
        'step8_check_ip_alloc_with_cidrless_allocpoolless_tenantnet',
        'step9_check_connection_to_flannel_and_ipvlan_tenantnetworks',
        'step10_check_service_reachability_with_flannel',
        'step11_check_flannel_static_ip_alloc_not_in_flannel_cidr_ignored',
        'step12_none_ip_pod_restart_loop',
        'step13_check_invalid_net_attach_and_successful_damnep_ip_release_after_retries',
        'step14_check_realloc_ips_of_prev_step_with_dynamic_and_none_ip_alloc',
        'tc_002_tenantnetwork_pod_check.Teardown'
    ]

    BuiltIn().run_keyword("tc_002_tenantnetwork_pod_check.Setup")
    common_utils.keyword_runner(steps)
Exemplo n.º 9
0
def tc_001_ssh_test_fluentd_logging():
    steps = ['step1_fluentd_logging_followup_check']
    common_utils.keyword_runner(steps)
def tc_007_ssh_test_overlay_quota():
    steps = [
        'step1_check_storage_driver_and_quota_setting',
        'step2_check_copy_files'
    ]
    common_utils.keyword_runner(steps)
def tc_003_test_registry():
    steps = ['step_1_test_registry']
    common_utils.keyword_runner(steps)
def tc_005_ssh_dns_server_check():
    steps = [
        'step1_check_dns_server_replica_num_within_limits',
        'step2_dns_server_port_check', 'step3_check_address_resolution'
    ]
    common_utils.keyword_runner(steps)
def tc_002_elasticsearch_storage_check():
    steps = ['step1_get_elasticsearch_kubernetes_data', 'step2_check_plugins']
    if check_if_test_should_be_run():
        common_utils.keyword_runner(steps)
def tc_004_ssh_file_check():
    steps = ['step1_openstack_file_check_on_crf_nodes']
    common_utils.keyword_runner(steps)
Exemplo n.º 15
0
def tc_006_ssh_test_ext_ntp():
    steps = ['step1_check_ntpd_service_and_ext_ntp_ip_on_crf_nodes']
    common_utils.keyword_runner(steps)
Exemplo n.º 16
0
def tc_003_exclusive_pool_tests_more_cpu():
    steps = ['step1_with_two_process']
    BuiltIn().run_keyword("tc_003_exclusive_pool_tests_more_cpu.Setup")
    common_utils.keyword_runner(steps)