Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unit tests for compositecache and stagebuilder #890

Conversation

cvgw
Copy link
Contributor

@cvgw cvgw commented Nov 27, 2019

Description

Add unit tests for compositecache and stagebuilder

  • add mock types for testing
  • enhance error messaging
  • add tests

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

  • Includes unit tests
  • Adds integration tests if needed.

See the contribution guide for more details.

Reviewer Notes

  • The code flow looks good.
  • Unit tests and or integration tests added.

Release Notes

@cvgw cvgw force-pushed the u/cvgw/compositecache-and-stagebuilder-unit-tests branch from 9473b46 to 33f3191 Compare November 28, 2019 05:47
@cvgw cvgw force-pushed the u/cvgw/compositecache-and-stagebuilder-unit-tests branch from fdf447e to 6d0c8da Compare November 28, 2019 16:42
@cvgw
Copy link
Contributor Author

cvgw commented Dec 2, 2019

Found a bug that is breaking multi-stage caching https://github.com/GoogleContainerTools/kaniko/pull/890/files#diff-2f088cb5c32c8e57a7f5f1d34aed16ceR755

We should fix this in a follow up PR

Issue #899

}
}

func Test_CompositeCache_AddPath_dir(t *testing.T) {
Copy link
Member

Choose a reason for hiding this comment

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

nice!

@tejal29 tejal29 merged commit 4105871 into GoogleContainerTools:master Dec 9, 2019
@cvgw cvgw deleted the u/cvgw/compositecache-and-stagebuilder-unit-tests branch December 9, 2019 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants