Skip to content

Conversation

@rabbah
Copy link
Member

@rabbah rabbah commented Jul 5, 2018

Shifts tests which are part of the system package (but slated for removal as part of #3737, #3840) to container unit tests which also checks that the runtimes provide a consistent handling of different capabilities and error scenarios.

Related issue and scope

My changes affect the following components

  • API
  • Controller
  • Message Bus (e.g., Kafka)
  • Loadbalancer
  • Invoker
  • Intrinsic actions (e.g., sequences, conductors)
  • Data stores (e.g., CouchDB)
  • Tests
  • Deployment
  • CLI
  • General tooling
  • Documentation

Types of changes

  • Bug fix (generally a non-breaking change which closes an issue).
  • Enhancement or new feature (adds new functionality).
  • Breaking change (a bug fix or enhancement which changes existing behavior).

Checklist:

  • I signed an Apache CLA.
  • I reviewed the style guides and followed the recommendations (Travis CI will check :).
  • I added tests to cover my changes.
  • My changes require further changes to the documentation.
  • I updated the documentation where necessary.

@rabbah rabbah added testing review Review for this PR has been requested and yet needs to be done. labels Jul 5, 2018
@rabbah rabbah requested a review from dgrove-oss July 5, 2018 19:31
Copy link
Member

@dgrove-oss dgrove-oss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

other than the question about checkResultInLogs, LGTM

* Runs tests for actions which receive an empty initializer (no source or exec).
* @param checkResultInLogs should be true iff the result of the action is expected to appear in stdout or stderr
*/
def testNoSourceOrExec(checkResultInLogs: Boolean = true) = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like checkResultInLogs is not used....should it be removed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated to remove the relevant code.

Copy link
Member

@dgrove-oss dgrove-oss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dgrove-oss dgrove-oss merged commit 3ab604c into apache:master Jul 5, 2018
@codecov-io
Copy link

codecov-io commented Jul 5, 2018

Codecov Report

Merging #3844 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3844   +/-   ##
=======================================
  Coverage   74.61%   74.61%           
=======================================
  Files         138      138           
  Lines        6461     6461           
  Branches      397      397           
=======================================
  Hits         4821     4821           
  Misses       1640     1640

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update eb05298...064a7a0. Read the comment docs.

BillZong pushed a commit to BillZong/openwhisk that referenced this pull request Nov 18, 2019
* Add test for empty initializer. Document other tests.

* Allow for a dot or dash in the action name.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review Review for this PR has been requested and yet needs to be done. testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants