Skip to content

Commit

Permalink
change
Browse files Browse the repository at this point in the history
  • Loading branch information
Chandra Pamuluri committed Mar 31, 2023
1 parent 7bf73d1 commit ada70e1
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/e2e/context/context_k8s_lifecycle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@ const ContextNameConfigPrefix = "context-config-k8s-"
// Test suite tests the context life cycle use cases for the k8s target
var _ = framework.CLICoreDescribe("[Tests:E2E][Feature:Context-lifecycle-k8s]", func() {
Context("Context lifecycle tests for k8s target", func() {
// Test case: delete config files and initialize config
It("should initialize configuration successfully", func() {
// delete config files
err := tf.Config.DeleteCLIConfigurationFiles()
Expect(err).To(BeNil())
// call init
err = tf.Config.ConfigInit()
Expect(err).To(BeNil())
// should create config files
Expect(tf.Config.IsCLIConfigurationFilesExists()).To(BeTrue())
})
// Test case: list and delete context's if any exists already, before running test cases.
It("list and delete contexts if any exists already", func() {
By("list and delete contexts if any exists already before running test cases")
Expand Down
11 changes: 11 additions & 0 deletions test/e2e/context/tmc/context_tmc_lifecycle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,17 @@ var _ = framework.CLICoreDescribe("[Tests:E2E][Feature:Context-lifecycle-tmc]",
contextNames = make([]string, 0)
})
Context("Context lifecycle tests for TMC target", func() {
// Test case: delete config files and initialize config
It("should initialize configuration successfully", func() {
// delete config files
err := tf.Config.DeleteCLIConfigurationFiles()
Expect(err).To(BeNil())
// call init
err = tf.Config.ConfigInit()
Expect(err).To(BeNil())
// should create config files
Expect(tf.Config.IsCLIConfigurationFilesExists()).To(BeTrue())
})
// Test case: list and delete context's if any exists
It("delete context command", func() {
list, err := tf.ContextCmd.ListContext()
Expand Down

0 comments on commit ada70e1

Please sign in to comment.