From 403c56702edb95183ba5f50a037eb097a269c5fb Mon Sep 17 00:00:00 2001 From: Brad Davidson Date: Wed, 6 Nov 2024 22:19:01 +0000 Subject: [PATCH] Add addition logging to kine test Signed-off-by: Brad Davidson --- tests/e2e/kine/kine_test.go | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/e2e/kine/kine_test.go b/tests/e2e/kine/kine_test.go index 5c9df9b98d1..ab22f47cccd 100644 --- a/tests/e2e/kine/kine_test.go +++ b/tests/e2e/kine/kine_test.go @@ -138,7 +138,8 @@ var _ = Describe("Verify Basic Cluster Creation with Kine", Ordered, func() { }) It("Verifies Ingress", func() { - _, err := e2e.DeployWorkload("ingress.yaml", kubeConfigFile) + res, err := e2e.DeployWorkload("ingress.yaml", kubeConfigFile) + By("Checking command results: " + res) Expect(err).NotTo(HaveOccurred()) for _, nodeName := range serverNodeNames { ip, _ := e2e.FetchNodeExternalIP(nodeName) @@ -150,7 +151,8 @@ var _ = Describe("Verify Basic Cluster Creation with Kine", Ordered, func() { }) It("Verifies Daemonset", func() { - _, err := e2e.DeployWorkload("daemonset.yaml", kubeConfigFile) + res, err := e2e.DeployWorkload("daemonset.yaml", kubeConfigFile) + By("Checking command results: " + res) Expect(err).NotTo(HaveOccurred()) nodes, err := e2e.ParseNodes(kubeConfigFile, false) Expect(err).NotTo(HaveOccurred()) @@ -164,7 +166,8 @@ var _ = Describe("Verify Basic Cluster Creation with Kine", Ordered, func() { }) It("Verifies dns access", func() { - _, err := e2e.DeployWorkload("dnsutils.yaml", kubeConfigFile) + res, err := e2e.DeployWorkload("dnsutils.yaml", kubeConfigFile) + By("Checking command results: " + res) Expect(err).NotTo(HaveOccurred()) cmd := "kubectl --kubeconfig=" + kubeConfigFile + " exec -i -t dnsutils -- nslookup kubernetes.default" Eventually(func() (string, error) { @@ -173,7 +176,8 @@ var _ = Describe("Verify Basic Cluster Creation with Kine", Ordered, func() { }) It("Verify Local Path Provisioner storage ", func() { - _, err := e2e.DeployWorkload("local-path-provisioner.yaml", kubeConfigFile) + res, err := e2e.DeployWorkload("local-path-provisioner.yaml", kubeConfigFile) + By("Checking command results: " + res) Expect(err).NotTo(HaveOccurred()) Eventually(func() (string, error) {