mirror of
https://github.com/intel/intel-device-plugins-for-kubernetes.git
synced 2025-06-03 03:59:37 +00:00
Merge pull request #1271 from hj-johannes-lee/fix-typo-from-e2e
e2e: fix typos and minor grammar issues
This commit is contained in:
commit
ee44c5c47e
@ -68,7 +68,7 @@ func describe() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for _, resource := range []v1.ResourceName{"dlb.intel.com/pf", "dlb.intel.com/vf"} {
|
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 {
|
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)
|
framework.Failf("unable to wait for nodes to have positive allocatable resource %s: %v", resource, err)
|
||||||
}
|
}
|
||||||
|
@ -80,7 +80,7 @@ func describe() {
|
|||||||
framework.Failf("container filesystem info checks failed: %v", err)
|
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 {
|
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)
|
framework.Failf("unable to wait for nodes to have positive allocatable resource: %v", err)
|
||||||
}
|
}
|
||||||
|
@ -70,7 +70,7 @@ func describe() {
|
|||||||
framework.Failf("container filesystem info checks failed: %v", err)
|
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 {
|
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)
|
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{})
|
pod, err := f.ClientSet.CoreV1().Pods(f.Namespace.Name).Create(context.TODO(), podSpec, metav1.CreateOptions{})
|
||||||
framework.ExpectNoError(err, "pod Create API error")
|
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)
|
e2epod.NewPodClient(f).WaitForSuccess(pod.ObjectMeta.Name, 60*time.Second)
|
||||||
|
|
||||||
ginkgo.By("checking log output")
|
ginkgo.By("checking log output")
|
||||||
|
@ -80,7 +80,7 @@ func describe() {
|
|||||||
framework.Failf("container filesystem info checks failed: %v", err)
|
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 {
|
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)
|
framework.Failf("unable to wait for nodes to have positive allocatable resource: %v", err)
|
||||||
}
|
}
|
||||||
|
@ -75,7 +75,7 @@ func describeQatDpdkPlugin() {
|
|||||||
framework.Failf("container filesystem info checks failed: %v", err)
|
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 {
|
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)
|
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")
|
ginkgo.By("submitting a crypto pod requesting QAT resources")
|
||||||
e2ekubectl.RunKubectlOrDie(f.Namespace.Name, "apply", "-k", filepath.Dir(cryptoTestYamlPath))
|
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)
|
e2epod.NewPodClient(f).WaitForSuccess("qat-dpdk-test-crypto-perf-tc1", 60*time.Second)
|
||||||
|
|
||||||
ginkgo.By("submitting a compress pod requesting QAT resources")
|
ginkgo.By("submitting a compress pod requesting QAT resources")
|
||||||
e2ekubectl.RunKubectlOrDie(f.Namespace.Name, "apply", "-k", filepath.Dir(compressTestYamlPath))
|
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)
|
e2epod.NewPodClient(f).WaitForSuccess("qat-dpdk-test-compress-perf-tc1", 60*time.Second)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -67,7 +67,7 @@ func describeQatKernelPlugin() {
|
|||||||
framework.Failf("container filesystem info checks failed: %v", err)
|
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 {
|
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)
|
framework.Failf("unable to wait for nodes to have positive allocatable resource: %v", err)
|
||||||
}
|
}
|
||||||
@ -95,7 +95,7 @@ func describeQatKernelPlugin() {
|
|||||||
podSpec, metav1.CreateOptions{})
|
podSpec, metav1.CreateOptions{})
|
||||||
framework.ExpectNoError(err, "pod Create API error")
|
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)
|
e2epod.NewPodClient(f).WaitForFinish(pod.ObjectMeta.Name, 60*time.Second)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -69,7 +69,7 @@ func describeQatPluginCy() {
|
|||||||
framework.Failf("container filesystem info checks failed: %v", err)
|
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 {
|
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)
|
framework.Failf("unable to wait for nodes to have positive allocatable resource: %v", err)
|
||||||
}
|
}
|
||||||
|
@ -77,7 +77,7 @@ func describe() {
|
|||||||
framework.Failf("container filesystem info checks failed: %v", err)
|
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 {
|
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)
|
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{})
|
pod, err := f.ClientSet.CoreV1().Pods(f.Namespace.Name).Create(context.TODO(), podSpec, metav1.CreateOptions{})
|
||||||
framework.ExpectNoError(err, "pod Create API error")
|
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)
|
e2epod.NewPodClient(f).WaitForSuccess(pod.ObjectMeta.Name, 60*time.Second)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user