apache / apache/openwhisk-cli

Use `assetHelper.withCleaner` Within `ApiGwCliBasicTests.scala` Tests

Open
#368 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
109
Forks
98
PR merge metrics
No merged PRs in 30d

Description

The tests within `incubator-openwhisk-cli/tests/src/test/scala/whisk/core/cli/testApiGwCliBasicTests.scala` tend to not use the `assetHelper` for several action/api tests. Instead, the action and/or api is cleaned up explicitly in each test's `finally` block via `action.delete`. This should be improved to use the `assetHelper` for more concise test code.

The other tests within this repo tend to use this `assetHelper` appropriately, but they all could use a look to make sure the usage is aligned.

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.