Skip to content

Commit

Permalink
[DO NOT MERGE] Code for debug
Browse files Browse the repository at this point in the history
  • Loading branch information
gansheer committed Nov 2, 2023
1 parent 59474f0 commit 364be0d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions e2e/install/kustomize/operator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ func TestOperatorBasic(t *testing.T) {
namespaceArg := fmt.Sprintf("NAMESPACE=%s", ns)
ExpectExecSucceed(t, Make("setup-cluster", namespaceArg))
ExpectExecSucceed(t, Make("setup", namespaceArg))
// TODO remove - temp
ExpectExecSucceed(t, Make("operator",
namespaceArg,
"INSTALL_DEFAULT_KAMELETS=false",
"DRY_RUN=true"))
// TODO remove - temp
// Skip default kamelets installation for faster test runs
ExpectExecSucceed(t, Make("operator",
namespaceArg,
Expand Down
6 changes: 4 additions & 2 deletions e2e/support/test_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ func ExpectExecSucceed(t *testing.T, command *exec.Cmd) {
if t.Failed() {
t.Logf("Output from exec command:\n%s\n", cmdOut.String())
t.Logf("Error from exec command:\n%s\n", cmdErr.String())
} else {
// TODO remove - temp
t.Logf("Output from successful exec command:\n%s\n", cmdOut.String())
// TODO remove - temp
}
}()

Expand All @@ -76,9 +80,7 @@ func ExpectExecSucceed(t *testing.T, command *exec.Cmd) {
assert.NotContains(t, strings.ToUpper(cmdErr.String()), "ERROR")
}

//
// Expect a command error with an exit code of 1
//
func ExpectExecError(t *testing.T, command *exec.Cmd) {
t.Helper()

Expand Down

0 comments on commit 364be0d

Please sign in to comment.