apache / apache/openwhisk-wskdeploy

Add error reporting back - integration test

Open
#697 0 comments 0 reactions 0 assignees View on GitHub
bug priority: low
Dominant language
Go
Stars
75
Forks
73
PR merge metrics
No merged PRs in 30d

Description

I am trying to run integration test locally with `go test -v ./... -tags integration` which just failed with random error without any explicit error message:

```
==> Executing: wskdeploy -m /Users/pritidesai/Documents/goworkspace/src/github.com/apache/incubator-openwhisk-wskdeploy/tests/src/integration/webaction/manifest.yml -d
==> Error: wskdeploy.go [125]: [ERROR_COMMAND_FAILED]: Command: [wskdeploy]:
.
==> Executing: wskdeploy undeploy -m /Users/pritidesai/Documents/goworkspace/src/github.com/apache/incubator-openwhisk-wskdeploy/tests/src/integration/webaction/manifest.yml -d
==> Error: wskdeploy.go [125]: [ERROR_COMMAND_FAILED]: Command: [wskdeploy]:
.
--- FAIL: TestWebAction (0.00s)
Error Trace: webaction_test.go:36
Error: Not equal:
expected: ()
actual: *wskderrors.CommandError(&wskderrors.CommandError{WskDeployBaseErr:wskderrors.WskDeployBaseErr{ErrorType:"ERROR_COMMAND_FAILED", FileName:"wskdeploy.go", LineNum:125, Message:"Command: [wskdeploy]: ", MessageFormat:"%s: [%s]: %s"}, Command:"wskdeploy"})
Messages: Failed to deploy based on the manifest file.
Error Trace: webaction_test.go:38
Error: Not equal:
expected: ()
actual: *wskderrors.CommandError(&wskderrors.CommandError{WskDeployBaseErr:wskderrors.WskDeployBaseErr{ErrorType:"ERROR_COMMAND_FAILED", FileName:"wskdeploy.go", LineNum:125, Message:"Command: [wskdeploy]: ", MessageFormat:"%s: [%s]: %s"}, Command:"wskdeploy"})
Messages: Failed to undeploy based on the manifest file.
FAIL
FAIL github.com/apache/incubator-openwhisk-wskdeploy/tests/src/integration/webaction 0.060s
```

Here I know why my integration tests are failing, the reason is its missing `wskdeploy` binary from PATH, earlier the same command used to produce informative error saying `unable to find wskdeploy bin`.

This is a bug with low priority.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.