Skip to content

Commit

Permalink
Add addition logging to kine test
Browse files Browse the repository at this point in the history
Signed-off-by: Brad Davidson <[email protected]>
  • Loading branch information
brandond committed Nov 6, 2024
1 parent f9daf8a commit 403c567
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tests/e2e/kine/kine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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())
Expand All @@ -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) {
Expand All @@ -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) {
Expand Down

0 comments on commit 403c567

Please sign in to comment.