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

command: add tests for container kill, commit, and pause #5506

Merged
merged 1 commit into from
Oct 8, 2024

Commits on Oct 6, 2024

  1. command: add tests for container kill, commit, and pause

    This commit adds tests for the commands
    docker kill, docker commit, and docker
    pause. Also, it creates the mock methods
    of the docker client ContainerCommit and
    ContainerPause so they can
    be used in the tests.
    
    For docker kill, it covers the
    cases that:
     - the command runs successfully
     - the client returns an error
    
    For docker commit, it covers
    the cases that:
     - the command runs successfully
     - the client returns an error
    
    For docker pause, it covers
    the cases that:
     - the command runs successfully
     - the client returns an error
    
    Signed-off-by: Stavros Panakakis <[email protected]>
    Stavrospanakakis committed Oct 6, 2024
    Configuration menu
    Copy the full SHA
    442c386 View commit details
    Browse the repository at this point in the history