From 838bc39bc7723a68004b5e08af7aed396deea0dc Mon Sep 17 00:00:00 2001 From: Hyeongju Johannes Lee Date: Tue, 13 Dec 2022 11:16:05 +0200 Subject: [PATCH] e2e: fix typos and minor grammar issues finnish -> finish check -> check if Signed-off-by: Hyeongju Johannes Lee --- test/e2e/dlb/dlb.go | 2 +- test/e2e/dsa/dsa.go | 2 +- test/e2e/gpu/gpu.go | 4 ++-- test/e2e/iaa/iaa.go | 2 +- test/e2e/qat/qatplugin_dpdk.go | 6 +++--- test/e2e/qat/qatplugin_kernel.go | 4 ++-- test/e2e/qat/qatplugin_qatgen4_crypto.go | 2 +- test/e2e/sgx/sgx.go | 4 ++-- 8 files changed, 13 insertions(+), 13 deletions(-) diff --git a/test/e2e/dlb/dlb.go b/test/e2e/dlb/dlb.go index 50dff1e8..baae463f 100644 --- a/test/e2e/dlb/dlb.go +++ b/test/e2e/dlb/dlb.go @@ -68,7 +68,7 @@ func describe() { } for _, resource := range []v1.ResourceName{"dlb.intel.com/pf", "dlb.intel.com/vf"} { - ginkgo.By("checking the " + resource.String() + " resource is allocatable") + ginkgo.By("checking if the " + resource.String() + " resource is allocatable") if err = utils.WaitForNodesWithResource(f.ClientSet, resource, 30*time.Second); err != nil { framework.Failf("unable to wait for nodes to have positive allocatable resource %s: %v", resource, err) } diff --git a/test/e2e/dsa/dsa.go b/test/e2e/dsa/dsa.go index d20439f0..5c3623d0 100644 --- a/test/e2e/dsa/dsa.go +++ b/test/e2e/dsa/dsa.go @@ -80,7 +80,7 @@ func describe() { framework.Failf("container filesystem info checks failed: %v", err) } - ginkgo.By("checking the resource is allocatable") + ginkgo.By("checking if the resource is allocatable") if err = utils.WaitForNodesWithResource(f.ClientSet, "dsa.intel.com/wq-user-dedicated", 300*time.Second); err != nil { framework.Failf("unable to wait for nodes to have positive allocatable resource: %v", err) } diff --git a/test/e2e/gpu/gpu.go b/test/e2e/gpu/gpu.go index 60ceb809..f80b8273 100644 --- a/test/e2e/gpu/gpu.go +++ b/test/e2e/gpu/gpu.go @@ -70,7 +70,7 @@ func describe() { framework.Failf("container filesystem info checks failed: %v", err) } - ginkgo.By("checking the resource is allocatable") + ginkgo.By("checking if the resource is allocatable") if err = utils.WaitForNodesWithResource(f.ClientSet, "gpu.intel.com/i915", 30*time.Second); err != nil { framework.Failf("unable to wait for nodes to have positive allocatable resource: %v", err) } @@ -97,7 +97,7 @@ func describe() { pod, err := f.ClientSet.CoreV1().Pods(f.Namespace.Name).Create(context.TODO(), podSpec, metav1.CreateOptions{}) framework.ExpectNoError(err, "pod Create API error") - ginkgo.By("waiting the pod to finnish successfully") + ginkgo.By("waiting the pod to finish successfully") e2epod.NewPodClient(f).WaitForSuccess(pod.ObjectMeta.Name, 60*time.Second) ginkgo.By("checking log output") diff --git a/test/e2e/iaa/iaa.go b/test/e2e/iaa/iaa.go index 2ae50e1f..1c28298e 100644 --- a/test/e2e/iaa/iaa.go +++ b/test/e2e/iaa/iaa.go @@ -80,7 +80,7 @@ func describe() { framework.Failf("container filesystem info checks failed: %v", err) } - ginkgo.By("checking the resource is allocatable") + ginkgo.By("checking if the resource is allocatable") if err = utils.WaitForNodesWithResource(f.ClientSet, "iaa.intel.com/wq-user-dedicated", 300*time.Second); err != nil { framework.Failf("unable to wait for nodes to have positive allocatable resource: %v", err) } diff --git a/test/e2e/qat/qatplugin_dpdk.go b/test/e2e/qat/qatplugin_dpdk.go index b578031a..1be227f4 100644 --- a/test/e2e/qat/qatplugin_dpdk.go +++ b/test/e2e/qat/qatplugin_dpdk.go @@ -75,7 +75,7 @@ func describeQatDpdkPlugin() { framework.Failf("container filesystem info checks failed: %v", err) } - ginkgo.By("checking the resource is allocatable") + ginkgo.By("checking if the resource is allocatable") if err := utils.WaitForNodesWithResource(f.ClientSet, "qat.intel.com/generic", 30*time.Second); err != nil { framework.Failf("unable to wait for nodes to have positive allocatable resource: %v", err) } @@ -83,13 +83,13 @@ func describeQatDpdkPlugin() { ginkgo.By("submitting a crypto pod requesting QAT resources") e2ekubectl.RunKubectlOrDie(f.Namespace.Name, "apply", "-k", filepath.Dir(cryptoTestYamlPath)) - ginkgo.By("waiting the crypto pod to finnish successfully") + ginkgo.By("waiting the crypto pod to finish successfully") e2epod.NewPodClient(f).WaitForSuccess("qat-dpdk-test-crypto-perf-tc1", 60*time.Second) ginkgo.By("submitting a compress pod requesting QAT resources") e2ekubectl.RunKubectlOrDie(f.Namespace.Name, "apply", "-k", filepath.Dir(compressTestYamlPath)) - ginkgo.By("waiting the compress pod to finnish successfully") + ginkgo.By("waiting the compress pod to finish successfully") e2epod.NewPodClient(f).WaitForSuccess("qat-dpdk-test-compress-perf-tc1", 60*time.Second) }) } diff --git a/test/e2e/qat/qatplugin_kernel.go b/test/e2e/qat/qatplugin_kernel.go index c63ae832..b1af6c82 100644 --- a/test/e2e/qat/qatplugin_kernel.go +++ b/test/e2e/qat/qatplugin_kernel.go @@ -67,7 +67,7 @@ func describeQatKernelPlugin() { framework.Failf("container filesystem info checks failed: %v", err) } - ginkgo.By("checking the resource is allocatable") + ginkgo.By("checking if the resource is allocatable") if err = utils.WaitForNodesWithResource(f.ClientSet, "qat.intel.com/cy1_dc0", 30*time.Second); err != nil { framework.Failf("unable to wait for nodes to have positive allocatable resource: %v", err) } @@ -95,7 +95,7 @@ func describeQatKernelPlugin() { podSpec, metav1.CreateOptions{}) framework.ExpectNoError(err, "pod Create API error") - ginkgo.By("waiting the pod to finnish successfully") + ginkgo.By("waiting the pod to finish successfully") e2epod.NewPodClient(f).WaitForFinish(pod.ObjectMeta.Name, 60*time.Second) }) } diff --git a/test/e2e/qat/qatplugin_qatgen4_crypto.go b/test/e2e/qat/qatplugin_qatgen4_crypto.go index ee3a6bc4..0d60a839 100644 --- a/test/e2e/qat/qatplugin_qatgen4_crypto.go +++ b/test/e2e/qat/qatplugin_qatgen4_crypto.go @@ -69,7 +69,7 @@ func describeQatPluginCy() { framework.Failf("container filesystem info checks failed: %v", err) } - ginkgo.By("checking the resource is allocatable") + ginkgo.By("checking if the resource is allocatable") if err := utils.WaitForNodesWithResource(f.ClientSet, "qat.intel.com/cy", 30*time.Second); err != nil { framework.Failf("unable to wait for nodes to have positive allocatable resource: %v", err) } diff --git a/test/e2e/sgx/sgx.go b/test/e2e/sgx/sgx.go index 5768faa7..785da799 100644 --- a/test/e2e/sgx/sgx.go +++ b/test/e2e/sgx/sgx.go @@ -77,7 +77,7 @@ func describe() { framework.Failf("container filesystem info checks failed: %v", err) } - ginkgo.By("checking the resource is allocatable") + ginkgo.By("checking if the resource is allocatable") if err = utils.WaitForNodesWithResource(f.ClientSet, "sgx.intel.com/epc", 150*time.Second); err != nil { framework.Failf("unable to wait for nodes to have positive allocatable epc resource: %v", err) } @@ -110,7 +110,7 @@ func describe() { pod, err := f.ClientSet.CoreV1().Pods(f.Namespace.Name).Create(context.TODO(), podSpec, metav1.CreateOptions{}) framework.ExpectNoError(err, "pod Create API error") - ginkgo.By("waiting the pod to finnish successfully") + ginkgo.By("waiting the pod to finish successfully") e2epod.NewPodClient(f).WaitForSuccess(pod.ObjectMeta.Name, 60*time.Second) }) }