apache / apache/openwhisk-cli

wsk activation get <id> --last is buggy

Open
#322 1 comment 1 reaction 0 assignees View on GitHub
bug good first issue help wanted
Dominant language
Go
Stars
109
Forks
98
PR merge metrics
No merged PRs in 30d

Description

This test is a false positive, and will need a unit go test to properly test this:

https://github.com/apache/incubator-openwhisk-cli/blob/ed795ede797e3730669cdaa2453be96e5f5e7d0b/tests/src/test/scala/system/basic/WskCliBasicTests.scala#L973

The test succeeds only because there are activations in the database. Try it on an empty database:

```
> wsk -i activation get x --last
error: Unable to get activation: Activation list does not contain any activations.
Run 'wsk --help' for usage.
```

the parameter validation is wrong and it goes on to query the API for the activations, which should not happen.

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.