Skip to content

add a unit test to cover container export command output file option - #1377

Merged
thaJeztah merged 1 commit into
docker:masterfrom
adshmh:migrate-TestExportContainerWithOutputAndImportImage-from-moby
Sep 19, 2018
Merged

add a unit test to cover container export command output file option#1377
thaJeztah merged 1 commit into
docker:masterfrom
adshmh:migrate-TestExportContainerWithOutputAndImportImage-from-moby

Conversation

@adshmh

Copy link
Copy Markdown
Contributor

Adding a unit test to cover the output file option of the export command. If merged, this allows the removal of the redundant integration test TestExportContainerWithOutputAndImportImage from moby, which is the same as TestExportContainerAndImportImage, except for the output file option:

https://github.com/moby/moby/blob/d6a7c22f7b9aa028623ef8c7cb31d1bb04dd9d84/integration-cli/docker_cli_export_import_test.go#L12-L17

Signed-off-by: Arash Deshmeh adeshmeh@ca.ibm.com

- What I did
Added a unit test to cover the output file option of the export command

- How I did it
Added new test file cli/command/container/export_test.go

- How to verify it

- Description for the changelog
Added unit test for output to file option of the export command.

- A picture of a cute animal (not mandatory but encouraged)

…om moby/moby to docker/cli.
The integration test TestExportContainerWithOutputAndImportImage in moby/moby is the same as TestExportContainerAndImportImage,
except for the output file option. Adding a unit test to cover the output file option of the export command here allows
the removal of the redundant integration test TestExportContainerWithOutputAndImportImage.
Signed-off-by: Arash Deshmeh <adeshmeh@ca.ibm.com>
@codecov-io

Copy link
Copy Markdown

Codecov Report

Merging #1377 into master will increase coverage by 0.09%.
The diff coverage is n/a.

@@ Coverage Diff @@## master #1377 +/- ##
==========================================
+ Coverage 54.79% 54.88% +0.09% 
==========================================
Files 293 293 Lines 19428 19428 ==========================================
+ Hits 10645 10663 +18 + Misses 8110 8089 -21 - Partials 673 676 +3

@adshmh

Copy link
Copy Markdown
ContributorAuthor

If this PR gets approved, I can submit a PR on moby to remove the redundant integration test.

@vdemeestervdemeester left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM 🐯

@thaJeztahthaJeztah left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@thaJeztah
thaJeztah merged commit 3993346 into docker:masterSep 19, 2018
@GordonTheTurtleGordonTheTurtle added this to the 19.03.0 milestone Sep 19, 2018
lifubang pushed a commit to lifubang/cli that referenced this pull request Oct 15, 2018
…rWithOutputAndImportImage-from-moby
add a unit test to cover container export command output file option
Signed-off-by: Lifubang <lifubang@acmcoder.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@adshmh@codecov-io@vdemeester@thaJeztah@GordonTheTurtle