Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Proxy Configuration for private clusters #132

Closed
wants to merge 10 commits into from
Closed

Conversation

paigerube14
Copy link
Contributor

@paigerube14 paigerube14 commented Oct 24, 2024

Certain configurations of openshift are behind a http_proxy environment variable. This will allow us to run tests on these clusters

I found though this only works for scenarios that are imbedded into krkn. the Native scenarios each have their own api configuration. Need to see if that's still necessary. Also pod scenarios are effected by this

labels:
kubernetes.io/metadata.name: {{name}}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needed to run tests on openshift cluster

@paigerube14
Copy link
Contributor Author

@tsebastiani are you able to take a look at why these tests might be failing? I made a kind cluster and ran the tests locally and haven't hit the same issues

test_apply_yaml (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_check_if_namespace_exists (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_check_if_pod_exists (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_check_if_pvc_exists (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_check_namespaces (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_collect_and_parse_cluster_events (test_krkn_kubernetes.KrknKubernetesTests) ... FAIL
test_command_on_node (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_create_job (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_create_pod (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_create_token_for_namespace (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_delete_daemonset (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_delete_deployment (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_delete_job (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_delete_namespace (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_delete_pod (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_delete_replicaset (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_delete_services (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_delete_statefulsets (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_deploy_syn_flood (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_deploy_undeploy_service_hijacking (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_download_folder_from_pod_as_archive (test_krkn_kubernetes.KrknKubernetesTests) ... ERROR
test_exec_command (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_exists_path_in_pod (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_find_kraken_node (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_get_all_kubernetes_object_count (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_get_all_pods (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_get_containers_in_pod (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_get_job_status (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_get_kubeconfig_path (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_get_kubernetes_core_objects_count (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_get_kubernetes_custom_objects_count (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_get_namespace_status (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_get_node_resource_version (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_get_nodes_infos (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_get_pod_info (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_get_pod_log (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_get_pvc_info (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_get_version (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_is_kubernetes (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_is_pod_running (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_is_terminating (test_krkn_kubernetes.KrknKubernetesTests) ... FAIL
test_list_all_namespaces (test_krkn_kubernetes.KrknKubernetesTests) ... result type24
ok
test_list_killable_nodes (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_list_namespaces (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_list_namespaces_by_regex (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_list_nodes (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_list_pods (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_list_ready_nodes (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_monitor_component (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_monitor_namespace (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_monitor_nodes (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_monitor_pods_by_label_no_pods_affected (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_net_policy (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_pod_shell (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_pods_by_label_multiple_respawn (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_pods_by_label_multiple_respawn_one_fails (test_krkn_kubernetes.KrknKubernetesTests) ... FAIL
test_pods_by_label_multiple_respawn_one_too_late (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_pods_by_label_never_respawn (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_pods_by_label_respawn_timeout (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_pods_by_name_and_namespace_pattern_different_names_respawn (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_pods_by_namespace_pattern_and_label_same_name_respawn (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_read_pod (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_replace_service_selector (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_select_services_by_label (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_service_exists (test_krkn_kubernetes.KrknKubernetesTests) ... ok
test_pods_status (test_krkn_kubernetes_models.TestKrknKubernetesModels) ... ok
test_cancel (test_krkn_kubernetes_pods_monitor_pool.TestKrknKubernetesPodsMonitorPool) ... ok
test_pods_monitor_pool (test_krkn_kubernetes_pods_monitor_pool.TestKrknKubernetesPodsMonitorPool) ... starting monitoring
ok
test_filter_must_gather_ocp_log_folder (test_krkn_openshift.KrknOpenshiftTest) ... ok
test_get_cloud_infrastructure (test_krkn_openshift.KrknOpenshiftTest) ... ok
test_get_cluster_network_plugins (test_krkn_openshift.KrknOpenshiftTest) ... ok
test_get_cluster_type (test_krkn_openshift.KrknOpenshiftTest) ... ok
test_get_cluster_version (test_krkn_openshift.KrknOpenshiftTest) ... ok
test_get_cluster_version_string (test_krkn_openshift.KrknOpenshiftTest) ... ok
test_is_openshift (test_krkn_openshift.KrknOpenshiftTest) ... ok
test_get_kubeconfig_path (test_krkn_telemetry_openshift.KrknTelemetryOpenshiftTests) ... ok
test_check_date_in_localized_interval (test_utils.UtilFunctionTests) ... ok
test_decode_base64_file (test_utils.UtilFunctionTests) ... ERROR
test_deep_get (test_utils.UtilFunctionTests) ... ok
test_deep_set_attribute (test_utils.UtilFunctionTests) ... ok
test_filter_dictionary (test_utils.UtilFunctionTests) ... ok
test_filter_file_log (test_utils.UtilFunctionTests) ... ok
test_find_executable_in_path (test_utils.UtilFunctionTests) ... ok
test_get_junit_test_case (test_utils.UtilFunctionTests) ... ok
test_get_random_string (test_utils.UtilFunctionTests) ... ok
test_get_yaml_item_value (test_utils.UtilFunctionTests) ... ok
test_is_host_reachable (test_utils.UtilFunctionTests) .

@paigerube14 paigerube14 force-pushed the proxy branch 3 times, most recently from 1dcfb3c to 7530bde Compare December 4, 2024 15:09
@paigerube14
Copy link
Contributor Author

closing in favor of pr: #140

That pr edits the test order and has consistent tests passing

@tsebastiani tsebastiani deleted the proxy branch January 8, 2025 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant