=== RUN TestGenerateCloudInitScript === RUN TestGenerateCloudInitScript/Basic_cloud-init_generation === RUN TestGenerateCloudInitScript/CRI-O_container_runtime === RUN TestGenerateCloudInitScript/Cilium_CNI_plugin === RUN TestGenerateCloudInitScript/Flannel_CNI_plugin === RUN TestGenerateCloudInitScript/With_taints === RUN TestGenerateCloudInitScript/With_labels === RUN TestGenerateCloudInitScript/With_custom_user_data === RUN TestGenerateCloudInitScript/With_additional_CA_environment_variable === RUN TestGenerateCloudInitScript/With_KubeletConfig === RUN TestGenerateCloudInitScript/With_KubeletConfig_nil,_uses_defaults === RUN TestGenerateCloudInitScript/with_KubeletConfig_partial_fields,_only_render_set_blocks --- PASS: TestGenerateCloudInitScript (0.01s) --- PASS: TestGenerateCloudInitScript/Basic_cloud-init_generation (0.00s) --- PASS: TestGenerateCloudInitScript/CRI-O_container_runtime (0.00s) --- PASS: TestGenerateCloudInitScript/Cilium_CNI_plugin (0.00s) --- PASS: TestGenerateCloudInitScript/Flannel_CNI_plugin (0.00s) --- PASS: TestGenerateCloudInitScript/With_taints (0.00s) --- PASS: TestGenerateCloudInitScript/With_labels (0.00s) --- PASS: TestGenerateCloudInitScript/With_custom_user_data (0.00s) --- PASS: TestGenerateCloudInitScript/With_additional_CA_environment_variable (0.00s) --- PASS: TestGenerateCloudInitScript/With_KubeletConfig (0.00s) --- PASS: TestGenerateCloudInitScript/With_KubeletConfig_nil,_uses_defaults (0.00s) --- PASS: TestGenerateCloudInitScript/with_KubeletConfig_partial_fields,_only_render_set_blocks (0.00s) === RUN TestCloudInitTemplate_EdgeCases === RUN TestCloudInitTemplate_EdgeCases/Unsupported_container_runtime === RUN TestCloudInitTemplate_EdgeCases/Unknown_CNI_plugin === RUN TestCloudInitTemplate_EdgeCases/Empty_values === RUN TestCloudInitTemplate_EdgeCases/Architecture_handling === RUN TestCloudInitTemplate_EdgeCases/Architecture_handling/amd64 === RUN TestCloudInitTemplate_EdgeCases/Architecture_handling/arm64 === RUN TestCloudInitTemplate_EdgeCases/Architecture_handling/s390x === RUN TestCloudInitTemplate_EdgeCases/Architecture_handling/#00 --- PASS: TestCloudInitTemplate_EdgeCases (0.01s) --- PASS: TestCloudInitTemplate_EdgeCases/Unsupported_container_runtime (0.00s) --- PASS: TestCloudInitTemplate_EdgeCases/Unknown_CNI_plugin (0.00s) --- PASS: TestCloudInitTemplate_EdgeCases/Empty_values (0.00s) --- PASS: TestCloudInitTemplate_EdgeCases/Architecture_handling (0.00s) --- PASS: TestCloudInitTemplate_EdgeCases/Architecture_handling/amd64 (0.00s) --- PASS: TestCloudInitTemplate_EdgeCases/Architecture_handling/arm64 (0.00s) --- PASS: TestCloudInitTemplate_EdgeCases/Architecture_handling/s390x (0.00s) --- PASS: TestCloudInitTemplate_EdgeCases/Architecture_handling/#00 (0.00s) === RUN TestCloudInitTemplate_SecurityFeatures === RUN TestCloudInitTemplate_SecurityFeatures/Status_reporting_security === RUN TestCloudInitTemplate_SecurityFeatures/Error_handling_and_diagnostics === RUN TestCloudInitTemplate_SecurityFeatures/CA_bundle_handling --- PASS: TestCloudInitTemplate_SecurityFeatures (0.00s) --- PASS: TestCloudInitTemplate_SecurityFeatures/Status_reporting_security (0.00s) --- PASS: TestCloudInitTemplate_SecurityFeatures/Error_handling_and_diagnostics (0.00s) --- PASS: TestCloudInitTemplate_SecurityFeatures/CA_bundle_handling (0.00s) === RUN TestBootstrapEnvironmentVariableInjection === RUN TestBootstrapEnvironmentVariableInjection/inject_single_BOOTSTRAP__variable === RUN TestBootstrapEnvironmentVariableInjection/inject_multiple_BOOTSTRAP__variables === RUN TestBootstrapEnvironmentVariableInjection/ignore_non-BOOTSTRAP__variables === RUN TestBootstrapEnvironmentVariableInjection/handle_variables_with_special_characters === RUN TestBootstrapEnvironmentVariableInjection/no_BOOTSTRAP__variables_set === RUN TestBootstrapEnvironmentVariableInjection/RKE2_use_case_simulation --- PASS: TestBootstrapEnvironmentVariableInjection (0.00s) --- PASS: TestBootstrapEnvironmentVariableInjection/inject_single_BOOTSTRAP__variable (0.00s) --- PASS: TestBootstrapEnvironmentVariableInjection/inject_multiple_BOOTSTRAP__variables (0.00s) --- PASS: TestBootstrapEnvironmentVariableInjection/ignore_non-BOOTSTRAP__variables (0.00s) --- PASS: TestBootstrapEnvironmentVariableInjection/handle_variables_with_special_characters (0.00s) --- PASS: TestBootstrapEnvironmentVariableInjection/no_BOOTSTRAP__variables_set (0.00s) --- PASS: TestBootstrapEnvironmentVariableInjection/RKE2_use_case_simulation (0.00s) === RUN TestVPCBootstrapProvider_getClusterInfo === RUN TestVPCBootstrapProvider_getClusterInfo/successful_cluster_info_from_configmap === RUN TestVPCBootstrapProvider_getClusterInfo/fallback_to_kubernetes_service === RUN TestVPCBootstrapProvider_getClusterInfo/configmap_exists_but_no_kubeconfig === RUN TestVPCBootstrapProvider_getClusterInfo/no_cluster_info_sources_available --- PASS: TestVPCBootstrapProvider_getClusterInfo (0.00s) --- PASS: TestVPCBootstrapProvider_getClusterInfo/successful_cluster_info_from_configmap (0.00s) --- PASS: TestVPCBootstrapProvider_getClusterInfo/fallback_to_kubernetes_service (0.00s) --- PASS: TestVPCBootstrapProvider_getClusterInfo/configmap_exists_but_no_kubeconfig (0.00s) --- PASS: TestVPCBootstrapProvider_getClusterInfo/no_cluster_info_sources_available (0.00s) === RUN TestVPCBootstrapProvider_detectContainerRuntime === RUN TestVPCBootstrapProvider_detectContainerRuntime/containerd_runtime_detected === RUN TestVPCBootstrapProvider_detectContainerRuntime/cri-o_runtime_detected === RUN TestVPCBootstrapProvider_detectContainerRuntime/no_nodes_available_-_default_to_containerd === RUN TestVPCBootstrapProvider_detectContainerRuntime/node_with_empty_runtime_version_-_default_to_containerd --- PASS: TestVPCBootstrapProvider_detectContainerRuntime (0.00s) --- PASS: TestVPCBootstrapProvider_detectContainerRuntime/containerd_runtime_detected (0.00s) --- PASS: TestVPCBootstrapProvider_detectContainerRuntime/cri-o_runtime_detected (0.00s) --- PASS: TestVPCBootstrapProvider_detectContainerRuntime/no_nodes_available_-_default_to_containerd (0.00s) --- PASS: TestVPCBootstrapProvider_detectContainerRuntime/node_with_empty_runtime_version_-_default_to_containerd (0.00s) === RUN TestVPCBootstrapProvider_getClusterCA === RUN TestVPCBootstrapProvider_getClusterCA/successful_CA_extraction_from_kube-root-ca.crt_ConfigMap === RUN TestVPCBootstrapProvider_getClusterCA/successful_CA_extraction_from_default-token_secret === RUN TestVPCBootstrapProvider_getClusterCA/fallback_to_any_service_account_token_when_default-token_not_found === RUN TestVPCBootstrapProvider_getClusterCA/no_service_account_tokens_available === RUN TestVPCBootstrapProvider_getClusterCA/service_account_token_exists_but_no_ca.crt --- PASS: TestVPCBootstrapProvider_getClusterCA (0.00s) --- PASS: TestVPCBootstrapProvider_getClusterCA/successful_CA_extraction_from_kube-root-ca.crt_ConfigMap (0.00s) --- PASS: TestVPCBootstrapProvider_getClusterCA/successful_CA_extraction_from_default-token_secret (0.00s) --- PASS: TestVPCBootstrapProvider_getClusterCA/fallback_to_any_service_account_token_when_default-token_not_found (0.00s) --- PASS: TestVPCBootstrapProvider_getClusterCA/no_service_account_tokens_available (0.00s) --- PASS: TestVPCBootstrapProvider_getClusterCA/service_account_token_exists_but_no_ca.crt (0.00s) === RUN TestVPCBootstrapProvider_parseKubeconfig === RUN TestVPCBootstrapProvider_parseKubeconfig/valid_kubeconfig === RUN TestVPCBootstrapProvider_parseKubeconfig/kubeconfig_without_CA_data === RUN TestVPCBootstrapProvider_parseKubeconfig/kubeconfig_without_server === RUN TestVPCBootstrapProvider_parseKubeconfig/invalid_base64_CA_data --- PASS: TestVPCBootstrapProvider_parseKubeconfig (0.00s) --- PASS: TestVPCBootstrapProvider_parseKubeconfig/valid_kubeconfig (0.00s) --- PASS: TestVPCBootstrapProvider_parseKubeconfig/kubeconfig_without_CA_data (0.00s) --- PASS: TestVPCBootstrapProvider_parseKubeconfig/kubeconfig_without_server (0.00s) --- PASS: TestVPCBootstrapProvider_parseKubeconfig/invalid_base64_CA_data (0.00s) === RUN TestVPCBootstrapProvider_detectArchitectureFromInstanceProfile === RUN TestVPCBootstrapProvider_detectArchitectureFromInstanceProfile/empty_instance_profile_-_should_error === RUN TestVPCBootstrapProvider_detectArchitectureFromInstanceProfile/nil_client_-_should_error_with_proper_message_(not_nil_pointer) --- PASS: TestVPCBootstrapProvider_detectArchitectureFromInstanceProfile (0.00s) --- PASS: TestVPCBootstrapProvider_detectArchitectureFromInstanceProfile/empty_instance_profile_-_should_error (0.00s) --- PASS: TestVPCBootstrapProvider_detectArchitectureFromInstanceProfile/nil_client_-_should_error_with_proper_message_(not_nil_pointer) (0.00s) === RUN TestVPCBootstrapProvider_ReportBootstrapStatus === RUN TestVPCBootstrapProvider_ReportBootstrapStatus/successful_status_reporting === RUN TestVPCBootstrapProvider_ReportBootstrapStatus/empty_instance_ID_-_should_error --- PASS: TestVPCBootstrapProvider_ReportBootstrapStatus (0.00s) --- PASS: TestVPCBootstrapProvider_ReportBootstrapStatus/successful_status_reporting (0.00s) --- PASS: TestVPCBootstrapProvider_ReportBootstrapStatus/empty_instance_ID_-_should_error (0.00s) === RUN TestVPCBootstrapProvider_GetBootstrapStatus === RUN TestVPCBootstrapProvider_GetBootstrapStatus/successful_status_retrieval_with_bootstrap_data === RUN TestVPCBootstrapProvider_GetBootstrapStatus/configmap_not_found === RUN TestVPCBootstrapProvider_GetBootstrapStatus/empty_instance_ID_-_should_error --- PASS: TestVPCBootstrapProvider_GetBootstrapStatus (0.00s) --- PASS: TestVPCBootstrapProvider_GetBootstrapStatus/successful_status_retrieval_with_bootstrap_data (0.00s) --- PASS: TestVPCBootstrapProvider_GetBootstrapStatus/configmap_not_found (0.00s) --- PASS: TestVPCBootstrapProvider_GetBootstrapStatus/empty_instance_ID_-_should_error (0.00s) === RUN TestCloudInitStatusReporting === RUN TestCloudInitStatusReporting/cloud-init_template_includes_status_reporting --- PASS: TestCloudInitStatusReporting (0.00s) --- PASS: TestCloudInitStatusReporting/cloud-init_template_includes_status_reporting (0.00s) === RUN TestVPCBootstrapProvider_GetClusterDNS === RUN TestVPCBootstrapProvider_GetClusterDNS/kube-dns_service_found === RUN TestVPCBootstrapProvider_GetClusterDNS/coredns_service_found === RUN TestVPCBootstrapProvider_GetClusterDNS/DNS_from_kubelet_configmap === RUN TestVPCBootstrapProvider_GetClusterDNS/no_DNS_service_or_config_found --- PASS: TestVPCBootstrapProvider_GetClusterDNS (0.00s) --- PASS: TestVPCBootstrapProvider_GetClusterDNS/kube-dns_service_found (0.00s) --- PASS: TestVPCBootstrapProvider_GetClusterDNS/coredns_service_found (0.00s) --- PASS: TestVPCBootstrapProvider_GetClusterDNS/DNS_from_kubelet_configmap (0.00s) --- PASS: TestVPCBootstrapProvider_GetClusterDNS/no_DNS_service_or_config_found (0.00s) === RUN TestVPCBootstrapProvider_GetClusterName --- PASS: TestVPCBootstrapProvider_GetClusterName (0.00s) === RUN TestVPCBootstrapProvider_GetInstanceBootstrapLogs --- PASS: TestVPCBootstrapProvider_GetInstanceBootstrapLogs (0.00s) === RUN TestVPCBootstrapProvider_PollInstanceBootstrapStatus === RUN TestVPCBootstrapProvider_PollInstanceBootstrapStatus/nil_client_-_should_error === RUN TestVPCBootstrapProvider_PollInstanceBootstrapStatus/empty_instance_ID --- PASS: TestVPCBootstrapProvider_PollInstanceBootstrapStatus (0.00s) --- PASS: TestVPCBootstrapProvider_PollInstanceBootstrapStatus/nil_client_-_should_error (0.00s) --- PASS: TestVPCBootstrapProvider_PollInstanceBootstrapStatus/empty_instance_ID (0.00s) === RUN TestGetUserDataWithInstanceIDAndType_ArchitectureDetectionFallback === RUN TestGetUserDataWithInstanceIDAndType_ArchitectureDetectionFallback/selectedInstanceType_parameter_provided_(primary_method) === RUN TestGetUserDataWithInstanceIDAndType_ArchitectureDetectionFallback/fallback_to_NodeClass_instanceProfile_when_selectedInstanceType_empty === RUN TestGetUserDataWithInstanceIDAndType_ArchitectureDetectionFallback/error_when_all_methods_fail --- PASS: TestGetUserDataWithInstanceIDAndType_ArchitectureDetectionFallback (0.44s) --- PASS: TestGetUserDataWithInstanceIDAndType_ArchitectureDetectionFallback/selectedInstanceType_parameter_provided_(primary_method) (0.43s) --- PASS: TestGetUserDataWithInstanceIDAndType_ArchitectureDetectionFallback/fallback_to_NodeClass_instanceProfile_when_selectedInstanceType_empty (0.01s) --- PASS: TestGetUserDataWithInstanceIDAndType_ArchitectureDetectionFallback/error_when_all_methods_fail (0.01s) === RUN TestArchitectureDetectionPriorityOrder === RUN TestArchitectureDetectionPriorityOrder/code_coverage_verification --- PASS: TestArchitectureDetectionPriorityOrder (0.01s) --- PASS: TestArchitectureDetectionPriorityOrder/code_coverage_verification (0.00s) === RUN TestCiliumTaintConditionalBehavior === RUN TestCiliumTaintConditionalBehavior/Calico_CNI_-_should_NOT_have_Cilium_taint === RUN TestCiliumTaintConditionalBehavior/Cilium_CNI_-_should_have_Cilium_taint === RUN TestCiliumTaintConditionalBehavior/Flannel_CNI_-_should_NOT_have_Cilium_taint === RUN TestCiliumTaintConditionalBehavior/Empty_CNI_plugin_-_should_NOT_have_Cilium_taint --- PASS: TestCiliumTaintConditionalBehavior (0.01s) --- PASS: TestCiliumTaintConditionalBehavior/Calico_CNI_-_should_NOT_have_Cilium_taint (0.00s) --- PASS: TestCiliumTaintConditionalBehavior/Cilium_CNI_-_should_have_Cilium_taint (0.00s) --- PASS: TestCiliumTaintConditionalBehavior/Flannel_CNI_-_should_NOT_have_Cilium_taint (0.00s) --- PASS: TestCiliumTaintConditionalBehavior/Empty_CNI_plugin_-_should_NOT_have_Cilium_taint (0.00s) === RUN TestCloudInitScriptWithCustomTaints === RUN TestCloudInitScriptWithCustomTaints/Calico_with_custom_taints_-_no_Cilium_taint === RUN TestCloudInitScriptWithCustomTaints/Cilium_with_custom_taints_-_includes_Cilium_taint === RUN TestCloudInitScriptWithCustomTaints/No_CNI_plugin_with_custom_taints --- PASS: TestCloudInitScriptWithCustomTaints (0.00s) --- PASS: TestCloudInitScriptWithCustomTaints/Calico_with_custom_taints_-_no_Cilium_taint (0.00s) --- PASS: TestCloudInitScriptWithCustomTaints/Cilium_with_custom_taints_-_includes_Cilium_taint (0.00s) --- PASS: TestCloudInitScriptWithCustomTaints/No_CNI_plugin_with_custom_taints (0.00s) === RUN TestVPCBootstrapProvider_GetUserData_ErrorHandling === RUN TestVPCBootstrapProvider_GetUserData_ErrorHandling/Nil_NodeClass === RUN TestVPCBootstrapProvider_GetUserData_ErrorHandling/Empty_NodeClaim === RUN TestVPCBootstrapProvider_GetUserData_ErrorHandling/Kubernetes_API_server_discovery_failure === RUN TestVPCBootstrapProvider_GetUserData_ErrorHandling/Bootstrap_token_creation_failure --- PASS: TestVPCBootstrapProvider_GetUserData_ErrorHandling (0.03s) --- PASS: TestVPCBootstrapProvider_GetUserData_ErrorHandling/Nil_NodeClass (0.01s) --- PASS: TestVPCBootstrapProvider_GetUserData_ErrorHandling/Empty_NodeClaim (0.01s) --- PASS: TestVPCBootstrapProvider_GetUserData_ErrorHandling/Kubernetes_API_server_discovery_failure (0.01s) --- PASS: TestVPCBootstrapProvider_GetUserData_ErrorHandling/Bootstrap_token_creation_failure (0.01s) === RUN TestNewVPCBootstrapProvider_EdgeCases === RUN TestNewVPCBootstrapProvider_EdgeCases/All_nil_parameters === RUN TestNewVPCBootstrapProvider_EdgeCases/Only_client_provided === RUN TestNewVPCBootstrapProvider_EdgeCases/Kubernetes_clients_without_IBM_client --- PASS: TestNewVPCBootstrapProvider_EdgeCases (0.01s) --- PASS: TestNewVPCBootstrapProvider_EdgeCases/All_nil_parameters (0.00s) --- PASS: TestNewVPCBootstrapProvider_EdgeCases/Only_client_provided (0.00s) --- PASS: TestNewVPCBootstrapProvider_EdgeCases/Kubernetes_clients_without_IBM_client (0.01s) === RUN TestUserDataAppend --- PASS: TestUserDataAppend (0.00s) === RUN TestUserDataCompleteOverride --- PASS: TestUserDataCompleteOverride (0.00s) === RUN TestNoUserDataProvided --- PASS: TestNoUserDataProvided (0.00s) PASS ok github.com/kubernetes-sigs/karpenter-provider-ibm-cloud/pkg/providers/vpc/bootstrap 1.608s