This is an automated email from the ASF dual-hosted git repository.

zhongxjian pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-kubernetes.git


The following commit(s) were added to refs/heads/master by this push:
     new a4db2f70 [dubboctl] fix errors imports
a4db2f70 is described below

commit a4db2f7087816fc3010a4b0e9755d6964eef4297
Author: mfordjody <[email protected]>
AuthorDate: Tue Oct 29 21:35:39 2024 +0800

    [dubboctl] fix errors imports
---
 dubboctl/cmd/manifest_test.go | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/dubboctl/cmd/manifest_test.go b/dubboctl/cmd/manifest_test.go
index 66aee228..5eb66deb 100644
--- a/dubboctl/cmd/manifest_test.go
+++ b/dubboctl/cmd/manifest_test.go
@@ -17,8 +17,8 @@ package cmd
 
 import (
        "bytes"
-       "github.com/apache/dubbo-kubernetes/dubboctl/pkg/manifest"
        "os"
+       "sigs.k8s.io/controller-runtime/pkg/client"
        "strings"
        "testing"
 )
@@ -27,6 +27,12 @@ import (
        "sigs.k8s.io/controller-runtime/pkg/client/fake"
 )
 
+var (
+       // TestInstallFlag and TestCli are uses for black box testing
+       TestInstallFlag bool
+       TestCli         client.Client
+)
+
 func TestManifestGenerate(t *testing.T) {
        tests := []struct {
                desc    string
@@ -96,8 +102,8 @@ func TestManifestInstall(t *testing.T) {
                },
        }
        // For now, we do not use envTest to do black box testing
-       manifest.TestInstallFlag = true
-       manifest.TestCli = fake.NewClientBuilder().Build()
+       TestInstallFlag = true
+       TestCli = fake.NewClientBuilder().Build()
 
        for _, test := range tests {
                t.Run(test.desc, func(t *testing.T) {
@@ -121,8 +127,8 @@ func TestManifestUninstall(t *testing.T) {
                },
        }
        // For now, we do not use envTest to do black box testing
-       manifest.TestInstallFlag = true
-       manifest.TestCli = fake.NewClientBuilder().Build()
+       TestInstallFlag = true
+       TestCli = fake.NewClientBuilder().Build()
 
        for _, test := range tests {
                t.Run(test.desc, func(t *testing.T) {

Reply via email to