Add tests for preupgradchecks and spec/archive CLI (#2874)
* Add tests for preupgradchecks * Add spec tests * Add package archive tests * Wait for cleanup * Fix test and coverage --------- Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"bytes"
|
||||
"context"
|
||||
|
||||
"go.uber.org/zap"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
|
||||
"github.com/fission/fission/cmd/fission-cli/app"
|
||||
@@ -12,6 +13,7 @@ import (
|
||||
)
|
||||
|
||||
func ExecCommand(f *framework.Framework, ctx context.Context, args ...string) (string, error) {
|
||||
f.Logger().Info("Executing command", zap.Strings("args", args))
|
||||
cmd := app.App(cmd.ClientOptions{
|
||||
RestConfig: f.RestConfig(),
|
||||
Namespace: metav1.NamespaceDefault,
|
||||
|
||||
Reference in New Issue
Block a user