Skip to content

[specific ci=1-11-Docker-RM] Force remove container in 1-11-Docker-RM test#6708

Merged
anchal-agrawal merged 1 commit intovmware:masterfrom
anchal-agrawal:6262-test-update
Nov 8, 2017
Merged

[specific ci=1-11-Docker-RM] Force remove container in 1-11-Docker-RM test#6708
anchal-agrawal merged 1 commit intovmware:masterfrom
anchal-agrawal:6262-test-update

Conversation

@anchal-agrawal
Copy link
Contributor

This commit makes the 'Remove a container and its anonymous volume'
test case more robust by force-removing the container that runs the
/bin/ls command, since it's possible for the container to not have
powered off fully and the container state to not have updated to
'Stopped' before the remove command is issued in the test.

Before this change, it was possible for the test to fail if the
container state wasn't updated on time. This was seen in CI build
14551 for PR #6665.

Since that test snippet's intent (verify that the anonymous volume
can be used by a new container) is unaffected by how the container
is removed, this change is valid.

Enhances #6262

Copy link
Contributor

@mhagen-vmware mhagen-vmware left a comment

Choose a reason for hiding this comment

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

lgtm

This commit makes the 'Remove a container and its anonymous volume'
test case more robust by force-removing the container that runs the
/bin/ls command, since it's possible for the container to not have
powered off fully and the container state to not have updated to
'Stopped' before the remove command is issued in the test.

Before this change, it was possible for the test to fail if the
container state wasn't updated on time. This was seen in CI build
14551 for PR vmware#6665.

Since that test snippet's intent (verify that the anonymous volume
can be used by a new container) is unaffected by how the container
is removed, this change is valid.

Enhances vmware#6262
@anchal-agrawal anchal-agrawal removed the request for review from matthewavery November 8, 2017 16:44
@anchal-agrawal anchal-agrawal merged commit 8467a20 into vmware:master Nov 8, 2017
AngieCris pushed a commit to AngieCris/vic that referenced this pull request Nov 20, 2017
This commit makes the 'Remove a container and its anonymous volume'
test case more robust by force-removing the container that runs the
/bin/ls command, since it's possible for the container to not have
powered off fully and the container state to not have updated to
'Stopped' before the remove command is issued in the test.

Before this change, it was possible for the test to fail if the
container state wasn't updated on time. This was seen in CI build
14551 for PR vmware#6665.

Since that test snippet's intent (verify that the anonymous volume
can be used by a new container) is unaffected by how the container
is removed, this change is valid.

Enhances vmware#6262
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.

4 participants