Skip to content

Conversation

@adshmh
Copy link
Contributor

@adshmh adshmh commented Sep 18, 2018

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 [email protected]

- 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 <[email protected]>
@codecov-io
Copy link

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
Contributor Author

adshmh commented Sep 18, 2018

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

Copy link
Collaborator

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

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

LGTM 🐯

Copy link
Member

@thaJeztah thaJeztah left a comment

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:master Sep 19, 2018
@GordonTheTurtle GordonTheTurtle 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 <[email protected]>
Sign up for free to 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