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
import (
"bytes"
"fmt"
"io"
"log"
"strings"
"time"
"bytes"
"github.com/spf13/cobra"
"k8s.io/kubectl/pkg/cmd/get"
"helm.sh/helm/v3/cmd/helm/require"
"helm.sh/helm/v3/pkg/action"
"helm.sh/helm/v3/pkg/chartutil"
"helm.sh/helm/v3/pkg/cli/output"
"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.
@ -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)
}
}
buf.WriteString("\n")
}

@ -20,10 +20,11 @@ import (
"testing"
"time"
"k8s.io/apimachinery/pkg/runtime"
"helm.sh/helm/v3/pkg/chart"
"helm.sh/helm/v3/pkg/release"
helmtime "helm.sh/helm/v3/pkg/time"
"k8s.io/apimachinery/pkg/runtime"
)
func TestStatusCmd(t *testing.T) {
@ -76,9 +77,9 @@ func TestStatusCmd(t *testing.T) {
rels: releasesMockWithStatus(
&release.Info{
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(
&release.Info{
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
return rel, nil
}
return nil, err

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

Loading…
Cancel
Save