Skip to content

Commit

Permalink
Fix plugin_functionality_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anujc25 committed Jan 4, 2025
1 parent 50e9a58 commit 49daa62
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,16 @@ var _ = framework.CLICoreDescribe("[Tests:Sample-Plugin-E2E][Feature:plugin-spec
It("create context with kubeconfig and context", func() {
By("create context with kubeconfig and context")
contextName = "k8s-context-" + framework.RandomString(4)
_, _, err := tf.ContextCmd.CreateContextWithKubeconfig(contextName, clusterInfo.KubeConfigPath, clusterInfo.ClusterKubeContext)
err := tf.ContextCmd.CreateContextWithKubeconfig(contextName, clusterInfo.KubeConfigPath, clusterInfo.ClusterKubeContext)
Expect(err).To(BeNil(), "context should create without any error")
log.Infof("context: %s added", contextName)
Expect(framework.IsContextExists(tf, contextName)).To(BeTrue(), fmt.Sprintf(framework.ContextShouldExistsAsCreated, contextName))
})
It("delete context and KIND cluster", func() {
_, _, err := tf.ContextCmd.DeleteContext(contextName)
err := tf.ContextCmd.DeleteContext(contextName)
Expect(err).To(BeNil(), "context should be deleted without any error")

_, _, err = tf.KindCluster.DeleteCluster(clusterInfo.Name)
_, err = tf.KindCluster.DeleteCluster(clusterInfo.Name)
Expect(err).To(BeNil(), "kind cluster should be deleted without any error")
})
})
Expand Down

0 comments on commit 49daa62

Please sign in to comment.