Merge pull request #1271 from hj-johannes-lee/fix-typo-from-e2e

e2e: fix typos and minor grammar issues
This commit is contained in:
Mikko Ylinen 2022-12-14 09:23:09 +02:00 committed by GitHub
commit ee44c5c47e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 13 additions and 13 deletions

View File

@ -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)
}

View File

@ -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)
}

View File

@ -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")

View File

@ -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)
}

View File

@ -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)
})
}

View File

@ -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)
})
}

View File

@ -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)
}

View File

@ -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)
})
}