Skip to content

Commit

Permalink
Fix e2e tests
Browse files Browse the repository at this point in the history
Signed-off-by: Neo2308 <[email protected]>
  • Loading branch information
Neo2308 committed Jul 16, 2024
1 parent 6b6c803 commit ceff0c7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import (
"os"
"path/filepath"

"github.com/operator-framework/operator-sdk/hack/generate/samples/internal/pkg"
log "github.com/sirupsen/logrus"
kbutil "sigs.k8s.io/kubebuilder/v3/pkg/plugin/util"

"github.com/operator-framework/operator-sdk/hack/generate/samples/internal/pkg"
)

// implementingE2ETests will add e2e test for the sample
Expand Down Expand Up @@ -302,7 +303,7 @@ var _ = Describe("memcached", Ordered, func() {
By("validating that pod(s) status.phase=Running")
getMemcachedPodStatus := func() error {
cmd = exec.Command("kubectl", "get",
"pods", "-l", "app.kubernetes.io/name=Memcached",
"pods", "-l", "app.kubernetes.io/name=memcached-operator",
"-o", "jsonpath={.items[*].status}", "-n", namespace,
)
status, err := utils.Run(cmd)
Expand Down Expand Up @@ -515,7 +516,7 @@ var _ = Describe("memcached", Ordered, func() {
By("validating that pod(s) status.phase=Running")
getMemcachedPodStatus := func() error {
cmd = exec.Command("kubectl", "get",
"pods", "-l", "app.kubernetes.io/name=Memcached",
"pods", "-l", "app.kubernetes.io/name=memcached-operator",
"-o", "jsonpath={.items[*].status}", "-n", namespace,
)
status, err := utils.Run(cmd)
Expand Down
2 changes: 1 addition & 1 deletion testdata/go/v4/memcached-operator/test/e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ var _ = Describe("memcached", Ordered, func() {
By("validating that pod(s) status.phase=Running")
getMemcachedPodStatus := func() error {
cmd = exec.Command("kubectl", "get",
"pods", "-l", "app.kubernetes.io/name=Memcached",
"pods", "-l", "app.kubernetes.io/name=memcached-operator",
"-o", "jsonpath={.items[*].status}", "-n", namespace,
)
status, err := utils.Run(cmd)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ var _ = Describe("memcached", Ordered, func() {
By("validating that pod(s) status.phase=Running")
getMemcachedPodStatus := func() error {
cmd = exec.Command("kubectl", "get",
"pods", "-l", "app.kubernetes.io/name=Memcached",
"pods", "-l", "app.kubernetes.io/name=memcached-operator",
"-o", "jsonpath={.items[*].status}", "-n", namespace,
)
status, err := utils.Run(cmd)
Expand Down

0 comments on commit ceff0c7

Please sign in to comment.