diff --git a/e2e/capture_test.go b/e2e/capture_test.go index 4bd2e25c..dbf02526 100644 --- a/e2e/capture_test.go +++ b/e2e/capture_test.go @@ -55,10 +55,13 @@ func TestFlowCapture(t *testing.T) { // TODO: find a way to avoid error here; this is probably related to SIGTERM instead of CTRL + C call //assert.Nil(t, err) + // print output to cmd + str := string(output) + fmt.Println(str) + err = os.WriteFile(path.Join("output", startupDate+"-flowOutput"), output, 0666) assert.Nil(t, err) - str := string(output) assert.NotEmpty(t, str) // ensure script setup is fine assert.Contains(t, str, "namespace/netobserv-cli created") @@ -127,10 +130,13 @@ func TestPacketCapture(t *testing.T) { // TODO: find a way to avoid error here; this is probably related to SIGTERM instead of CTRL + C call //assert.Nil(t, err) + // print output to cmd + str := string(output) + fmt.Println(str) + err = os.WriteFile(path.Join("output", startupDate+"-packetOutput"), output, 0666) assert.Nil(t, err) - str := string(output) assert.NotEmpty(t, str) // ensure script setup is fine assert.Contains(t, str, "namespace/netobserv-cli created") @@ -191,6 +197,7 @@ func runCommand(commandName string, arg ...string) ([]byte, error) { log.Print("Opening tty...") t, err := tty.Open() if err != nil { + klog.WithField("err", err).Info("can't open tty") return nil, err } defer t.Close() diff --git a/e2e/cluster/kind.go b/e2e/cluster/kind.go index 18f5868d..751fbaa7 100644 --- a/e2e/cluster/kind.go +++ b/e2e/cluster/kind.go @@ -96,7 +96,7 @@ func (k *Kind) deleteNamespace() env.Func { return func(ctx context.Context, config *envconf.Config) (context.Context, error) { exe := gexe.New() out := exe.Run("kubectl delete namespace netobserv-cli") - klog.WithField("out", out).Debug("deleted namespace") + klog.WithField("out", out).Info("deleted namespace") return ctx, nil } }