kubernetes/test/e2e_node
Patrick Ohly dfdf88d4fa e2e: adapt to moved code
This is the result of automatically editing source files like this:

    go install golang.org/x/tools/cmd/goimports@latest
    find ./test/e2e* -name "*.go" | xargs env PATH=$GOPATH/bin:$PATH ./e2e-framework-sed.sh

with e2e-framework-sed.sh containing this:

sed -i \
    -e "s/\(f\|fr\|\w\w*\.[fF]\w*\)\.ExecCommandInContainer(/e2epod.ExecCommandInContainer(\1, /" \
    -e "s/\(f\|fr\|\w\w*\.[fF]\w*\)\.ExecCommandInContainerWithFullOutput(/e2epod.ExecCommandInContainerWithFullOutput(\1, /" \
    -e "s/\(f\|fr\|\w\w*\.[fF]\w*\)\.ExecShellInContainer(/e2epod.ExecShellInContainer(\1, /" \
    -e "s/\(f\|fr\|\w\w*\.[fF]\w*\)\.ExecShellInPod(/e2epod.ExecShellInPod(\1, /" \
    -e "s/\(f\|fr\|\w\w*\.[fF]\w*\)\.ExecShellInPodWithFullOutput(/e2epod.ExecShellInPodWithFullOutput(\1, /" \
    -e "s/\(f\|fr\|\w\w*\.[fF]\w*\)\.ExecWithOptions(/e2epod.ExecWithOptions(\1, /" \
    -e "s/\(f\|fr\|\w\w*\.[fF]\w*\)\.MatchContainerOutput(/e2eoutput.MatchContainerOutput(\1, /" \
    -e "s/\(f\|fr\|\w\w*\.[fF]\w*\)\.PodClient(/e2epod.NewPodClient(\1, /" \
    -e "s/\(f\|fr\|\w\w*\.[fF]\w*\)\.PodClientNS(/e2epod.PodClientNS(\1, /" \
    -e "s/\(f\|fr\|\w\w*\.[fF]\w*\)\.TestContainerOutput(/e2eoutput.TestContainerOutput(\1, /" \
    -e "s/\(f\|fr\|\w\w*\.[fF]\w*\)\.TestContainerOutputRegexp(/e2eoutput.TestContainerOutputRegexp(\1, /" \
    -e "s/framework.AddOrUpdateLabelOnNode\b/e2enode.AddOrUpdateLabelOnNode/" \
    -e "s/framework.AllNodes\b/e2edebug.AllNodes/" \
    -e "s/framework.AllNodesReady\b/e2enode.AllNodesReady/" \
    -e "s/framework.ContainerResourceGatherer\b/e2edebug.ContainerResourceGatherer/" \
    -e "s/framework.ContainerResourceUsage\b/e2edebug.ContainerResourceUsage/" \
    -e "s/framework.CreateEmptyFileOnPod\b/e2eoutput.CreateEmptyFileOnPod/" \
    -e "s/framework.DefaultPodDeletionTimeout\b/e2epod.DefaultPodDeletionTimeout/" \
    -e "s/framework.DumpAllNamespaceInfo\b/e2edebug.DumpAllNamespaceInfo/" \
    -e "s/framework.DumpDebugInfo\b/e2eoutput.DumpDebugInfo/" \
    -e "s/framework.DumpNodeDebugInfo\b/e2edebug.DumpNodeDebugInfo/" \
    -e "s/framework.EtcdUpgrade\b/e2eproviders.EtcdUpgrade/" \
    -e "s/framework.EventsLister\b/e2edebug.EventsLister/" \
    -e "s/framework.ExecOptions\b/e2epod.ExecOptions/" \
    -e "s/framework.ExpectNodeHasLabel\b/e2enode.ExpectNodeHasLabel/" \
    -e "s/framework.ExpectNodeHasTaint\b/e2enode.ExpectNodeHasTaint/" \
    -e "s/framework.GCEUpgradeScript\b/e2eproviders.GCEUpgradeScript/" \
    -e "s/framework.ImagePrePullList\b/e2epod.ImagePrePullList/" \
    -e "s/framework.KubectlBuilder\b/e2ekubectl.KubectlBuilder/" \
    -e "s/framework.LocationParamGKE\b/e2eproviders.LocationParamGKE/" \
    -e "s/framework.LogSizeDataTimeseries\b/e2edebug.LogSizeDataTimeseries/" \
    -e "s/framework.LogSizeGatherer\b/e2edebug.LogSizeGatherer/" \
    -e "s/framework.LogsSizeData\b/e2edebug.LogsSizeData/" \
    -e "s/framework.LogsSizeDataSummary\b/e2edebug.LogsSizeDataSummary/" \
    -e "s/framework.LogsSizeVerifier\b/e2edebug.LogsSizeVerifier/" \
    -e "s/framework.LookForStringInLog\b/e2eoutput.LookForStringInLog/" \
    -e "s/framework.LookForStringInPodExec\b/e2eoutput.LookForStringInPodExec/" \
    -e "s/framework.LookForStringInPodExecToContainer\b/e2eoutput.LookForStringInPodExecToContainer/" \
    -e "s/framework.MasterAndDNSNodes\b/e2edebug.MasterAndDNSNodes/" \
    -e "s/framework.MasterNodes\b/e2edebug.MasterNodes/" \
    -e "s/framework.MasterUpgradeGKE\b/e2eproviders.MasterUpgradeGKE/" \
    -e "s/framework.NewKubectlCommand\b/e2ekubectl.NewKubectlCommand/" \
    -e "s/framework.NewLogsVerifier\b/e2edebug.NewLogsVerifier/" \
    -e "s/framework.NewNodeKiller\b/e2enode.NewNodeKiller/" \
    -e "s/framework.NewResourceUsageGatherer\b/e2edebug.NewResourceUsageGatherer/" \
    -e "s/framework.NodeHasTaint\b/e2enode.NodeHasTaint/" \
    -e "s/framework.NodeKiller\b/e2enode.NodeKiller/" \
    -e "s/framework.NodesSet\b/e2edebug.NodesSet/" \
    -e "s/framework.PodClient\b/e2epod.PodClient/" \
    -e "s/framework.RemoveLabelOffNode\b/e2enode.RemoveLabelOffNode/" \
    -e "s/framework.ResourceConstraint\b/e2edebug.ResourceConstraint/" \
    -e "s/framework.ResourceGathererOptions\b/e2edebug.ResourceGathererOptions/" \
    -e "s/framework.ResourceUsagePerContainer\b/e2edebug.ResourceUsagePerContainer/" \
    -e "s/framework.ResourceUsageSummary\b/e2edebug.ResourceUsageSummary/" \
    -e "s/framework.RunHostCmd\b/e2eoutput.RunHostCmd/" \
    -e "s/framework.RunHostCmdOrDie\b/e2eoutput.RunHostCmdOrDie/" \
    -e "s/framework.RunHostCmdWithFullOutput\b/e2eoutput.RunHostCmdWithFullOutput/" \
    -e "s/framework.RunHostCmdWithRetries\b/e2eoutput.RunHostCmdWithRetries/" \
    -e "s/framework.RunKubectl\b/e2ekubectl.RunKubectl/" \
    -e "s/framework.RunKubectlInput\b/e2ekubectl.RunKubectlInput/" \
    -e "s/framework.RunKubectlOrDie\b/e2ekubectl.RunKubectlOrDie/" \
    -e "s/framework.RunKubectlOrDieInput\b/e2ekubectl.RunKubectlOrDieInput/" \
    -e "s/framework.RunKubectlWithFullOutput\b/e2ekubectl.RunKubectlWithFullOutput/" \
    -e "s/framework.RunKubemciCmd\b/e2ekubectl.RunKubemciCmd/" \
    -e "s/framework.RunKubemciWithKubeconfig\b/e2ekubectl.RunKubemciWithKubeconfig/" \
    -e "s/framework.SingleContainerSummary\b/e2edebug.SingleContainerSummary/" \
    -e "s/framework.SingleLogSummary\b/e2edebug.SingleLogSummary/" \
    -e "s/framework.TimestampedSize\b/e2edebug.TimestampedSize/" \
    -e "s/framework.WaitForAllNodesSchedulable\b/e2enode.WaitForAllNodesSchedulable/" \
    -e "s/framework.WaitForSSHTunnels\b/e2enode.WaitForSSHTunnels/" \
    -e "s/framework.WorkItem\b/e2edebug.WorkItem/" \
    "$@"

for i in "$@"; do
    # Import all sub packages and let goimports figure out which of those
    # are redundant (= already imported) or not needed.
    sed -i -e '/"k8s.io.kubernetes.test.e2e.framework"/a e2edebug "k8s.io/kubernetes/test/e2e/framework/debug"' "$i"
    sed -i -e '/"k8s.io.kubernetes.test.e2e.framework"/a e2ekubectl "k8s.io/kubernetes/test/e2e/framework/kubectl"' "$i"
    sed -i -e '/"k8s.io.kubernetes.test.e2e.framework"/a e2enode "k8s.io/kubernetes/test/e2e/framework/node"' "$i"
    sed -i -e '/"k8s.io.kubernetes.test.e2e.framework"/a e2eoutput "k8s.io/kubernetes/test/e2e/framework/pod/output"' "$i"
    sed -i -e '/"k8s.io.kubernetes.test.e2e.framework"/a e2epod "k8s.io/kubernetes/test/e2e/framework/pod"' "$i"
    sed -i -e '/"k8s.io.kubernetes.test.e2e.framework"/a e2eproviders "k8s.io/kubernetes/test/e2e/framework/providers"' "$i"
    goimports -w "$i"
done
2022-10-06 08:19:47 +02:00
..
builder update ginkgo from v1 to v2 and gomega to 1.19.0 2022-07-08 10:44:46 +08:00
conformance stop using deprecated klog flags 2022-09-04 21:02:43 +02:00
environment Merge pull request #109753 from matthyx/109577 2022-05-13 07:33:49 -07:00
gcp update ginkgo from v1 to v2 and gomega to 1.19.0 2022-07-08 10:44:46 +08:00
jenkins Remove generated file rules in make 2022-10-04 08:50:30 -07:00
kubeletconfig io/ioutil has already been deprecated in golang 1.16, so replace all ioutil with io and os 2022-02-03 05:32:12 +08:00
perf/workloads Cleanup OWNERS files (No Activity in the last year) 2021-12-15 10:34:02 -05:00
perftype hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
plugins/gcp-credential-provider test/e2e_node/plugins/gcp-credential-provider: update Test_getCredentials to validate against v1beta1 kubelet APIs 2022-03-24 23:29:13 -04:00
remote stop using deprecated klog flags 2022-09-04 21:02:43 +02:00
runner stop using deprecated klog flags 2022-09-04 21:02:43 +02:00
services stop using deprecated klog flags 2022-09-04 21:02:43 +02:00
system hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
testing-manifests podresource: do not export NUMA topology if it's empty 2021-08-24 15:38:21 +00:00
apparmor_test.go e2e: adapt to moved code 2022-10-06 08:19:47 +02:00
benchmark_util.go e2e: adapt to moved code 2022-10-06 08:19:47 +02:00
checkpoint_container.go e2e: adapt to moved code 2022-10-06 08:19:47 +02:00
container_log_rotation_test.go e2e: adapt to moved code 2022-10-06 08:19:47 +02:00
container_manager_test.go e2e: adapt to moved code 2022-10-06 08:19:47 +02:00
cpu_manager_test.go e2e: adapt to moved code 2022-10-06 08:19:47 +02:00
critical_pod_test.go e2e: adapt to moved code 2022-10-06 08:19:47 +02:00
density_test.go e2e: adapt to moved code 2022-10-06 08:19:47 +02:00
device_manager_test.go e2e: adapt to moved code 2022-10-06 08:19:47 +02:00
device_plugin_test.go e2e: adapt to moved code 2022-10-06 08:19:47 +02:00
doc.go fix golint issues in test/e2e_node 2019-11-26 16:26:55 +08:00
e2e_node_suite_test.go e2e framework: eliminate interim sub packages 2022-10-06 08:16:47 +02:00
eviction_test.go e2e: adapt to moved code 2022-10-06 08:19:47 +02:00
framework.go update ginkgo from v1 to v2 and gomega to 1.19.0 2022-07-08 10:44:46 +08:00
garbage_collector_test.go e2e: adapt to moved code 2022-10-06 08:19:47 +02:00
gubernator.sh fix test/e2e_node/gubernator.sh shellcheck failures 2019-06-23 17:01:54 -07:00
hugepages_test.go e2e: adapt to moved code 2022-10-06 08:19:47 +02:00
image_credential_provider.go e2e: adapt to moved code 2022-10-06 08:19:47 +02:00
image_id_test.go e2e: adapt to moved code 2022-10-06 08:19:47 +02:00
image_list.go e2e: adapt to moved code 2022-10-06 08:19:47 +02:00
lock_contention_linux_test.go update ginkgo from v1 to v2 and gomega to 1.19.0 2022-07-08 10:44:46 +08:00
log_path_test.go e2e: adapt to moved code 2022-10-06 08:19:47 +02:00
memory_manager_test.go e2e: adapt to moved code 2022-10-06 08:19:47 +02:00
mirror_pod_grace_period_test.go update ginkgo from v1 to v2 and gomega to 1.19.0 2022-07-08 10:44:46 +08:00
mirror_pod_test.go update ginkgo from v1 to v2 and gomega to 1.19.0 2022-07-08 10:44:46 +08:00
node_container_manager_test.go update ginkgo from v1 to v2 and gomega to 1.19.0 2022-07-08 10:44:46 +08:00
node_perf_test.go e2e: adapt to moved code 2022-10-06 08:19:47 +02:00
node_problem_detector_linux.go e2e: adapt to moved code 2022-10-06 08:19:47 +02:00
node_shutdown_linux_test.go e2e: adapt to moved code 2022-10-06 08:19:47 +02:00
numa_alignment.go e2e: adapt to moved code 2022-10-06 08:19:47 +02:00
os_label_rename_test.go e2e: adapt to moved code 2022-10-06 08:19:47 +02:00
OWNERS sig-node: endocrimes as e2e_node approver 2022-04-20 17:12:09 +00:00
pids_test.go e2e: adapt to moved code 2022-10-06 08:19:47 +02:00
pod_conditions_test.go e2e: adapt to moved code 2022-10-06 08:19:47 +02:00
pod_hostnamefqdn_test.go e2e: adapt to moved code 2022-10-06 08:19:47 +02:00
podresources_test.go e2e: adapt to moved code 2022-10-06 08:19:47 +02:00
pods_container_manager_test.go e2e: adapt to moved code 2022-10-06 08:19:47 +02:00
quota_lsci_test.go LocalStorageCapacityIsolationFSQuotaMonitoring: feature gate typo in e2e node test 2022-09-22 10:06:48 +08:00
README.md Removed broken link to Analytics 2020-08-13 16:03:37 -04:00
resource_collector.go e2e: adapt to moved code 2022-10-06 08:19:47 +02:00
resource_metrics_test.go e2e: adapt to moved code 2022-10-06 08:19:47 +02:00
resource_usage_test.go e2e: adapt to moved code 2022-10-06 08:19:47 +02:00
restart_test.go e2e: adapt to moved code 2022-10-06 08:19:47 +02:00
runtime_conformance_test.go e2e: adapt to moved code 2022-10-06 08:19:47 +02:00
runtimeclass_test.go e2e: adapt to moved code 2022-10-06 08:19:47 +02:00
seccompdefault_test.go e2e: adapt to moved code 2022-10-06 08:19:47 +02:00
security_context_test.go e2e: adapt to moved code 2022-10-06 08:19:47 +02:00
summary_test.go e2e: adapt to moved code 2022-10-06 08:19:47 +02:00
system_node_critical_test.go e2e: adapt to moved code 2022-10-06 08:19:47 +02:00
topology_manager_test.go e2e: adapt to moved code 2022-10-06 08:19:47 +02:00
util_kubevirt.go podresource: do not export NUMA topology if it's empty 2021-08-24 15:38:21 +00:00
util_sriov_linux.go e2e: TM: add option to fail instead of skip 2021-09-13 13:23:36 +02:00
util_sriov_unsupported.go e2e: TM: add option to fail instead of skip 2021-09-13 13:23:36 +02:00
util_sriov.go e2e: TM: add option to fail instead of skip 2021-09-13 13:23:36 +02:00
util_xfs_linux.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
util_xfs_unsupported.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
util.go Support otel tracing in cri remote image service 2022-09-29 22:15:07 +00:00
utils_linux.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
utils_unsupported.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
volume_manager_test.go e2e: adapt to moved code 2022-10-06 08:19:47 +02:00