Skip to content

Commit

Permalink
test: restore e2e tests after updating modules (#1085)
Browse files Browse the repository at this point in the history
* test: restore e2e tests after updating modules

* fix: e2e test for kusion preview
  • Loading branch information
liu-hm19 committed Apr 30, 2024
1 parent 13098d0 commit aa40a87
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions test/e2e/kusionctl_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
package e2e

import (
"context"
"fmt"
"os"
"path/filepath"
"time"

"github.com/onsi/ginkgo/v2"
"github.com/onsi/gomega"
"k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/tools/clientcmd"
)

var _ = ginkgo.Describe("Kusion Configuration Commands", func() {
Expand All @@ -20,11 +28,9 @@ var _ = ginkgo.Describe("Kusion Configuration Commands", func() {
})

var _ = ginkgo.Describe("kusion Runtime Commands", func() {
// comment out before we have upgrade modules in the registry

/* ginkgo.It("kusion preview", func() {
ginkgo.It("kusion preview", func() {
path := filepath.Join(GetWorkDir(), "konfig", "example", "service-multi-stack", "dev")
_, err := ExecKusionWithWorkDir("kusion preview -d", path)
_, err := ExecKusionWithWorkDir("kusion preview -d=false", path)
gomega.Expect(err).ShouldNot(gomega.HaveOccurred())
})

Expand Down Expand Up @@ -64,7 +70,7 @@ var _ = ginkgo.Describe("kusion Runtime Commands", func() {
return errors.IsNotFound(err)
}, 300*time.Second, 5*time.Second).Should(gomega.Equal(true))
})
}) */
})
})

var _ = ginkgo.Describe("Kusion Other Commands", func() {
Expand Down

0 comments on commit aa40a87

Please sign in to comment.