fix circleci tests

Signed-off-by: Soujanya Mangipudi <somangip@microsoft.com>
pull/11322/head
Soujanya Mangipudi 3 years ago
parent 371e36c231
commit 26c83a2627

@ -17,21 +17,22 @@ limitations under the License.
package main package main
import ( import (
"bytes"
"fmt" "fmt"
"io" "io"
"log" "log"
"strings" "strings"
"time" "time"
"bytes"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"k8s.io/kubectl/pkg/cmd/get"
"helm.sh/helm/v3/cmd/helm/require" "helm.sh/helm/v3/cmd/helm/require"
"helm.sh/helm/v3/pkg/action" "helm.sh/helm/v3/pkg/action"
"helm.sh/helm/v3/pkg/chartutil" "helm.sh/helm/v3/pkg/chartutil"
"helm.sh/helm/v3/pkg/cli/output" "helm.sh/helm/v3/pkg/cli/output"
"helm.sh/helm/v3/pkg/release" "helm.sh/helm/v3/pkg/release"
"k8s.io/kubectl/pkg/cmd/get"
) )
// NOTE: Keep the list of statuses up-to-date with pkg/release/status.go. // NOTE: Keep the list of statuses up-to-date with pkg/release/status.go.
@ -149,7 +150,7 @@ func (s statusPrinter) WriteTable(out io.Writer) error {
fmt.Fprintf(buf, "failed to print object type %s: %v\n", t, err) fmt.Fprintf(buf, "failed to print object type %s: %v\n", t, err)
} }
} }
buf.WriteString("\n") buf.WriteString("\n")
} }

@ -20,10 +20,11 @@ import (
"testing" "testing"
"time" "time"
"k8s.io/apimachinery/pkg/runtime"
"helm.sh/helm/v3/pkg/chart" "helm.sh/helm/v3/pkg/chart"
"helm.sh/helm/v3/pkg/release" "helm.sh/helm/v3/pkg/release"
helmtime "helm.sh/helm/v3/pkg/time" helmtime "helm.sh/helm/v3/pkg/time"
"k8s.io/apimachinery/pkg/runtime"
) )
func TestStatusCmd(t *testing.T) { func TestStatusCmd(t *testing.T) {
@ -76,9 +77,9 @@ func TestStatusCmd(t *testing.T) {
rels: releasesMockWithStatus( rels: releasesMockWithStatus(
&release.Info{ &release.Info{
Resources: map[string][]runtime.Object{ Resources: map[string][]runtime.Object{
"test": []runtime.Object{}, "test": {},
}, },
Status: release.StatusDeployed, Status: release.StatusDeployed,
}, },
), ),
}, { }, {
@ -88,9 +89,9 @@ func TestStatusCmd(t *testing.T) {
rels: releasesMockWithStatus( rels: releasesMockWithStatus(
&release.Info{ &release.Info{
Resources: map[string][]runtime.Object{ Resources: map[string][]runtime.Object{
"test": []runtime.Object{}, "test": {},
}, },
Status: release.StatusDeployed, Status: release.StatusDeployed,
}, },
), ),
}, { }, {

@ -72,7 +72,7 @@ func (s *Status) Run(name string) (*release.Release, error) {
} }
rel.Info.Resources = resp rel.Info.Resources = resp
return rel, nil return rel, nil
} }
return nil, err return nil, err

@ -15,9 +15,10 @@ limitations under the License.
package release package release
import ( import (
"helm.sh/helm/v3/pkg/time"
"k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime"
"helm.sh/helm/v3/pkg/time"
) )
// Info describes release information. // Info describes release information.

Loading…
Cancel
Save